66d8c98a087bab5d86d91df0f4a007fb6319f1a9
[gnulib.git] / ChangeLog
1 2012-02-29  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'hypotf'.
4         * modules/hypotf-tests: New file.
5         * tests/test-hypotf.c: New file.
6
7         New module 'hypotf'.
8         * lib/math.in.h (hypotf): New declaration.
9         * lib/hypotf.c: New file.
10         * m4/hypotf.m4: New file.
11         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
12         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
13         REPLACE_HYPOTF.
14         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
15         REPLACE_HYPOTF.
16         * modules/hypotf: New file.
17         * tests/test-math-c++.cc: Check the hypotf declaration.
18         * doc/posix-functions/hypotf.texi: Mention the new module.
19
20         hypot: Prepare for hypotf module.
21         * m4/hypot.m4: New file.
22         * modules/hypot (Files): Add m4/hypot.m4.
23         (configure.ac): Invoke gl_FUNC_HYPOT.
24
25 2012-02-29  Bruno Haible  <bruno@clisp.org>
26
27         hypot tests: More tests.
28         * tests/test-hypot.c: Include <float.h>.
29         (main): Add tests about overflow and underflow.
30
31 2012-02-29  Bruno Haible  <bruno@clisp.org>
32
33         math code: Add comments.
34         * lib/acosl.c: Add comment about related glibc source files.
35         * lib/asinl.c: Likewise.
36         * lib/atanl.c: Likewise.
37         * lib/expl.c: Likewise.
38         * lib/logl.c: Likewise.
39         * lib/sincosl.c: Likewise.
40         * lib/sinl.c: Likewise.
41         * lib/tanl.c: Likewise.
42         * lib/trigl.c: Likewise.
43         * lib/cosl.c: Likewise. Fix comments.
44
45 2012-02-28  Bruno Haible  <bruno@clisp.org>
46
47         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
48         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
49         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
50         HUGE_VALL are defined.
51         (numeric_equald): Renamed from numeric_equal.
52         (numeric_equalf, numeric_equall): New functions.
53         (main): Check also HUGE_VALF, HUGE_VALL.
54         * modules/math-tests (Files): Add tests/macros.h.
55         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
56         HUGE_VALL.
57
58 2012-02-28  Bruno Haible  <bruno@clisp.org>
59
60         doc: Move ISO C11 feature notes into POSIX chapters.
61         * doc/posix-functions/aligned_alloc.texi: Renamed from
62         doc/glibc-functions/aligned_alloc.texi.
63         * doc/posix-functions/quick_exit.texi: Renamed from
64         doc/glibc-functions/quick_exit.texi.
65         * doc/posix-headers/uchar.texi: Renamed from
66         doc/glibc-headers/uchar.texi.
67         * doc/posix-functions/c16rtomb.texi: Renamed from
68         doc/glibc-functions/c16rtomb.texi.
69         * doc/posix-functions/c32rtomb.texi: Renamed from
70         doc/glibc-functions/c32rtomb.texi.
71         * doc/posix-functions/mbrtoc16.texi: Renamed from
72         doc/glibc-functions/mbrtoc16.texi.
73         * doc/posix-functions/mbrtoc32.texi: Renamed from
74         doc/glibc-functions/mbrtoc32.texi.
75         * doc/gnulib.texi: Update.
76         (Glibc uchar.h): Remove section.
77         Suggested by Eric Blake.
78
79 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
80
81         stdnoreturn: port to MSVC better
82         MSVC standard headers use __declspec(noreturn), so #define noreturn
83         to empty on that platform.  Reported by Bruno Haible in
84         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
85         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
86         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
87
88 2012-02-28  Bruno Haible  <bruno@clisp.org>
89
90         doc: Mention new glibc headers and functions.
91         * doc/glibc-headers/uchar.texi: New file.
92         * doc/glibc-functions/aligned_alloc.texi: New file.
93         * doc/glibc-functions/c16rtomb.texi: New file.
94         * doc/glibc-functions/c32rtomb.texi: New file.
95         * doc/glibc-functions/clock_adjtime.texi: New file.
96         * doc/glibc-functions/fanotify_init.texi: New file.
97         * doc/glibc-functions/fanotify_mark.texi: New file.
98         * doc/glibc-functions/inet6_opt_append.texi: New file.
99         * doc/glibc-functions/inet6_opt_find.texi: New file.
100         * doc/glibc-functions/inet6_opt_finish.texi: New file.
101         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
102         * doc/glibc-functions/inet6_opt_init.texi: New file.
103         * doc/glibc-functions/inet6_opt_next.texi: New file.
104         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
105         * doc/glibc-functions/inet6_rth_add.texi: New file.
106         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
107         * doc/glibc-functions/inet6_rth_init.texi: New file.
108         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
109         * doc/glibc-functions/inet6_rth_segments.texi: New file.
110         * doc/glibc-functions/inet6_rth_space.texi: New file.
111         * doc/glibc-functions/login.texi: New file.
112         * doc/glibc-functions/mbrtoc16.texi: New file.
113         * doc/glibc-functions/mbrtoc32.texi: New file.
114         * doc/glibc-functions/name_to_handle_at.texi: New file.
115         * doc/glibc-functions/ntp_gettimex.texi: New file.
116         * doc/glibc-functions/open_by_handle_at.texi: New file.
117         * doc/glibc-functions/prlimit.texi: New file.
118         * doc/glibc-functions/process_vm_readv.texi: New file.
119         * doc/glibc-functions/process_vm_writev.texi: New file.
120         * doc/glibc-functions/recvmmsg.texi: New file.
121         * doc/glibc-functions/scandirat.texi: New file.
122         * doc/glibc-functions/sendmmsg.texi: New file.
123         * doc/glibc-functions/setns.texi: New file.
124         * doc/glibc-functions/timespec_get.texi: New file.
125         * doc/gnulib.texi: Include them.
126         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
127         sections.
128         Reported by Eric Blake.
129
130 2012-02-28  Bruno Haible  <bruno@clisp.org>
131
132         Avoid compilation errors with MSVC option -fp:strict.
133         * lib/floor.c: Use MSVC specific pragma fenv_access.
134         * lib/ceil.c: Likewise.
135         * lib/trunc.c: Likewise.
136         * lib/round.c: Likewise.
137         * lib/rint.c: Likewise.
138         * lib/fma.c: Likewise.
139         * lib/integer_length.c: Likewise.
140         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
142         * tests/test-floor2.c: Likewise.
143         * tests/test-floorf2.c: Likewise.
144         * tests/test-ceil2.c: Likewise.
145         * tests/test-ceilf2.c: Likewise.
146         * tests/test-trunc2.c: Likewise.
147         * tests/test-truncf2.c: Likewise.
148         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
149
150 2012-02-27  Bruno Haible  <bruno@clisp.org>
151
152         Tests for module 'sqrtl-ieee'.
153         * modules/sqrtl-ieee-tests: New file.
154         * tests/test-sqrtl-ieee.c: New file.
155
156         New module 'sqrtl-ieee'.
157         * modules/sqrtl-ieee: New file.
158
159         Tests for module 'sqrt-ieee'.
160         * modules/sqrt-ieee-tests: New file.
161         * tests/test-sqrt-ieee.c: New file.
162
163         New module 'sqrt-ieee'.
164         * modules/sqrt-ieee: New file.
165
166         Tests for module 'sqrtf-ieee'.
167         * modules/sqrtf-ieee-tests: New file.
168         * tests/test-sqrtf-ieee.c: New file.
169         * tests/test-sqrt-ieee.h: New file.
170
171         New module 'sqrtf-ieee'.
172         * modules/sqrtf-ieee: New file.
173
174 2012-02-27  Bruno Haible  <bruno@clisp.org>
175
176         remainderl-ieee: Work around test failure on OSF/1.
177         * m4/remainderl-ieee.m4: New file.
178         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
179         present, test whether remainderl works with a zero second argument.
180         Replace it if not.
181         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
183         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
184         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
185         (Depends-on): Update conditions.
186         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
187         (Depends-on): Add remainder-ieee.
188         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
189         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
190         module.
191
192         remainderf-ieee: Work around test failure on OSF/1.
193         * m4/remainderf-ieee.m4: New file.
194         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
195         present, test whether remainderf works with a zero second argument.
196         Replace it if not.
197         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
199         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
200         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
201         (Depends-on): Update conditions.
202         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
203         (Depends-on): Add remainder-ieee.
204         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
205         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
206         module.
207
208         remainder-ieee: Work around test failure on OSF/1.
209         * m4/remainder-ieee.m4: New file.
210         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
211         present, test whether remainder works with a zero second argument.
212         Replace it if not.
213         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
215         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
216         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
217         (Depends-on): Update dependencies.
218         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
219         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
220         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
221
222         Tests for module 'remainderl-ieee'.
223         * modules/remainderl-ieee-tests: New file.
224         * tests/test-remainderl-ieee.c: New file.
225
226         New module 'remainderl-ieee'.
227         * modules/remainderl-ieee: New file.
228
229         Tests for module 'remainder-ieee'.
230         * modules/remainder-ieee-tests: New file.
231         * tests/test-remainder-ieee.c: New file.
232
233         New module 'remainder-ieee'.
234         * modules/remainder-ieee: New file.
235
236         Tests for module 'remainderf-ieee'.
237         * modules/remainderf-ieee-tests: New file.
238         * tests/test-remainderf-ieee.c: New file.
239         * tests/test-remainder-ieee.h: New file.
240
241         New module 'remainderf-ieee'.
242         * modules/remainderf-ieee: New file.
243
244 2012-02-27  Bruno Haible  <bruno@clisp.org>
245
246         modff, modfl: Fix configure syntax error.
247         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
248         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
249
250 2012-02-27  Bruno Haible  <bruno@clisp.org>
251
252         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
253         * m4/fmodl-ieee.m4: New file.
254         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
255         whether fmodl works with zero arguments. Replace it if not.
256         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
257         (Depends-on): Add fmod-ieee.
258         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
259         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
260
261         fmodf-ieee: Work around test failure on OSF/1.
262         * m4/fmodf-ieee.m4: New file.
263         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
264         whether fmodf works with zero arguments. Replace it if not.
265         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
267         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
268         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
269         (Depends-on): Update dependencies.
270         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
271         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
272         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
273
274         fmodf-ieee: Work around test failure on MSVC 9.
275         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
276         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
277
278         fmod-ieee: Work around test failures on OSF/1, mingw.
279         * m4/fmod-ieee.m4: New file.
280         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
281         whether fmod works with zero arguments. Replace it if not.
282         * lib/math.in.h (fmod): New declaration.
283         * lib/fmod.c: New file.
284         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
286         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
287         * modules/fmod (Files): Add lib/fmod.c.
288         (Depends-on): Add math, isinf, trunc, fma.
289         (configure.ac): Arrange to compile lib/fmod.c if needed.
290         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
291         m4/signbit.m4.
292         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
293         * tests/test-math-c++.cc: Check the declaration of fmod.
294         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
295
296         fmodl-ieee: Fix test failures.
297         * lib/fmodl.c (fmodl): Treat Inf specially.
298         * modules/fmodl (Depends-on): Add isinf.
299
300         Tests for module 'fmodl-ieee'.
301         * modules/fmodl-ieee-tests: New file.
302         * tests/test-fmodl-ieee.c: New file.
303
304         New module 'fmodl-ieee'.
305         * modules/fmodl-ieee: New file.
306
307         Tests for module 'fmod-ieee'.
308         * modules/fmod-ieee-tests: New file.
309         * tests/test-fmod-ieee.c: New file.
310
311         New module 'fmod-ieee'.
312         * modules/fmod-ieee: New file.
313
314         Tests for module 'fmodf-ieee'.
315         * modules/fmodf-ieee-tests: New file.
316         * tests/test-fmodf-ieee.c: New file.
317         * tests/test-fmod-ieee.h: New file.
318
319         New module 'fmodf-ieee'.
320         * modules/fmodf-ieee: New file.
321
322 2012-02-27  Bruno Haible  <bruno@clisp.org>
323
324         Tests for module 'rintl-ieee'.
325         * modules/rintl-ieee-tests: New file.
326         * tests/test-rintl-ieee.c: New file.
327
328         New module 'rintl-ieee'.
329         * modules/rintl-ieee: New file.
330
331         Tests for module 'rint-ieee'.
332         * modules/rint-ieee-tests: New file.
333         * tests/test-rint-ieee.c: New file.
334
335         New module 'rint-ieee'.
336         * modules/rint-ieee: New file.
337
338         Tests for module 'rintf-ieee'.
339         * modules/rintf-ieee-tests: New file.
340         * tests/test-rintf-ieee.c: New file.
341         * tests/test-rint-ieee.h: New file.
342
343         New module 'rintf-ieee'.
344         * modules/rintf-ieee: New file.
345
346 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
347
348         regex: re_search etc. should return -2 when memory exhausted
349         This bug was uncovered when testing 'grep'.  Without the fix,
350         re_search and friends return -1 when memory is exhausted, but -1
351         means no match, and this causes grep to falsely report no-match
352         instead of memory-exhaustion.  See
353         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
354         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
355         trouble; this can occur if re_search_internal ran out of memory.
356
357 2012-02-26  Bruno Haible  <bruno@clisp.org>
358
359         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
360         * m4/modfl-ieee.m4: New file.
361         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
362         whether modfl works with Inf. Replace it if not.
363         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
365         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
366         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
367         (Depends-on): Update dependencies.
368         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
369         m4/signbit.m4.
370         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
371         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
372
373         modfl-ieee: Fix dependencies.
374         * modules/modfl-ieee (Depends-on): Add modf-ieee.
375
376         modfl-ieee: Fix test failures.
377         * lib/modfl.c (modfl): Treat NaN and Inf specially.
378         * modules/modfl (Depends-on): Add isfinite, isinf.
379
380         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
381         * m4/modff-ieee.m4: New file.
382         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
383         whether modff works with NaN and Inf. Replace it if not.
384         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
386         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
387         * modules/modff (configure.ac): Consider REPLACE_MODFF.
388         (Depends-on): Update dependencies.
389         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
390         m4/signbit.m4.
391         (Depends-on): Add modf-ieee.
392         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
393         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
394
395         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
396         * m4/modf-ieee.m4: New file.
397         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
398         whether modf works with NaN and Inf. Replace it if not.
399         * lib/math.in.h (modf): New declaration.
400         * lib/modf.c: New file.
401         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
403         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
404         * modules/modf (Files): Add lib/modf.c.
405         (Depends-on): Add math, isfinite, trunc, isinf.
406         (configure.ac): Addrange to compile lib/modf.c if needed.
407         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
408         m4/signbit.m4.
409         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
410         * tests/test-math-c++.cc: Check the declaration of modf.
411         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
412
413         Tests for module 'modfl-ieee'.
414         * modules/modfl-ieee-tests: New file.
415         * tests/test-modfl-ieee.c: New file.
416
417         New module 'modfl-ieee'.
418         * modules/modfl-ieee: New file.
419
420         Tests for module 'modf-ieee'.
421         * modules/modf-ieee-tests: New file.
422         * tests/test-modf-ieee.c: New file.
423
424         New module 'modf-ieee'.
425         * modules/modf-ieee: New file.
426
427         Tests for module 'modff-ieee'.
428         * modules/modff-ieee-tests: New file.
429         * tests/test-modff-ieee.c: New file.
430         * tests/test-modf-ieee.h: New file.
431
432         New module 'modff-ieee'.
433         * modules/modff-ieee: New file.
434
435 2012-02-26  Bruno Haible  <bruno@clisp.org>
436
437         Tests for module 'fabsl-ieee'.
438         * modules/fabsl-ieee-tests: New file.
439         * tests/test-fabsl-ieee.c: New file.
440
441         New module 'fabsl-ieee'.
442         * modules/fabsl-ieee: New file.
443
444         Tests for module 'fabs-ieee'.
445         * modules/fabs-ieee-tests: New file.
446         * tests/test-fabs-ieee.c: New file.
447
448         New module 'fabs-ieee'.
449         * modules/fabs-ieee: New file.
450
451         Tests for module 'fabsf-ieee'.
452         * modules/fabsf-ieee-tests: New file.
453         * tests/test-fabsf-ieee.c: New file.
454         * tests/test-fabs-ieee.h: New file.
455
456         New module 'fabsf-ieee'.
457         * modules/fabsf-ieee: New file.
458
459 2012-02-26  Bruno Haible  <bruno@clisp.org>
460
461         Tests for module 'fmal-ieee'.
462         * modules/fmal-ieee-tests: New file.
463         * tests/test-fmal-ieee.c: New file.
464
465         New module 'fmal-ieee'.
466         * modules/fmal-ieee: New file.
467
468         Tests for module 'fma-ieee'.
469         * modules/fma-ieee-tests: New file.
470         * tests/test-fma-ieee.c: New file.
471
472         New module 'fma-ieee'.
473         * modules/fma-ieee: New file.
474
475         Tests for module 'fmaf-ieee'.
476         * modules/fmaf-ieee-tests: New file.
477         * tests/test-fmaf-ieee.c: New file.
478         * tests/test-fma-ieee.h: New file.
479
480         New module 'fmaf-ieee'.
481         * modules/fmaf-ieee: New file.
482
483 2012-02-26  Bruno Haible  <bruno@clisp.org>
484
485         Tests for module 'ldexpl-ieee'.
486         * modules/ldexpl-ieee-tests: New file.
487         * tests/test-ldexpl-ieee.c: New file.
488
489         New module 'ldexpl-ieee'.
490         * modules/ldexpl-ieee: New file.
491
492         Tests for module 'ldexp-ieee'.
493         * modules/ldexp-ieee-tests: New file.
494         * tests/test-ldexp-ieee.c: New file.
495
496         New module 'ldexp-ieee'.
497         * modules/ldexp-ieee: New file.
498
499         Tests for module 'ldexpf-ieee'.
500         * modules/ldexpf-ieee-tests: New file.
501         * tests/test-ldexpf-ieee.c: New file.
502         * tests/test-ldexp-ieee.h: New file.
503
504         New module 'ldexpf-ieee'.
505         * modules/ldexpf-ieee: New file.
506
507 2012-02-26  Bruno Haible  <bruno@clisp.org>
508
509         Refactor frexp*-ieee tests.
510         * tests/test-frexp-ieee.h: New file.
511         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
512         (main): Just call test_function.
513         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
514         (main): Just call test_function.
515         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
516         (main): Just call test_function.
517         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
518         * modules/frexp-ieee-tests (Files): Likewise.
519         * modules/frexpl-ieee-tests (Files): Likewise.
520
521         Tests for module 'frexpl-ieee'.
522         * modules/frexpl-ieee-tests: New file.
523         * tests/test-frexpl-ieee.c: New file.
524
525         New module 'frexpl-ieee'.
526         * modules/frexpl-ieee: New file.
527
528         Tests for module 'frexp-ieee'.
529         * modules/frexp-ieee-tests: New file.
530         * tests/test-frexp-ieee.c: New file.
531
532         New module 'frexp-ieee'.
533         * modules/frexp-ieee: New file.
534
535         Tests for module 'frexpf-ieee'.
536         * modules/frexpf-ieee-tests: New file.
537         * tests/test-frexpf-ieee.c: New file.
538
539         New module 'frexpf-ieee'.
540         * modules/frexpf-ieee: New file.
541
542 2012-02-26  Bruno Haible  <bruno@clisp.org>
543
544         roundl-ieee tests: More tests.
545         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
546         (main): Add tests for [MX] shaded specification in POSIX.
547         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
548         (Depends-on): Add isnanl-nolibm.
549
550         round-ieee tests: More tests.
551         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
552         (main): Add tests for [MX] shaded specification in POSIX.
553         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
554         (Depends-on): Add isnand-nolibm.
555
556         roundf-ieee tests: More tests.
557         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
558         (main): Add tests for [MX] shaded specification in POSIX.
559         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
560         (Depends-on): Add isnanf-nolibm.
561
562         truncl-ieee tests: More tests.
563         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
564         (main): Add tests for [MX] shaded specification in POSIX.
565         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
566         (Depends-on): Add isnanl-nolibm.
567
568         trunc-ieee tests: More tests.
569         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
570         (main): Add tests for [MX] shaded specification in POSIX.
571         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
572         (Depends-on): Add isnand-nolibm.
573
574         truncf-ieee tests: More tests.
575         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
576         (main): Add tests for [MX] shaded specification in POSIX.
577         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
578         (Depends-on): Add isnanf-nolibm.
579
580         ceill-ieee tests: More tests.
581         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
582         (main): Add tests for [MX] shaded specification in POSIX.
583         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
584         (Depends-on): Add isnanl-nolibm.
585
586         ceil-ieee tests: More tests.
587         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
588         (main): Add tests for [MX] shaded specification in POSIX.
589         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
590         (Depends-on): Add isnand-nolibm.
591
592         ceilf-ieee tests: More tests.
593         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
594         (main): Add tests for [MX] shaded specification in POSIX.
595         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
596         (Depends-on): Add isnanf-nolibm.
597
598         floorl-ieee tests: More tests.
599         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
600         (main): Add tests for [MX] shaded specification in POSIX.
601         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
602         (Depends-on): Add isnanl-nolibm.
603
604         floor-ieee tests: More tests.
605         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
606         (main): Add tests for [MX] shaded specification in POSIX.
607         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
608         (Depends-on): Add isnand-nolibm.
609
610         floorf-ieee tests: More tests.
611         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
612         (main): Add tests for [MX] shaded specification in POSIX.
613         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
614         (Depends-on): Add isnanf-nolibm.
615
616 2012-02-26  Bruno Haible  <bruno@clisp.org>
617
618         fpieee: More comments.
619         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
620
621 2012-02-25  Bruno Haible  <bruno@clisp.org>
622
623         Tests for module 'log10l'.
624         * modules/log10l-tests: New file.
625         * tests/test-log10l.c: New file.
626         * tests/test-math-c++.cc: Check the declaration of log10l.
627
628         New module 'log10l'.
629         * lib/math.in.h (log10l): New declaration.
630         * lib/log10l.c: New file.
631         * m4/log10l.m4: New file.
632         * modules/log10l: New file.
633         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
635         HAVE_DECL_LOG10L.
636         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
637         HAVE_DECL_LOG10L.
638         * doc/posix-functions/log10l.texi: Mention the new module.
639
640 2012-02-25  Bruno Haible  <bruno@clisp.org>
641
642         fmodl, remainder*: Avoid wrong results due to rounding errors.
643         * lib/fmodl.c (fmodl): Correct the result if it is not within the
644         expected bounds.
645         * lib/remainderf.c (remainderf): Likewise.
646         * lib/remainder.c (remainder): Likewise.
647         * lib/remainderl.c (remainderl): Likewise.
648
649 2012-02-25  Bruno Haible  <bruno@clisp.org>
650
651         Tests for module 'remainderl'.
652         * modules/remainderl-tests: New file.
653         * tests/test-remainderl.c: New file.
654         * tests/test-math-c++.cc: Check the declaration of remainderl.
655
656         New module 'remainderl'.
657         * lib/math.in.h (remainderl): New declaration.
658         * lib/remainderl.c: New file.
659         * m4/remainderl.m4: New file.
660         * modules/remainderl: New file.
661         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
663         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
664         HAVE_REMAINDERL.
665         * doc/posix-functions/remainderl.texi: Mention the new module.
666
667 2012-02-25  Bruno Haible  <bruno@clisp.org>
668
669         Tests for module 'remainderf'.
670         * modules/remainderf-tests: New file.
671         * tests/test-remainderf.c: New file.
672         * tests/test-math-c++.cc: Check the declaration of remainderf.
673
674         New module 'remainderf'.
675         * lib/math.in.h (remainderf): New declaration.
676         * lib/remainderf.c: New file.
677         * m4/remainderf.m4: New file.
678         * modules/remainderf: New file.
679         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
681         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
682         HAVE_REMAINDERF.
683         * doc/posix-functions/remainderf.texi: Mention the new module.
684
685 2012-02-25  Bruno Haible  <bruno@clisp.org>
686
687         remainder: Support for MSVC.
688         * lib/math.in.h (remainder): New declaration.
689         * lib/remainder.c: New file.
690         * m4/remainder.m4: New file.
691         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
692         (Depends-on): Add math, round, fma.
693         (configure.ac): Use results of gl_FUNC_REMAINDER.
694         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
696         HAVE_DECL_REMAINDER.
697         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
698         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
699         * tests/test-math-c++.cc: Check the declaration of remainder.
700         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
701         problems are fixed.
702
703 2012-02-25  Bruno Haible  <bruno@clisp.org>
704
705         Tests for module 'fmodl'.
706         * modules/fmodl-tests: New file.
707         * tests/test-fmodl.c: New file.
708         * tests/test-math-c++.cc: Check the declaration of fmodl.
709
710         New module 'fmodl'.
711         * lib/math.in.h (fmodl): New declaration.
712         * lib/fmodl.c: New file.
713         * m4/fmodl.m4: New file.
714         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
716         REPLACE_FMODL.
717         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
718         REPLACE_FMODL.
719         * modules/fmodl: New file.
720         * doc/posix-functions/fmodl.texi: Mention the new module.
721
722 2012-02-25  Bruno Haible  <bruno@clisp.org>
723
724         Tests for module 'modfl'.
725         * modules/modfl-tests: New file.
726         * tests/test-modfl.c: New file.
727         * tests/test-math-c++.cc: Check the declaration of modfl.
728
729         New module 'modfl'.
730         * lib/math.in.h (modfl): New declaration.
731         * lib/modfl.c: New file.
732         * m4/modfl.m4: New file.
733         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
735         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
736         * modules/modfl: New file.
737         * doc/posix-functions/modfl.texi: Mention the new module.
738
739 2012-02-25  Bruno Haible  <bruno@clisp.org>
740
741         Tests for module 'fabsl'.
742         * modules/fabsl-tests: New file.
743         * tests/test-fabsl.c: New file.
744         * tests/test-math-c++.cc: Check the declaration of fabsl.
745
746         New module 'fabsl'.
747         * lib/math.in.h (fabsl): New declaration.
748         * lib/fabsl.c: New file.
749         * m4/fabsl.m4: New file.
750         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
752         REPLACE_FABSL.
753         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
754         REPLACE_FABSL.
755         * modules/fabsl: New file.
756         * doc/posix-functions/fabsl.texi: Mention the new module.
757
758 2012-02-25  Bruno Haible  <bruno@clisp.org>
759
760         fabs tests: More tests.
761         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
762         (zero): New variable.
763         (main): Add tests for signed zero.
764         * modules/fabs-tests (Files): Add tests/minus-zero.h.
765
766         fabsf tests: More tests.
767         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
768         (zero): New variable.
769         (main): Add tests for signed zero.
770         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
771
772 2012-02-24  Bruno Haible  <bruno@clisp.org>
773
774         atanl: Provide function definition on MSVC.
775         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
776         function pointer.
777         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
778
779 2012-02-24  Bruno Haible  <bruno@clisp.org>
780
781         acosl: Provide function definition on MSVC.
782         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
783         function pointer.
784         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
785
786 2012-02-24  Bruno Haible  <bruno@clisp.org>
787
788         asinl: Provide function definition on MSVC.
789         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
790         function pointer.
791         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
792
793 2012-02-24  Bruno Haible  <bruno@clisp.org>
794
795         tanl: Provide function definition on MSVC.
796         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
797         function pointer.
798         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
799
800 2012-02-24  Bruno Haible  <bruno@clisp.org>
801
802         cosl: Provide function definition on MSVC.
803         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
804         function pointer.
805         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
806
807 2012-02-24  Bruno Haible  <bruno@clisp.org>
808
809         sinl: Provide function definition on MSVC.
810         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
811         function pointer.
812         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
813
814 2012-02-24  Bruno Haible  <bruno@clisp.org>
815
816         logl: Provide function definition on MSVC.
817         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
818         function pointer.
819         * lib/math.in.h (logl): Undefine if it does not exist as a function.
820
821 2012-02-24  Bruno Haible  <bruno@clisp.org>
822
823         expl: Provide function definition on MSVC.
824         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
825         function pointer.
826         * lib/math.in.h (expl): Undefine if it does not exist as a function.
827
828 2012-02-24  Bruno Haible  <bruno@clisp.org>
829
830         sqrtl: Provide function definition on MSVC.
831         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
832         a function pointer.
833         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
834
835 2012-02-24  Bruno Haible  <bruno@clisp.org>
836
837         ceill: Provide function definition on MSVC.
838         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
839         used as a function pointer.
840         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
841
842 2012-02-24  Bruno Haible  <bruno@clisp.org>
843
844         floorl: Provide function definition on MSVC.
845         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
846         used as a function pointer.
847         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
848
849 2012-02-24  Bruno Haible  <bruno@clisp.org>
850
851         ceilf: Provide function definition on MSVC.
852         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
853         used as a function pointer.
854         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
855
856 2012-02-24  Bruno Haible  <bruno@clisp.org>
857
858         floorf: Provide function definition on MSVC.
859         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
860         used as a function pointer.
861         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
862
863 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
864
865         stdnoreturn: new module
866         This implements a replacement for C11's <stdnoreturn.h>.
867         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
868         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
869         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
870         * tests/test-stdnoreturn.c: New files.
871
872 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
873
874         regex: fix false multibyte matches in some regular expressions
875         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
876         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
877         * lib/regex_internal.c (re_string_skip_chars):
878         Fix miscomputation of remain_len that may cause incomplete
879         multi-byte character and false match.
880
881 2012-02-24  Jim Meyering  <meyering@redhat.com>
882
883         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
884         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
885         uses with "==" *before* the call, e.g., 0 == strcmp (...)
886         Remove now-unnecessary str''cmp obfuscation.
887         Suggested by Akim Demaille.
888
889 2012-02-24  Bruno Haible  <bruno@clisp.org>
890
891         streq: Rename macro.
892         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
893         * NEWS: Mention the change.
894         * lib/mbrtowc.c (mbrtowc): Update.
895         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
896         * lib/wcwidth.c (wcwidth): Update.
897         Suggested by Akim Demaille and Jim Meyering.
898
899 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
900
901         regex: fix typo in definition of MIN
902         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
903         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
904
905 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
906             Bruno Haible  <bruno@clisp.org>
907
908         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
909         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
910         entries into a stack-allocated buffer directly.
911         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
912
913 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
914             Bruno Haible  <bruno@clisp.org>
915
916         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
917
918          - There were several instances of this pattern:
919
920              for (;;) {
921                n = acl (f, GETACLCNT, 0, NULL);
922                [ allocate an array A of size N ]
923                if (acl (f, GETACL, n, a) == n)
924                  break;
925              }
926
927            This loop might never terminate if some other process is constantly
928            manipulating the file's ACL.  The loop should be rewritten to
929            terminate.
930
931          - The acl (... GETACLNT ...) call is merely an optimization; its value
932            is merely a hint as to how big to make the array.  A better
933            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
934            and just guess a reasonably-big size, growing the size and trying
935            again if it's not large enough.  This guarantees termination, and
936            saves a system call.
937
938         * lib/acl-internal.h: Include <limits.h>.
939         (MIN, SIZE_MAX): New macros.
940         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
941         a stack-allocated buffer, and use malloc if it does not fit. Don't
942         use GETACLCNT.
943         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
944
945 2012-02-19  Bruno Haible  <bruno@clisp.org>
946
947         acl: Fix endless loop on Solaris with vxfs.
948         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
949         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
950         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
951         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
952         * tests/test-sameacls.c (main)[Solaris]: Likewise.
953         Reported by Bill Jones in
954         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
955
956 2012-02-19  Bruno Haible  <bruno@clisp.org>
957
958         acl: Fix copy-acl test failure on Solaris 11 2011-11.
959         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
960         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
961         that this function returns 0 in some more cases.
962
963 2012-02-19  Bruno Haible  <bruno@clisp.org>
964
965         acl: Update doc references.
966         * doc/acl-resources.txt: Update links to Solaris documentation.
967
968 2012-02-19  Bruno Haible  <bruno@clisp.org>
969
970         Fix test failure in many locales on Solaris 11.
971         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
972         'tr' arguments.
973         * tests/test-pipe-filter-ii1.c (main): Likewise.
974         * build-aux/bootstrap (check_versions): Run 'tr' command with range
975         expressions in the C locale.
976         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
977         * m4/host-os.m4 (gl_HOST_OS): Likewise.
978
979 2012-02-19  Bruno Haible  <bruno@clisp.org>
980
981         gnulib-tool: Improve usage message.
982         * gnulib-tool (func_usage): Move doc of --help and --version to the
983         section "Operation modes".
984
985 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
986
987         README-release: make it easier to execute commands
988         * top/README-release: break commands out on to separate lines.
989
990 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
991
992         GNUmakefile: simplify detection of unconfigured trees
993         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
994         whether the tree make is being run from is already configured or
995         not.  Related simplifications.
996
997 2012-02-13  Simon Josefsson  <simon@josefsson.org>
998
999         * gnulib-tool (func_usage): Document --help and --version.
1000
1001 2012-02-11  Jim Meyering  <meyering@redhat.com>
1002
1003         bootstrap: don't exit 0 upon gnulib-tool failure
1004         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
1005         its exit status, not 0.
1006
1007 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
1008
1009         README-release: various improvements
1010         * top/README-release: Give a command to push changes for the
1011         release.  Add "distcheck" to list of other pre-release checks.
1012         Fix instance of "make stable" which should be "make TYPE".
1013
1014 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         maint: replace FSF snail-mail addresses with URLs
1017         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
1018         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
1019         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
1020         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
1021         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
1022         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
1023         * lib/check-version.c, lib/check-version.h, lib/config.charset:
1024         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
1025         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
1026         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
1027         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
1028         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
1029         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
1030         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
1031         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
1032         * lib/glthread/thread.c, lib/glthread/thread.h:
1033         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
1034         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
1035         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
1036         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
1037         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
1038         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
1039         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
1040         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
1041         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
1042         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
1043         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
1044         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
1045         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
1046         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
1047         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
1048         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
1049         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
1050         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
1051         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
1052         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
1053         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
1054         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
1055         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
1056         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
1057         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
1058         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
1059         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
1060         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
1061         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
1062         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
1063         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
1064         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
1065         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
1066         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
1067         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
1068         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
1069         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
1070         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
1071         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
1072         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
1073         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
1074         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
1075         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
1076         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
1077         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
1078         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
1079         * tests/test-poll.c, tests/test-quotearg-simple.c:
1080         * tests/test-quotearg.c, tests/test-quotearg.h:
1081         * tests/test-round-ieee.c, tests/test-round1.c:
1082         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
1083         * tests/test-roundl-ieee.c, tests/test-roundl.c:
1084         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
1085         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
1086         * tests/test-strerror.c, tests/test-strerror_r.c:
1087         * tests/test-strsignal.c, tests/test-strverscmp.c:
1088         * tests/test-xmemdup0.c:
1089         Replace FSF snail mail addresses with URLs, as per GNU coding
1090         standards.  See glibc bug
1091         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
1092
1093 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1094
1095         README-release: capitalize a word and split a line
1096         * top/README-release: Fix punctuation and spacing.
1097
1098 2012-02-08  Akim Demaille  <demaille@gostai.com>
1099
1100         fatal-signal: use C prototypes (with explicit void).
1101         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1102         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
1103
1104 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         regex: spelling fix
1107         * lib/regexec.c: spelling fix
1108
1109         regex: rely on stdint.h for SIZE_MAX
1110         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
1111
1112 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         regex: merge glibc changes
1115
1116         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
1117         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
1118         (init_word_char): Work even if bitset words are not exactly 32 or
1119         64 bits wide.  Don't assume there are no padding bits.
1120         * lib/regex.c [_LIBC]: Do not include <config.h>.
1121         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
1122         and -Wtype-limits.
1123         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
1124         needless disagreement with glibc.  All uses changed.  Define it to
1125         1 only if _GNU_SOURCE, to match glibc.
1126         (_REG_RM_NAME): Remove; no longer needed, since the names in
1127         question are now all protected by __USE_GNU.
1128         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
1129         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
1130         * lib/regex_internal.h (MIN): New macro.
1131
1132         2012-01-03 Ulrich Drepper <drepper@gmail.com>
1133         * lib/regcomp.c (init_word_char): Optimize regex a bit.
1134
1135         2011-12-30 Jakub Jelinek <jakub@redhat.com>
1136         * lib/regex_internal.c (re_string_fetch_byte_case):
1137         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
1138         is miscompiled, and it turns out it is because of an incorrect
1139         attribute on re_string_fetch_byte_case.  Unlike
1140         re_string_peek_byte_case, this one is really not pure, it modifies
1141         memory (increments pstr->cur_idx), and with the pure attribute GCC
1142         assumed it doesn't and it cached the presumed value of
1143         regexp->cur_idx in a variable across the
1144          for (;; ++i)
1145            {
1146              if (i >= BRACKET_NAME_BUF_SIZE)
1147                return REG_EBRACK;
1148              if (token->type == OP_OPEN_CHAR_CLASS)
1149                ch = re_string_fetch_byte_case (regexp);
1150              else
1151                ch = re_string_fetch_byte (regexp);
1152              if (re_string_eoi(regexp))
1153                return REG_EBRACK;
1154              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1155                break;
1156              elem->opr.name[i] = ch;
1157            }
1158
1159         2011-11-29 Andreas Schwab <schwab@redhat.com>
1160         * lib/regcomp.c (build_equiv_class):
1161         Fix access after end of search string in regex matcher.
1162
1163         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1164         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1165
1166         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1167         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1168
1169         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1170         * lib/regcomp.c (parse_branch, parse_sub_exp):
1171         More regex memory leak fixes and tests.
1172         (parse_sub_exp, parse_bracket_exp):
1173         Fix memory leak for some invalid regular expressions.
1174
1175         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1176         * lib/regex_internal.c, lib/regexec.c:
1177         Fix unnecessary overallocation due to incomplete character.  When
1178         incomplete characters are found at the end of a string the code
1179         ran amok and allocated lots of memory.  Stricter limits are now in
1180         place.
1181
1182         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1183         * lib/regex.h: Update documentation.
1184
1185         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1186         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1187
1188         2010-05-05 Andreas Schwab <schwab@redhat.com>
1189         * lib/regexec.c (find_collation_sequence_value):
1190         Fix lookup of collation sequence value during regexp matching.
1191
1192         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1193         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1194
1195         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1196         * lib/regex.h: Cleanup namespace.
1197
1198         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1199         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1200
1201         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1202         * lib/regex_internal.h: Prevent some declarations and definitions
1203         to be seen when used in tests.
1204
1205         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1206         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1207         __libc_lock_* macros if not _LIBC.
1208         (struct re_dfa_t): Add lock.
1209
1210 2012-02-07  Eric Blake  <eblake@redhat.com>
1211
1212         maint.mk: also prohibit lower-case @var@
1213         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1214         lower case, like @top_srcdir@.
1215
1216 2012-02-04  Eric Blake  <eblake@redhat.com>
1217
1218         canonicalize: avoid uninitialized memory use
1219         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1220         random '/' left in dest.
1221         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1222
1223 2012-02-04  Bruno Haible  <bruno@clisp.org>
1224
1225         isatty: Fix test failure of ptsname_r on native Windows.
1226         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1227         and don't set errno.
1228         (isatty): Test first whether fd is valid. Set errno when returning 0.
1229
1230 2012-02-04  Bruno Haible  <bruno@clisp.org>
1231
1232         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1233         * tests/test-spawn-pipe-main.c: Include progname.h.
1234         (main): Invoke set_program_name.
1235         * modules/spawn-pipe-tests (Depends-on): Add progname.
1236
1237         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1238         * tests/test-nonblocking-socket-main.c: Include progname.h.
1239         (main): Invoke set_program_name.
1240         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1241
1242         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1243         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1244         (main): Invoke set_program_name.
1245         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1246
1247 2012-02-04  Eric Blake  <eblake@redhat.com>
1248
1249         canonicalize-lgpl: fix // handling
1250         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1251
1252         canonicalize: fix // handling
1253         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1254         /// to //, since only // is special.
1255
1256 2012-02-04  Bruno Haible  <bruno@clisp.org>
1257
1258         ioctl: Fix test failure on native Windows.
1259         * lib/ioctl.c: Include msvc-nothrow.h.
1260         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1261
1262 2012-02-04  Bruno Haible  <bruno@clisp.org>
1263
1264         fsync: Avoid test failure on native Windows.
1265         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1266         read-only.
1267
1268 2012-02-04  Bruno Haible  <bruno@clisp.org>
1269
1270         sys_select: Avoid syntax error on OpenBSD 5.0.
1271         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1272         currently being included, just include the system's <sys/select.h>.
1273
1274 2012-02-04  Bruno Haible  <bruno@clisp.org>
1275
1276         sys_select: Avoid syntax error on OpenBSD 5.0.
1277         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1278         <sys/select.h>, not before.
1279         Reported by Jiri B <jirib@devio.us>.
1280
1281 2012-02-04  Bruno Haible  <bruno@clisp.org>
1282
1283         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1284         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1285         global variables.
1286         * tests/test-get-rusage-data.c (main): Likewise.
1287         Reported by Jim Meyering.
1288
1289 2012-02-04  Bruno Haible  <bruno@clisp.org>
1290
1291         stdioext: Fix last commit.
1292         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1293
1294 2012-02-03  Bruno Haible  <bruno@clisp.org>
1295
1296         stdioext: Add tentative support for Plan9.
1297         * lib/stdio-impl.h: Include <errno.h>.
1298         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1299         * lib/freadable.c (freadable): Likewise.
1300         * lib/fwritable.c (fwritable): Likewise.
1301         * lib/fbufmode.c (fbufmode): Likewise.
1302         * lib/freading.c (freading): Likewise.
1303         * lib/fwriting.c (fwriting): Likewise.
1304         * lib/freadptr.c (freadptr): Likewise.
1305         * lib/freadseek.c (freadptrinc): Likewise.
1306         * lib/freadahead.c (freadahead): Likewise.
1307         * lib/fpurge.c (fpurge): Likewise.
1308         * lib/fseeko.c (rpl_fseeko): Likewise.
1309         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1310         Reported by Jens Staal <staal1978@gmail.com>.
1311
1312 2012-02-02  Jim Meyering  <meyering@redhat.com>
1313
1314         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1315         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1316         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1317         not even to try to add the attribute.  Instead, add a pragma to suppress
1318         the suggestion/warning.
1319
1320 2012-01-31  Karl Berry  <karl@gnu.org>
1321
1322         setstate doc: typo.
1323         * doc/posix-functions/setstate.texi (setstate): { not (.
1324
1325 2012-01-31  Bruno Haible  <bruno@clisp.org>
1326
1327         popen: Make more robust on Windows.
1328         * lib/popen.c: On native Windows, use the _popen based code even if
1329         HAVE_POPEN is set.
1330         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1331         environment variable on native Windows.
1332
1333 2012-01-30  Bruno Haible  <bruno@clisp.org>
1334
1335         pclose: Fix typo.
1336         * lib/stdio.in.h (pclose): Fix typo in warning message.
1337
1338 2012-01-30  Bruno Haible  <bruno@clisp.org>
1339
1340         doc about getlogin_r, setstate.
1341         * doc/posix-functions/getlogin_r.texi: List the incompatible
1342         declaration problem under "not fixed by gnulib".
1343         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1344         problem on Solaris 11 and other platforms.
1345
1346 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1347             Bruno Haible  <bruno@clisp.org>
1348
1349         poll tests: Make test more robust.
1350         * tests/test-poll.c: Include macros.h.
1351         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1352         return value of various I/O operations.
1353         * modules/poll-tests (Files): Add tests/macros.h.
1354
1355 2012-01-30  Bruno Haible  <bruno@clisp.org>
1356
1357         sys_stat: Fix support for mingw64 and MSVC.
1358         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1359         header files already do it.
1360         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1361         stat itself.
1362         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1363
1364 2012-01-30  Bruno Haible  <bruno@clisp.org>
1365
1366         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1368         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1369
1370 2012-01-29  Bruno Haible  <bruno@clisp.org>
1371
1372         quotearg: Fix test failure on MacOS X 10.5.
1373         * tests/test-quotearg-simple.c: Include localcharset.h.
1374         (main): If the locale encoding is not ASCII, bypass the tests of
1375         locale_quoting_style and clocale_quoting_style.
1376         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1377
1378 2012-01-29  Jim Meyering  <meyering@redhat.com>
1379
1380         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1381         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1382         detect uses of canonicalize_file_name.
1383
1384 2012-01-28  Bruno Haible  <bruno@clisp.org>
1385
1386         test-framework-sh: Fix test failure with AIX 7.1 diff.
1387         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1388         in column 1, like 'diff -c' does.
1389         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1390         whether 'diff -u' is used. Instead, test whether the output contains
1391         some '@' character.
1392
1393 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1394
1395         strtoimax: eliminate need for stdint.h, inttypes.h checks
1396         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1397         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1398         the prerequisites for a recently-introduced strtoimax test.
1399         I guess this might cause strtoimax to be replaced when not
1400         strictly necessary on older hosts, but this shouldn't introduce
1401         any bugs and it should make Emacs 'configure' faster on typical
1402         modern hosts.  Problem discovered when importing the latest gnulib
1403         to an Emacs test version.
1404         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1405
1406 2012-01-28  Bruno Haible  <bruno@clisp.org>
1407
1408         sys_time: Override 'struct timeval' on some native Windows platforms.
1409         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1410         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1411         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1412         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1413         needs to be overridden.
1414         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1415         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1416         * tests/test-sys_select.c: Check that the tv_sec member has the same
1417         size as a 'time_t'.
1418         * tests/test-sys_time.c: Likewise.
1419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1420         is set, set also REPLACE_GETTIMEOFDAY.
1421         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1422         convert the resulting 'struct timeval' before returning.
1423         * lib/select.c: Include <sys/time.h>.
1424         (select, timeval): Undefine at the right place.
1425         * modules/select (Depends-on): Add sys_time.
1426         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1427         some Windows platforms.
1428         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1429
1430 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1431
1432         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1433         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1434         an integer.
1435         * lib/fcntl.c (dupfd): Likewise.
1436         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1437
1438 2012-01-28  Bruno Haible  <bruno@clisp.org>
1439
1440         fcntl: Avoid compilation error on native Windows.
1441         * modules/fcntl (Depends-on): Add 'close'.
1442
1443 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1444
1445         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1446         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1447         pointer to an integer.
1448         * lib/poll.c (IsConsoleHandle): Likewise.
1449         * lib/isatty.c (IsConsoleHandle): Likewise.
1450
1451 2012-01-28  Jim Meyering  <meyering@redhat.com>
1452
1453         doc: clarify README-release
1454         * top/README-release: Clarify: you should make a point to have
1455         the latest stable versions of build tools in your PATH, and the
1456         reference to buildreq is solely for its list of tool names, not
1457         for its minimal-functional version numbers.
1458         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1459
1460         maint.mk: use more readable (yet functionally equivalent) quoting
1461         It is common to quote a single quote in a single quoted string like
1462         this:  '...'\''...'.  Unless you know the idiom, that looks like
1463         gibberish, so prefer to double-quote the string when possible.
1464         Then you can use a more readable, lone single quote: "...'..."
1465         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1466         "don't" is more readable than the equivalent 'don'\''t'.
1467         (sc_cast_of_x_alloc_return_value): Likewise.
1468         (sc_cast_of_alloca_return_value): Likewise.
1469         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1470         rather than '\'':'\''.
1471
1472 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         stdalign: relax _Alignof and tighten _Alignas test
1475         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1476         as it was too strict: alignof must divide offsetof, but it need
1477         not equal offsetof.  Inspired by Joseph S. Myers's comment
1478         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1479         Conversely, tighten the _Alignas test a bit, as the resulting
1480         alignment must be exactly 8.
1481
1482 2012-01-27  Bruno Haible  <bruno@clisp.org>
1483
1484         stdalign: Document the last change.
1485         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1486
1487 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1488
1489         stdalign: check that alignof and offsetof are consistent
1490         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1491         Problem reported for gnulib by Richard W.M. Jones in
1492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1493
1494 2012-01-27  Jim Meyering  <meyering@redhat.com>
1495
1496         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1497         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1498         convert a sequence with gaps to the minimal containing range.
1499         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1500         * tests/test-update-copyright.sh: Test for this.
1501         The FSF confirmed it is ok to do this, assuming there is at
1502         least one significant change per year in the affected range:
1503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1504
1505 2012-01-26  Bruno Haible  <bruno@clisp.org>
1506
1507         pipe2: refine doc about thread-safety
1508         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1509         multithread-safety problem.
1510         * doc/glibc-functions/accept4.texi: Likewise.
1511
1512 2012-01-26  Bruno Haible  <bruno@clisp.org>
1513
1514         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1515         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1516         In the test program, include <fcntl.h>, for O_RDONLY.
1517
1518 2012-01-26  Eric Blake  <eblake@redhat.com>
1519
1520         pipe2: document lack of thread-safety in replacement
1521         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1522         issue in replacement.
1523         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1524         Based on a report by Eric Wong.
1525
1526 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1527             Bruno Haible  <bruno@clisp.org>
1528
1529         malloca: Avoid warnings on x86_64 mingw64.
1530         * lib/malloca.c: Include <stdint.h>.
1531         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1532         * modules/malloca (Depends-on): Add stdint.
1533         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1534
1535 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         obstack: remove __STDC__ conditionals
1538         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1539         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1540         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1541         m4/include_next.m4 as the only gnulib-maintained places that still
1542         refer to __STDC__.
1543
1544 2012-01-24  Bruno Haible  <bruno@clisp.org>
1545
1546         havelib: Modern quoting.
1547         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1548         the recent change to the GNU coding standards.
1549
1550 2012-01-24  Bruno Haible  <bruno@clisp.org>
1551
1552         stdint: Improve support for Android.
1553         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1554         Reported by Simon Josefsson <simon@josefsson.org>.
1555
1556 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1557
1558         doc: omit trailing empty lines from INSTALL etc.
1559         * doc/Makefile (INSTALL): Omit trailing empty lines.
1560         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1561         omit trailing empty lines.  This simplifies the build procedure.
1562
1563 2012-01-23  Jim Meyering  <meyering@redhat.com>
1564
1565         tests: avoid spurious warnings about gl_sockets_startup
1566         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1567         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1568         reporting a "statement with no effect".
1569         * tests/test-accept.c (main): Mark as "(void)".
1570         * tests/test-accept4.c (main): Likewise.
1571         * tests/test-bind.c (main): Likewise.
1572         * tests/test-connect.c (main): Likewise.
1573         * tests/test-getpeername.c (main): Likewise.
1574         * tests/test-getsockname.c (main): Likewise.
1575         * tests/test-getsockopt.c (main): Likewise.
1576         * tests/test-listen.c (main): Likewise.
1577         * tests/test-recv.c (main): Likewise.
1578         * tests/test-recvfrom.c (main): Likewise.
1579         * tests/test-send.c (main): Likewise.
1580         * tests/test-sendto.c (main): Likewise.
1581         * tests/test-setsockopt.c (main): Likewise.
1582         * tests/test-shutdown.c (main): Likewise.
1583
1584 2012-01-21  Bruno Haible  <bruno@clisp.org>
1585
1586         locale-fr.m4: Fix for Android.
1587         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1588         failure of the test program on Bionic libc.
1589
1590 2012-01-21  Jim Meyering  <meyering@redhat.com>
1591
1592         bootstrap: fail when bootstrap_post_import_hook fails
1593         Otherwise, it's far too easy to miss diagnostics emitted
1594         between gnulib-tool's output and that of running configure.
1595         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1596
1597 2012-01-17  Jim Meyering  <meyering@redhat.com>
1598
1599         maint: enable sc_trailing_blank
1600         * build-aux/pmccabe.css: Remove trailing blanks.
1601         * doc/acl-cygwin.txt: Likewise.
1602         * doc/gnu-oids.texi: Likewise
1603         * cfg.mk: Enable sc_trailing_blank.
1604         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1605
1606 2012-01-17  Jim Meyering  <meyering@redhat.com>
1607
1608         maint: enable sc_prohibit_openat_without_use
1609         * cfg.mk: Enable sc_prohibit_openat_without_use.
1610         Exempt lib/selinux-at.c.
1611
1612 2012-01-17  Jim Meyering  <meyering@redhat.com>
1613
1614         maint: enable sc_prohibit_cloexec_without_use
1615         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1616         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1617
1618 2012-01-17  Jim Meyering  <meyering@redhat.com>
1619
1620         maint: enable sc_prohibit_intprops_without_use
1621         * cfg.mk: Enable sc_prohibit_intprops_without_use
1622         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1623
1624 2012-01-17  Jim Meyering  <meyering@redhat.com>
1625
1626         maint: enable sc_prohibit_hash_pjw_without_use
1627         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1628         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1629         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1630         following " (".
1631
1632 2012-01-17  Jim Meyering  <meyering@redhat.com>
1633
1634         maint: enable double-word-prohibiting rule
1635         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1636         Exempt three files.
1637
1638 2012-01-17  Jim Meyering  <meyering@redhat.com>
1639
1640         maint: remove empty lines at EOF, but excluding modules/*
1641         Apply syntax rules at home as well as abroad.  Most changes
1642         were induced by running this:
1643           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1644             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1645             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1646         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1647         Exempt modules/* and two binary files.
1648         Also exempt doc/INSTALL*, per request from Bruno Haible.
1649         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1650         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1651         * doc/Copyright/request-assign.future: Likewise.
1652         * doc/Copyright/request-disclaim.changes: Likewise.
1653         * doc/INSTALL: Likewise.
1654         * doc/INSTALL.ISO: Likewise.
1655         * doc/INSTALL.UTF-8: Likewise.
1656         * doc/acl-cygwin.txt: Likewise.
1657         * doc/acl-resources.txt: Likewise.
1658         * doc/fdl-1.2.texi: Likewise.
1659         * doc/fdl-1.3.texi: Likewise.
1660         * doc/fdl.texi: Likewise.
1661         * lib/argp-pin.c: Likewise.
1662         * lib/round.c: Likewise.
1663         * lib/unicase/u16-totitle.c: Likewise.
1664         * lib/unictype/block_test.c: Likewise.
1665         * lib/uninorm/canonical-decomposition.c: Likewise.
1666         * m4/README: Likewise.
1667         * m4/relocatable-lib.m4: Likewise.
1668         * tests/test-isnand-nolibm.c: Likewise.
1669         * tests/test-isnand.c: Likewise.
1670         * tests/uninorm/NormalizationTest.txt: Likewise.
1671
1672 2012-01-17  Jim Meyering  <meyering@redhat.com>
1673
1674         maint: add framework to run syntax-check rules against gnulib sources
1675         * cfg.mk: New file, to disable all currently-failing tests.
1676         We'll enable them one by one, as they are made to pass.
1677         * Makefile (sc_maint): New rule.
1678
1679 2012-01-21  Bruno Haible  <bruno@clisp.org>
1680
1681         stdint: Add support for Android.
1682         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1683         include the system's <stdint.h>.
1684         Reported by Simon Josefsson <simon@josefsson.org>.
1685
1686 2012-01-19  Jim Meyering  <meyering@redhat.com>
1687
1688         bootstrap: add bootstrap_post_import_hook
1689         Bison does still need something like the gnulib_mk_hook whose
1690         invocation I had to remove along with slurp in commit 767ccd40.
1691         Technically, we could get along without it, but doing so would
1692         have required living with a warning and a mandatory post-bootstrap
1693         automake rerun.
1694         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1695         (bootstrap_post_import_hook): New function.
1696         Invoke it after gnulib-tool --import and before autoreconf.
1697
1698 2012-01-18  Jim Meyering  <meyering@redhat.com>
1699
1700         gitlog-to-changelog: don't use "no_"-prefixed variable name
1701         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1702         to enable both --cluster and --no-cluster.  Change variable name,
1703         s/\$no_cluster/$cluster/, and reverse usage to match.
1704
1705         gitlog-to-changelog: use "||", not "or" in expressions
1706         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1707         expressions.
1708
1709 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1710
1711         gitlog-to-changelog: new option --no-cluster
1712         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1713         clustering of adjacent commit messages.
1714
1715 2012-01-17  Jim Meyering  <meyering@redhat.com>
1716
1717         maint: spell file systems with two words, not one
1718         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1719         two words, not one.
1720
1721 2012-01-16  Jim Meyering  <meyering@redhat.com>
1722
1723         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1724         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1725
1726 2012-01-16  Eric Blake  <eblake@redhat.com>
1727
1728         bootstrap: cater to autoconf 2.59
1729         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1730         is not available.
1731
1732         bootstrap: properly check for libtool
1733         * build-aux/bootstrap (libtoolize): Also run libtool when older
1734         usage is detected.
1735
1736 2012-01-15  Bruno Haible  <bruno@clisp.org>
1737
1738         Improve support for MSVC 9.
1739         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1740         clashes on MSVC.
1741         * lib/fcntl.in.h: Likewise.
1742         * lib/stdlib.in.h: Likewise.
1743         * lib/sys_stat.in.h: Likewise.
1744
1745 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1746
1747         gnupload: we hold the master copy of this script now
1748         For motivation and more information, see:
1749         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1750         * build-aux/gnupload: Make it clear in the heading comments that the
1751         master copy of this file is maintained by gnulib.  Since we are at
1752         it, bump its copyright year and ...
1753         ($scriptversion): ... the date in its version.
1754         ($usage): Patches and bug reports should be sent to the gnulib list,
1755         not the automake one.
1756         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1757         anymore.
1758
1759 2012-01-15  Bruno Haible  <bruno@clisp.org>
1760
1761         Fix module 'random'.
1762         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1763         initstate, setstate are declared.
1764
1765 2012-01-14  Bruno Haible  <bruno@clisp.org>
1766
1767         Tests for module 'random'.
1768         * modules/random-tests: New file.
1769         * tests/test-random.c: New file, based on tests/test-random_r.c.
1770
1771         New module 'random'.
1772         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1773         declarations.
1774         * lib/random.c: New file, based on glibc/stdlib/random.c.
1775         * m4/random.m4: New file.
1776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1777         HAVE_RANDOM.
1778         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1779         * modules/random: New file.
1780         * config/srclist.txt: Add an entry for random.c.
1781         * doc/posix-functions/random.texi: Mention the 'random' module.
1782         * doc/posix-functions/initstate.texi: Likewise.
1783         * doc/posix-functions/setstate.texi: Likewise.
1784         * doc/posix-functions/srandom.texi: Likewise.
1785
1786 2012-01-12  Bruno Haible  <bruno@clisp.org>
1787
1788         random_r: Use common idioms.
1789         * lib/random_r.c: Include <stdlib.h> first.
1790
1791         random_r: Override incompatible API on AIX, OSF/1.
1792         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1793         Override the system function if REPLACE_RANDOM_R is 1.
1794         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1795         and OSF/1, set REPLACE_RANDOM_R.
1796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1797         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1798         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1799         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1800         * doc/glibc-functions/random_r.texi: Likewise.
1801         * doc/glibc-functions/setstate_r.texi: Likewise.
1802
1803         random_r: Support for MSVC 9.
1804         * lib/random_r.c: Include stdint.h, not inttypes.h.
1805
1806 2012-01-12  Eric Blake  <eblake@redhat.com>
1807
1808         inet_ntop: guard extra work by IF_LINT
1809         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1810         better code generation when not checking for warnings.
1811         Suggested by Paul Eggert and Jim Meyering.
1812
1813         strptime: fix regression on mingw
1814         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1815         Fix regression.  Reported by Bruno Haible.
1816
1817 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1818             Bruno Haible  <bruno@clisp.org>
1819
1820         copy-file: add error-code-returning variant.
1821         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1822         (qcopy_file_preserving): New declaration.
1823         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1824         copy_file_preserving. Change return type to 'int'. Don't emit an error
1825         message here.
1826         (copy_file_preserving): New function.
1827         * tests/test-copy-file.c: Include <stdlib.h>.
1828         (main): Test qcopy_file_preserving if the environment variable
1829         NO_STDERR_OUTPUT is set.
1830         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1831         with NO_STDERR_OUTPUT
1832         * tests/test-copy-file-2.sh: Likewise.
1833
1834 2012-01-10  Bruno Haible  <bruno@clisp.org>
1835
1836         copy-file: Use 'quote' module consistently.
1837         * lib/copy-file.c (copy_file_preserving): Use quote().
1838
1839         copy-file: Refactor.
1840         * lib/copy-file.c: Include quote.h.
1841         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1842         message here.
1843         * modules/copy-file (Depends-on): Add quote.
1844
1845         acl: Export qcopy_acl.
1846         * lib/acl.h (qcopy_acl): New declaration.
1847         * lib/copy-acl.c (qcopy_acl): Make non-static.
1848
1849         acl: Rename a local variable.
1850         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1851
1852         acl: Align return values of copy_acl and qcopy_acl.
1853         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1854         maybe < -1.
1855
1856 2012-01-11  Eric Blake  <eblake@redhat.com>
1857
1858         strptime: silence gcc warnings
1859         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1860         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1861         Reported by Daniel P. Berrange.
1862
1863         inet_ntop: silence gcc warning
1864         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1865         Reported by Daniel P. Berrange.
1866
1867 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1868
1869         getloadavg test: skip the test on GNU/Linux without /proc mounted
1870         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1871         file.  When /proc is not mounted, it always fails with ENOENT.
1872         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1873         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1874
1875 2012-01-10  Bruno Haible  <bruno@clisp.org>
1876
1877         regex: Avoid link error on MSVC 9.
1878         * modules/regex (Depends-on): Add wctype.
1879
1880 2012-01-10  Bruno Haible  <bruno@clisp.org>
1881
1882         doc: Mention --with-tests option.
1883         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1884         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1885         --with-tests.
1886         Reported by Reuben Thomas.
1887
1888 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1889
1890         users.txt: order package names lexicographically.
1891         * users.txt: Order package names lexicographically.
1892
1893 2012-01-10  Jim Meyering  <meyering@redhat.com>
1894
1895         maint.mk: fix description in comment
1896         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1897
1898         ignore-value: remove deprecated ignore_ptr function
1899         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1900         * NEWS: Note this.
1901
1902 2012-01-09  Jim Meyering  <meyering@redhat.com>
1903
1904         test-init.sh: avoid a subshell
1905         * tests/test-init.sh: Remove protective subshell.
1906         Suggested by Bernhard Voelker.  While a subshell is normally
1907         required to protect against older shells (Solaris, FreeBSD) that
1908         warn about a missing program before performing redirection, the
1909         shell-selection tests performed by init.sh probably exclude any
1910         offending shell.
1911
1912 2012-01-08  Bruno Haible  <bruno@clisp.org>
1913
1914         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1915         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1916         variable.
1917
1918 2012-01-08  Bruno Haible  <bruno@clisp.org>
1919
1920         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1921         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1922         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1923         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1924         macro.
1925         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1926         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1927         * lib/spawn_faction_addopen.c: Add workaround implementation if
1928         HAVE_WORKING_POSIX_SPAWN.
1929         * modules/spawn (Makefile): Substitute
1930         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1931         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1932         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1933         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1934         (Depends-on): Update conditions.
1935         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1936         the Solaris 11 bug.
1937
1938 2012-01-08  Bruno Haible  <bruno@clisp.org>
1939
1940         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1941         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1942         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1943         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1944         macro.
1945         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1946         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1947         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1948         HAVE_WORKING_POSIX_SPAWN.
1949         * modules/spawn (Makefile): Substitute
1950         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1951         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1952         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1953         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1954         (Depends-on): Update conditions.
1955         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1956         the Solaris 11 bug.
1957
1958 2012-01-08  Bruno Haible  <bruno@clisp.org>
1959
1960         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1961         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1963         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1964         HAVE_WORKING_POSIX_SPAWN.
1965         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1966         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1967         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1968         * lib/spawn_faction_addclose.c: Add workaround implementation if
1969         HAVE_WORKING_POSIX_SPAWN.
1970         * modules/spawn (Makefile): Substitute
1971         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1972         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1973         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1975         (Depends-on): Update conditions.
1976         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1977         the Solaris 11 bug.
1978
1979 2012-01-08  Bruno Haible  <bruno@clisp.org>
1980
1981         doc: Update for Solaris 11 2011-11.
1982         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1983         * m4/printf.m4: Update comments.
1984
1985 2012-01-08  Bruno Haible  <bruno@clisp.org>
1986
1987         mktime: Avoid compilation error on Solaris 11.
1988         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1989
1990 2012-01-08  Bruno Haible  <bruno@clisp.org>
1991
1992         doc: Small fix.
1993         * doc/posix-headers/nl_types.texi: Correct platforms list.
1994
1995 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1996
1997         Add lgpl-3.0 module.
1998         * MODULES.html.sh (Support for building documentation): Add
1999         lgpl-3.0.
2000         * modules/lgpl-3.0: New file.
2001
2002 2012-01-08  Jim Meyering  <meyering@redhat.com>
2003
2004         select.c: indent with spaces, not TABs
2005         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
2006
2007 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2008
2009         quotearg: do not use grave accent for left quote
2010         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
2011         locale_quoting_style.
2012         (quotearg_buffer_restyled): Fix example.
2013         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
2014
2015 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2016
2017         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
2018         Most programs do not have translation catalogs for English and much
2019         less separate catalogs for British and American English.  Drop the
2020         suggestion to translators about these two, and provide it
2021         automatically for Unicode locales.  Like most programs, even those
2022         using American English, we use single quotation marks.  This conflicts
2023         with the American typographic convention, but works better when you
2024         cite the entire error message within double quotes.  It also tries not
2025         to clash with established practice and with what non-gnulib programs
2026         will usually do.
2027         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
2028         using an UTF-8 or GB-18030 locale.  The list of other locales with
2029         quotes was provided by Bruno Haible.
2030         (quotearg_buffer_restyled): Adjust instructions to translators.
2031         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
2032         text, since this would be wrong when using Unicode.
2033         * modules/quotearg: Depend on c-strcaseeq.
2034
2035 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2036
2037         quotearg: fix Wikipedia link
2038         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
2039
2040 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2041
2042         Fix for mingw with MSVC9.
2043         * m4/ld-version-script.m4: Check that compiler rejects version
2044         scripts with syntax errors.  Reported by Bruno Haible
2045         <bruno@clisp.org>.
2046
2047 2012-01-06  Bruno Haible  <bruno@clisp.org>
2048
2049         Talk about "native Windows API", not "Woe32".
2050         * lib/accept4.c: Update comments to mention native Windows.
2051         * lib/execute.c: Likewise.
2052         * lib/fatal-signal.c: Likewise.
2053         * lib/localcharset.c: Likewise.
2054         * lib/nanosleep.c: Likewise.
2055         * lib/nl_langinfo.c: Likewise.
2056         * lib/pclose.c: Likewise.
2057         * lib/pipe-filter-gi.c: Likewise.
2058         * lib/pipe-filter-ii.c: Likewise.
2059         * lib/pipe.c: Likewise.
2060         * lib/pipe2.c: Likewise.
2061         * lib/popen.c: Likewise.
2062         * lib/progreloc.c: Likewise.
2063         * lib/relocatable.c: Likewise.
2064         * lib/sigaction.c: Likewise.
2065         * lib/sigprocmask.c: Likewise.
2066         * lib/spawn-pipe.h: Likewise.
2067         * lib/spawn-pipe.c: Likewise.
2068         * lib/spawni.c: Likewise.
2069         * lib/stat-time.h: Likewise.
2070         * lib/w32spawn.h: Likewise.
2071         * tests/test-isatty.c: Likewise.
2072         * lib/config.charset: More comments.
2073         * doc/gnulib-intro.texi: Mention native Windows.
2074         * doc/posix-functions/_Exit_C99.texi: Likewise.
2075         * doc/posix-headers/fcntl.texi: Likewise.
2076
2077 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
2078
2079         argp: Avoid crash if translator uses % characters in a translation.
2080         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
2081         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2082
2083 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         doc: C11 and C++11 are now official
2086         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
2087         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
2088         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
2089         * modules/stdalign:
2090         Replace references to draft C1X to C11, and to draft C++0X to C++11.
2091
2092 2012-01-06  Bruno Haible  <bruno@clisp.org>
2093
2094         uc-is-grapheme-break tests: Tweak.
2095         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
2096         message.
2097
2098 2012-01-06  Bruno Haible  <bruno@clisp.org>
2099
2100         test-init.sh: correct the test for diff -u
2101         * tests/test-init.sh: Also redirect stdout to /dev/null.
2102
2103 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2104
2105         Use ', not `, for quoting output.
2106         * build-aux/announce-gen (usage, sizes, print_news_deltas)
2107         (print_changelog_deltas, get_tool_versions, main program):
2108         * build-aux/git-version-gen:
2109         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
2110         * build-aux/move-if-change (help):
2111         * build-aux/useless-if-before-free (usage, main program):
2112         * check-module (parse_module_file, usage)
2113         (find_included_lib_files, check_module):
2114         * lib/argmatch.c (main) [TEST]:
2115         * lib/argp-help.c (_help):
2116         * lib/getopt1.c (main) [TEST]:
2117         * lib/git-merge-changelog.c (usage):
2118         * lib/xstrtol-error.c (xstrtol_error):
2119         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2120         * m4/argz.m4 (gl_FUNC_ARGZ):
2121         * m4/bison.m4 (gl_BISON):
2122         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
2123         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2124         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2125         * m4/fpending.m4 (gl_PREREQ_FPENDING):
2126         * m4/gc-random.m4 (gl_GC_RANDOM):
2127         * m4/intl.m4 (gt_CHECK_DECL):
2128         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
2129         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
2130         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2131         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
2132         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2133         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
2134         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
2135         * tests/test-dirname.c (main):
2136         * tests/test-getpass.c (main):
2137         * tests/test-iconvme.c (main):
2138         * tests/test-parse-datetime.c (LOG):
2139         * tests/test-xstrtoimax.sh:
2140         * tests/test-xstrtol.sh:
2141         * tests/test-xstrtoll.sh:
2142         * tests/test-xstrtoumax.sh:
2143         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
2144         * top/GNUmakefile (abort-due-to-no-makefile):
2145         Quote 'like this', not `like this', as per the recent change to
2146         the GNU coding standards.
2147
2148 2012-01-05  Bruno Haible  <bruno@clisp.org>
2149
2150         strtoimax: Don't force a replacement on systems where intmax_t is int.
2151         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2152         'intmax_t' is not larger than 'int'.
2153         Reported by Pádraig Brady <P@draigBrady.com>.
2154
2155 2012-01-05  Bruno Haible  <bruno@clisp.org>
2156
2157         doc: Mention NetBSD bugs.
2158         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2159         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2160
2161 2012-01-05  Bruno Haible  <bruno@clisp.org>
2162
2163         strtoumax tests: Enhance tests.
2164         * tests/test-strtoumax.c (main): Add tests for large values.
2165
2166 2012-01-05  Bruno Haible  <bruno@clisp.org>
2167
2168         strtoimax: Work around AIX 5.1 bug.
2169         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2170         definition.
2171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2172         Set HAVE_STRTOIMAX.
2173         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2174         REPLACE_STRTOIMAX.
2175         * modules/inttypes-incomplete (Makefile.am): Substitute
2176         REPLACE_STRTOIMAX.
2177         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2178         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2179         (Depends-on): Update conditions.
2180         * tests/test-strtoimax.c (main): Add tests for large values.
2181         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2182
2183 2012-01-05  Bruno Haible  <bruno@clisp.org>
2184
2185         inttypes: Modernize.
2186         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2187         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2188         (Makefile.am): Update inttypes.h rule.
2189
2190 2012-01-05  Jim Meyering  <meyering@redhat.com>
2191
2192         init.sh: don't waste a subshell just to redirect stderr
2193         * tests/init.sh: In testing for diff -u and diff -c, use a
2194         stderr-redirecting exec inside `...` rather than a subshell.
2195
2196         test-init.sh: avoid failure on HP-UX 11.00
2197         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2198         resolves to diff -c or cmp.  Reported by Bruno Haible.
2199
2200 2012-01-05  Bruno Haible  <bruno@clisp.org>
2201
2202         Tests for module 'strtoull'.
2203         * modules/strtoull-tests: New file.
2204         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2205
2206 2012-01-05  Bruno Haible  <bruno@clisp.org>
2207
2208         Tests for module 'strtoll'.
2209         * modules/strtoll-tests: New file.
2210         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2211
2212 2012-01-05  Bruno Haible  <bruno@clisp.org>
2213
2214         Tests for module 'strtoul'.
2215         * modules/strtoul-tests: New file.
2216         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2217
2218 2012-01-05  Bruno Haible  <bruno@clisp.org>
2219
2220         Tests for module 'strtol'.
2221         * modules/strtol-tests: New file.
2222         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2223
2224 2012-01-04  Jim Meyering  <meyering@redhat.com>
2225
2226         test-init.sh: accommodate Solaris 5.10's different diff -u output
2227         * tests/test-init.sh: Also exempt @@ lines from the comparison
2228         of diff output, since Solaris 5.10 and GNU diff formats differ.
2229         Reported by Stefano Lattarini.
2230
2231 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2232
2233         test-posixtm: don't assume signed integer wraparound
2234         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2235         after signed integer overflow.  Inspired by (though it may not
2236         fix) Bruno Haible's bug report in
2237         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2238
2239         Spell out "Windows 9x" and "Windows XP".
2240         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2241         "Windows 9x" and "WinXP" with "Windows XP".
2242
2243 2012-01-04  Jim Meyering  <meyering@redhat.com>
2244
2245         test-vc-list-files-cvs.sh: remove obsolete comment
2246         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2247         double exit.  Now that's all encapsulated via skip_ and Exit.
2248
2249 2012-01-04  Bruno Haible  <bruno@clisp.org>
2250
2251         Talk about "native Windows API", not "Win32".
2252         * lib/classpath.c: Update comments to mention native Windows.
2253         * lib/csharpexec.c: Likewise.
2254         * lib/dup2.c: Likewise.
2255         * lib/error.c: Likewise.
2256         * lib/fcntl.c: Likewise.
2257         * lib/filename.h: Likewise.
2258         * lib/findprog.c: Likewise.
2259         * lib/get-rusage-as.c: Likewise.
2260         * lib/get-rusage-data.c: Likewise.
2261         * lib/getpagesize.c: Likewise.
2262         * lib/javaexec.c: Likewise.
2263         * lib/msvc-inval.c: Likewise.
2264         * lib/msvc-nothrow.c: Likewise.
2265         * lib/nanosleep.c: Likewise.
2266         * lib/nonblocking.c: Likewise.
2267         * lib/printf-parse.c: Likewise.
2268         * lib/setlocale.c: Likewise.
2269         * lib/sigaction.c: Likewise.
2270         * lib/strerror_r.c: Likewise.
2271         * lib/tmpdir.c: Likewise.
2272         * lib/vasnprintf.c: Likewise.
2273         * lib/w32spawn.h: Likewise.
2274         * lib/waitpid.c: Likewise.
2275         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2276         * m4/locale-ar.m4: Likewise.
2277         * m4/locale-fr.m4: Likewise.
2278         * m4/locale-ja.m4: Likewise.
2279         * m4/locale-tr.m4: Likewise.
2280         * m4/locale-zh.m4: Likewise.
2281         * m4/printf.m4: Likewise.
2282         * tests/test-cloexec.c: Likewise.
2283         * tests/test-copy-acl.sh: Likewise.
2284         * tests/test-copy-file.sh: Likewise.
2285         * tests/test-file-has-acl.sh: Likewise.
2286         * tests/test-set-mode-acl.sh: Likewise.
2287         * tests/test-dup-safer.c: Likewise.
2288         * tests/test-dup2.c: Likewise.
2289         * tests/test-dup3.c: Likewise.
2290         * tests/test-fcntl.c: Likewise.
2291         * tests/test-nonblocking-pipe.h: Likewise.
2292         * tests/test-nonblocking-socket.h: Likewise.
2293         * tests/test-pipe.c: Likewise.
2294         * tests/test-pipe2.c: Likewise.
2295         * tests/test-spawn-pipe-child.c: Likewise.
2296         * doc/acl-resources.txt: Likewise.
2297         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2298         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2299         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2300         * lib/localcharset.c: Update comments to mention native Windows.
2301         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2302         * lib/localename.c: Likewise.
2303         * lib/progreloc.c: Likewise.
2304         * lib/relocatable.c: Likewise.
2305         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2306         (windows_compute_revents): Renamed from win32_compute_revents.
2307         (windows_compute_revents_socket): Renamed from
2308         win32_compute_revents_socket.
2309         * lib/select.c: Update comments to mention native Windows.
2310         (windows_poll_handle): Renamed from win32_poll_handle.
2311         * m4/threadlib.m4: Update comments to mention native Windows.
2312         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2313         --enable-threads=windows instead of --enable-threads=win32. Set
2314         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2315         * lib/glthread/lock.h: Update comments to mention native Windows.
2316         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2317         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2318         USE_WIN32_THREADS.
2319         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2320         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2321         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2322         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2323         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2324         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2325         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2326         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2327         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2328         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2329         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2330         * tests/test-tls.c: Likewise.
2331         Rationale:
2332         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2333         on both 32-bit and 64-bit Windows systems.
2334         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2335         line of distinction is between "native Windows" on one side and Unix/
2336         POSIX systems on the other side. More details in
2337         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2338         Suggested by Paul Eggert.
2339
2340 2012-01-03  Bruno Haible  <bruno@clisp.org>
2341
2342         isatty: Support for MSVC 9.
2343         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2344         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2345         (_isatty_nothrow): New function.
2346         (isatty): Use it instead of _isatty.
2347         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2348         * lib/poll.c (IsConsoleHandle): Likewise.
2349         * lib/select.c (IsConsoleHandle): Likewise.
2350         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2351         (gl_PREREQ_ISATTY): New macro.
2352         * modules/isatty (Depends-on): Add msvc-inval.
2353         (configure.ac): Invoke gl_PREREQ_ISATTY.
2354
2355 2012-01-03  Jim Meyering  <meyering@redhat.com>
2356
2357         maint.mk: remove temporary transition aid from over 1.5 years ago
2358         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2359         purpose was to aid in the transition (avoiding silent malfunction)
2360         from that old name to the new _sc_search_regexp.  This shim was
2361         added by commit 219c504b.
2362
2363         init.sh: do not try to accommodate compare arguments starting with "-"
2364         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2365         compare arguments that start with "-".  Besides, we do not worry
2366         about this when invoking diff or cmp; why start now with sed?
2367         Using "--" to separate options from argument would trigger sed
2368         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2369         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2370
2371 2012-01-02  Bruno Haible  <bruno@clisp.org>
2372
2373         Enhance tests for module 'isatty'.
2374         * modules/isatty-tests (Depends-on): Add pipe-posix.
2375         * tests/test-isatty.c: Include <fcntl.h>.
2376         (DEV_NULL): New macro.
2377         (main): Test the resut of isatty() also on regular files, pipes, and
2378         /dev/null.
2379
2380         New module 'isatty'.
2381         * lib/unistd.in.h (isatty): New declaration.
2382         * lib/isatty.c: New file, based on an idea of
2383         Bastien Roucariès <roucaries.bastien@gmail.com>.
2384         * m4/isatty.m4: New file.
2385         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2386         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2387         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2388         REPLACE_ISATTY.
2389         * modules/isatty: New file.
2390         * doc/posix-functions/isatty.texi: Mention the new module.
2391         Suggested by Paolo Bonzini.
2392
2393 2012-01-02  Bruno Haible  <bruno@clisp.org>
2394
2395         canonicalize: Tweak 2011-12-29 commit.
2396         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2397         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2398
2399 2012-01-02  Jim Meyering  <meyering@redhat.com>
2400
2401         gitlog-to-changelog: describe input syntax in --help output
2402         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2403
2404         gitlog-to-changelog: fix typo in --help: show backslash before email @
2405         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2406         in sources, but not in actual output.
2407
2408 2011-12-30  Jim Meyering  <meyering@redhat.com>
2409
2410         gitlog-to-changelog: don't malfunction when name contains %-directive
2411         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2412         in a name string cause trouble.  E.g., with a user name of "%s",
2413         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2414
2415 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2416
2417         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2418         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2419         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2420         the "  (tiny change)" notation that is appended to the standard
2421         ChangeLog "date  name  email" header line.
2422
2423 2012-01-01  Jim Meyering  <meyering@redhat.com>
2424
2425         test-framework-sh: init.sh: fix "make dist" failure
2426         When using gnulib-tool's --with-tests option and any module that
2427         depends on test-framework-sh, "make dist" would fail due to the
2428         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2429         in the gltests directory, and not in the gllib/ directory.
2430         One way to work around that is to move the EXTRA_DIST += init.sh
2431         from the primary module to the -tests one:
2432         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2433         * modules/test-framework-sh (Makefile.am): ...not here.
2434         Reported by Tom G. Christensen in
2435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2436
2437         version-etc: update copyright year reported by --version
2438         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2439
2440 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2441
2442         canonicalize: only stat() if required
2443         * lib/canonicalize.c (canonicalize_filename_mode):
2444         Avoid calling l?stat() when both CAN_MISSING,
2445         and CAN_NOLINKS are set, as we neither need
2446         to resolve symlinks or test component existence.
2447
2448 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         doc: cover st_ino issues once; add OpenVMS etc.
2451         * doc/posix-functions/stat.texi (stat):
2452         * doc/posix-functions/lstat.texi (lstat):
2453         * doc/posix-functions/fstatat.texi (fstatat):
2454         * doc/posix-functions/fstat.texi (fstat):
2455         Move general 'struct stat' stuff to sys_stat.texi,
2456         leaving behind a pointer.
2457         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2458         Merge duplicate info about 'struct stat' problems into here.
2459         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2460         and suggest partial workarounds.
2461
2462         same-inode: port to OpenVMS
2463         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2464         three st_ino values.
2465
2466 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2467
2468         canonicalize: fix references to stat() and lstat()
2469         * lib/canonicalize.c (canonicalize_filename_mode):
2470         Ensure references always resolve to a replacement
2471         function if required (even via a macro).
2472
2473 2011-12-30  Jim Meyering  <meyering@redhat.com>
2474
2475         gitlog-to-changelog: remove a little duplication
2476         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2477         rather than twice.
2478
2479 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2480
2481         canonicalize: add support for not resolving symlinks
2482         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2483         indicate we don't want to follow symlinks.  Also
2484         provide CAN_MODE_MASK to aid setting these existing
2485         mutually exclusive values.
2486         * lib/canonicalize.c (canonicalize_filename_mode):
2487         Extract the flags from can_mode parameter, which
2488         are currently just used to select between stat()
2489         and lstat().  Also ensure that mutually exclusive
2490         values are flagged immediately as invalid.
2491         * tests/test-canonicalize.c: Verify symlinks are
2492         not followed, and that invalid flag combinations
2493         are diagnosed.
2494
2495 2011-12-25  Jim Meyering  <meyering@redhat.com>
2496
2497         gitlog-to-changelog: do not clump multi-paragraph entries
2498         Identical header lines (date,name,email+coauthors) are suppressed,
2499         thus putting all entries with those same characteristics under
2500         a single header.  However, when a log entry consists of two or
2501         more paragraphs, it may not be clear where it starts and ends.
2502         This change makes it so that such an entry is always separated
2503         from others by a header line, even when that header would
2504         otherwise be suppressed.
2505         * build-aux/gitlog-to-changelog: Implement the above.
2506         Inspired by a related request from Stefano Lattarini in
2507         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2508
2509 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         announce-gen: fix `cmd' typo in diagnostic
2512         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2513         diagnostic: a missing '$' meant that the command was not output.
2514
2515 2011-12-23  Jim Meyering  <meyering@redhat.com>
2516
2517         test-framework-sh: distribute init.sh
2518         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2519         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2520         fail due to the lack of init.sh.
2521
2522         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2523         * modules/atexit-tests: Rather than listing tests/init.sh,
2524         now that there's a module for it, simply depend on that new module.
2525         * modules/closein-tests: Likewise.
2526         * modules/exclude-tests: Likewise.
2527         * modules/getcwd-tests: Likewise.
2528         * modules/perror-tests: Likewise.
2529         * modules/pread-tests: Likewise.
2530         * modules/pwrite-tests: Likewise.
2531         * modules/vc-list-files-tests: Likewise.
2532         * modules/verify-tests: Likewise.
2533         * modules/xalloc-die-tests: Likewise.
2534         * modules/xstrtoimax-tests: Likewise.
2535         * modules/xstrtol-tests: Likewise.
2536         * modules/xstrtoll-tests: Likewise.
2537         * modules/xstrtoumax-tests: Likewise.
2538         * modules/yesno-tests: Likewise.
2539
2540 2011-12-22  Jim Meyering  <meyering@redhat.com>
2541
2542         test-framework-sh: add minimal tests of init.sh's compare function
2543         * modules/test-framework-sh-tests: New file.
2544         * tests/test-init.sh: New file.
2545
2546         test-framework-sh: new module
2547         * modules/test-framework-sh: New file.
2548         * MODULES.html.sh (Support for maintaining and releasing projects):
2549         List it.
2550
2551         init.sh: do not emit simulated diff output to stderr
2552         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2553
2554 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2555
2556         .gitignore: ignore gnulib.dvi and regex.info
2557         * doc/.gitignore:add gnulib.dvi and regex.info
2558
2559 2011-12-22  Jim Meyering  <meyering@redhat.com>
2560
2561         init.sh: correct previous change
2562         * tests/init.sh (compare): My previous change was wrong.
2563         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2564
2565         init.sh: avoid unwarranted test failure when using "set -e"
2566         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2567         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2568         a use like "compare exp out" would get evoke an unconditional failure.
2569
2570 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2571
2572         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2573         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2574         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2575         autoreconf that did not.
2576         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2577         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2578
2579 2011-12-17  Jim Meyering  <meyering@redhat.com>
2580
2581         bootstrap: remove some now-unneeded code
2582         This script arose back when gnulib-tool was young.
2583         Since then, it has seen improvements that render much of this
2584         script unnecessary.  In particular, it can now make symlinks
2585         to the files it uses.  Also, I no longer see as much value in
2586         marking files as read-only via comments.
2587         If you relied on the symlink-creation feature of the preceding
2588         version of this script, you can get most of that functionality
2589         by adding the --symlink option to the definition of
2590         gnulib_tool_option_extras in your bootstrap.conf file.
2591         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2592         Run autopoint and libtoolize *before* gnulib-tool.
2593         After it, run an abbreviated autoreconf, rather than a loop around
2594         all tools.
2595         (slirp, bt_mark_as_generated): Remove functions.
2596
2597 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         ftoastr: fix typo
2600         * lib/ftoastr.h: Fix misspelling in comment.
2601
2602 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2603
2604         * top/README-release: fix punctuation.
2605
2606 2011-12-17  Jim Meyering  <meyering@redhat.com>
2607
2608         bootstrap: correct the recent buildreq change
2609         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2610         had no effect.
2611         * build-aux/bootstrap (buildreq): Bracket each search term with
2612         "*...*", so that the shell "case" statement works as intended.
2613         Add comments.
2614
2615 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2616
2617         build: let bootstrap resort to wget when downloading .po files
2618         * build-aux/bootstrap (download_po_files): Fallback to wget when
2619         downloading the .po files via rsync fails.  This is necessary to
2620         bootstrap from behind a strict firewall.
2621
2622 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2623
2624         stdint: don't assume C++11 when compiling with g++
2625         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2627         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2628         work also in C++ before C++11, as that improperly inhibits
2629         generating a substitute stdint.h for that case.
2630
2631 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2632
2633         alloca: protect comment from gnulib-tool
2634         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2635         that gnulib-tool doesn't think it's a license, and munge it to
2636         say "GCC version 3".
2637
2638 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2639
2640         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2641         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2642         $(abs_top_builddir) instead of $(top_builddir).
2643
2644 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2645
2646         strftime-tests: also test nanoseconds
2647         * tests/test-strftime.c (T): Add a test of %N.
2648
2649 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2650
2651         inttypes, stdint: add C++11 support
2652         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2653         when including inttypes.h and stdint.h.  Support this change to
2654         the standard.
2655         * doc/posix-headers/inttypes.texi (inttypes.h):
2656         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2657         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2658         Define if not defined already, for the benefit of pre-C++11 hosts.
2659         Define the standard format macros (e.g., PRId8) always.
2660         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2661         Likewise, if __cpluspus.  Define the standard constant and limit
2662         macros (e.g., INT8_C, INT8_MAX) always.
2663         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2664         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2665         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2666         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2667         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2668         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2669         Likewise.
2670
2671 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2672
2673         nonblocking tests: Fix test failure on Linux/PPC.
2674         Suggested by Prerna Saxena in
2675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2676         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2677         Set to 1100000.
2678
2679 2011-12-12  Jim Meyering  <meyering@redhat.com>
2680
2681         argmatch: don't hard-code `' when listing valid option arguments
2682         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2683         use the quote function to add quotes.  Use fputs rather than
2684         fprintf for the format string with no format directive.
2685
2686 2011-12-07  Eric Blake  <eblake@redhat.com>
2687
2688         bootstrap: detect tools required by gnulib-tool
2689         * build-aux/bootstrap (buildreq): Provide minimum implicit
2690         dependencies.
2691         * DEPENDENCIES: Mention patch as a prereq.
2692
2693 2011-12-04  Bruno Haible  <bruno@clisp.org>
2694
2695         sethostname: Port to Windows platforms.
2696         * lib/sethostname.c: Provide an alternate implementation for Windows
2697         platforms.
2698         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2699         (main): Skip the test if sethostname() fails with EPERM. On Windows
2700         platforms, don't check the result of gethostname().
2701
2702 2011-12-04  Bruno Haible  <bruno@clisp.org>
2703             Jim Meyering  <meyering@redhat.com>
2704
2705         tests: Avoid spurious error message on platforms without mktemp program.
2706         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2707
2708 2011-12-04  Bruno Haible  <bruno@clisp.org>
2709
2710         sethostname: Fix documentation.
2711         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2712         "not fixed" section.
2713
2714 2011-12-03  Bruno Haible  <bruno@clisp.org>
2715
2716         gnulib-tool: Verify that the License field is present and non-empty.
2717         * gnulib-tool (func_get_license_raw): New function, extracted from
2718         func_get_license.
2719         (func_get_license): Use it. Warn if the module is not a test module and
2720         has no license.
2721         Suggested by Jim Meyering.
2722
2723 2011-12-03  Bruno Haible  <bruno@clisp.org>
2724
2725         sethostname tests: Fix link error on mingw.
2726         * tests/test-sethostname1.c: New file, extracted from
2727         tests/test-sethostname.c.
2728         * tests/test-sethostname2.c: New file, extracted from
2729         tests/test-sethostname.c.
2730         * tests/test-sethostname.c: Remove file.
2731         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2732         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2733         (Depends-on): Add gethostname.
2734         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2735         Link the latter with $(GETHOSTNAME_LIB).
2736
2737         sethostname tests: Fix compilation error on mingw.
2738         * tests/test-sethostname.c: Don't include <sys/types.h>.
2739         (geteuid): Use a dummy value without uid_t.
2740         * modules/sethostname-tests (Depends-on): Remove sys_types.
2741
2742         sethostname tests: Avoid a gcc warning.
2743         * tests/test-sethostname.c (main): Remove an unused variable.
2744
2745         Tweak last commit.
2746         * modules/sethostname-tests (Files): Sort by decreasing importance.
2747         (configure.ac): Check for geteuid.
2748         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2749         the test when there's nothing to test. Drop an unnecessary cast.
2750         Improve an error message. Verify that the final sethostname() call
2751         succeeds.
2752
2753 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2754
2755         Add a test suite for the sethostname module.
2756         * modules/sethostname-tests: New file.  A test program
2757         for the sethostname module.
2758         * tests/test-sethostname.c: Likewise.
2759
2760 2011-12-03  Bruno Haible  <bruno@clisp.org>
2761
2762         Tweak last commit.
2763         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2764         Fix preprocessor directives indentation. Fix typos.
2765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2766         * modules/unistd (Makefile): Likewise.
2767
2768 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2769
2770         Integrate the sethostname module into unistd.
2771         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2772         into the unistd.h header.
2773         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2774         preprocessor directives.
2775         * modules/unistd: Setup the Makefile substitutions of the
2776         SETHOSTNAME preprocessor directives.
2777
2778 2011-12-03  Bruno Haible  <bruno@clisp.org>
2779
2780         Tweak last commit.
2781         * lib/sethostname.c: Don't include <string.h>.
2782         (sethostname): No need to copy the argument string to the stack. Don't
2783         call clearerr. Preserve errno when fprintf failed.
2784         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2785         Don't invoke AC_REPLACE_FUNCS.
2786         * modules/sethostname (Link): Remove empty section.
2787         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2788         failure problem.
2789
2790 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2791
2792         New module 'sethostname'.
2793         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2794         for systems that lack it.
2795         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2796         sethostname declaration and function.
2797         * modules/sethostname: New file.  Define the sethostname module.
2798
2799 2011-12-03  Bruno Haible  <bruno@clisp.org>
2800
2801         Tweak last commit.
2802         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2803
2804 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2805
2806         Split the HOST_NAME_MAX detection into a separate m4 macro.
2807         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2808         macro so it can be used by the pending sethostname module.
2809
2810 2011-12-03  Bruno Haible  <bruno@clisp.org>
2811
2812         Fix module descriptions syntax.
2813         * modules/argv-iter (License): Fix syntax.
2814         * modules/di-set (License): Likewise.
2815         * modules/ino-map (License): Likewise.
2816         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2817
2818 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         stdalign: port to Clang 3.0
2821         Problem reported by Simon Josefsson in
2822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2823         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2824         which has <stdalign.h> but which does not define alignof.
2825         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2826
2827 2011-12-01  Eric Blake  <eblake@redhat.com>
2828
2829         mktempd: silence dd usage
2830         * build-aux/mktempd (rand_bytes): Silence dd.
2831
2832 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2833
2834         manywarnings: Don't mention gcc version in docstring.
2835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2836         Jim Meyering <meyering@redhat.com>.
2837
2838 2011-11-30  Jim Meyering  <meyering@redhat.com>
2839
2840         hash: mark a few floating point constants with "f" suffix
2841         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2842         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2843         floating point constants with "f", since they're destined to be
2844         saved/used as "float"s.
2845
2846 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2847
2848         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2849         * tests/test-float.c (test_long_double): Correct and re-enable the
2850         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2851
2852 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2853
2854         Avoid subtracting two pointers that don't point into the same block.
2855         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2856         only pointers into the same memory block are subtracted. We cannot
2857         assume that sizeof (ptrdiff_t) == sizeof (void *).
2858
2859 2011-11-29  Eric Blake  <eblake@redhat.com>
2860
2861         maint.mk: add syntax check for use of compare from init.sh
2862         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2863         moved here from coreutils.
2864
2865         manywarnings: drop -Wunsuffixed-float-constants
2866         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2867         '1.0D', which is the only way to silence this warning for 'double'.
2868
2869 2011-11-29  Jim Meyering  <meyering@redhat.com>
2870
2871         hash: mark compute_bucket_size with the pure attribute
2872         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2873
2874         quotearg, propername: correct pragma guard expression
2875         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2876         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2877
2878 2011-11-28  Jim Meyering  <meyering@redhat.com>
2879
2880         propername: do not mark proper_name with the const attribute
2881         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2882         since it examines data pointed to by its parameter.
2883         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2884         the suggestion from -Wsuggest-attribute=const.
2885
2886         propername: mark one more function as const
2887         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2888
2889 2011-11-27  Jim Meyering  <meyering@redhat.com>
2890
2891         mark functions with const and pure attributes
2892
2893         Mark functions per suggestions from gcc-4.6 when using these options:
2894         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2895         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2896         Follow these guidelines: when possible, apply the attribute to
2897         an extern declaration, not to its definition.  Apply it to the
2898         definition only when the definition is static.
2899         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2900         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2901         * lib/base64.h (isbase64): Likewise.
2902         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2903         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2904         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2905         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2906         (c_tolower, c_toupper): Likewise.
2907         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2908         * lib/chdir-long.c (find_non_slash): Likewise.
2909         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2910         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2911         * lib/file-type.h (file_type): Likewise.
2912         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2913         * lib/filevercmp.c (verrevcmp): Likewise.
2914         * lib/freadahead.h (freadahead): Likewise.
2915         * lib/fts.c (fts_maxarglen): Likewise.
2916         * lib/hash-pjw.h (hash_pjw): Likewise.
2917         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2918         * lib/hash.c (is_prime, next_prime): Likewise.
2919         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2920         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2921         (hash_table_ok, hash_get_first, hash_string): Likewise.
2922         (compute_bucket_size): Likewise.
2923         * lib/i-ring.h (i_ring_empty): Likewise.
2924         * lib/isnan.c (isnanl): Likewise.
2925         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2926         * lib/memcasecmp.h (memcasecmp): Likewise.
2927         * lib/memchr2.h (memchr2): Likewise.
2928         * lib/memcmp2.h (memcmp2): Likewise.
2929         * lib/parse-datetime.y (lookup_zone): Likewise.
2930         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2931         [!WINDOWS_SOCKETS]: Likewise.
2932         * lib/strnlen1.h (strnlen1): Likewise.
2933         * lib/uniwidth.in.h (uc_width): Likewise.
2934         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2935         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2936         (quoting_options_from_style): Add a comment.
2937         * lib/propername.h (proper_name): Add a comment.
2938
2939 2011-11-27  Bruno Haible  <bruno@clisp.org>
2940
2941         Remove unused macros from !_LIBC code in glibc-borrowed files.
2942         * lib/fnmatch.c (STRCOLL): Remove macro.
2943         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2944         * lib/glob.c (__stat, __readdir64): Remove macros.
2945         * lib/tempname.c (__open64, __xstat64): Remove macros.
2946         Suggested by Paul Eggert.
2947
2948 2011-11-27  Bruno Haible  <bruno@clisp.org>
2949
2950         getcwd: Fix link error on MSVC 9.
2951         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2952
2953 2011-11-27  Bruno Haible  <bruno@clisp.org>
2954
2955         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2956         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2957         HAVE_OPENDIR is 0.
2958         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2959         HAVE_CLOSEDIR is 0.
2960         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2961         is 0.
2962         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2963
2964 2011-11-27  Bruno Haible  <bruno@clisp.org>
2965
2966         getcwd: Fix bug from 2011-08-17.
2967         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2968         platforms that need it.
2969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2970         code of 4 to be a failure, not a success. This ensures that
2971         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2972
2973 2011-11-27  Bruno Haible  <bruno@clisp.org>
2974
2975         binary-io tests: Avoid test failure on mingw when libtool is used.
2976         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2977         Don't verify the size of t-bin-out1.tmp here.
2978         * tests/test-binary-io.sh: Verify it here.
2979         Reported by Simon Josefsson.
2980
2981 2011-11-26  Bruno Haible  <bruno@clisp.org>
2982
2983         Fix conflict between two instantiations of module 'unistd'.
2984         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2985         ${include_guard_prefix} also in the autoconf snippet.
2986         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2988         GNULIB_UNISTD_H_GETOPT.
2989         * modules/getopt-posix (configure.ac): Set the
2990         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2991         * modules/getopt-gnu (configure.ac): Likewise.
2992         * modules/unistd (Makefile.am): Change the substitution value of
2993         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2994         Reported by Simon Josefsson.
2995
2996 2011-11-25  Bruno Haible  <bruno@clisp.org>
2997
2998         pagealign_alloc: Doc and comments.
2999         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
3000         module.
3001         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
3002
3003 2011-11-25  Jim Meyering  <meyering@redhat.com>
3004
3005         test-update-copyright.sh: avoid false-positive failure
3006         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
3007         around false positive failure on Cygwin/Windows.  The latter was
3008         matching erroneously-created files with names like
3009         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
3010
3011 2011-11-25  Simon Josefsson  <simon@josefsson.org>
3012
3013         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
3014         * m4/valgrind-tests.m4: Check that the parameters that will be
3015         used works, not just a subset of them.  Reported by Bruno Haible
3016         <bruno@clisp.org>.
3017
3018 2011-11-24  Jim Meyering  <meyering@redhat.com>
3019
3020         test-stdalign.c: comment out long double tests
3021         * tests/test-stdalign.c: Don't try to reduce alignment of long double
3022         variables.  That provokes errors like this from gcc-4.7.0 20111124:
3023         error: '_Alignas' specifiers cannot reduce alignment of \
3024         'static_longdouble_alignas'.
3025
3026 2011-11-22  Jim Meyering  <meyering@redhat.com>
3027
3028         init.sh: make "compare /dev/null FILE" output more readable
3029         * tests/init.sh (compare_): Document the preferred order of arguments.
3030         (emit_diff_u_header_): New function.
3031         (compare_dev_null_): Emit a simulated diff, rather than just the
3032         contents of the unexpected file.  Suggestion from Bruno Haible.
3033
3034 2011-11-21  Jim Meyering  <meyering@redhat.com>
3035             Eric Blake  <eblake@redhat.com>
3036
3037         init.sh: work around OSF/1 5.1's mishandling of /dev/null
3038         * tests/init.sh: Make our compare function slightly more portable.
3039         Reported by Bruno Haible in
3040         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
3041
3042 2011-11-21  Simon Josefsson  <simon@josefsson.org>
3043
3044         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
3045         before using it, in code that ends up in config.h.
3046
3047 2011-11-20  Bruno Haible  <bruno@clisp.org>
3048
3049         getcwd: Work around getcwd bug on AIX 5..7.
3050         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
3051         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
3052         Use a different value for gl_cv_func_getcwd_path_max. Move the
3053         definition of HAVE_PARTLY_WORKING_GETCWD from here...
3054         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
3055         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
3056         Define HAVE_MINIMALLY_WORKING_GETCWD.
3057         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
3058         where it is not even minimally working, that is, on AIX.
3059         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
3060         m4/getcwd-path-max.m4.
3061         (main): Update exit code computation.
3062         * doc/posix-functions/getcwd.texi: Mention list of platforms where
3063         getcwd does not handle long file names.
3064
3065 2011-11-20  Bruno Haible  <bruno@clisp.org>
3066
3067         getcwd: Fix bug from 2009-09-10.
3068         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
3069         like "no".
3070
3071 2011-11-20  Simon Josefsson  <simon@josefsson.org>
3072
3073         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
3074
3075 2011-11-20  Bruno Haible  <bruno@clisp.org>
3076
3077         fma tests: Avoid shadowing local variables.
3078         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
3079         expected.
3080
3081 2011-11-20  Bruno Haible  <bruno@clisp.org>
3082
3083         copysignf tests: Fix.
3084         * tests/test-copysignf.c: Fix signature check.
3085
3086 2011-11-20  Bruno Haible  <bruno@clisp.org>
3087
3088         fma: Remove unused code.
3089         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
3090         unused macros.
3091
3092 2011-11-20  Bruno Haible  <bruno@clisp.org>
3093
3094         sethostname: Fix doc about AIX.
3095         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
3096         sethostname; it has it.
3097
3098         sethostname: Mention more portability problems.
3099         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
3100         problem.
3101         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3102
3103 2011-11-19  Bruno Haible  <bruno@clisp.org>
3104
3105         Depend on module fcntl-h when AT_FDCWD is used.
3106         * modules/utimens (Depends-on): Add fcntl-h.
3107         * modules/areadlinkat (Depends-on): Likewise.
3108         * modules/areadlinkat-with-size (Depends-on): Likewise.
3109         * modules/faccessat (Depends-on): Likewise.
3110         * modules/fchmodat (Depends-on): Likewise.
3111         * modules/fchownat (Depends-on): Likewise.
3112         * modules/getcwd (Depends-on): Likewise.
3113         * modules/mkdirat (Depends-on): Likewise.
3114         * modules/mkfifoat (Depends-on): Likewise.
3115         * modules/readlinkat (Depends-on): Likewise.
3116         * modules/symlinkat (Depends-on): Likewise.
3117         * modules/dup2-tests (Depends-on): Likewise.
3118         * modules/fdutimensat-tests (Depends-on): Likewise.
3119         * modules/futimens-tests (Depends-on): Likewise.
3120
3121 2011-11-19  Bruno Haible  <bruno@clisp.org>
3122
3123         euidaccess: Update a comment.
3124         * lib/euidaccess.c: Update comment about platforms with faccessat.
3125
3126 2011-11-19  Bruno Haible  <bruno@clisp.org>
3127
3128         openat: Fix file list.
3129         * modules/openat (Files): Remove lib/at-func.c.
3130
3131 2011-11-19  Bruno Haible  <bruno@clisp.org>
3132
3133         fstatat: Simplify.
3134         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
3135         gnulib should define rpl_fstatat, there is a
3136         "#define fstatat rpl_fstatat" in <sys/stat.h>.
3137
3138 2011-11-19  Bruno Haible  <bruno@clisp.org>
3139
3140         Ensure 'inline' can be used in tests/test-utimens-common.h.
3141         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
3142         * modules/futimens-tests (configure.ac): Likewise.
3143         * modules/utimens-tests (configure.ac): Likewise.
3144         * modules/utimensat-tests (configure.ac): Likewise.
3145
3146 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3147
3148         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3149         not hash_insert0.
3150         (hash_insert_if_absent): Doc fix.
3151
3152 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3153
3154         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3155
3156 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3157
3158         test-getcwd: disambiguate exit status
3159         * tests/test-getcwd.c (test_long_name): Return 0..7.
3160         (main): Exit with an unambiguous exit status.  The old
3161         code yielded a mysterious mixture of two failure codes.
3162
3163         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3164         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3165         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3166         rpl_fstatat or fstatat.  This should fix the other problem
3167         reported by Kai Habel in
3168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3169         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3171         and I reproduced it on a Solaris 8 host we still have in production.
3172
3173 2011-11-18  Jim Meyering  <meyering@redhat.com>
3174
3175         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3176         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3177         Add a sentence to the comment.
3178         (hash_insert0): New function that simply calls hash_insert_if_absent.
3179         * lib/hash.h (hash_insert_if_absent): Declare it.
3180         (hash_insert0): Add deprecation attribute.
3181         (_GL_ATTRIBUTE_DEPRECATED): Define.
3182         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3183         not hash_insert0.
3184         * NEWS: Mention it, even though it's not really an incompatible change.
3185
3186 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3187
3188         openat: avoid compilation failure due to lack of <errno.h> inclusion
3189         * lib/openat.c: Include <errno.h>.
3190
3191 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3192
3193         * modules/getcwd (Depends-on): Add fdopendir.
3194         This fixes one of the two problems reported by Kai Habel in
3195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3196
3197         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3198         stdalign problem reported by Ian Beckwith in
3199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3200         * modules/crypto/gc-arcfour (Depends-on):
3201         Depend conditionally on crypto/arcfour.
3202         * modules/crypto/gc-arctwo (Depends-on):
3203         Depend conditionally on crypto/arctwo.
3204         * modules/crypto/gc-des (Depends-on):
3205         Depend conditionally on crypto/des.
3206         * modules/crypto/gc-hmac-md5 (Depends-on):
3207         Depend conditionally on crypto/hmac-md5.
3208         * modules/crypto/gc-hmac-sha1 (Depends-on):
3209         Depend conditionally on crypto/hmac-sha1.
3210         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3211         * modules/crypto/gc-md4 (Depends-on):
3212         Depend conditionally on crypto/md4.
3213         * modules/crypto/gc-md5 (Depends-on):
3214         Depend conditionally on crypto/md5.
3215         * modules/crypto/gc-rijndael (Depends-on):
3216         Depend conditionally on crypto/rijndael.
3217         * modules/crypto/gc-sha1 (Depends-on):
3218         Depend conditionally on crypto/sha1.
3219         * modules/crypto/gc-arcfour:
3220         * modules/crypto/gc-arctwo:
3221         * modules/crypto/gc-des:
3222         * modules/crypto/gc-hmac-md5:
3223         * modules/crypto/gc-hmac-sha1:
3224         * modules/crypto/gc-md2:
3225         * modules/crypto/gc-md4:
3226         * modules/crypto/gc-md5:
3227         * modules/crypto/gc-rijndael:
3228         * modules/crypto/gc-sha1:
3229         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3230         now that the conditional dependencies do the work for us.
3231
3232 2011-11-17  Jim Meyering  <meyering@redhat.com>
3233
3234         tests: factor st_ctime-comparison out of two headers
3235         * tests/test-utimens-common.h (ctime_compare): Define.
3236         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3237         * tests/test-lutimens.h (test_lutimens): Likewise.
3238         * tests/test-utimens.h (test_utimens): Likewise.
3239
3240         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3241         Invoke the test program via an init.sh-using wrapper.
3242         * tests/test-getcwd.sh: New file.
3243         * modules/getcwd-tests (Files): Add it.
3244         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3245
3246 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3247
3248         gitlog-to-changelog: support multi-author commits.
3249         The FSF cares about keeping track of all authors of patches to its
3250         projects, but Git doesn't provide obvious support for multi-author
3251         changesets. Consensus seems to be forming around the use of extra
3252         Signed-off-by inspired lines in the log message formatted as
3253         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3254         multi-author commits between version control systems.
3255         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3256         log message and output in standard ChangeLog multi-author format.
3257         Reported by Peter Rosin <peda@lysator.liu.se>
3258
3259 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3260             Bruno Haible  <bruno@clisp.org>
3261
3262         Fix some modules' file list.
3263         * modules/fstatat (Files): Add m4/lstat.m4.
3264         * modules/openat (Files): Likewise.
3265         * modules/unlinkat (Files): Likewise.
3266
3267 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3268
3269         maint.mk: fix tight-scope.mk generation in VPATH builds.
3270         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3271         reference with $(srcdir) so that the file is found correctly even
3272         when running `make syntax-check' in a VPATH build.
3273
3274 2011-11-13  Bruno Haible  <bruno@clisp.org>
3275             Jim Meyering  <meyering@redhat.com>
3276
3277         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3278         * tests/init.sh (compare): Remove "No differences encountered" or
3279         synonymous output from the 'diff' program.
3280
3281 2011-11-13  Bruno Haible  <bruno@clisp.org>
3282
3283         Makefile: Tweak indentation.
3284         * Makefile: Use tab as first character in every line that contains rule
3285         commands.
3286
3287 2011-11-13  Bruno Haible  <bruno@clisp.org>
3288
3289         Syntax check for copyright statements.
3290         * check-copyright: New file.
3291         * Makefile (sc_check_copyright): New rule.
3292
3293 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3294
3295         * build-aux/git-version-gen: Add --prefix to configure the tag
3296         match string.
3297
3298 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3299
3300         * build-aux/git-version-gen: Add --help and --version.
3301
3302 2011-11-12  Jim Meyering  <meyering@redhat.com>
3303
3304         revamp the other test-exclude?.sh scripts to use init.sh, too
3305         * tests/test-exclude1.sh: Use init.sh.
3306         * tests/test-exclude2.sh: Likewise.
3307         * tests/test-exclude3.sh: Likewise.
3308         * tests/test-exclude4.sh: Likewise.
3309         * tests/test-exclude5.sh: Likewise.
3310         * tests/test-exclude6.sh: Likewise.
3311         * tests/test-exclude7.sh: Likewise.
3312         * tests/test-exclude8.sh: Likewise.
3313         * modules/exclude-tests (Files): List init.sh.
3314
3315         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3316         These shell scripts ignored failure of the binary test-exclude,
3317         so making the latter return 77 didn't cause them to be skipped.
3318         * tests/test-exclude5.sh: Exit with test-exclude's error status
3319         when that program fails.  Revamp to use init.sh.
3320         * tests/test-exclude2.sh: Likewise.
3321
3322         test-exclude: fix a typo
3323         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3324
3325 2011-11-11  Bruno Haible  <bruno@clisp.org>
3326
3327         obstack: Fix compilation error on MSVC 9.
3328         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3329
3330 2011-11-11  Jim Meyering  <meyering@redhat.com>
3331
3332         test-exclude: skip tests rather than failing on deficient systems
3333         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3334         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3335         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3336         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3337
3338 2011-11-10  Bruno Haible  <bruno@clisp.org>
3339
3340         ptsname_r test: Avoid gcc warning on glibc systems.
3341         * tests/test-ptsname_r.c (null_ptr): New function.
3342         (test_errors): Use it.
3343
3344 2011-11-10  Bruno Haible  <bruno@clisp.org>
3345
3346         ptsname_r: Avoid compilation error on OSF/1 5.1.
3347         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3349         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3350         function is not declared or incompatibly declared.
3351         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3352         * modules/ptsname_r (Depends-on, configure.ac): Update.
3353         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3354
3355 2011-11-10  Bruno Haible  <bruno@clisp.org>
3356
3357         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3358         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3359         When cross-compiling, guess yes on all platforms except AIX.
3360         Reported by Ludovic Courtès <ludo@gnu.org>.
3361
3362 2011-11-09  Bruno Haible  <bruno@clisp.org>
3363
3364         ptsname_r tests: Fix bugs.
3365         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3366         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3367
3368 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3369
3370         fstatat: work with cross-compilation
3371         Problem reported by Ludovic Courtès in
3372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3373         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3374         "cross-compiling" and assume the bug is present.  Replace
3375         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3376         an inverted sense, to be more conservative about our assumptions.
3377         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3378
3379 2011-11-09  Bruno Haible  <bruno@clisp.org>
3380
3381         Improve MODULES.html output.
3382         * modules/mkfifoat (Description): Use the word "function".
3383         * modules/readlinkat (Description): Likewise.
3384         * modules/symlinkat (Description): Likewise.
3385
3386 2011-11-09  Eric Blake  <eblake@redhat.com>
3387
3388         ptsname_r-tests: new test module
3389         * modules/ptsname_r-tests: New module.
3390         * tests/test-ptsname_r.c: New file.
3391
3392         ptsname_r: new module
3393         * modules/ptsname_r: New module.
3394         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3395         * lib/ptsname.c (__ptsname_r): Split...
3396         * lib/ptsname_r.c: ...into new file.
3397         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3398         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3399         * modules/stdlib (Makefile.am): Substitute witnesses.
3400         * lib/stdlib.in.h (ptsname_r): Declare it.
3401         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3402         * MODULES.html.sh (Misc): Likewise.
3403         * modules/ptsname (Depends-on): Alter dependency.
3404         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3405
3406 2011-11-09  Jim Meyering  <meyering@redhat.com>
3407
3408         announce-gen: be more concise when there's only one URL+tarball
3409         * build-aux/announce-gen (get_tool_versions): When you distribute
3410         only one type of tarball, combine the first two "Here are..."
3411         sections and make the key-checking grammar independent of
3412         how many tarballs there are.
3413
3414 2011-11-09  Eric Blake  <eblake@redhat.com>
3415
3416         openpty: provide a stub on mingw
3417         * lib/pty.in.h (includes): Provide forward declarations.
3418         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3419
3420         raise: fix mingw handling of SIGPIPE
3421         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3422
3423 2011-11-08  Bruno Haible  <bruno@clisp.org>
3424
3425         More conditional dependencies.
3426         * modules/faccessat (Depends-on): Add conditions.
3427         * modules/fchmodat (Depends-on): Likewise.
3428         * modules/fchownat (Depends-on): Likewise.
3429         * modules/fstatat (Depends-on): Likewise.
3430         * modules/mkfifoat (Depends-on): Likewise.
3431         * modules/readlinkat (Depends-on): Likewise.
3432         * modules/symlinkat (Depends-on): Likewise.
3433         * modules/unlinkat (Depends-on): Likewise.
3434         * modules/utimensat (Depends-on): Likewise.
3435         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3436         * modules/linkat (Depends-on): Refine the conditions.
3437         * modules/renameat (Depends-on): Likewise.
3438
3439 2011-11-08  Bruno Haible  <bruno@clisp.org>
3440
3441         faccessat: Move AC_LIBOBJ invocation to module description.
3442         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3443         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3444         invocation from here...
3445         * modules/faccessat (configure.ac): ... to here. Invoke
3446         gl_PREREQ_FACCESSAT.
3447
3448 2011-11-08  Bruno Haible  <bruno@clisp.org>
3449
3450         faccessat: Simplify autoconf macro.
3451         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3452         gl_FUNC_EUIDACCESS.
3453
3454 2011-11-08  Bruno Haible  <bruno@clisp.org>
3455
3456         renameat: Fix dependencies.
3457         * modules/renameat (Depends-on): Add stdbool.
3458
3459 2011-11-08  Bruno Haible  <bruno@clisp.org>
3460
3461         mkfifoat: Fix module description.
3462         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3463         not gl_UNISTD_MODULE_INDICATOR.
3464
3465 2011-11-08  Bruno Haible  <bruno@clisp.org>
3466
3467         fstatat: Remove unused dependency.
3468         * modules/fstatat (Depends-on): Remove fstat.
3469
3470 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3471
3472         GNUmakefile: behave when Makefile is missing.
3473         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3474
3475 2011-11-08  Bruno Haible  <bruno@clisp.org>
3476
3477         openat: Conditionalize dependencies.
3478         * lib/openat.c: Reduce the scope of some #includes.
3479         * modules/openat (Depends-on): Add conditions.
3480
3481 2011-11-07  Jim Meyering  <meyering@redhat.com>
3482
3483         maint.mk: extract GPG key ID without using a temporary file
3484         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3485         without using a temporary file.  Based on a suggestion from Werner Koch
3486         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3487
3488 2011-11-07  Eric Blake  <eblake@redhat.com>
3489
3490         grantpt: fix typo
3491         * lib/stdlib.in.h (grantpt): Check correct function.
3492
3493         maint.mk: silence new syntax check
3494         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3495
3496 2011-11-06  Bruno Haible  <bruno@clisp.org>
3497
3498         Doc about floating-point and math API.
3499         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3500         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3501
3502 2011-11-06  Bruno Haible  <bruno@clisp.org>
3503
3504         stdalign tests: Skip the test when compiled by Sun C.
3505         * tests/test-stdalign.c (main): Skip the test on Sun C.
3506
3507 2011-11-06  Bruno Haible  <bruno@clisp.org>
3508
3509         ansi-c++-opt: Complete the 2011-06-05 change.
3510         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3511         does not support namespaces, set the variable to "no", not to ":".
3512
3513 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3514
3515         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3516
3517 2011-11-06  Bruno Haible  <bruno@clisp.org>
3518
3519         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3520         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3521         (minus_zerol) [HP-UX]: New macro.
3522         (unary_minus) [HP-UX]: New function.
3523         (copysignl) [HP-UX]: Use unary_minus function.
3524
3525 2011-11-06  Bruno Haible  <bruno@clisp.org>
3526
3527         ldexp, ldexpf, ldexpl: Enhance tests.
3528         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3529         and tests/test-ldexpl.c.
3530         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3531         LDEXP, MIN_EXP, MAX_EXP): New macros.
3532         Include test-ldexp.h.
3533         (main): Just call test_function.
3534         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3535         infinity.h, nan.h.
3536         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3537         MAX_EXP): New macros.
3538         Include test-ldexp.h.
3539         (x, y): Remove variables.
3540         (main): Just call test_function.
3541         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3542         infinity.h, nan.h.
3543         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3544         MAX_EXP): New macros.
3545         Include test-ldexp.h.
3546         (x, y): Remove variables.
3547         (main): Just call test_function.
3548         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3549         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3550         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3551         (Depends-on): Add isnand-nolibm, signbit, float.
3552         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3553         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3554         (Depends-on): Add isnanf-nolibm, signbit, float.
3555
3556 2011-11-06  Bruno Haible  <bruno@clisp.org>
3557
3558         math tests: Cosmetics.
3559         * tests/test-math-c++.cc: Reorder declarations.
3560
3561 2011-11-05  Bruno Haible  <bruno@clisp.org>
3562
3563         fma*: Simplify test.
3564         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3565         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3566
3567         Tests for module 'fmal'.
3568         * modules/fmal-tests: New file.
3569         * tests/test-fmal1.c: New file.
3570         * tests/test-fmal2.c: New file.
3571
3572         New module 'fmal'.
3573         * lib/math.in.h (fmal): New declaration.
3574         * lib/fmal.c: New file.
3575         * m4/fmal.m4: New file.
3576         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3578         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3579         REPLACE_FMAL.
3580         * modules/fmal: New file.
3581         * doc/posix-functions/fmal.texi: Mention the new module and the various
3582         bugs.
3583
3584         Tests for module 'fmaf'.
3585         * modules/fmaf-tests: New file.
3586         * tests/test-fmaf1.c: New file.
3587         * tests/test-fmaf2.c: New file.
3588
3589         New module 'fmaf'.
3590         * lib/math.in.h (fmaf): New declaration.
3591         * lib/fmaf.c: New file.
3592         * m4/fmaf.m4: New file.
3593         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3595         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3596         REPLACE_FMAF.
3597         * modules/fmaf: New file.
3598         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3599         bugs.
3600
3601         Tests for module 'fma'.
3602         * modules/fma-tests: New file.
3603         * tests/test-fma1.c: New file.
3604         * tests/test-fma1.h: New file.
3605         * tests/test-fma2.c: New file.
3606         * tests/test-fma2.h: New file.
3607
3608         New module 'fma'.
3609         * lib/math.in.h (fma): New declaration.
3610         * lib/fma.c: New file.
3611         * m4/fma.m4: New file.
3612         * m4/fegetround.m4: New file.
3613         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3615         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3616         REPLACE_FMA.
3617         * modules/fma: New file.
3618         * doc/posix-functions/fma.texi: Mention the new module and the various
3619         bugs.
3620
3621         Extend gl_MATHFUNC.
3622         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3623         Support 'void' as argument type.
3624         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3625
3626 2011-11-05  Jim Meyering  <meyering@redhat.com>
3627
3628         maint.mk: also prohibit inclusion of dirent.h without use
3629         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3630
3631 2011-11-05  Bruno Haible  <bruno@clisp.org>
3632
3633         ldexpl tests: Avoid test failure on MSVC 9.
3634         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3635         value. Needed in order to enforce the conversion from a value greater
3636         than LDBL_MAX to Infinity.
3637
3638 2011-11-05  Bruno Haible  <bruno@clisp.org>
3639
3640         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3641         * modules/at-internal: New file, extracted from modules/openat.
3642         * modules/openat-h: New file.
3643         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3644         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3645         * modules/openat (Description): Add reference to POSIX function.
3646         (Files): Remove lib/openat.h, lib/openat-proc.c.
3647         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3648         intprops, unistd.
3649         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3650         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3651         gl_FCNTL_MODULE_INDICATOR.
3652         (Include): Remove unistd.h, openat.h.
3653         * modules/areadlinkat (Files): Add lib/at-func.c.
3654         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3655         openat-die, openat-h, save-cwd.
3656         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3657         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3658         openat-die, openat-h, save-cwd, unistd.
3659         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3660         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3661         openat-h, save-cwd. Remove fcntl-h, openat.
3662         * modules/fchmodat (Files): Remove lib/openat.h.
3663         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3664         openat, stdbool, unistd.
3665         * modules/fchownat (Files): Remove lib/openat.h.
3666         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3667         openat, stdbool, sys_stat.
3668         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3669         lib/openat-proc.c.
3670         (Depends-on): Add at-internal.
3671         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3672         * modules/fstatat (Files): Remove lib/openat.h.
3673         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3674         stdbool, unistd.
3675         * modules/fts (Depends-on): Add openat-h.
3676         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3677         openat.
3678         * modules/mkdirat (Files): Remove lib/openat.h.
3679         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3680         openat, stdbool, sys_stat.
3681         * modules/mkfifoat (Files): Add lib/at-func.c.
3682         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3683         openat-h, save-cwd. Remove fcntl-h, openat.
3684         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3685         * modules/readlinkat (Files): Add lib/at-func.c.
3686         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3687         openat-h, save-cwd. Remove fcntl-h, openat.
3688         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3689         openat.
3690         * modules/selinux-at (Files): Add lib/at-func.c.
3691         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3692         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3693         * modules/symlinkat (Files): Add lib/at-func.c.
3694         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3695         openat-h, save-cwd. Remove fcntl-h, openat.
3696         * modules/unlinkat (Files): Remove lib/openat.h.
3697         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3698         stdbool.
3699         * modules/utimensat (Files): Add lib/at-func.c.
3700         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3701         openat-die, openat-h, save-cwd.
3702         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3703         * modules/fdutimensat-tests (Depends-on): Add openat.
3704         * modules/fstatat-tests (Depends-on): Add openat-h.
3705         * modules/readlinkat-tests (Depends-on): Add openat.
3706         * modules/symlinkat-tests (Depends-on): Add openat.
3707
3708 2011-11-05  Bruno Haible  <bruno@clisp.org>
3709
3710         openat: Include <stdbool.h>.
3711         * lib/openat.c: Include <stdbool.h>.
3712
3713 2011-11-04  Bruno Haible  <bruno@clisp.org>
3714
3715         fchownat, renameat, unlinkat: Fix dependencies.
3716         * modules/fchownat (Depends-on): Add fstatat.
3717         * modules/renameat (Depends-on): Likewise.
3718         * modules/unlinkat (Depends-on): Likewise.
3719
3720 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         openat: remove direct dependency on dirent
3723         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3724         and hasn't been needed ever since fdopendir was split into its own
3725         module on 2009-08-31.
3726         * modules/openat (Depends-on): Remove dirent.
3727
3728 2011-11-04  Bruno Haible  <bruno@clisp.org>
3729
3730         renameat: Optimize code size.
3731         * modules/renameat (configure.ac): Don't compile at-func2.c if
3732         REPLACE_RENAMEAT is 1.
3733
3734 2011-11-04  Bruno Haible  <bruno@clisp.org>
3735
3736         openat tests: Fix file list.
3737         * modules/openat-tests (Files): Add tests/test-open.h.
3738
3739 2011-11-04  Bruno Haible  <bruno@clisp.org>
3740
3741         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3742         * modules/fchmodat (Depends-on): Add openat-die.
3743         * modules/fchownat (Depends-on): Likewise.
3744         * modules/linkat (Depends-on): Likewise.
3745         * modules/renameat (Depends-on): Likewise.
3746         * modules/openat (Depends-on): Add dirent.
3747
3748 2011-11-04  Jim Meyering  <meyering@redhat.com>
3749
3750         at-func*.c: fix comments
3751         * lib/at-func2.c: Correct/improve first-line comment.
3752         * lib/at-func.c: Correct grammar in first-line comment.
3753
3754 2011-11-04  Bruno Haible  <bruno@clisp.org>
3755
3756         New module 'mkdirat', split off from module 'openat'.
3757         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3758         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3759         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3760         * modules/mkdirat: New file, extracted from modules/openat.
3761         * modules/openat (Files): Remove lib/mkdirat.c.
3762         (Depends-on): Remove mkdir.
3763         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3764         (Include): Remove <sys/stat.h>.
3765         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3766         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3767         tests/test-mkdir.h.
3768         (Depends-on): Remove ignore-value.
3769         (Makefile.am): Remove rules for test-mkdirat.
3770         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3771         of module 'openat'.
3772         * NEWS: Mention the change.
3773
3774 2011-11-04  Bruno Haible  <bruno@clisp.org>
3775
3776         closedir: Avoid warning on mingw.
3777         * lib/closedir.c: Include <unistd.h>.
3778
3779 2011-11-04  Bruno Haible  <bruno@clisp.org>
3780
3781         New module 'fstatat', split off from module 'openat'.
3782         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3783         defined.
3784         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3785         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3786         gl_FUNC_FSTATAT.
3787         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3788         * modules/fstatat: New file, extracted from modules/openat.
3789         * modules/openat (Files): Remove lib/fstatat.c.
3790         (Depends-on): Remove lstat.
3791         (configure.ac): Remove AC_LIBOBJ of fstatat.
3792         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3793         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3794         tests/test-lstat.h, tests/test-stat.h.
3795         (Depends-on): Remove getcwd-lgpl.
3796         (Makefile.am): Remove rules for test-fstatat.
3797         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3798         of module 'openat'.
3799         * NEWS: Mention the change.
3800         * modules/getcwd (Depends-on): Add fstatat.
3801         * modules/linkat (Depends-on): Likewise.
3802         * modules/mkfifoat-tests (Depends-on): Likewise.
3803         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3804
3805 2011-11-03  Bruno Haible  <bruno@clisp.org>
3806
3807         New module 'unlinkat', split off from module 'openat'.
3808         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3809         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3810         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3811         * modules/unlinkat: New file, extracted from modules/openat. Correct
3812         the dependency conditions.
3813         * modules/openat (Files): Remove lib/unlinkat.c.
3814         (Depends-on): Remove rmdir, unlink.
3815         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3816         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3817         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3818         tests/test-rmdir.h, tests/test-unlink.h.
3819         (Depends-on): Remove unlinkdir.
3820         (Makefile.am): Remove rules for test-unlinkat.
3821         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3822         of module 'openat'.
3823         * NEWS: Mention the change.
3824         * modules/linkat-tests (Depends-on): Add unlinkat.
3825         * modules/mkfifoat-tests (Depends-on): Likewise.
3826         * modules/readlinkat-tests (Depends-on): Likewise.
3827
3828 2011-11-02  Bruno Haible  <bruno@clisp.org>
3829
3830         New module 'fchmodat', split off from module 'openat'.
3831         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3832         defined.
3833         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3834         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3835         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3836         * modules/fchmodat: New file, extracted from modules/openat.
3837         * modules/openat (Files): Remove lib/fchmodat.c.
3838         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3839         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3840         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3841         (Makefile.am): Remove rules for test-fchmodat.
3842         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3843         of module 'openat'.
3844         * NEWS: Mention the change.
3845
3846 2011-11-02  Jim Meyering  <meyering@redhat.com>
3847
3848         putenv: indent #definition of "environ" to placate cppi
3849         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3850
3851         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3852         Git logs are often treated as immutable, because editing them
3853         changes the SHA1 checksums of all descendants.  Thus, errors in
3854         git logs tend to stay there forever.  However, when we generate
3855         a ChangeLog file -- typically for distribution -- from that git log,
3856         we can actually make corrections in the generated file.  The key
3857         lies in recording in machine-readable/applicable form the desired
3858         corrections.  See --help for description and an example.
3859         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3860         (usage): Describe it; alphabetize option descriptions.
3861         (main): Honor the new option, carefully.
3862
3863 2011-11-01  Jim Meyering  <meyering@redhat.com>
3864
3865         gitlog-to-changelog: avoid an infloop
3866         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3867         that ends up being empty.
3868
3869 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3870
3871         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3872         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3873         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3874         contains (possibly-quoted) backslashes.  This should avoid
3875         all-too-common shell bugs if COMPLICATED contains backslashes in
3876         the "wrong" places.  Reported by David Evans in
3877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3878         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3879         because we want ASCII ranges.  Is there some reason we don't use
3880         the C locale everywhere in this script?
3881         (func_module, top level): Avoid unwanted pathname expansion when
3882         $repo_url_prefix or $repo_url_suffix_repl contain shell
3883         metacharacters like '?' and '*'.
3884
3885 2011-11-01  Bruno Haible  <bruno@clisp.org>
3886
3887         fchownat: Improve description.
3888         * modules/fchownat (Description): Add link to function.
3889
3890 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3893         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3895         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3896
3897 2011-11-01  Bruno Haible  <bruno@clisp.org>
3898
3899         alignof: Avoid collision with stdalign module.
3900         * lib/alignof.h (alignof): Remove macro.
3901         * NEWS: Mention the change.
3902         Reported by Paul Eggert.
3903
3904 2011-11-01  Bruno Haible  <bruno@clisp.org>
3905
3906         New module 'fchownat', split off from module 'openat'.
3907         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3908         defined.
3909         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3910         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3911         invoke gl_FUNC_FCHOWNAT.
3912         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3913         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3914         * modules/fchownat: New file, extracted from modules/openat.
3915         * modules/openat (Files): Remove lib/fchownat.c.
3916         (Depends-on): Remove lchown.
3917         (configure.ac): Remove AC_LIBOBJ of fchownat.
3918         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3919         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3920         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3921         (Depends-on): Remove mgetgroups, usleep, stat-time.
3922         (configure.ac): Remove test for getegid.
3923         (Makefile.am): Remove rules for test-fchownat.
3924         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3925         of module 'openat'.
3926         * NEWS: Mention the change.
3927
3928 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3929
3930         stdalign: port better to MSVC and to Sun C 5.11
3931         This fixes some of the problems reported by Bruno Haible in
3932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3933         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3934         shortcomings of MSVC and of Sun C 5.11.
3935         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3936         around __declspec arg.
3937         * modules/stdalign-tests (Files): Add tests/macros.h.
3938         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3939         Include macros.h, for ASSERT.
3940         (DECLARE_ALIGNED): Remove.
3941         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3942         to catch bug), and to 1 if not (simplifies the rest of the code).
3943         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3944         (CHECK_AUTO): Remove.
3945         (CHECK_ALIGNED): Check only the alignment of the static vars,
3946         since auto var alignment isn't supported by Sun C 5.11.
3947         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3948         ASSERT failures are easier to diagnose.
3949
3950 2011-10-31  Bruno Haible  <bruno@clisp.org>
3951
3952         doc about some IRIX 5.3 problems.
3953         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3954         on IRIX 5.3.
3955         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3956         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3957         5.3.
3958         * doc/posix-functions/grantpt.texi: Likewise.
3959         * doc/posix-functions/unlockpt.texi: Likewise.
3960         * doc/posix-functions/lgamma.texi: Likewise.
3961         * doc/posix-functions/nextafter.texi: Likewise.
3962         * doc/posix-functions/remainder.texi: Likewise.
3963         * doc/posix-functions/select.texi: Mention misplaced declaration on
3964         IRIX 5.3.
3965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3966
3967 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3968
3969         gitlog-to-changelog: fix git-log invocation.
3970         git-log mishandles date strings before 1970-01-01 UTC, and there is
3971         no use to specify --since=1970-01-01 by default anyway.
3972         * build-aux/gitlog-to-changelog: By default, when no --since option
3973         was given, do not specify explicit --since option to git-log.
3974
3975 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3976
3977         gitlog-to-changelog: new option --append-dot.
3978         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3979         first non-blank line of each commit message terminated with a dot.
3980
3981 2011-10-30  Bruno Haible  <bruno@clisp.org>
3982
3983         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3984         * lib/ffsl.h: Include <config.h>.
3985         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3986
3987 2011-10-30  Jim Meyering  <meyering@redhat.com>
3988
3989         GNUmakefile: reenable "make syntax-check" for most projects
3990         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3991         build-aux variable", "syntax-check" would do nothing but succeed with
3992         the "No version control files detected..." diagnostic (unless you
3993         happened to override _build-aux via cfg.mk).
3994         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3995         to precede inclusion of maint.mk.  Otherwise, these variables would
3996         be used undefined in any project that does not override the default.
3997
3998 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3999
4000         gitlog-to-changelog: treat a message with only blank lines as empty.
4001         * build-aux/gitlog-to-changelog: Move the code that removes leading and
4002         trailing blank lines before the code that issues a warning about an
4003         empty commit message.
4004
4005 2011-10-30  Jim Meyering  <meyering@redhat.com>
4006
4007         test-parse-datetime.c: avoid new DST-related false positive test failure
4008         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
4009         based on the time/date we'll convert, not the current time.
4010         Otherwise, the moment we cross a DST boundary like today's in
4011         Europe, (CEST to CET), that offset ends up being one hour off.
4012
4013 2011-10-27  Bruno Haible  <bruno@clisp.org>
4014
4015         fstat: Tweak documentation.
4016         * modules/fstat (Description): More precise description.
4017
4018 2011-10-27  Bruno Haible  <bruno@clisp.org>
4019
4020         Update documentation regarding 'largefile' module.
4021         * doc/posix-functions/fstat.texi: Tweak wording.
4022         * doc/posix-functions/opendir.texi: Mention that the module fixes the
4023         problems with huge directories and/or small ino_t types.
4024         * doc/posix-functions/readdir.texi: Likewise.
4025         * doc/posix-functions/rewinddir.texi: Likewise.
4026
4027 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
4028
4029         maint.mk: don't maintain a second build-aux variable.
4030         * maint.mk (build_aux): Removed.  The maintainer-makefile module
4031         depends on GNUmakefile, which already maintains a cfg.mk
4032         overridable $(_build-aux) for projects with a non-standard
4033         build-aux directory location, although without the $(srcdir)
4034         prefix.  Use that variable consistently instead of introducing a
4035         second one.  Adjust all call sites.
4036
4037 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4038
4039         Add stdalign module and use it in other modules.
4040         This is based on a previous proposal by Bruno Haible
4041         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
4042
4043         stdalign: new module
4044         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
4045         * modules/stdalign: New files.
4046         * MODULES.html.sh (c1x_core_properties): Add stdalign.
4047         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
4048
4049         stdalign-tests: new module
4050         * modules/stdalign-tests, tests/test-stdalign.c: New files.
4051
4052         argp: use stdalign
4053         * lib/argp-parse.c: Include <stdalign.h>.
4054         (alignof): Remove.
4055         * modules/argp (Depends-on): Add stdalign.
4056
4057         crypto libraries: use stdalign
4058         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
4059         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
4060         Do not include <stdlib.h> twice, in md4.c.
4061         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
4062         because we are accessing a pointer's bit-pattern, not a size.
4063         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
4064         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
4065         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
4066         * modules/crypto/sha512: Likewise.
4067
4068         sys_socket: use stdalign, not alignof
4069         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
4070         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
4071
4072 2011-10-27  Bruno Haible  <bruno@clisp.org>
4073
4074         raise test: Avoid a test failure on Linux/MIPS.
4075         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
4076         because 99 is a valid signal on Linux/MIPS.
4077
4078 2011-10-27  Bruno Haible  <bruno@clisp.org>
4079
4080         nonblocking tests: Fix test failure on Linux/MIPS.
4081         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
4082         Set to 270000.
4083
4084 2011-10-27  Bruno Haible  <bruno@clisp.org>
4085
4086         utimensat: Work around problem on Linux/hppa.
4087         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
4088         values.
4089         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
4090
4091 2011-10-25  Jim Meyering  <meyering@redhat.com>
4092
4093         maint.mk: fix a bug in sc_prohibit_stddef_without_use
4094         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
4095         after symbols like NULL, size_t, etc.
4096         Reported by Alfred M. Szmidt.
4097
4098         maint.mk: exempt ENODATA from a syntax-check rule
4099         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
4100         from the sc_prohibit_always-defined_macros syntax-check rule.
4101         Add a comment.  See this for more details:
4102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
4103
4104 2011-10-23  Jim Meyering  <meyering@redhat.com>
4105
4106         fts: close parent dir FD before returning from post-traversal fts_read
4107         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
4108         unlink A, even though an FD open on A remained.  This is suboptimal
4109         (holding a file descriptor open longer than needed), but otherwise not
4110         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
4111         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
4112         that represents a real problem: it causes the removal of A to fail
4113         with e.g., "rm: cannot remove `A': Device or resource busy"
4114
4115         fts visits each directory twice and keeps a cache (fts_fd_ring) of
4116         directory file descriptors.  After completing the final, FTS_DP,
4117         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
4118         cache, but then proceeded to add a new FD to it via the subsequent
4119         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
4120         final file descriptor would be closed only via fts_close's call to
4121         fd_ring_clear.  Now, it is usually closed earlier, via the final
4122         FTS_DP-returning fts_read call.
4123         * lib/fts.c (restore_initial_cwd): New function, converted from
4124         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
4125         Update callers.
4126         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
4127         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
4128
4129 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
4130             Bruno Haible  <bruno@clisp.org>
4131             Jim Meyering  <jim@meyering.net>
4132
4133         readme-release: improve safety of release prep instructions.
4134         * README-release: Don't git pull all branches when only master
4135         is needed for the release process.
4136         Run make maintainer-clean before changing trees and merging.
4137         Don't try to run ./configure right after git pull in case files
4138         that influence the bootstrap process have changed, move the
4139         ./configure step to after running ./bootstrap.
4140         Don't bootstrap "one last time"... it's the first time!
4141
4142 2011-10-22  Bruno Haible  <bruno@clisp.org>
4143
4144         errno, strerror-override: Support for MSVC 10.
4145         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
4146         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
4147         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
4148         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4149         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4150         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4151         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4152         Assign values compatible with MSVC 10.
4153         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4154         New macros.
4155         (GNULIB_defined_EWINSOCK): New macro.
4156         * lib/strerror-override.c (strerror_override): Update accordingly.
4157         * lib/strerror-override.h: Likewise.
4158         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4159         longer equal to the corresponding errno value.
4160         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4161
4162 2011-10-22  Bruno Haible  <bruno@clisp.org>
4163
4164         perror: Recognize when test program crashes.
4165         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4166         strerror, set gl_cv_func_perror_works to no.
4167         Reported by Daniel Richard G. <skunk@iskunk.org>.
4168
4169         perror: Fix indentation.
4170         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4171
4172 2011-10-22  Bruno Haible  <bruno@clisp.org>
4173
4174         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4175         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4176         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4177         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4178         functions, not as a macro.
4179         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4180         macros.
4181         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4182         absence of macro.
4183         Suggested by Eric Blake.
4184         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4185
4186 2011-10-21  Bruno Haible  <bruno@clisp.org>
4187
4188         relocatable-prog-wrapper: Don't leave object files behind.
4189         * build-aux/install-reloc: Re-synchronize list of .o files to be
4190         removed with list of compilation units.
4191
4192 2011-10-20  Bruno Haible  <bruno@clisp.org>
4193
4194         openpty, posix_openpt: Remove code duplication.
4195         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4196         * lib/openpty.c: Include <stdlib.h>.
4197         (openpty): Use posix_openpt on all platforms except IRIX.
4198         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4199
4200 2011-10-20  Bruno Haible  <bruno@clisp.org>
4201
4202         unlockpt: Detect invalid argument.
4203         * lib/unlockpt.c: Include <fcntl.h>.
4204         (unlockpt): Check whether fd is valid, using fcntl().
4205         * modules/unlockpt (Depends-on): Add fcntl-h.
4206
4207 2011-10-20  Bruno Haible  <bruno@clisp.org>
4208
4209         openpty: Avoid compilation error on AIX 6.1.
4210         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4211
4212 2011-10-20  Bruno Haible  <bruno@clisp.org>
4213
4214         posix_openpt: Support for OpenBSD.
4215         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4216         (posix_openpt) [OpenBSD]: New code.
4217         * lib/grantpt.c: Include <fcntl.h>.
4218         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4219         * modules/grantpt (Depends-on): Add fcntl-h.
4220
4221 2011-10-20  Bruno Haible  <bruno@clisp.org>
4222
4223         posix_openpt test: Coding style.
4224         * tests/test-posix_openpt.c: Use GNU coding style.
4225
4226 2011-10-20  Bruno Haible  <bruno@clisp.org>
4227
4228         grantpt: Support --avoid=pt_chown.
4229         * modules/grantpt (Files): Add lib/pty-private.h.
4230
4231 2011-10-20  Bruno Haible  <bruno@clisp.org>
4232
4233         posix_openpt: Fix autoconf macro.
4234         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4235         unneeded check for _getpty.
4236
4237 2011-10-20  Bruno Haible  <bruno@clisp.org>
4238
4239         openpty: Update comments.
4240         * lib/openpty.c: Add comments about Minix.
4241
4242 2011-10-19  Eric Blake  <eblake@redhat.com>
4243
4244         openpty: relax license
4245         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4246
4247         pt_chown: use configmake to simplify build
4248         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4249
4250         ptsname and others: relax license
4251         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4252         * modules/unlockpt (License): Likewise.
4253         * modules/pt_chown (License): Likewise.
4254         * modules/ptsname (License): Likewise.
4255         * modules/ttyname_r (License): Likewise.
4256
4257 2011-10-19  Jim Meyering  <meyering@redhat.com>
4258
4259         posix_openpt: remove spurious #endif
4260         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4261
4262 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4263
4264         maint.mk: Respect $(build_aux) in web-manual rule.
4265         * top/maint.mk (web-manual): Find gen-announce script in user's
4266         $(build_aux) directory instead of hard-coding 'build-aux'.
4267
4268 2011-10-19  Bruno Haible  <bruno@clisp.org>
4269
4270         posix_openpt: Fix compilation error.
4271         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4272         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4273         Mention the openpty module as an alternative.
4274
4275 2011-10-19  Bruno Haible  <bruno@clisp.org>
4276
4277         Support for old NeXTstep 3.3 frexp().
4278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4279         execution time of the test to 5 seconds.
4280         Reported by Daniel Richard G. <skunk@iskunk.org>.
4281
4282 2011-10-19  Bruno Haible  <bruno@clisp.org>
4283
4284         Support for old NeXTstep 3.3 sed.
4285         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4286         part, use /.../, not \|...|. Escape periods in the header file name.
4287         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4288         Reported by Daniel Richard G. <skunk@iskunk.org>.
4289
4290 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4291
4292         Support for old NeXTstep 3.3 gcc.
4293         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4294         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4295         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4296         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4297         * lib/regex.h (_Restrict_arr_): Likewise.
4298         * lib/regex_internal.h (re_token_t): Likewise.
4299         * lib/regexec.c (check_node_accept_bytes): Likewise.
4300         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4301
4302 2011-10-18  Eric Blake  <eblake@redhat.com>
4303
4304         posix_openpt: new module
4305         * modules/posix_openpt: New module.
4306         * m4/posix_openpt.m4: New file.
4307         * lib/posix_openpt.c: Likewise.
4308         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4309         (gl_STDLIB_H_DEFAULTS): Set defaults.
4310         * modules/stdlib (Makefile.am): Substitute macros.
4311         * lib/stdlib.in.h (posix_openpt): Declare.
4312         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4313         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4314         * modules/posix_openpt-tests: New test module.
4315         * tests/test-posix_openpt.c: New test.
4316
4317 2011-10-15  Bruno Haible  <bruno@clisp.org>
4318
4319         xstrtoll: Fix compilation failure.
4320         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4321         from lib/strtol.c.
4322         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4323         some platforms.
4324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4325
4326 2011-10-15  Bruno Haible  <bruno@clisp.org>
4327
4328         vasnprintf: Optimize bit search operation.
4329         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4331         gl_DOUBLE_EXPONENT_LOCATION.
4332         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4333         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4334         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4335         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4336         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4337         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4338         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4339         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4340         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4341
4342 2011-10-15  Bruno Haible  <bruno@clisp.org>
4343
4344         vasnprintf: Fix comments.
4345         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4346
4347 2011-10-14  Bruno Haible  <bruno@clisp.org>
4348
4349         Tests for module 'integer_length_ll'.
4350         * modules/integer_length_ll-tests: New file.
4351         * tests/test-integer_length_ll.c: New file.
4352
4353         New module 'integer_length_ll'.
4354         * lib/integer_length_ll.c: New file.
4355         * modules/integer_length_ll: New file.
4356
4357 2011-10-14  Bruno Haible  <bruno@clisp.org>
4358
4359         Tests for module 'integer_length_l'.
4360         * modules/integer_length_l-tests: New file.
4361         * tests/test-integer_length_l.c: New file.
4362
4363         New module 'integer_length_l'.
4364         * lib/integer_length_l.c: New file.
4365         * modules/integer_length_l: New file.
4366
4367 2011-10-14  Bruno Haible  <bruno@clisp.org>
4368
4369         Tests for module 'integer_length'.
4370         * modules/integer_length-tests: New file.
4371         * tests/test-integer_length.c: New file.
4372
4373         New module 'integer_length'.
4374         * lib/integer_length.h: New file.
4375         * lib/integer_length.c: New file.
4376         * modules/integer_length: New file.
4377
4378 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4379
4380         popen: Fix dependency conditions.
4381         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4382
4383 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4384
4385         perror: Fix autoconf test.
4386         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4387         <stdlib.h> and <string.h>.
4388
4389 2011-10-14  Bruno Haible  <bruno@clisp.org>
4390
4391         ffsl: Optimize on 64-bit platforms.
4392         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4393         unrolling.
4394
4395 2011-10-13  Bruno Haible  <bruno@clisp.org>
4396
4397         ffsl: Optimize on 32-bit platforms.
4398         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4399         use ffs() without a loop.
4400
4401         ffsl, ffsll: Optimize for GCC.
4402         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4403         * lib/ffsl.c (GCC_BUILTIN): New macro.
4404         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4405
4406 2011-10-13  Bruno Haible  <bruno@clisp.org>
4407
4408         ffs, bcopy, memset: Support symbol renaming via config.h.
4409         * lib/ffs.c: Include <config.h>.
4410         * lib/bcopy.c: Likewise.
4411         * lib/memset.c: Likewise.
4412
4413 2011-10-10  Bruno Haible  <bruno@clisp.org>
4414
4415         atanl: Simplify for platforms where 'long double' == 'double'.
4416         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4417         alternative implementation.
4418         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4419         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4420         * modules/atanl (Depends-on): Add atan. Update conditions.
4421
4422 2011-10-10  Bruno Haible  <bruno@clisp.org>
4423
4424         acosl: Simplify for platforms where 'long double' == 'double'.
4425         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4426         alternative implementation.
4427         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4428         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4429         * modules/acosl (Depends-on): Add acos. Update conditions.
4430
4431 2011-10-10  Bruno Haible  <bruno@clisp.org>
4432
4433         asinl: Simplify for platforms where 'long double' == 'double'.
4434         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4435         alternative implementation.
4436         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4437         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4438         * modules/asinl (Depends-on): Add asin. Update conditions.
4439
4440 2011-10-10  Bruno Haible  <bruno@clisp.org>
4441
4442         tanl: Simplify for platforms where 'long double' == 'double'.
4443         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4444         implementation.
4445         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4446         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4447         * modules/tanl (Depends-on): Add tan. Update conditions.
4448         (configure.ac): Don't compile trigl.c if
4449         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4450
4451 2011-10-10  Bruno Haible  <bruno@clisp.org>
4452
4453         cosl: Simplify for platforms where 'long double' == 'double'.
4454         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4455         implementation.
4456         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4457         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4458         * modules/cosl (Depends-on): Add cos. Update conditions.
4459         (configure.ac): Don't compile sincosl.c and trigl.c if
4460         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4461
4462 2011-10-10  Bruno Haible  <bruno@clisp.org>
4463
4464         sinl: Simplify for platforms where 'long double' == 'double'.
4465         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4466         implementation.
4467         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4468         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4469         * modules/sinl (Depends-on): Add sin. Update conditions.
4470         (configure.ac): Don't compile sincosl.c and trigl.c if
4471         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4472
4473 2011-10-10  Bruno Haible  <bruno@clisp.org>
4474
4475         logl: Simplify for platforms where 'long double' == 'double'.
4476         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4477         implementation.
4478         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4479         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4480         * modules/logl (Depends-on): Add log. Update conditions.
4481
4482 2011-10-10  Bruno Haible  <bruno@clisp.org>
4483
4484         expl: Simplify for platforms where 'long double' == 'double'.
4485         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4486         implementation.
4487         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4488         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4489         * modules/expl (Depends-on): Add exp. Update conditions.
4490
4491 2011-10-10  Bruno Haible  <bruno@clisp.org>
4492
4493         sqrtl: Simplify for platforms where 'long double' == 'double'.
4494         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4495         alternative implementation.
4496         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4497         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4498         * modules/sqrtl (Depends-on): Update conditions.
4499
4500 2011-10-10  Bruno Haible  <bruno@clisp.org>
4501
4502         ldexpl: Simplify for platforms where 'long double' == 'double'.
4503         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4504         alternative implementation.
4505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4506         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4507         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4508
4509 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4510
4511         ffsll: set correct witness
4512         * modules/ffsll (configure.ac): Fix typo.
4513
4514 2011-10-10  Bruno Haible  <bruno@clisp.org>
4515
4516         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4517         * lib/printf-frexpl.c: Include <config.h>.
4518         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4519         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4520         second time.
4521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4522         gl_LONG_DOUBLE_VS_DOUBLE.
4523         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4524         conditions.
4525
4526 2011-10-10  Bruno Haible  <bruno@clisp.org>
4527
4528         frexpl: Simplify for platforms where 'long double' == 'double'.
4529         * lib/frexpl.c: Include <config.h>.
4530         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4531         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4532         time.
4533         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4534         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4535         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4536         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4537         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4538         conditions.
4539
4540 2011-10-10  Jim Meyering  <meyering@redhat.com>
4541
4542         test-renameat: don't leave behind a temporary file
4543         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4544           ERROR: files left in build directory after distclean:
4545           ./gltests/test-renameat.too
4546           make[1]: *** [distcleancheck] Error 1
4547         Reported by Tom G. Christensen.
4548
4549 2011-10-09  Bruno Haible  <bruno@clisp.org>
4550
4551         rint: Determine RINT_LIBM correctly on AIX 7.
4552         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4553         directly, not only through a function pointer. Also accept an optional
4554         4th argument with extra code.
4555         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4556         rintf() call by gcc when optimizing.
4557
4558         mathfunc.m4: Refactor.
4559         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4560         m4 variable.
4561
4562 2011-10-09  Bruno Haible  <bruno@clisp.org>
4563
4564         rintl: Simplify for platforms where 'long double' == 'double'.
4565         * lib/rintl.c: Include <config.h>.
4566         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4567         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4568         time.
4569         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4570         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4571         * modules/rintl (Depends-on): Add rint. Update conditions.
4572
4573 2011-10-09  Bruno Haible  <bruno@clisp.org>
4574
4575         roundl: Simplify for platforms where 'long double' == 'double'.
4576         * lib/roundl.c: Include <config.h>.
4577         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4578         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4579         time.
4580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4581         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4582         * modules/roundl (Depends-on): Add round. Update conditions.
4583
4584 2011-10-09  Bruno Haible  <bruno@clisp.org>
4585
4586         truncl: Simplify for platforms where 'long double' == 'double'.
4587         * lib/truncl.c: Include <config.h>.
4588         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4589         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4590         time.
4591         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4592         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4593         * modules/truncl (Depends-on): Add trunc. Update conditions.
4594
4595 2011-10-09  Bruno Haible  <bruno@clisp.org>
4596
4597         ceill: Simplify for platforms where 'long double' == 'double'.
4598         * lib/ceill.c: Include <config.h>.
4599         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4600         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4601         time.
4602         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4603         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4604         * modules/ceill (Depends-on): Add ceil. Update conditions.
4605
4606 2011-10-09  Bruno Haible  <bruno@clisp.org>
4607
4608         floorl: Simplify for platforms where 'long double' == 'double'.
4609         * lib/floorl.c: Include <config.h>.
4610         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4611         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4612         time.
4613         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4614         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4615         * modules/floorl (Depends-on): Add floor. Update conditions.
4616
4617 2011-10-09  Bruno Haible  <bruno@clisp.org>
4618
4619         rint: Fix ordering constraints.
4620         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4621         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4622         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4623
4624 2011-10-09  Bruno Haible  <bruno@clisp.org>
4625
4626         copysignl: Simplify for platforms where 'long double' == 'double'.
4627         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4628         alternative.
4629         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4630         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4631         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4632
4633 2011-10-09  Bruno Haible  <bruno@clisp.org>
4634
4635         Tests for module 'rintl'.
4636         * modules/rintl-tests: New file.
4637         * tests/test-rintl.c: New file.
4638
4639         New module 'rintl'.
4640         * lib/math.in.h (rintl): New declaration.
4641         * lib/rintl.c: New file.
4642         * m4/rintl.m4: New file.
4643         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4645         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4646         * modules/rintl: New file.
4647         * tests/test-math-c++.cc: Check the declaration of rintl.
4648         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4649         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4650         * doc/posix-functions/rintl.texi: Mention the new module.
4651
4652 2011-10-09  Bruno Haible  <bruno@clisp.org>
4653
4654         Tests for module 'rintf'.
4655         * modules/rintf-tests: New file.
4656         * tests/test-rintf.c: New file.
4657
4658         New module 'rintf'.
4659         * lib/math.in.h (rintf): New declaration.
4660         * lib/rintf.c: New file.
4661         * m4/rintf.m4: New file.
4662         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4664         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4665         * modules/rintf: New file.
4666         * tests/test-math-c++.cc: Check the declaration of rintf.
4667         * doc/posix-functions/rintf.texi: Mention the new module.
4668
4669 2011-10-09  Bruno Haible  <bruno@clisp.org>
4670
4671         rint: Support for MSVC.
4672         * lib/math.in.h (rint): New declaration.
4673         * lib/rint.c: New file.
4674         * m4/rint.m4: New file.
4675         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4677         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4678         * modules/rint (Description): Fix.
4679         (Files): Add lib/rint.c, m4/rint.m4.
4680         (Depends-on): Add math.
4681         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4682         gl_MATH_MODULE_INDICATOR.
4683         * tests/test-math-c++.cc: Check the declaration of rint.
4684         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4685         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4686         * doc/posix-functions/rint.texi: Mention the replacement provided by
4687         the module.
4688
4689         rint tests: More tests.
4690         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4691         minus-zero.h, infinity.h, nan.h.
4692         (main): Skip the test if the current rounding mode is not standard. Add
4693         tests for negative numbers, minus zero, infinity, NaN.
4694         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4695         tests/nan.h.
4696         (Depends-on): Add isnand-nolibm.
4697
4698 2011-10-09  Bruno Haible  <bruno@clisp.org>
4699
4700         Tests for module 'copysignl'.
4701         * modules/copysignl-tests: New file.
4702         * tests/test-copysignl.c: New file.
4703
4704         New module 'copysignl'.
4705         * lib/math.in.h (copysignl): New declaration.
4706         * lib/copysignl.c: New file.
4707         * m4/copysignl.m4: New file.
4708         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4710         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4711         HAVE_COPYSIGNL.
4712         * modules/copysignl: New file.
4713         * tests/test-math-c++.cc: Check the declaration of copysignl.
4714         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4715         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4716         * doc/posix-functions/copysignl.texi: Mention the new module.
4717
4718 2011-10-09  Bruno Haible  <bruno@clisp.org>
4719
4720         Tests for module 'copysignf'.
4721         * modules/copysignf-tests: New file.
4722         * tests/test-copysignf.c: New file.
4723
4724         New module 'copysignf'.
4725         * lib/math.in.h (copysignf): New declaration.
4726         * lib/copysignf.c: New file.
4727         * m4/copysignf.m4: New file.
4728         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4730         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4731         HAVE_COPYSIGNF.
4732         * modules/copysignf: New file.
4733         * tests/test-math-c++.cc: Check the declaration of copysignf.
4734         * doc/posix-functions/copysignf.texi: Mention the new module.
4735
4736 2011-10-09  Bruno Haible  <bruno@clisp.org>
4737
4738         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4739         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4740         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4741         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4742         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4743         gl_SIGNAL_H_DEFAULTS.
4744
4745 2011-10-09  Bruno Haible  <bruno@clisp.org>
4746
4747         poll: Make macro safer.
4748         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4749         ac_cv_header_poll_h is not set.
4750
4751 2011-10-09  Bruno Haible  <bruno@clisp.org>
4752
4753         copysign: Provide replacement.
4754         * lib/math.in.h (copysign): New declaration.
4755         * lib/copysign.c: New file.
4756         * m4/copysign.m4: New file.
4757         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4759         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4760         HAVE_COPYSIGN.
4761         * modules/copysign (Description): Clarify.
4762         (Files): Add lib/copysign.c, m4/copysign.m4.
4763         (Depends-on): Add math, signbit.
4764         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4765         gl_MATH_MODULE_INDICATOR.
4766         * tests/test-math-c++.cc: Check the declaration of copysign.
4767         * doc/posix-functions/copysign.texi: Mention the effects of the module
4768         on Minix and MSVC.
4769
4770 2011-10-09  Bruno Haible  <bruno@clisp.org>
4771
4772         isinf: Ensure macro on AIX 5.1.
4773         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4774         macro.
4775         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4776
4777 2011-10-09  Bruno Haible  <bruno@clisp.org>
4778
4779         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4780         * modules/snprintf-posix-tests (configure.ac): Require
4781         gl_LONG_DOUBLE_VS_DOUBLE.
4782         * modules/sprintf-posix-tests (configure.ac): Likewise.
4783         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4784         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4785         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4786         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4787         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4788         tests on platforms where 'long double' is the same as 'double'.
4789         * tests/test-sprintf-posix.h (test_function): Likewise.
4790         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4791         * tests/test-vasprintf-posix.c (test_function): Likewise.
4792
4793         *printf: Fix for platforms where 'long double' == 'double'.
4794         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4795         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4796         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4797         * modules/fprintf-posix (Files): Likewise.
4798         * modules/obstack-printf-posix (Files): Likewise.
4799         * modules/snprintf-posix (Files): Likewise.
4800         * modules/sprintf-posix (Files): Likewise.
4801         * modules/vasnprintf (Files): Likewise.
4802         * modules/vasnprintf-posix (Files): Likewise.
4803         * modules/vasprintf-posix (Files): Likewise.
4804         * modules/vdprintf-posix (Files): Likewise.
4805         * modules/vfprintf-posix (Files): Likewise.
4806         * modules/vsnprintf-posix (Files): Likewise.
4807         * modules/vsprintf-posix (Files): Likewise.
4808         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4809         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4810         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4811         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4812         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4813         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4814         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4815
4816         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4817         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4818         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4819         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4820         'long double'.
4821         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4822
4823         isinf: Fix for platforms where 'long double' == 'double'.
4824         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4825         Don't blindly assume 80-bit 'long double'.
4826
4827         isfinite: Fix for platforms where 'long double' == 'double'.
4828         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4829         Don't blindly assume 80-bit 'long double'.
4830
4831         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4832         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4833         * modules/isfinite-tests (configure.ac): Require
4834         gl_LONG_DOUBLE_VS_DOUBLE.
4835         * modules/isinf-tests (configure.ac): Likewise.
4836         * modules/isnan-tests (configure.ac): Likewise.
4837         * modules/isnanl-tests (configure.ac): Likewise.
4838         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4839         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4840         tests on platforms where 'long double' is the same as 'double'.
4841         * tests/test-isinf.c (test_isinfl): Likewise.
4842         * tests/test-isnan.c (test_long_double): Likewise.
4843         * tests/test-isnanl.h (main): Likewise.
4844
4845 2011-10-08  Bruno Haible  <bruno@clisp.org>
4846
4847         Tests for module 'tanhf'.
4848         * modules/tanhf-tests: New file.
4849         * tests/test-tanhf.c: New file.
4850
4851         New module 'tanhf'.
4852         * lib/math.in.h (tanhf): New declaration.
4853         * lib/tanhf.c: New file.
4854         * m4/tanhf.m4: New file.
4855         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4857         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4858         * modules/tanhf: New file.
4859         * tests/test-math-c++.cc: Check the declaration of tanhf.
4860         * doc/posix-functions/tanhf.texi: Mention the new module.
4861
4862         tanh: Use a .m4 file.
4863         * m4/tanh.m4: New file.
4864         * modules/tanh (Files): Add it.
4865         (configure.ac): Just invoke gl_FUNC_TANH.
4866
4867 2011-10-08  Bruno Haible  <bruno@clisp.org>
4868
4869         Tests for module 'coshf'.
4870         * modules/coshf-tests: New file.
4871         * tests/test-coshf.c: New file.
4872
4873         New module 'coshf'.
4874         * lib/math.in.h (coshf): New declaration.
4875         * lib/coshf.c: New file.
4876         * m4/coshf.m4: New file.
4877         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4879         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4880         * modules/coshf: New file.
4881         * tests/test-math-c++.cc: Check the declaration of coshf.
4882         * doc/posix-functions/coshf.texi: Mention the new module.
4883
4884         cosh: Use a .m4 file.
4885         * m4/cosh.m4: New file.
4886         * modules/cosh (Files): Add it.
4887         (configure.ac): Just invoke gl_FUNC_COSH.
4888
4889 2011-10-08  Bruno Haible  <bruno@clisp.org>
4890
4891         Tests for module 'sinhf'.
4892         * modules/sinhf-tests: New file.
4893         * tests/test-sinhf.c: New file.
4894
4895         New module 'sinhf'.
4896         * lib/math.in.h (sinhf): New declaration.
4897         * lib/sinhf.c: New file.
4898         * m4/sinhf.m4: New file.
4899         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4901         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4902         * modules/sinhf: New file.
4903         * tests/test-math-c++.cc: Check the declaration of sinhf.
4904         * doc/posix-functions/sinhf.texi: Mention the new module.
4905
4906         sinh: Use a .m4 file.
4907         * m4/sinh.m4: New file.
4908         * modules/sinh (Files): Add it.
4909         (configure.ac): Just invoke gl_FUNC_SINH.
4910
4911 2011-10-08  Bruno Haible  <bruno@clisp.org>
4912
4913         Tests for module 'atan2f'.
4914         * modules/atan2f-tests: New file.
4915         * tests/test-atan2f.c: New file.
4916
4917         New module 'atan2f'.
4918         * lib/math.in.h (atan2f): New declaration.
4919         * lib/atan2f.c: New file.
4920         * m4/atan2f.m4: New file.
4921         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4923         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4924         * modules/atan2f: New file.
4925         * tests/test-math-c++.cc: Check the declaration of atan2f.
4926         * doc/posix-functions/atan2f.texi: Mention the new module.
4927
4928         atan2: Use a .m4 file.
4929         * m4/atan2.m4: New file.
4930         * modules/atan2 (Files): Add it.
4931         (configure.ac): Just invoke gl_FUNC_ATAN2.
4932
4933 2011-10-08  Bruno Haible  <bruno@clisp.org>
4934
4935         Tests for module 'atanf'.
4936         * modules/atanf-tests: New file.
4937         * tests/test-atanf.c: New file.
4938
4939         New module 'atanf'.
4940         * lib/math.in.h (atanf): New declaration.
4941         * lib/atanf.c: New file.
4942         * m4/atanf.m4: New file.
4943         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4945         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4946         * modules/atanf: New file.
4947         * tests/test-math-c++.cc: Check the declaration of atanf.
4948         * doc/posix-functions/atanf.texi: Mention the new module.
4949
4950         atan: Use a .m4 file.
4951         * m4/atan.m4: New file.
4952         * modules/atan (Files): Add it.
4953         (configure.ac): Just invoke gl_FUNC_ATAN.
4954
4955 2011-10-08  Bruno Haible  <bruno@clisp.org>
4956
4957         Tests for module 'acosf'.
4958         * modules/acosf-tests: New file.
4959         * tests/test-acosf.c: New file.
4960
4961         New module 'acosf'.
4962         * lib/math.in.h (acosf): New declaration.
4963         * lib/acosf.c: New file.
4964         * m4/acosf.m4: New file.
4965         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4967         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4968         * modules/acosf: New file.
4969         * tests/test-math-c++.cc: Check the declaration of acosf.
4970         * doc/posix-functions/acosf.texi: Mention the new module.
4971
4972         acos: Use a .m4 file.
4973         * m4/acos.m4: New file.
4974         * modules/acos (Files): Add it.
4975         (configure.ac): Just invoke gl_FUNC_ACOS.
4976
4977 2011-10-08  Bruno Haible  <bruno@clisp.org>
4978
4979         Tests for module 'asinf'.
4980         * modules/asinf-tests: New file.
4981         * tests/test-asinf.c: New file.
4982
4983         New module 'asinf'.
4984         * lib/math.in.h (asinf): New declaration.
4985         * lib/asinf.c: New file.
4986         * m4/asinf.m4: New file.
4987         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4989         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4990         * modules/asinf: New file.
4991         * tests/test-math-c++.cc: Check the declaration of asinf.
4992         * doc/posix-functions/asinf.texi: Mention the new module.
4993
4994         asin: Use a .m4 file.
4995         * m4/asin.m4: New file.
4996         * modules/asin (Files): Add it.
4997         (configure.ac): Just invoke gl_FUNC_ASIN.
4998
4999 2011-10-08  Bruno Haible  <bruno@clisp.org>
5000
5001         Tests for module 'tanf'.
5002         * modules/tanf-tests: New file.
5003         * tests/test-tanf.c: New file.
5004
5005         New module 'tanf'.
5006         * lib/math.in.h (tanf): New declaration.
5007         * lib/tanf.c: New file.
5008         * m4/tanf.m4: New file.
5009         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
5010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
5011         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
5012         * modules/tanf: New file.
5013         * tests/test-math-c++.cc: Check the declaration of tanf.
5014         * doc/posix-functions/tanf.texi: Mention the new module.
5015
5016         tan: Use a .m4 file.
5017         * m4/tan.m4: New file.
5018         * modules/tan (Files): Add it.
5019         (configure.ac): Just invoke gl_FUNC_TAN.
5020
5021 2011-10-08  Bruno Haible  <bruno@clisp.org>
5022
5023         Tests for module 'cosf'.
5024         * modules/cosf-tests: New file.
5025         * tests/test-cosf.c: New file.
5026
5027         New module 'cosf'.
5028         * lib/math.in.h (cosf): New declaration.
5029         * lib/cosf.c: New file.
5030         * m4/cosf.m4: New file.
5031         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
5032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
5033         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
5034         * modules/cosf: New file.
5035         * tests/test-math-c++.cc: Check the declaration of cosf.
5036         * doc/posix-functions/cosf.texi: Mention the new module.
5037
5038         cos: Use a .m4 file.
5039         * m4/cos.m4: New file.
5040         * modules/cos (Files): Add it.
5041         (configure.ac): Just invoke gl_FUNC_COS.
5042
5043 2011-10-08  Bruno Haible  <bruno@clisp.org>
5044
5045         Tests for module 'sinf'.
5046         * modules/sinf-tests: New file.
5047         * tests/test-sinf.c: New file.
5048
5049         New module 'sinf'.
5050         * lib/math.in.h (sinf): New declaration.
5051         * lib/sinf.c: New file.
5052         * m4/sinf.m4: New file.
5053         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
5054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
5055         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
5056         * modules/sinf: New file.
5057         * tests/test-math-c++.cc: Check the declaration of sinf.
5058         * doc/posix-functions/sinf.texi: Mention the new module.
5059
5060         sin: Use a .m4 file.
5061         * m4/sin.m4: New file.
5062         * modules/sin (Files): Add it.
5063         (configure.ac): Just invoke gl_FUNC_SIN.
5064
5065 2011-10-08  Bruno Haible  <bruno@clisp.org>
5066
5067         Tests for module 'powf'.
5068         * modules/powf-tests: New file.
5069         * tests/test-powf.c: New file.
5070
5071         New module 'powf'.
5072         * lib/math.in.h (powf): New declaration.
5073         * lib/powf.c: New file.
5074         * m4/powf.m4: New file.
5075         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
5076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
5077         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
5078         * modules/powf: New file.
5079         * tests/test-math-c++.cc: Check the declaration of powf.
5080         * doc/posix-functions/powf.texi: Mention the new module.
5081
5082         pow: Use a .m4 file.
5083         * m4/pow.m4: New file.
5084         * modules/pow (Files): Add it.
5085         (configure.ac): Just invoke gl_FUNC_POW.
5086
5087 2011-10-08  Bruno Haible  <bruno@clisp.org>
5088
5089         Tests for module 'log10f'.
5090         * modules/log10f-tests: New file.
5091         * tests/test-log10f.c: New file.
5092
5093         New module 'log10f'.
5094         * lib/math.in.h (log10f): New declaration.
5095         * lib/log10f.c: New file.
5096         * m4/log10f.m4: New file.
5097         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
5098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
5099         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
5100         * modules/log10f: New file.
5101         * tests/test-math-c++.cc: Check the declaration of log10f.
5102         * doc/posix-functions/log10f.texi: Mention the new module.
5103
5104         log10: Use a .m4 file.
5105         * m4/log10.m4: New file.
5106         * modules/log10 (Files): Add it.
5107         (configure.ac): Just invoke gl_FUNC_LOG10.
5108
5109 2011-10-08  Bruno Haible  <bruno@clisp.org>
5110
5111         Tests for module 'logf'.
5112         * modules/logf-tests: New file.
5113         * tests/test-logf.c: New file.
5114
5115         New module 'logf'.
5116         * lib/math.in.h (logf): New declaration.
5117         * lib/logf.c: New file.
5118         * m4/logf.m4: New file.
5119         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
5120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
5121         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
5122         * modules/logf: New file.
5123         * tests/test-math-c++.cc: Check the declaration of logf.
5124         * doc/posix-functions/logf.texi: Mention the new module.
5125
5126         log: Use a .m4 file.
5127         * m4/log.m4: New file.
5128         * modules/log (Files): Add it.
5129         (configure.ac): Just invoke gl_FUNC_LOG.
5130
5131 2011-10-08  Bruno Haible  <bruno@clisp.org>
5132
5133         Tests for module 'expf'.
5134         * modules/expf-tests: New file.
5135         * tests/test-expf.c: New file.
5136
5137         New module 'expf'.
5138         * lib/math.in.h (expf): New declaration.
5139         * lib/expf.c: New file.
5140         * m4/expf.m4: New file.
5141         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
5142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
5143         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
5144         * modules/expf: New file.
5145         * tests/test-math-c++.cc: Check the declaration of expf.
5146         * doc/posix-functions/expf.texi: Mention the new module.
5147
5148         exp: Use a .m4 file.
5149         * m4/exp.m4: New file.
5150         * modules/exp (Files): Add it.
5151         (configure.ac): Just invoke gl_FUNC_EXP.
5152
5153 2011-10-08  Bruno Haible  <bruno@clisp.org>
5154
5155         Tests for module 'sqrtf'.
5156         * modules/sqrtf-tests: New file.
5157         * tests/test-sqrtf.c: New file.
5158
5159         New module 'sqrtf'.
5160         * lib/math.in.h (sqrtf): New declaration.
5161         * lib/sqrtf.c: New file.
5162         * m4/sqrtf.m4: New file.
5163         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5165         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5166         * modules/sqrtf: New file.
5167         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5168         * doc/posix-functions/sqrtf.texi: Mention the new module.
5169
5170 2011-10-08  Bruno Haible  <bruno@clisp.org>
5171
5172         Tests: Avoid link failures w.r.t. libintl.
5173         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5174         $(LIBINTL).
5175         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5176         $(LIBINTL).
5177         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5178         against $(LIBINTL).
5179         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5180         $(LIBINTL).
5181         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5182         $(LIBINTL).
5183         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5184
5185 2011-10-08  Bruno Haible  <bruno@clisp.org>
5186
5187         pow tests: Defeat compiler optimizations.
5188         * tests/test-pow.c (main): Assign arguments to x and y before use.
5189
5190 2011-10-08  Bruno Haible  <bruno@clisp.org>
5191
5192         gnulib-tool: Improve last commit.
5193         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5194         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5195         ignore dependencies that are not among the modules list.
5196
5197 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5198
5199         gnulib-tool: don't follow dependencies to avoided modules
5200         This fixes a bug that is related to the previous one.
5201         * gnulib-tool (func_modules_transitive_closure)
5202         (func_emit_autoconf_snippets):
5203         Check whether a dependency is acceptable before using it.
5204         (--extract-dependencies): Report an error if --avoid is also used,
5205         since this combination of options is not yet supported.
5206
5207         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5208         Problem reported by Peter Dyballa in
5209         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5210         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5211         when echoing "$condition".
5212
5213 2011-10-07  Bruno Haible  <bruno@clisp.org>
5214
5215         Fix documentation about math functions on MacOS X.
5216         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5217         MacOS X 10.5.
5218         * doc/posix-functions/fdim.texi: Likewise.
5219         * doc/posix-functions/feclearexcept.texi: Likewise.
5220         * doc/posix-functions/fegetenv.texi: Likewise.
5221         * doc/posix-functions/fegetround.texi: Likewise.
5222         * doc/posix-functions/feholdexcept.texi: Likewise.
5223         * doc/posix-functions/feraiseexcept.texi: Likewise.
5224         * doc/posix-functions/fesetenv.texi: Likewise.
5225         * doc/posix-functions/fesetround.texi: Likewise.
5226         * doc/posix-functions/fetestexcept.texi: Likewise.
5227         * doc/posix-functions/feupdateenv.texi: Likewise.
5228         * doc/posix-functions/fmax.texi: Likewise.
5229         * doc/posix-functions/fmin.texi: Likewise.
5230         * doc/posix-functions/log2.texi: Likewise.
5231         * doc/posix-functions/modff.texi: Likewise.
5232         * doc/posix-functions/nan.texi: Likewise.
5233         * doc/posix-functions/nanf.texi: Likewise.
5234         * doc/posix-functions/nextafterf.texi: Likewise.
5235         * doc/posix-functions/remquo.texi: Likewise.
5236
5237 2011-10-07  Bruno Haible  <bruno@clisp.org>
5238
5239         modff: Drop assumption about library that defines modff.
5240         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5241         AC_CHECK_FUNCS.
5242         * modules/modff (Files): Add m4/mathfunc.m4.
5243
5244 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5245
5246         raise tests: Avoid a GCC warning.
5247         * tests/test-raise.c (handler): Use _Noreturn.
5248
5249 2011-10-07  Bruno Haible  <bruno@clisp.org>
5250
5251         Tests for module 'ldexpf'.
5252         * modules/ldexpf-tests: New file.
5253         * tests/test-ldexpf.c: New file.
5254
5255         New module 'ldexpf'.
5256         * lib/math.in.h (ldexpf): New declaration.
5257         * lib/ldexpf.c: New file.
5258         * m4/ldexpf.m4: New file.
5259         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5261         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5262         * modules/ldexpf: New file.
5263         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5264         * doc/posix-functions/ldexpf.texi: Mention the new module.
5265
5266 2011-10-06  Bruno Haible  <bruno@clisp.org>
5267
5268         frexpf: Work around problems on IRIX and mingw.
5269         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5271         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5272         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5273         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5274         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5275         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5276
5277 2011-10-06  Bruno Haible  <bruno@clisp.org>
5278
5279         fabsf: Drop assumption about library that defines fabsf.
5280         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5281         AC_CHECK_FUNCS.
5282         * modules/fabsf (Files): Add m4/mathfunc.m4.
5283
5284 2011-10-06  Bruno Haible  <bruno@clisp.org>
5285
5286         frexpf: Drop assumption about library that defines frexpf.
5287         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5288         'int *', 'float *', 'long double *', 'float', 'long double'.
5289         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5290         AC_CHECK_FUNCS.
5291         * modules/frexpf (Files): Add m4/mathfunc.m4.
5292
5293         Tests for module 'frexpf'.
5294         * modules/frexpf-tests: New file.
5295         * tests/test-frexpf.c: New file.
5296
5297         New module 'frexpf'.
5298         * lib/math.in.h (frexpf): New declaration.
5299         * lib/frexpf.c: New file.
5300         * m4/frexpf.m4: New file.
5301         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5303         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5304         * modules/frexpf: New file.
5305         * tests/test-math-c++.cc: Check the declaration of frexpf.
5306         * doc/posix-functions/frexpf.texi: Mention the new module.
5307
5308 2011-10-06  Bruno Haible  <bruno@clisp.org>
5309
5310         math: Sort function declarations of math.in.h.
5311         * lib/math.in.h (frexp, logb): Move declarations.
5312
5313 2011-10-05  Bruno Haible  <bruno@clisp.org>
5314
5315         Tests for module 'modff'.
5316         * modules/modff-tests: New file.
5317         * tests/test-modff.c: New file.
5318
5319         New module 'modff'.
5320         * lib/math.in.h (modff): New declaration.
5321         * lib/modff.c: New file.
5322         * m4/modff.m4: New file.
5323         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5325         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5326         * modules/modff: New file.
5327         * tests/test-math-c++.cc: Check the declaration of modff.
5328         * doc/posix-functions/modff.texi: Mention the new module.
5329
5330         modf tests: Make test sharper.
5331         * tests/test-modf.c (main): Strengthen upper bound.
5332
5333         modf: Use a .m4 file.
5334         * m4/modf.m4: New file.
5335         * modules/modf (Files): Add it.
5336         (configure.ac): Just invoke gl_FUNC_MODF.
5337
5338 2011-10-05  Bruno Haible  <bruno@clisp.org>
5339
5340         Tests for module 'fmodf'.
5341         * modules/fmodf-tests: New file.
5342         * tests/test-fmodf.c: New file.
5343
5344         New module 'fmodf'.
5345         * lib/math.in.h (fmodf): New declaration.
5346         * lib/fmodf.c: New file.
5347         * m4/fmodf.m4: New file.
5348         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5350         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5351         * modules/fmodf: New file.
5352         * tests/test-math-c++.cc: Check the declaration of fmodf.
5353         * doc/posix-functions/fmodf.texi: Mention the new module.
5354
5355         fmod: Use a .m4 file.
5356         * m4/fmod.m4: New file.
5357         * modules/fmod (Files): Add it.
5358         (configure.ac): Just invoke gl_FUNC_FMOD.
5359
5360 2011-10-05  Bruno Haible  <bruno@clisp.org>
5361
5362         Tests for module 'fabsf'.
5363         * modules/fabsf-tests: New file.
5364         * tests/test-fabsf.c: New file.
5365
5366         New module 'fabsf'.
5367         * lib/math.in.h (fabsf): New declaration.
5368         * lib/fabsf.c: New file.
5369         * m4/fabsf.m4: New file.
5370         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5372         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5373         * modules/fabsf: New file.
5374         * tests/test-math-c++.cc: Check the declaration of fabsf.
5375         * doc/posix-functions/fabsf.texi: Mention the new module.
5376
5377         fabs: Use a .m4 file.
5378         * m4/fabs.m4: New file.
5379         * modules/fabs (Files): Add it.
5380         (configure.ac): Just invoke gl_FUNC_FABS.
5381
5382 2011-10-05  Jim Meyering  <meyering@redhat.com>
5383
5384         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5385         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5386         ls -lL regression introduced in coreutils-8.12, it does so at the
5387         cost of an additional stat call in the common case.  Besides, now
5388         that the kernel change that prompted commit 95f7c57f has been reverted
5389         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5390         we have no use for commit 95f7c57f, "file-has-acl: use
5391         acl_extended_file_nofollow if available".
5392
5393 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5394
5395         file-has-acl: revert unintended change in behavior of ls -L
5396         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5397         derived from...
5398         (file_has_acl): ...code here.  Call it.
5399         This problem was introduced with 2011-07-22 commit 95f7c57f,
5400         "file-has-acl: use acl_extended_file_nofollow if available".
5401         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5402
5403 2011-10-03  Bruno Haible  <bruno@clisp.org>
5404
5405         poll: Avoid link errors on MSVC.
5406         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5407         * modules/poll (Depends-on): Add sockets.
5408         (Link): New section.
5409         * NEWS: Mention the change.
5410         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5411         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5412         $(LIB_POLL) instead of $(LIBSOCKET).
5413
5414 2011-10-03  Bruno Haible  <bruno@clisp.org>
5415
5416         sys_select tests: Fix link error on MSVC 9.
5417         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5418         with $(LIB_SELECT) instead of $(LIBSOCKET).
5419
5420 2011-10-03  Bruno Haible  <bruno@clisp.org>
5421
5422         sys_select: Fix compilation error on mingw.
5423         * lib/sys_select.in.h: On native Windows, include <io.h>.
5424
5425 2011-10-03  Bruno Haible  <bruno@clisp.org>
5426
5427         wmemset: Support for MSVC.
5428         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5429         whether wmemset() exists.
5430
5431 2011-10-03  Bruno Haible  <bruno@clisp.org>
5432
5433         wmemmove: Support for MSVC.
5434         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5435         whether wmemmove() exists.
5436
5437 2011-10-03  Bruno Haible  <bruno@clisp.org>
5438
5439         wmemcpy: Support for MSVC.
5440         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5441         whether wmemcpy() exists.
5442
5443 2011-10-03  Bruno Haible  <bruno@clisp.org>
5444
5445         wmemcmp: Support for MSVC.
5446         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5447         whether wmemcmp() exists.
5448
5449 2011-10-03  Bruno Haible  <bruno@clisp.org>
5450
5451         wmemchr: Support for MSVC.
5452         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5453         whether wmemchr() exists.
5454
5455 2011-10-03  Bruno Haible  <bruno@clisp.org>
5456
5457         glthread/*, strsignal: Support for MSVC.
5458         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5459         including <winsock.h> on MSVC 9.
5460         * lib/glthread/lock.h: Likewise.
5461         * lib/glthread/thread.h: Likewise.
5462         * lib/glthread/tls.h: Likewise.
5463         * lib/glthread/yield.h: Likewise.
5464         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5465         if HAVE_UNISTD_H is false.
5466         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5467
5468 2011-10-03  Bruno Haible  <bruno@clisp.org>
5469
5470         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5471         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5472         Set to 100000.
5473
5474 2011-10-03  Bruno Haible  <bruno@clisp.org>
5475
5476         acl: Fix specification.
5477         * lib/file-has-acl.c (file_has_acl): Fix specification.
5478
5479 2011-10-03  Bruno Haible  <bruno@clisp.org>
5480
5481         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5482         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5483         (compute_curr_prefix, shared_library_fullname,
5484         find_shared_library_fullname, get_shared_library_fullname, relocate):
5485         Use it together with PIC && INSTALLDIR.
5486         Reported by <jojelino@gmail.com>
5487         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5488
5489 2011-10-01  Jim Meyering  <meyering@redhat.com>
5490
5491         maint.mk: adjust a release-related rule not to require use of gzip
5492         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5493         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5494         projects that build only .tar.xz files.  Also fix an erroneous test.
5495
5496         test-linkat: don't leave behind a temporary file
5497         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5498         Otherwise, coreutils' "make distcheck" would fail with this:
5499           Only in /c/cu/tests/torture/coreutils/test/\
5500             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5501           make[2]: *** [my-distcheck] Error 1
5502
5503         float, math: add omitted file
5504         * lib/itold.c: Add file, required for yesterday's float change.
5505
5506 2011-10-01  Bruno Haible  <bruno@clisp.org>
5507
5508         isinf: Fix for OpenBSD/x86.
5509         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5510         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5511         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5512
5513 2011-10-01  Bruno Haible  <bruno@clisp.org>
5514
5515         isfinite: Fix syntax error in configure test.
5516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5517
5518         isfinite: Fix typo.
5519         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5520         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5521
5522 2011-10-01  Bruno Haible  <bruno@clisp.org>
5523
5524         nonblocking tests: Fix test failure on Linux/IA-64.
5525         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5526         Set to 270000.
5527
5528 2011-10-01  Bruno Haible  <bruno@clisp.org>
5529
5530         mkfifoat tests: Fix a test failure on mingw.
5531         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5532         with error ENOSYS.
5533
5534 2011-09-30  Bruno Haible  <bruno@clisp.org>
5535
5536         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5537         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5538         'long double'. Set REPLACE_ITOLD.
5539         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5540         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5541         * lib/itold.c: New file.
5542         * modules/float (Files): Add lib/itold.c.
5543         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5544         (Makefile.am): Substitute REPLACE_ITOLD.
5545         * modules/math (Depends-on): Add float.
5546         (Makefile.am): Substitute REPLACE_ITOLD.
5547         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5548         * doc/posix-headers/math.texi: Likewise.
5549         * doc/posix-functions/logl.texi: Likewise.
5550
5551 2011-09-30  Bruno Haible  <bruno@clisp.org>
5552
5553         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5554         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5555         Set to 140000.
5556
5557 2011-09-30  Bruno Haible  <bruno@clisp.org>
5558
5559         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5560         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5561         invocation, say "right after AC_PROG_CC_STDC", not "right after
5562         AC_PROG_CC".
5563         Reported by Gary V. Vaughan <gary@gnu.org>.
5564
5565 2011-09-30  Bruno Haible  <bruno@clisp.org>
5566
5567         Centralize C99 requirement.
5568         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5569         * modules/stdarg (configure.ac-early): Invoke it instead of
5570         AC_PROG_CC_STDC.
5571         Reported by Gary V. Vaughan and Paul Eggert.
5572
5573 2011-09-29  Bruno Haible  <bruno@clisp.org>
5574
5575         float: Fix LDBL_MAX value on Linux/PowerPC.
5576         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5577         on Linux/PowerPC.
5578         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5579         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5580         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5581         platform.
5582         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5583
5584 2011-09-29  Bruno Haible  <bruno@clisp.org>
5585
5586         doc: Improve doc about gl_EARLY.
5587         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5588         AC_PROG_CC_STDC invocation.
5589         Reported by Gary V. Vaughan <gary@gnu.org>.
5590
5591 2011-09-28  Bruno Haible  <bruno@clisp.org>
5592
5593         fgetc, fputc, fread, fwrite tests: Fix link error.
5594         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5595         on non-MSVC platforms.
5596         * tests/test-fputc.c (main): Likewise.
5597         * tests/test-fread.c (main): Likewise.
5598         * tests/test-fwrite.c (main): Likewise.
5599         Reported by Jim Meyering.
5600
5601 2011-09-27  Bruno Haible  <bruno@clisp.org>
5602
5603         fputc, fwrite tests: Avoid test failure on MSVC.
5604         * tests/test-fgetc.c: Include msvc-inval.h.
5605         (main): Invoke gl_msvc_inval_ensure_handler.
5606         * tests/test-fputc.c: Include msvc-inval.h.
5607         (main): Invoke gl_msvc_inval_ensure_handler.
5608         * tests/test-fread.c: Include msvc-inval.h.
5609         (main): Invoke gl_msvc_inval_ensure_handler.
5610         * tests/test-fwrite.c: Include msvc-inval.h.
5611         (main): Invoke gl_msvc_inval_ensure_handler.
5612         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5613         * modules/fputc-tests (Depends-on): Likewise.
5614         * modules/fread-tests (Depends-on): Likewise.
5615         * modules/fwrite-tests (Depends-on): Likewise.
5616
5617 2011-09-27  Bruno Haible  <bruno@clisp.org>
5618
5619         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5620         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5621         (raise): Remove older, duplicated declaration.
5622         (_gl_raise_SIGPIPE): New declaration.
5623         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5624         (rpl_raise): Remove function.
5625         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5626         a gnulib-defined SIGPIPE here.
5627         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5628         'sigprocmask' has detected missing signal-blocking and the module
5629         'sigpipe' is enabled.
5630         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5631
5632 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5633
5634         base64-tests: avoid memory leak
5635         * tests/test-base64.c (main): Plug memory leak.
5636
5637         base32: new module
5638         * modules/base32: New module.
5639         * lib/base32.c: New file.
5640         * lib/base32.h: Likewise.
5641         * m4/base32.m4: Likewise.
5642         * modules/base32-tests: New test.
5643         * tests/test-base32.c: Likewise.
5644         * MODULES.html.sh (Misc): Mention it.
5645
5646 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5647
5648         gnulib: use more-standard license notice wording
5649         * gnulib-tool (func_emit_copyright_notice): When emitting a
5650         license notice into a file, use the standard wording as suggested
5651         by the current information for GNU maintainers, except say "file"
5652         rather than "program".  The new wording gives a license version
5653         number, which addresses an issue raised by Glenn Morris in
5654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5655         * m4/onceonly.m4: Use that same wording here, too.
5656
5657         dup2: minor simplification
5658         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5659         as lib/dup2.c no longer uses 'inline'.
5660
5661 2011-09-25  Bruno Haible  <bruno@clisp.org>
5662
5663         strings: Fix compilation error on MSVC.
5664         * lib/strings.in.h: Include <stddef.h> for size_t.
5665
5666 2011-09-25  Bruno Haible  <bruno@clisp.org>
5667
5668         fflush et al.: Document limitation on MSVC.
5669         * doc/posix-functions/fflush.texi: Document possible crash in handling
5670         mode other than DEFAULT_HANDLING.
5671         * doc/posix-functions/fgetc.texi: Likewise.
5672         * doc/posix-functions/fputc.texi: Likewise.
5673         * doc/posix-functions/fread.texi: Likewise.
5674         * doc/posix-functions/fwrite.texi: Likewise.
5675
5676 2011-09-25  Bruno Haible  <bruno@clisp.org>
5677
5678         msvc-inval: Allow three invalid parameter handling modes.
5679         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5680         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5681         macros.
5682         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5683         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5684         SANE_LIBRARY_HANDLING as a no-op.
5685         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5686         <stdlib.h>.
5687         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5688
5689 2011-09-25  Bruno Haible  <bruno@clisp.org>
5690
5691         msvc-inval: Make handler multithread-safe.
5692         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5693         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5694         declarations.
5695         (gl_msvc_inval_current): New declaration.
5696         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5697         Operate on the structure returned by gl_msvc_inval_current().
5698         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5699         Remove varaiables.
5700         (tls_index, tls_initialized): New variables.
5701         (not_per_thread): New variable.
5702         (gl_msvc_inval_current): New function.
5703         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5704         returned by gl_msvc_inval_current().
5705
5706 2011-09-25  Bruno Haible  <bruno@clisp.org>
5707
5708         msvc-inval: Install handler globally.
5709         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5710         !_MSC_VER.
5711         (gl_msvc_invalid_parameter_handler): Remove declaration.
5712         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5713         declarations.
5714         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5715         Install the handler globally, don't uninstall it.
5716         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5717         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5718         currently valid, call RaiseException instead.
5719         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5720         for !_MSC_VER.
5721
5722 2011-09-25  Bruno Haible  <bruno@clisp.org>
5723
5724         strerror_r-posix: Fix for MSVC 9.
5725         * lib/strerror_r.c (local_snprintf): New function.
5726         (snprintf): Define to local_snprintf, not to _snprintf.
5727
5728 2011-09-25  Bruno Haible  <bruno@clisp.org>
5729
5730         ftruncate: Support for MSVC 9.
5731         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5732         (chsize_nothrow): New function.
5733         (chsize): Redefine as a macro.
5734         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5735         * modules/ftruncate (Depends-on): Add msvc-inval.
5736
5737 2011-09-25  Bruno Haible  <bruno@clisp.org>
5738
5739         New module 'fstat'.
5740         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5741         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5742         * lib/fchdir.c (rpl_fstat): Remove function.
5743         * m4/fstat.m4: New file.
5744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5746         declared.
5747         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5748         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5749         * modules/fstat: New file.
5750         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5751         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5752         is set.
5753         * doc/posix-functions/fstat.texi: Mention the new module and the
5754         problem on MSVC.
5755         * NEWS: Mention the change.
5756         * modules/acl (Depends-on): Add fstat.
5757         * modules/chdir-safer (Depends-on): Likewise.
5758         * modules/chown (Depends-on): Likewise.
5759         * modules/copy-file (Depends-on): Likewise.
5760         * modules/fchdir (Depends-on): Likewise.
5761         * modules/fdopendir (Depends-on): Likewise.
5762         * modules/fopen (Depends-on): Likewise.
5763         * modules/fts (Depends-on): Likewise.
5764         * modules/getcwd (Depends-on): Likewise.
5765         * modules/isapipe (Depends-on): Likewise.
5766         * modules/linkat (Depends-on): Likewise.
5767         * modules/lseek (Depends-on): Likewise.
5768         * modules/mkdir-p (Depends-on): Likewise.
5769         * modules/open (Depends-on): Likewise.
5770         * modules/openat (Depends-on): Likewise.
5771         * modules/read-file (Depends-on): Likewise.
5772         * modules/renameat (Depends-on): Likewise.
5773         * modules/utimens (Depends-on): Likewise.
5774
5775 2011-09-25  Bruno Haible  <bruno@clisp.org>
5776
5777         linkat: Fix compilation on MSVC 9.
5778         * lib/linkat.c: Don't include <stdint.h>.
5779
5780 2011-09-25  Bruno Haible  <bruno@clisp.org>
5781
5782         fclose: Support for MSVC 9.
5783         * lib/fclose.c: Include msvc-inval.h.
5784         (fclose_nothrow): New function.
5785         (rpl_fclose): Use it.
5786         * modules/fclose (Depends-on): Add msvc-inval.
5787         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5788
5789 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5790
5791         dup2: minor simplifications
5792         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5793         that it's a performance win.
5794         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5795         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5796
5797 2011-09-24  Jim Meyering  <meyering@redhat.com>
5798
5799         test-futimens: avoid a warning from gcc -Wshadow
5800         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5801         to avoid a shadowing warning.
5802
5803 2011-09-24  Bruno Haible  <bruno@clisp.org>
5804
5805         fdopen: Support for MSVC 9.
5806         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5807         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5808         * lib/fdopen.c: Include msvc-inval.h.
5809         (fdopen_nothrow): New function.
5810         (rpl_fdopen): Use it.
5811         * modules/fdopen (Depends-on): Add msvc-inval.
5812         * modules/fclose-tests (Depends-on): Add fdopen.
5813         * modules/fflush-tests (Depends-on): Likewise.
5814         * modules/fgetc-tests (Depends-on): Likewise.
5815         * modules/fputc-tests (Depends-on): Likewise.
5816         * modules/fread-tests (Depends-on): Likewise.
5817         * modules/freopen-tests (Depends-on): Likewise.
5818         * modules/fseeko-tests (Depends-on): Likewise.
5819         * modules/ftello-tests (Depends-on): Likewise.
5820         * modules/fwrite-tests  (Depends-on): Likewise.
5821         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5822
5823 2011-09-24  Bruno Haible  <bruno@clisp.org>
5824
5825         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5826         * modules/fgetc-tests (Depends-on): Add unistd.
5827         * modules/fputc-tests (Depends-on): Likewise.
5828         * modules/fread-tests (Depends-on): Likewise.
5829         * modules/fwrite-tests (Depends-on): Likewise.
5830
5831 2011-09-24  Bruno Haible  <bruno@clisp.org>
5832
5833         dup: Simplify autoconf test.
5834         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5835         on gl_MSVC_INVAL's result.
5836
5837 2011-09-24  Bruno Haible  <bruno@clisp.org>
5838
5839         Tests for function fwrite().
5840         * modules/fwrite-tests: New file.
5841         * tests/test-fwrite.c: New file.
5842         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5843
5844         Tests for function fread().
5845         * modules/fread-tests: New file.
5846         * tests/test-fread.c: New file.
5847         * modules/stdio-tests (Depends-on): Add fread-tests.
5848
5849         Activate fputc tests.
5850         * modules/stdio-tests (Depends-on): Add fputc-tests.
5851
5852         Enhance fgetc, fputc tests.
5853         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5854         * tests/test-fputc.c (main): Likewise.
5855
5856 2011-09-24  Bruno Haible  <bruno@clisp.org>
5857
5858         write: Support for MSVC 9.
5859         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5860         is not 1.
5861         * lib/write.c (write_nothrow): New function.
5862         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5863         not 1. Use write_nothrow.
5864         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5865         invalid parameter handler.
5866         (gl_PREREQ_WRITE): New macro.
5867         * modules/write (Depends-on): Add msvc-inval.
5868         (configure.ac): Invoke gl_PREREQ_WRITE.
5869         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5870
5871 2011-09-24  Bruno Haible  <bruno@clisp.org>
5872
5873         read: Fix last commit.
5874         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5875
5876 2011-09-24  Bruno Haible  <bruno@clisp.org>
5877
5878         dup2: Fix last commit.
5879         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5880         (rpl_dup2): Disable fcntl workaround on native Windows.
5881
5882         sigprocmask: Make code safer.
5883         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5884         section that changes macro definitions for this compilation unit.
5885
5886 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5887
5888         dup2: clarify by coalescing Windows-specific material
5889         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5890         "msvc-nothrow.h"' to the Windows-specific section, so that the
5891         Emacs source need not contain these include files.
5892         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5893         Windows-specific fixes into this function rather than just the
5894         nothrow fix, as this shortens and clarifies the code.  Always
5895         define as a function, as that's a bit cleaner than having it be
5896         sometimes a function and sometimes a macro.
5897         (rpl_dup2): Move the Windows-specific stuff out of here and into
5898         ms_windows_dup2.  Don't protect the Haiku-related fix with
5899         "#if !defined __linux__", as the same code also works around
5900         a Linux kernel bug, and it doesn't add any system calls on any
5901         platform.  Add comment about FreeBSD 6.1.
5902
5903         sigprocmask: move #include directive
5904         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5905         Windows-specific section, so that the Emacs source need not
5906         contain msvc-inval.h.
5907
5908 2011-09-23  Bruno Haible  <bruno@clisp.org>
5909
5910         read: Support for MSVC 9.
5911         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5912         is not 1.
5913         * lib/read.c (read_nothrow): New function.
5914         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5915         read_nothrow.
5916         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5917         invalid parameter handler.
5918         (gl_PREREQ_READ): New macro.
5919         * modules/read (Depends-on): Add msvc-inval.
5920         (configure.ac): Invoke gl_PREREQ_READ.
5921         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5922
5923 2011-09-23  Bruno Haible  <bruno@clisp.org>
5924
5925         close: Support for MSVC 9.
5926         * lib/close.c: Include <errno.h>, msvc-inval.h.
5927         (close_nothrow): New function.
5928         (rpl_close): Use it.
5929         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5930         invalid parameter handler.
5931         * modules/close (Depends-on): Add msvc-inval.
5932         * modules/dup2-tests (Depends-on): Add close.
5933         * modules/dup3-tests (Depends-on): Likewise.
5934         * modules/fcntl-tests (Depends-on): Likewise.
5935         * modules/spawn-pipe-tests (Depends-on): Likewise.
5936         * modules/unistd-safer-tests (Depends-on): Likewise.
5937         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5938
5939 2011-09-23  Bruno Haible  <bruno@clisp.org>
5940
5941         New module 'dup'.
5942         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5943         Allow replacement.
5944         * lib/dup.c: New file.
5945         * lib/fchdir.c (rpl_dup): Remove function.
5946         * m4/dup.m4: New file.
5947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5948         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5949         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5950         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5951         * modules/dup: New file.
5952         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5953         'dup' module is in use.
5954         * modules/fdopendir (Depends-on): Add dup.
5955         * modules/fdutimensat-tests (Depends-on): Likewise.
5956         * modules/fts (Depends-on): Likewise.
5957         * modules/futimens-tests (Depends-on): Likewise.
5958         * modules/posix_spawnp-tests (Depends-on): Likewise.
5959         * modules/unistd-safer-tests (Depends-on): Likewise.
5960         * modules/utimens-tests (Depends-on): Likewise.
5961         * doc/posix-functions/dup.texi: Mention the new module and the problem
5962         on MSVC.
5963
5964 2011-09-23  Bruno Haible  <bruno@clisp.org>
5965
5966         getdtablesize: Support for MSVC 9.
5967         * lib/getdtablesize.c: Include msvc-inval.h.
5968         (_setmaxstdio_nothrow): New function.
5969         (_setmaxstdio): Redefine it.
5970         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5971         * modules/getdtablesize (Depends-on): Add msvc-inval.
5972         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5973
5974 2011-09-23  Bruno Haible  <bruno@clisp.org>
5975
5976         signal-h: Rename from signal.
5977         * modules/signal-h: Renamed from modules/signal.
5978         * modules/pthread_sigmask (Depends-on): Update.
5979         * modules/raise (Depends-on): Likewise.
5980         * modules/sigaction (Depends-on): Likewise.
5981         * modules/sigpipe (Depends-on): Likewise.
5982         * modules/sigprocmask (Depends-on): Likewise.
5983         * modules/sys_select (Depends-on): Likewise.
5984         * modules/signal-h-tests: Renamed from modules/signal-tests.
5985         (Files, Depends-on, Makefile.am): Update.
5986         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5987         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5988         (Files, Makefile.am): Update.
5989         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5990         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5991         * modules/signal: New placeholder file.
5992         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5993         * doc/posix-headers/signal.texi: Update.
5994         * NEWS: Mention the change.
5995
5996 2011-09-23  Bruno Haible  <bruno@clisp.org>
5997
5998         sigprocmask: Avoid crashes through signal() on MSVC 9.
5999         * lib/sigprocmask.c: Include msvc-inval.h.
6000         (signal_nothrow): New function.
6001         (signal): Redefine it.
6002         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
6003         * modules/sigprocmask (Depends-on): Add msvc-inval.
6004         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
6005
6006 2011-09-23  Bruno Haible  <bruno@clisp.org>
6007
6008         Tests for module 'raise'.
6009         * modules/raise-tests: New file.
6010         * tests/test-raise.c: New file.
6011
6012         raise: Support for MSVC.
6013         * lib/signal.in.h (raise): New declaration.
6014         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
6015         for native Windows platforms.
6016         * m4/raise.m4: New file.
6017         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
6018         HAVE_RAISE, REPLACE_RAISE.
6019         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
6020         REPLACE_RAISE.
6021         * modules/raise (Status, Notice): Remove fields.
6022         (Files): Add m4/raise.m4.
6023         (Depends-on): Add signal, msvc-inval.
6024         (configure.ac): Use the common idioms.
6025         (Maintainer): Add me.
6026         * tests/test-signal-c++.cc: Check the signature of raise.
6027         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
6028
6029 2011-09-23  Bruno Haible  <bruno@clisp.org>
6030
6031         pipe2: Fix compilation on pre-C99 compilers.
6032         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
6033
6034 2011-09-23  Bruno Haible  <bruno@clisp.org>
6035
6036         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
6037         * lib/msvc-nothrow.h: New file.
6038         * lib/msvc-nothrow.c: New file.
6039         * m4/msvc-nothrow.m4: New file.
6040         * modules/msvc-nothrow: New file.
6041         * lib/dup2.c: Include msvc-nothrow.h.
6042         (rpl_dup2): No need to protect _get_osfhandle call here.
6043         * lib/accept4.c: Include msvc-nothrow.h.
6044         * lib/error.c: Likewise.
6045         * lib/fcntl.c: Likewise.
6046         * lib/lseek.c: Likewise.
6047         * lib/nonblocking.c: Likewise.
6048         * lib/poll.c: Likewise.
6049         * lib/read.c: Likewise.
6050         * lib/select.c: Likewise.
6051         * lib/sockets.h: Likewise.
6052         * lib/sockets.c: Likewise.
6053         * lib/stdio-read.c: Likewise.
6054         * lib/stdio-write.c: Likewise.
6055         * lib/write.c: Likewise.
6056         * lib/w32sock.h: Likewise.
6057         * lib/w32spawn.h: Likewise.
6058         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
6059         * lib/fsync.c: Likewise.
6060         * lib/isapipe.c: Likewise.
6061         * modules/dup2 (Depends-on): Add msvc-nothrow.
6062         * modules/accept4 (Depends-on): Likewise.
6063         * modules/error (Depends-on): Likewise.
6064         * modules/fcntl (Depends-on): Likewise.
6065         * modules/lseek (Depends-on): Likewise.
6066         * modules/nonblocking (Depends-on): Likewise.
6067         * modules/poll (Depends-on): Likewise.
6068         * modules/read (Depends-on): Likewise.
6069         * modules/select (Depends-on): Likewise.
6070         * modules/sockets (Depends-on): Likewise.
6071         * modules/sigpipe (Depends-on): Likewise.
6072         * modules/write (Depends-on): Likewise.
6073         * modules/accept (Depends-on): Likewise.
6074         * modules/bind (Depends-on): Likewise.
6075         * modules/connect (Depends-on): Likewise.
6076         * modules/gethostname (Depends-on): Likewise.
6077         * modules/getpeername (Depends-on): Likewise.
6078         * modules/getsockname (Depends-on): Likewise.
6079         * modules/getsockopt (Depends-on): Likewise.
6080         * modules/ioctl (Depends-on): Likewise.
6081         * modules/listen (Depends-on): Likewise.
6082         * modules/recv (Depends-on): Likewise.
6083         * modules/recvfrom (Depends-on): Likewise.
6084         * modules/send (Depends-on): Likewise.
6085         * modules/sendto (Depends-on): Likewise.
6086         * modules/setsockopt (Depends-on): Likewise.
6087         * modules/shutdown (Depends-on): Likewise.
6088         * modules/socket (Depends-on): Likewise.
6089         * modules/execute (Depends-on): Likewise.
6090         * modules/spawn-pipe (Depends-on): Likewise.
6091         * modules/flock (Depends-on): Likewise.
6092         * modules/fsync (Depends-on): Likewise.
6093         * modules/isapipe (Depends-on): Likewise.
6094         * tests/test-cloexec.c: Include msvc-nothrow.h.
6095         * tests/test-dup-safer.c: Likewise.
6096         * tests/test-dup2.c: Likewise.
6097         * tests/test-dup3.c: Likewise.
6098         * tests/test-fcntl.c: Likewise.
6099         * tests/test-pipe.c: Likewise.
6100         * tests/test-pipe2.c: Likewise.
6101         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
6102         * modules/unistd-safer-tests (Depends-on): Likewise.
6103         * modules/dup2-tests (Depends-on): Likewise.
6104         * modules/dup3-tests (Depends-on): Likewise.
6105         * modules/fcntl-tests (Depends-on): Likewise.
6106         * modules/pipe-posix-tests (Depends-on): Likewise.
6107         * modules/pipe2-tests (Depends-on): Likewise.
6108
6109 2011-09-23  Bruno Haible  <bruno@clisp.org>
6110
6111         dup2: Make code more maintainable.
6112         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
6113         (rpl_dup2): Use it.
6114         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
6115         * modules/dup2 (configure.ac): Invoke it.
6116         Reported by Paul Eggert.
6117
6118 2011-09-23  Bruno Haible  <bruno@clisp.org>
6119
6120         msvc-inval: Fix compilation error.
6121         * lib/msvc-inval.h: Include <excpt.h>.
6122
6123 2011-09-23  Bruno Haible  <bruno@clisp.org>
6124
6125         mkdir: Tweak for MSVC 9.
6126         * lib/sys_stat.in.h: Update comments.
6127         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
6128
6129         Tests for module 'chdir'.
6130         * modules/chdir-tests: New file.
6131         * tests/test-chdir.c: New file.
6132
6133         New module 'chdir'.
6134         * modules/chdir: New file.
6135         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
6136         (chdir): New declaration.
6137         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
6138         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
6139         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
6140         * tests/test-unistd-c++.cc: Check signature of chdir.
6141         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
6142         * modules/chdir-long (Depends-on): Add chdir.
6143         * modules/fchdir (Depends-on): Likewise.
6144         * modules/rename (Depends-on): Likewise.
6145         * modules/savewd (Depends-on): Likewise.
6146
6147         rmdir: Support for mingw, MSVC 9.
6148         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6149         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6150
6151         getcwd: Tweak for MSVC 9.
6152         * lib/unistd.in.h: Update comments.
6153         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6154
6155 2011-09-22  Bruno Haible  <bruno@clisp.org>
6156
6157         strerror_r-posix: Avoid a link error on MSVC.
6158         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6159         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6160
6161 2011-09-22  Bruno Haible  <bruno@clisp.org>
6162
6163         select: Avoid link errors on MSVC.
6164         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6165         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6166         * modules/pselect (Link): Likewise.
6167         * NEWS: Mention the change.
6168         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6169         test-select-stdin against $(LIB_SELECT).
6170         * modules/pselect-tests (Makefile.am): Link test-pselect against
6171         $(LIB_SELECT).
6172
6173 2011-09-22  Bruno Haible  <bruno@clisp.org>
6174
6175         select: Avoid compilation error on MSVC.
6176         * lib/select.c: Don't include <stdbool.h>.
6177
6178 2011-09-21  Bruno Haible  <bruno@clisp.org>
6179
6180         Consolidate all uses of PATH_MAX in *.m4 files.
6181         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6182         macros.
6183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6184         and gl_PATHMAX_SNIPPET.
6185         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6186         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6187         * modules/chdir-long (Files): Add m4/pathmax.m4.
6188         * modules/getcwd (Files): Likewise.
6189
6190 2011-09-21  Bruno Haible  <bruno@clisp.org>
6191
6192         ftruncate: Un-deprecate, concentrate on Win32 support.
6193         * modules/ftruncate (Status, Notice): Remove sections.
6194         (Depends-on): Add largefile.
6195         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6196         non-mingw platforms.
6197         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6198         include <io.h>.
6199         * modules/perror-tests (Depends-on): Add ftruncate.
6200         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6201         'ftruncate' module.
6202
6203 2011-09-21  Bruno Haible  <bruno@clisp.org>
6204
6205         Add dependencies to new dirent related modules.
6206         * modules/opendir (Depends-on): Add closedir.
6207         * modules/getcwd (Depends-on): Add opendir, closedir.
6208         * modules/dirent-safer-tests (Depends-on): Likewise.
6209         * modules/fdopendir-tests (Depends-on): Likewise.
6210         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6211         * modules/renameat-tests (Depends-on): Likewise.
6212
6213 2011-09-21  Bruno Haible  <bruno@clisp.org>
6214
6215         opendir: Avoid compilation error on mingw.
6216         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6217         * modules/opendir (Depends-on): Add unistd.
6218
6219 2011-09-21  Bruno Haible  <bruno@clisp.org>
6220
6221         ftruncate tests: Avoid a test failure on mingw.
6222         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6223
6224 2011-09-21  Bruno Haible  <bruno@clisp.org>
6225
6226         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6227         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6228         native Windows.
6229
6230 2011-09-21  Bruno Haible  <bruno@clisp.org>
6231
6232         New module 'fdopen'.
6233         * lib/stdio.in.h (fdopen): New declaration.
6234         * lib/fdopen.c: New file.
6235         * m4/fdopen.m4: New file.
6236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6237         REPLACE_FDOPEN.
6238         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6239         REPLACE_FDOPEN.
6240         * modules/fdopen: New file.
6241         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6242         * tests/test-stdio-c++.cc: Check signature of fdopen.
6243         * doc/posix-functions/fdopen.texi: Mention the new module.
6244
6245 2011-09-21  Bruno Haible  <bruno@clisp.org>
6246
6247         unlockpt tests: Avoid test failure on NetBSD 5.1.
6248         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6249         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6250
6251 2011-09-21  Bruno Haible  <bruno@clisp.org>
6252
6253         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6254         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6255         * tests/test-getlogin_r.c (main): Likewise.
6256
6257 2011-09-20  Bruno Haible  <bruno@clisp.org>
6258
6259         time tests: Don't require pid_t.
6260         * doc/posix-headers/time.texi: Revert last change.
6261         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6262         * tests/test-time.c: Comment out the check for pid_t.
6263
6264 2011-09-20  Bruno Haible  <bruno@clisp.org>
6265
6266         fsync tests: Avoid a test failure on mingw.
6267         * tests/test-fsync.c (main): Allow a failure with EIO.
6268
6269 2011-09-20  Bruno Haible  <bruno@clisp.org>
6270
6271         euidaccess: Update comments.
6272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6273
6274 2011-09-20  Bruno Haible  <bruno@clisp.org>
6275
6276         Ensure EBADF returns for socket functions on mingw.
6277         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6278         descriptor is invalid.
6279         * lib/bind.c (rpl_bind): Likewise.
6280         * lib/connect.c (rpl_connect): Likewise.
6281         * lib/getpeername.c (rpl_getpeername): Likewise.
6282         * lib/getsockname.c (rpl_getsockname): Likewise.
6283         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6284         * lib/listen.c (rpl_listen): Likewise.
6285         * lib/recv.c (rpl_recv): Likewise.
6286         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6287         * lib/send.c (rpl_send): Likewise.
6288         * lib/sendto.c (rpl_sendto): Likewise.
6289         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6290         * lib/shutdown.c (rpl_shutdown): Likewise.
6291
6292 2011-09-20  Bruno Haible  <bruno@clisp.org>
6293
6294         select tests: EBADF tests.
6295         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6296         test_bad_fd): New functions.
6297         (test_function): Invoke also test_bad_fd.
6298
6299 2011-09-20  Bruno Haible  <bruno@clisp.org>
6300
6301         Tests for module 'posix_spawn_file_actions_addopen.
6302         * modules/posix_spawn_file_actions_addopen-tests: New file.
6303         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6304
6305         Tests for module 'posix_spawn_file_actions_adddup2'.
6306         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6307         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6308
6309         Tests for module 'posix_spawn_file_actions_addclose'.
6310         * modules/posix_spawn_file_actions_addclose-tests: New file.
6311         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6312
6313 2011-09-20  Bruno Haible  <bruno@clisp.org>
6314
6315         Tests for module 'unlockpt'.
6316         * modules/unlockpt-tests: New file.
6317         * tests/test-unlockpt.c: New file.
6318         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6319
6320         Tests for module 'grantpt'.
6321         * modules/grantpt-tests: New file.
6322         * tests/test-grantpt.c: New file.
6323         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6324
6325 2011-09-20  Bruno Haible  <bruno@clisp.org>
6326
6327         freopen tests: EBADF tests.
6328         * tests/test-freopen.c: Include errno.h, unistd.h.
6329         (main): Add tests for EBADF, commented out for the moment.
6330
6331         fclose tests: EBADF tests.
6332         * tests/test-fclose.c (main): Add tests for EBADF.
6333
6334         fflush tests: EBADF tests.
6335         * tests/test-fflush.c: Include errno.h, macros.h.
6336         (main): Add tests for EBADF.
6337
6338         ftello tests: EBADF tests.
6339         * tests/test-ftello4.sh: New file.
6340         * tests/test-ftello4.c: New file.
6341         * modules/ftello-tests (Files): Add them.
6342         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6343
6344         fseeko tests: EBADF tests.
6345         * tests/test-fseeko4.sh: New file.
6346         * tests/test-fseeko4.c: New file.
6347         * modules/fseeko-tests (Files): Add them.
6348         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6349
6350         Tests for function fputc().
6351         * modules/fputc-tests: New file.
6352         * tests/test-fputc.c: New file.
6353         * modules/stdio-tests (Depends-on): Add fputc-tests.
6354
6355         Tests for function fgetc().
6356         * modules/fgetc-tests: New file.
6357         * tests/test-fgetc.c: New file.
6358         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6359
6360         Tests for function fdopen().
6361         * modules/fdopen-tests: New file.
6362         * tests/test-fdopen.c: New file.
6363         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6364
6365         Tests for module 'vdprintf'.
6366         * modules/vdprintf-tests: New file.
6367         * tests/test-vdprintf.c: New file.
6368
6369         Tests for module 'dprintf'.
6370         * modules/dprintf-tests: New file.
6371         * tests/test-dprintf.c: New file.
6372
6373 2011-09-20  Bruno Haible  <bruno@clisp.org>
6374
6375         Tests for module 'ioctl'.
6376         * modules/ioctl-tests: New file.
6377         * tests/test-ioctl.c: New file.
6378
6379 2011-09-20  Bruno Haible  <bruno@clisp.org>
6380
6381         fcntl tests: EBADF tests.
6382         * tests/test-fcntl.c (main): Add more tests for EBADF.
6383
6384 2011-09-20  Bruno Haible  <bruno@clisp.org>
6385
6386         utimensat tests: EBADF tests.
6387         * tests/test-utimensat.c (main): Add tests for EBADF.
6388
6389         renameat tests: EBADF tests.
6390         * tests/test-renameat.c (main): Add tests for EBADF.
6391
6392         mkfifoat tests: EBADF tests.
6393         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6394
6395         readlinkat tests: EBADF tests.
6396         * tests/test-readlinkat.c (main): Add tests for EBADF.
6397
6398         symlinkat tests: EBADF tests.
6399         * tests/test-symlinkat.c (main): Add tests for EBADF.
6400
6401         linkat tests: EBADF tests.
6402         * tests/test-linkat.c (main): Add tests for EBADF.
6403
6404         Tests for module 'faccessat'.
6405         * modules/faccessat-tests: New file.
6406         * tests/test-faccessat.c: New file.
6407
6408         fdopendir tests: EBADF tests.
6409         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6410
6411         openat tests: EBADF tests.
6412         * tests/test-fchownat.c (main): Add tests for EBADF.
6413         * tests/test-fstatat.c (main): Likewise.
6414         * tests/test-mkdirat.c (main): Likewise.
6415         * tests/test-openat.c (main): Likewise.
6416         * tests/test-unlinkat.c (main): Likewise.
6417         * tests/test-fchmodat.c: New file.
6418         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6419         (Makefile.am): Also run 'test-fchmodat'.
6420
6421 2011-09-20  Bruno Haible  <bruno@clisp.org>
6422
6423         utimens, futimens, fdutimensat tests: EBADF tests.
6424         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6425
6426         Tests for function fstat().
6427         * modules/fstat-tests: New file.
6428         * tests/test-fstat.c: New file.
6429         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6430
6431 2011-09-20  Bruno Haible  <bruno@clisp.org>
6432
6433         test-ttyname_r tests: EBADF tests.
6434         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6435
6436         Tests for module 'isatty'.
6437         * modules/isatty-tests: New file.
6438         * tests/test-isatty.c: New file.
6439
6440         Tests for module 'write'.
6441         * modules/write-tests: New file.
6442         * tests/test-write.c: New file.
6443
6444         Tests for module 'read'.
6445         * modules/read-tests: New file.
6446         * tests/test-read.c: New file.
6447
6448         pwrite tests: EBADF tests.
6449         * tests/test-pwrite.c (main): Add tests for EBADF.
6450
6451         pread tests: EBADF tests.
6452         * tests/test-pread.c (main): Add tests for EBADF.
6453
6454         lseek tests: EBADF tests.
6455         * tests/test-lseek.c (main): Add more tests for EBADF.
6456
6457         Tests for module 'ftruncate'.
6458         * modules/ftruncate-tests: New file.
6459         * tests/test-ftruncate.sh: New file.
6460         * tests/test-ftruncate.c: New file.
6461
6462         fsync tests: EBADF tests.
6463         * tests/test-fsync.c (main): Add more tests for EBADF.
6464
6465         fdatasync tests: EBADF tests.
6466         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6467
6468         Tests for module 'fchown'.
6469         * modules/fchown-tests: New file.
6470         * tests/test-fchown.c: New file.
6471
6472         Tests for module 'fchmod'.
6473         * modules/fchmod-tests: New file.
6474         * tests/test-fchmod.c: New file.
6475
6476         fchdir tests: EBADF tests.
6477         * tests/test-fchdir.c (main): Add more tests for EBADF.
6478
6479         dup2 tests: EBADF tests.
6480         * tests/test-dup2.c (main): Add more tests for EBADF.
6481
6482         Tests for module 'dup'.
6483         * modules/dup-tests: New file.
6484         * tests/test-dup.c: New file.
6485
6486         Tests for module 'close'.
6487         * modules/close-tests: New file.
6488         * tests/test-close.c: New file.
6489
6490 2011-09-20  Bruno Haible  <bruno@clisp.org>
6491
6492         Tests for module 'shutdown'.
6493         * modules/shutdown-tests: New file.
6494         * tests/test-shutdown.c: New file.
6495
6496         Tests for module 'setsockopt'.
6497         * modules/setsockopt-tests: New file.
6498         * tests/test-setsockopt.c: New file.
6499
6500         Tests for module 'sendto'.
6501         * modules/sendto-tests: New file.
6502         * tests/test-sendto.c: New file.
6503
6504         Tests for module 'send'.
6505         * modules/send-tests: New file.
6506         * tests/test-send.c: New file.
6507
6508         Tests for module 'recvfrom'.
6509         * modules/recvfrom-tests: New file.
6510         * tests/test-recvfrom.c: New file.
6511
6512         Tests for module 'recv'.
6513         * modules/recv-tests: New file.
6514         * tests/test-recv.c: New file.
6515
6516         Tests for module 'listen'.
6517         * modules/listen-tests: New file.
6518         * tests/test-listen.c: New file.
6519
6520         Tests for module 'getsockopt'.
6521         * modules/getsockopt-tests: New file.
6522         * tests/test-getsockopt.c: New file.
6523
6524         Tests for module 'getsockname'.
6525         * modules/getsockname-tests: New file.
6526         * tests/test-getsockname.c: New file.
6527
6528         Tests for module 'getpeername'.
6529         * modules/getpeername-tests: New file.
6530         * tests/test-getpeername.c: New file.
6531
6532         Tests for module 'connect'.
6533         * modules/connect-tests: New file.
6534         * tests/test-connect.c: New file.
6535
6536         Tests for module 'bind'.
6537         * modules/bind-tests: New file.
6538         * tests/test-bind.c: New file.
6539
6540         accept4 tests: Fix for native Windows.
6541         * tests/test-accept4.c: Include sockets.h.
6542         (main): Invoke gl_sockets_startup.
6543         * modules/accept4-tests (Depends-on): Add sockets.
6544
6545         accept tests: Fix for native Windows.
6546         * tests/test-accept.c: Include sockets.h.
6547         (main): Invoke gl_sockets_startup.
6548         * modules/accept-tests (Depends-on): Add sockets.
6549
6550 2011-09-19  Bruno Haible  <bruno@clisp.org>
6551
6552         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6553         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6554         do...while(0).
6555         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6556         Suggested by Paul Eggert.
6557
6558 2011-09-19  Bruno Haible  <bruno@clisp.org>
6559
6560         sched: Ensure pid_t is defined.
6561         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6562         not define pid_t.
6563         * lib/sched.in.h: Include <sys/types.h>.
6564         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6566
6567 2011-09-19  Bruno Haible  <bruno@clisp.org>
6568
6569         msvc-inval: Ensure the entire expansion is a single statement.
6570         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6571         of braces.
6572
6573 2011-09-19  Jim Meyering  <meyering@redhat.com>
6574
6575         tests: use printf, not echo in init.sh's warn_ function
6576         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6577         misbehave when given strings containing a backslash or starting
6578         with e.g., -n.  James Youngman suggested setting IFS.
6579
6580 2011-09-19  Eric Blake  <eblake@redhat.com>
6581
6582         futimens: enhance test
6583         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6584         closed non-negative fd.
6585
6586         date: accept 'hence' as opposite of 'ago'
6587         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6588         * tests/test-parse-datetime.c (main): Enhance test.
6589         Suggested by Jesse Wilson.
6590
6591 2011-09-19  Jim Meyering  <meyering@redhat.com>
6592
6593         getcwd: don't fail in a deep directory on a system without openat
6594         Before this change, getcwd would fail when called from a directory
6595         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6596         the non-openat implementation used "..", "../..", "../../..", etc.
6597         to access ancestor directories.  With too many, that string would
6598         be longer than PATH_MAX.
6599         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6600         using gnulib's openat replacement.
6601         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6602         we're using the replacement function.
6603
6604 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6605
6606         maint.mk: avoid warnings from perl about missing files
6607         * top/maint.mk (def_sym_regex): Ignore files listed in
6608         $(gl_other_headers_) that do not exist, say because a project
6609         does not use a corresponding module.
6610
6611 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6612
6613         stat: use pathmax.h only if needed
6614         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6615         This is better for Emacs, which does not have a mingw port and
6616         therefore can avoid the pathmax module.
6617
6618         utimens: remove dependency on dup2
6619         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6620         to work around the Linux kernel bug.
6621         * modules/utimens (Depends-on): Remove dup2.
6622
6623 2011-09-18  Bruno Haible  <bruno@clisp.org>
6624
6625         inet_ntop, inet_pton: Look for it also in libresolv.
6626         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6627         libnsl, search for it in libresolv.
6628         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6629         Needed on Solaris 7.
6630
6631 2011-09-18  Bruno Haible  <bruno@clisp.org>
6632
6633         accept, accept4 tests: Avoid link error on Solaris.
6634         * modules/accept-tests (Makefile.am): Link test-accept against
6635         $(LIBSOCKET).
6636         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6637         $(LIBSOCKET).
6638
6639         accept4: Avoid link error on Solaris.
6640         * modules/accept4 (Link): New section.
6641
6642         socket functions: Avoid link errors on Solaris.
6643         * modules/accept (Depends-on): Add socketlib.
6644         (Link): New section.
6645         * modules/bind (Depends-on): Add socketlib.
6646         (Link): New section.
6647         * modules/connect (Depends-on): Add socketlib.
6648         (Link): New section.
6649         * modules/getpeername (Depends-on): Add socketlib.
6650         (Link): New section.
6651         * modules/getsockname (Depends-on): Add socketlib.
6652         (Link): New section.
6653         * modules/getsockopt (Depends-on): Add socketlib.
6654         (Link): New section.
6655         * modules/listen (Depends-on): Add socketlib.
6656         (Link): New section.
6657         * modules/recv (Depends-on): Add socketlib.
6658         (Link): New section.
6659         * modules/recvfrom (Depends-on): Add socketlib.
6660         (Link): New section.
6661         * modules/send (Depends-on): Add socketlib.
6662         (Link): New section.
6663         * modules/sendto (Depends-on): Add socketlib.
6664         (Link): New section.
6665         * modules/setsockopt (Depends-on): Add socketlib.
6666         (Link): New section.
6667         * modules/shutdown (Depends-on): Add socketlib.
6668         (Link): New section.
6669         * modules/socket (Depends-on): Add socketlib.
6670         (Link): New section.
6671
6672 2011-09-18  Bruno Haible  <bruno@clisp.org>
6673
6674         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6675         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6676         than 5 seconds.
6677         * modules/ptsname-tests (configure.ac): Test for alarm.
6678
6679 2011-09-18  Bruno Haible  <bruno@clisp.org>
6680
6681         posix_spawn_file_actions_add*: Fix module dependencies.
6682         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6683         posix_spawn_file_actions_init.
6684         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6685         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6686
6687 2011-09-18  Bruno Haible  <bruno@clisp.org>
6688
6689         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6690         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6691         * tests/test-renameat.c (main): Likewise.
6692
6693 2011-09-18  Bruno Haible  <bruno@clisp.org>
6694
6695         Tests for module 'accept4'.
6696         * modules/accept4-tests: New file.
6697         * tests/test-accept4.c: New file.
6698
6699 2011-09-18  Bruno Haible  <bruno@clisp.org>
6700
6701         Tests for module 'accept'.
6702         * modules/accept-tests: New file.
6703         * tests/test-accept.c: New file.
6704
6705 2011-09-18  Bruno Haible  <bruno@clisp.org>
6706
6707         dup2: Support for MSVC.
6708         * lib/dup2.c: Include msvc-inval.h.
6709         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6710         _get_osfhandle calls.
6711         * modules/dup2 (Depends-on): Add msvc-inval.
6712         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6713
6714         New module 'msvc-inval'.
6715         * lib/msvc-inval.h: New file.
6716         * lib/msvc-inval.c: New file.
6717         * m4/msvc-inval.m4: New file.
6718         * modules/msvc-inval: New file.
6719
6720 2011-09-17  Bruno Haible  <bruno@clisp.org>
6721
6722         Tests for module 'pclose'.
6723         * modules/pclose-tests: New file.
6724
6725         New module 'pclose'.
6726         * lib/stdio.in.h (pclose): New declaration.
6727         * lib/pclose.c: New file.
6728         * m4/pclose.m4: New file.
6729         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6730         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6731         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6732         * modules/pclose: New file.
6733         * modules/popen-tests (Depends-on): Add pclose.
6734         * modules/popen-safer-tests (Depends-on): Likewise.
6735         * doc/posix-functions/pclose.texi: Mention the new module.
6736
6737 2011-09-17  Bruno Haible  <bruno@clisp.org>
6738
6739         popen: Support for MSVC.
6740         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6741         * lib/popen.c (popen): Provide alternate definition for native Windows.
6742         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6744         * modules/popen (Depends-on, configure.ac): Update condition.
6745         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6746         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6747         fixed.
6748
6749 2011-09-17  Bruno Haible  <bruno@clisp.org>
6750
6751         isnanl, isnand, isnanf: Work around MSVC bug.
6752         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6753
6754 2011-09-17  Bruno Haible  <bruno@clisp.org>
6755
6756         sys_socket tests: Fix recent mistake.
6757         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6758
6759 2011-09-17  Bruno Haible  <bruno@clisp.org>
6760
6761         putenv: Support for MSVC.
6762         * modules/putenv (Depends-on): Add environ.
6763         * lib/putenv.c (environ): Disable declaration.
6764         * lib/unistd.in.h: Update comment.
6765
6766 2011-09-17  Bruno Haible  <bruno@clisp.org>
6767
6768         math: Avoid macro redefinition warnings on MSVC.
6769         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6770         Undefine before redefining.
6771
6772 2011-09-17  Bruno Haible  <bruno@clisp.org>
6773
6774         doc: Mention functions which are declared as macros.
6775         * doc/posix-functions/*[fl].texi: Mention that some functions are
6776         defined as macros with arguments only.
6777
6778 2011-09-17  Bruno Haible  <bruno@clisp.org>
6779
6780         Add dependencies to new dirent related modules.
6781         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6782         * modules/fts (Depends-on): Likewise.
6783         * modules/glob (Depends-on): Likewise.
6784         * modules/savedir (Depends-on): Likewise.
6785         * modules/scandir (Depends-on): Likewise.
6786         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6787         * modules/fdopendir (Depends-on): Add opendir.
6788
6789 2011-09-17  Bruno Haible  <bruno@clisp.org>
6790
6791         inet_pton: Support for MSVC on Windows Vista or newer.
6792         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6793         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6794         HAVE_DECL_INET_PTON is defined.
6795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6796         On platforms with <winsock2.h>, test whether inet_pton is declared in
6797         <ws2tcpip.h>. If so, arrange to replace it.
6798         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6799         REPLACE_INET_PTON.
6800         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6801         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6802         (Depends-on, configure.ac): Update condition.
6803         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6804
6805 2011-09-17  Bruno Haible  <bruno@clisp.org>
6806
6807         inet_ntop: Support for MSVC on Windows Vista or newer.
6808         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6809         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6810         HAVE_DECL_INET_NTOP is defined.
6811         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6812         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6813         <ws2tcpip.h>. If so, arrange to replace it.
6814         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6815         REPLACE_INET_NTOP.
6816         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6817         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6818         (Depends-on, configure.ac): Update condition.
6819         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6820
6821 2011-09-16  Eric Blake  <eblake@redhat.com>
6822
6823         test-fsync: yet another enhancement
6824         * tests/test-fsync.c (main): Also test behavior on read-only text
6825         file.
6826
6827 2011-09-16  Bruno Haible  <bruno@clisp.org>
6828
6829         Enhance fsync, fdatasync tests.
6830         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6831         * tests/test-fdatasync.c (main): Likewise.
6832
6833 2011-09-16  Bruno Haible  <bruno@clisp.org>
6834
6835         Support for MSVC compiler: Ensure mode_t gets defined.
6836         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6837         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6839         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6840         * tests/test-fcntl-h.c: Check that mode_t is defined.
6841         * tests/test-sys_stat.c: Likewise.
6842         * tests/test-sys_types.c: Likewise.
6843         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6844         * doc/posix-headers/sys_stat.texi: Likewise.
6845         * doc/posix-headers/sys_types.texi: Likewise.
6846
6847 2011-09-16  Bruno Haible  <bruno@clisp.org>
6848
6849         sys_stat: Support for MSVC.
6850         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6851         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6852         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6853         MSVC.
6854
6855 2011-09-16  Bruno Haible  <bruno@clisp.org>
6856
6857         Support for MSVC compiler: Ensure off_t gets defined.
6858         * lib/unistd.in.h: Include <sys/types.h>.
6859         * tests/test-fcntl-h.c: Check that off_t is defined.
6860         * tests/test-sys_stat.c: Likewise.
6861         * tests/test-sys_types.c: Likewise.
6862
6863 2011-09-16  Eric Blake  <eblake@redhat.com>
6864
6865         fdatasync: port to Solaris
6866         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6867         * modules/fdatasync (Link): Document it.
6868         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6869
6870         fdatasync: port to MacOS X 10.7
6871         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6872         declared.
6873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6874         * modules/unistd (Makefile.am): Substitute it.
6875         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6876         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6877
6878         fdatasync: minor improvements
6879         * modules/fdatasync (Depends-on): Add condition for fsync.
6880         * lib/fdatasync.c (fdatasync): Add comment.
6881         * tests/test-unistd-c++.cc: Test fdatasync.
6882
6883         unistd: update refs to newer POSIX
6884         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6885         Suggested by Bruno Haible.
6886
6887         fdatasync: new module
6888         * modules/fsync (Description): Document difference to fdatasync.
6889         * modules/fdatasync: New module.
6890         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6891         * lib/fdatasync.c (fdatasync): Likewise.
6892         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6893         defaults.
6894         * modules/unistd (Makefile.am): Set witnesses.
6895         * lib/unistd.in.h (fdatasync): Declare.
6896         * MODULES.html.sh: Document it.
6897         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6898         * modules/fdatasync-tests: New test.
6899         * tests/test-fdatasync.c: Likewise.
6900
6901 2011-09-16  Eric Blake  <eblake@redhat.com>
6902
6903         test-fsync: enhance tests
6904         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6905         * tests/test-fsync.c (main): Enhance test.
6906
6907 2011-09-15  Bruno Haible  <bruno@clisp.org>
6908
6909         Support for MSVC compiler: Ensure ssize_t gets defined.
6910         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6911         * doc/posix-headers/stdio.texi: Likewise.
6912         * modules/stdio (Depends-on): Add ssize_t.
6913         * modules/sys_socket (Depends-on): Likewise.
6914         * modules/sys_types (Depends-on): Likewise.
6915         * modules/sys_uio (Depends-on): Likewise.
6916         * modules/unistd (Depends-on): Likewise.
6917         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6918         * tests/test-sys_types.c: Check that ssize_t is defined.
6919
6920 2011-09-14  Bruno Haible  <bruno@clisp.org>
6921
6922         Avoid using #, the m4 comment starter character, near brackets.
6923         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6924         delimiter character in sed expressions.
6925         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6926         Suggested by Eric Blake.
6927
6928         Properly quote AC_CHECK_DECLS' 4th argument.
6929         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6930         argument.
6931         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6932         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6933         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6934         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6935         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6936         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6938         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6939         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6940         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6941         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6942         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6943         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6944         * m4/isinf.m4 (gl_ISINF): Likewise.
6945         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6946         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6947         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6948         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6951         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6952         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6953         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6954         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6955         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6958         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6960         Reported by Eric Blake.
6961
6962         Properly quote AC_CHECK_DECL's 4th argument.
6963         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6964         argument.
6965         * m4/argp.m4 (gl_ARGP): Likewise.
6966         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6967         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6968         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6969         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6970         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6971         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6973         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6974         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6975         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6976         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6977         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6978         Reported by Eric Blake.
6979
6980 2011-09-14  Eric Blake  <eblake@redhat.com>
6981
6982         opendir: avoid compile warning
6983         * lib/opendir.c (includes): Always include errno.h.
6984         Reported by Tatsuro MATSUOKA.
6985
6986 2011-09-14  Jim Meyering  <meyering@redhat.com>
6987
6988         maint.mk: sc_tight_scope: propagate failure from sub-make
6989         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6990         Reported by Martin von Gagern.
6991
6992 2011-09-13  Bruno Haible  <bruno@clisp.org>
6993
6994         tempname: Support for MSVC.
6995         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6996         MSVC.
6997         * modules/tempname (Depends-on): Add fcntl-h.
6998
6999 2011-09-13  Bruno Haible  <bruno@clisp.org>
7000
7001         sys_time: Support for MSVC.
7002         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
7003         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
7004         include <winsock2.h>.
7005         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
7006         function declarations that collide with POSIX.
7007         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
7008         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7009
7010 2011-09-13  Bruno Haible  <bruno@clisp.org>
7011
7012         stat: Support for MSVC.
7013         * lib/stat.c: Include pathmax.h.
7014         * modules/stat (Depends-on): Add pathmax.
7015
7016         pathmax: Support for native Windows.
7017         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
7018
7019 2011-09-12  Bruno Haible  <bruno@clisp.org>
7020
7021         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
7022         * lib/dirent.in.h (struct dirent): New type.
7023         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
7024         DT_WHT): New macros.
7025         (DIR): New type.
7026         (opendir, closedir): Declare only if the module 'opendir' is enabled.
7027         (readdir, rewinddir): New declarations.
7028         * lib/dirent-private.h: New file.
7029         * lib/opendir.c: New file.
7030         * lib/readdir.c: New file.
7031         * lib/rewinddir.c: New file.
7032         * lib/closedir.c: New file.
7033         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
7034         * m4/opendir.m4: New file.
7035         * m4/readdir.m4: New file.
7036         * m4/rewinddir.m4: New file.
7037         * m4/closedir.m4: New file.
7038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
7039         REPLACE_CLOSEDIR here.
7040         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
7041         readdir, rewinddir are declared.
7042         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
7043         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
7044         HAVE_REWINDDIR, HAVE_CLOSEDIR.
7045         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
7046         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
7047         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
7048         * modules/opendir: New file.
7049         * modules/readdir: New file.
7050         * modules/rewinddir: New file.
7051         * modules/closedir: New file.
7052         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
7053         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
7054         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
7055         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
7056         * NEWS: Mention the 'fchdir' change.
7057
7058 2011-09-11  Bruno Haible  <bruno@clisp.org>
7059
7060         asm-underscore.m4: Support for MSVC.
7061         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
7062         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
7063
7064 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
7065
7066         Doc about crypt functions.
7067         * doc/posix-functions/crypt.texi: Expand range of glibc versions
7068         needing for _GNU_SOURCE to get crypt.
7069         * doc/posix-functions/encrypt.texi: Likewise.
7070         * doc/posix-functions/setkey.texi: Likewise.
7071
7072 2011-09-11  Bruno Haible  <bruno@clisp.org>
7073
7074         doc: Update regarding MSVC 9.
7075         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
7076         tested".
7077         * doc/posix-functions/*.texi: Update with info about MSVC 9.
7078         * doc/posix-headers/*.texi: Likewise.
7079         * doc/pastposix-functions/*.texi: Likewise.
7080         * doc/glibc-functions/*.texi: Likewise.
7081         * doc/glibc-headers/*.texi: Likewise.
7082
7083 2011-09-11  Bruno Haible  <bruno@clisp.org>
7084
7085         unistd et al.: Don't assume <unistd.h> exists.
7086         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
7087         does not exist.
7088         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
7089         exist. But include <stdlib.h>.
7090         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
7091         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
7092         symlink() does not exist.
7093         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
7094         include <io.h> instead.
7095         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
7096         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
7097         include <direct.h> instead.
7098         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7100         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
7101         <io.h> instead.
7102         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
7103         correctly if the system does not have hard links.
7104         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
7105         <direct.h> instead.
7106         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
7107         it when looking for function declarations.
7108         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
7109         <direct.h> and <io.h> instead.
7110         * doc/posix-headers/unistd.texi: More details about MSVC problem.
7111
7112 2011-09-11  Bruno Haible  <bruno@clisp.org>
7113
7114         strcase: Support for MSVC.
7115         * modules/strcase (Status, Notice): Remove obsoletion mark.
7116         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
7117         * doc/posix-functions/strncasecmp.texi: Likewise.
7118
7119         strings: Don't assume <strings.h> exists.
7120         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
7121         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
7122         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7123         * doc/posix-headers/strings.texi: Mention the MSVC problem.
7124
7125 2011-09-11  Bruno Haible  <bruno@clisp.org>
7126
7127         dirent: Don't assume <dirent.h> exists.
7128         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
7129         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
7130         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7131         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
7132
7133 2011-09-11  Bruno Haible  <bruno@clisp.org>
7134
7135         Fix wint_t on MSVC.
7136         * lib/wchar.in.h (wint_t): On MSVC, override it.
7137         * lib/wctype.in.h (wint_t): Likewise.
7138         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
7139         MSVC.
7140         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
7141         * doc/posix-headers/wctype.texi: Likewise.
7142
7143 2011-09-11  Bruno Haible  <bruno@clisp.org>
7144
7145         sys_types: Fix typo.
7146         * lib/sys_types.in.h: Fix typo in comment.
7147         Reported by Paul Eggert.
7148
7149         Support for MSVC compiler: Ensure size_t gets defined.
7150         * modules/strings (Depends-on): Add 'sys_types'.
7151         * modules/sys_uio (Depends-on): Likewise.
7152         * lib/sys_uio.in.h: Update comment.
7153
7154         C++ tests for module 'sys_types'.
7155         * modules/sys_types-c++-tests: New file.
7156         * tests/test-sys_types-c++.cc: New file.
7157
7158         Tests for module 'sys_types'.
7159         * modules/sys_types-tests: New file.
7160         * tests/test-sys_types.c: New file.
7161
7162         New module 'sys_types'.
7163         * lib/sys_types.in.h: New file.
7164         * m4/sys_types_h.m4: New file.
7165         * modules/sys_types: New file.
7166         * doc/posix-headers/sys_types.texi: Mention the new module and the
7167         size_t problem on MSVC 9.
7168
7169 2011-09-11  Bruno Haible  <bruno@clisp.org>
7170
7171         Support for MSVC compiler: Avoid division by a literal 0.
7172         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7174         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7175         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7176         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7177         * tests/infinity.h: New file.
7178         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7179         on MSVC.
7180         * tests/test-ceilf1.c: Include infinity.h.
7181         (main): Use Infinityf.
7182         * tests/test-ceil1.c: Include infinity.h.
7183         (main): Use Infinityd.
7184         * tests/test-ceill.c: Include infinity.h.
7185         (main): Use Infinityl.
7186         * tests/test-dprintf-posix.c: Include infinity.h.
7187         (test_function): Use Infinityd.
7188         * tests/test-floorf1.c: Include infinity.h.
7189         (main): Use Infinityf.
7190         * tests/test-floor1.c: Include infinity.h.
7191         (main): Use Infinityd.
7192         * tests/test-floorl.c: Include infinity.h.
7193         (main): Use Infinityl.
7194         * tests/test-fprintf-posix.c: Include infinity.h.
7195         (test_function): Use Infinityd.
7196         * tests/test-frexp.c: Include infinity.h.
7197         (main): Use Infinityd.
7198         * tests/test-frexpl.c: Include infinity.h.
7199         (main): Use Infinityl.
7200         * tests/test-isfinite.c: Include infinity.h.
7201         (test_isfinitef): Use Infinityf.
7202         (test_isfinited): Use Infinityd.
7203         (test_isfinitel): Use Infinityl.
7204         * tests/test-isinf.c: Include infinity.h.
7205         (test_isinff): Use Infinityf.
7206         (test_isinfd): Use Infinityd.
7207         (test_isinfl): Use Infinityl.
7208         * tests/test-isnan.c: Include infinity.h.
7209         (test_float): Use Infinityf.
7210         (test_double): Use Infinityd.
7211         (test_long_double): Use Infinityl.
7212         * tests/test-isnanf.h: Include infinity.h.
7213         (main): Use Infinityf.
7214         * tests/test-isnand.h: Include infinity.h.
7215         (main): Use Infinityd.
7216         * tests/test-isnanl.h: Include infinity.h.
7217         (main): Use Infinityl.
7218         * tests/test-ldexpl.c: Include infinity.h.
7219         (main): Use Infinityl.
7220         * tests/test-printf-posix.h: Include infinity.h.
7221         (test_function): Use Infinityd.
7222         * tests/test-roundf1.c: Include infinity.h.
7223         (main): Use Infinityf.
7224         * tests/test-round1.c: Include infinity.h.
7225         (main): Use Infinityd.
7226         * tests/test-roundl.c: Include infinity.h.
7227         (main): Use Infinityl.
7228         * tests/test-signbit.c: Include infinity.h.
7229         (test_signbitf): Use Infinityf.
7230         (test_signbitd): Use Infinityd.
7231         (test_signbitl): Use Infinityl.
7232         * tests/test-snprintf-posix.h: Include infinity.h.
7233         (test_function): Use Infinityd, Infinityl.
7234         * tests/test-sprintf-posix.h: Include infinity.h.
7235         (test_function): Use Infinityd, Infinityl.
7236         * tests/test-truncf1.c: Include infinity.h.
7237         (main): Use Infinityf.
7238         * tests/test-trunc1.c: Include infinity.h.
7239         (main): Use Infinityd.
7240         * tests/test-truncl.c: Include infinity.h.
7241         (main): Use Infinityl.
7242         * tests/test-vasnprintf-posix.c: Include infinity.h.
7243         (test_function): Use Infinityd, Infinityl.
7244         * tests/test-vasprintf-posix.c: Include infinity.h.
7245         (test_function): Use Infinityd, Infinityl.
7246         * modules/ceilf-tests (Files): Add tests/infinity.h.
7247         * modules/ceil-tests (Files): Likewise.
7248         * modules/ceill-tests (Files): Likewise.
7249         * modules/dprintf-posix-tests (Files): Likewise.
7250         * modules/floorf-tests (Files): Likewise.
7251         * modules/floor-tests (Files): Likewise.
7252         * modules/floorl-tests (Files): Likewise.
7253         * modules/fprintf-posix-tests (Files): Likewise.
7254         * modules/frexp-tests (Files): Likewise.
7255         * modules/frexp-nolibm-tests (Files): Likewise.
7256         * modules/frexpl-tests (Files): Likewise.
7257         * modules/frexpl-nolibm-tests (Files): Likewise.
7258         * modules/isfinite-tests (Files): Likewise.
7259         * modules/isinf-tests (Files): Likewise.
7260         * modules/isnan-tests (Files): Likewise.
7261         * modules/isnanf-tests (Files): Likewise.
7262         * modules/isnanf-nolibm-tests (Files): Likewise.
7263         * modules/isnand-tests (Files): Likewise.
7264         * modules/isnand-nolibm-tests (Files): Likewise.
7265         * modules/isnanl-tests (Files): Likewise.
7266         * modules/isnanl-nolibm-tests (Files): Likewise.
7267         * modules/ldexpl-tests (Files): Likewise.
7268         * modules/printf-posix-tests (Files): Likewise.
7269         * modules/roundf-tests (Files): Likewise.
7270         * modules/round-tests (Files): Likewise.
7271         * modules/roundl-tests (Files): Likewise.
7272         * modules/signbit-tests (Files): Likewise.
7273         * modules/snprintf-posix-tests (Files): Likewise.
7274         * modules/sprintf-posix-tests (Files): Likewise.
7275         * modules/truncf-tests (Files): Likewise.
7276         * modules/trunc-tests (Files): Likewise.
7277         * modules/truncl-tests (Files): Likewise.
7278         * modules/vasnprintf-posix-tests (Files): Likewise.
7279         * modules/vasprintf-posix-tests (Files): Likewise.
7280         * modules/vdprintf-posix-tests (Files): Likewise.
7281         * modules/vfprintf-posix-tests (Files): Likewise.
7282         * modules/vprintf-posix-tests (Files): Likewise.
7283         * modules/vsnprintf-posix-tests (Files): Likewise.
7284         * modules/vsprintf-posix-tests (Files): Likewise.
7285         * modules/xprintf-posix-tests (Files): Likewise.
7286
7287 2011-09-11  Bruno Haible  <bruno@clisp.org>
7288
7289         Ensure pid_t gets defined.
7290         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7291         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7292         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7293         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7294         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7295         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7296         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7297         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7298         * tests/test-fcntl-h.c: Check that pid_t is defined.
7299         * tests/test-sched.c: Likewise.
7300         * tests/test-termios.c: Likewise.
7301         * tests/test-time.c: Likewise.
7302         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7303         * doc/posix-headers/signal.texi: Likewise.
7304         * doc/posix-headers/sys_types.texi: Likewise.
7305         * doc/posix-headers/time.texi: Likewise.
7306
7307 2011-09-11  Bruno Haible  <bruno@clisp.org>
7308
7309         acl: Fix compilation on Solaris 10 (older version).
7310         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7311         of ACE_EVERYONE.
7312         * lib/set-mode-acl.c (qset_acl): Likewise.
7313         Reported by Christian Jullien <eligis@orange.fr>.
7314
7315 2011-09-10  Bruno Haible  <bruno@clisp.org>
7316
7317         iconv, unsetenv: Add support for MSVC compiler.
7318         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7319         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7320
7321 2011-09-10  Bruno Haible  <bruno@clisp.org>
7322
7323         *printf: Add support for MSVC compiler.
7324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7325         handles the exception caused by the %n directive. When cross-compiling,
7326         guess no on native Windows.
7327         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7328         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7329         emulate it through vsnprintf.
7330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7331         * doc/posix-functions/dprintf.texi: Update documentation regarding
7332         MSVC 9.
7333         * doc/posix-functions/fprintf.texi: Likewise.
7334         * doc/posix-functions/printf.texi: Likewise.
7335         * doc/posix-functions/snprintf.texi: Likewise.
7336         * doc/posix-functions/sprintf.texi: Likewise.
7337         * doc/posix-functions/swprintf.texi: Likewise.
7338         * doc/posix-functions/vdprintf.texi: Likewise.
7339         * doc/posix-functions/vfprintf.texi: Likewise.
7340         * doc/posix-functions/vprintf.texi: Likewise.
7341         * doc/posix-functions/vsnprintf.texi: Likewise.
7342         * doc/posix-functions/vsprintf.texi: Likewise.
7343         * doc/glibc-functions/asprintf.texi: Likewise.
7344         * doc/glibc-functions/obstack_printf.texi: Likewise.
7345         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7346         * doc/glibc-functions/vasprintf.texi: Likewise.
7347
7348 2011-09-10  Bruno Haible  <bruno@clisp.org>
7349
7350         nocrash: Add support for native Windows.
7351         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7352
7353 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7354             Bruno Haible  <bruno@clisp.org>
7355
7356         absolute-header, include-next: Add support for MSVC compiler.
7357         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7358         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7359         directory separator in #line directives.
7360         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7361         recognize also backslash as directory separator in #line directives.
7362
7363 2011-09-08  Jim Meyering  <meyering@redhat.com>
7364
7365         maint.mk: mark the post-release commit log with "maint: " prefix
7366         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7367         one-line commit-log summary.
7368
7369 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7370             Bruno Haible  <bruno@clisp.org>
7371
7372         Doc about crypt functions.
7373         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7374         systems.
7375         * doc/posix-functions/encrypt.texi: Likewise.
7376         * doc/posix-functions/setkey.texi: Likewise.
7377
7378 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7379
7380         * lib/gc.h: Fix copyright header.
7381
7382 2011-09-07  Bruno Haible  <bruno@clisp.org>
7383
7384         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7386         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7387
7388 2011-09-07  Bruno Haible  <bruno@clisp.org>
7389
7390         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7391         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7392         * lib/freopen.c: Likewise.
7393         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7394         * lib/lstat.c: Likewise.
7395         * lib/stat.c: Likewise.
7396         * lib/open.c: Use different syntax for include of <fcntl.h>.
7397         * lib/openat.c: Include fcntl.h again, explicitly.
7398
7399 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7400
7401         parse-datetime: document the newly accepted format
7402         * doc/parse-datetime.texi (Combined date and time of day items):
7403         New section.
7404
7405 2011-09-06  Bruno Haible  <bruno@clisp.org>
7406
7407         acl: Fix a test failure on newer Solaris 10 with ZFS.
7408         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7409         ENOSYS as no ACL.
7410         Reported by Jim Meyering.
7411
7412 2011-09-06  Bruno Haible  <bruno@clisp.org>
7413
7414         acl: Update for AIX >= 5.3 with NFS.
7415         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7416         ENOSYS as no ACL.
7417
7418         acl: Fix a test failure on AIX >= 5.3 with NFS.
7419         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7420         as no ACL.
7421
7422 2011-09-06  Bruno Haible  <bruno@clisp.org>
7423
7424         acl: Fix a test failure on IRIX 6.5 with NFS.
7425         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7426         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7427         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7428         * lib/copy-acl.c (qcopy_acl): Likewise.
7429
7430 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7431
7432         openat: port to AIX 7.1 with large files
7433         AIX 7.1 does a "#define openat open64at" if large files are in use,
7434         so we can't simply #undef openat.  Use the orig_openat trick (similar
7435         to orig_open in lib/open.c) to work around the problem.  Problem
7436         reported by Kevin Brott for GNU tar, in the thread containing
7437         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7438         * lib/openat.c (__need_system_fcntl_h): Define first.
7439         Include <fcntl.h> and <sys/types.h> before undefining.
7440         (orig_openat) [HAVE_OPENAT]: New inline function.
7441         (openat) [HAVE_OPENAT]: Do not undef.
7442         (rpl_openat): Use orig_openat, not openat.
7443
7444 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7445             Bruno Haible  <bruno@clisp.org>
7446
7447         acl: Avoid errors on NonStop Kernel.
7448         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7449         ENOTSUP errors.
7450
7451 2011-09-05  Bruno Haible  <bruno@clisp.org>
7452
7453         acl: Clean up Solaris code.
7454         * lib/acl-internal.h: Remove no-op #if.
7455         * lib/file-has-acl.c: Likewise.
7456         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7457         * lib/copy-acl.c (qcopy_acl): Likewise.
7458
7459 2011-09-05  Bruno Haible  <bruno@clisp.org>
7460
7461         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7462         binaries built on the original Solaris 10.
7463         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7464         trivial.
7465
7466 2011-09-05  Bruno Haible  <bruno@clisp.org>
7467
7468         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7469         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7470         10.
7471         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7472         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7473         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7474         instead of acl_get, facl_get, acl_set, facl_set.
7475
7476 2011-09-05  Bruno Haible  <bruno@clisp.org>
7477
7478         copy-file: Try unit tests on more file systems.
7479         * tests/test-copy-file-1.sh: New file.
7480         * tests/test-copy-file-2.sh: New file.
7481         * modules/copy-file-tests (Files): Add them.
7482         (Makefile.am): Add them to TESTS.
7483
7484         acl: Try unit tests on more file systems.
7485         * tests/test-file-has-acl-1.sh: New file.
7486         * tests/test-file-has-acl-2.sh: New file.
7487         * tests/test-set-mode-acl-1.sh: New file.
7488         * tests/test-set-mode-acl-2.sh: New file.
7489         * tests/test-copy-acl-1.sh: New file.
7490         * tests/test-copy-acl-2.sh: New file.
7491         * modules/acl-tests (Files): Add them.
7492         (Makefile.am): Add them to TESTS.
7493
7494 2011-09-04  Bruno Haible  <bruno@clisp.org>
7495
7496         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7497         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7498         10.
7499         (OLD_ALLOW, OLD_DENY): New macros.
7500         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7501         ACE_ACCESS_ALLOWED_ACE_TYPE.
7502         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7503         ACE_ACCESS_DENIED_ACE_TYPE.
7504         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7505         (NEW_ACE_EXECUTE): Fix value.
7506         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7507         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7508         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7509         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7510         NEW_ACE_SYNCHRONIZE): New macros.
7511         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7512         instead of acl_fromtext, acl_set, facl_set.
7513         Fixes a coreutils/tests/cp/perm failure.
7514
7515 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7516
7517         openat: test for fstatat (..., 0) bug
7518         Further testing with tar suggests that fstatat (..., 0)
7519         does not work in general, on AIX 7.1; see
7520         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7521         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7522         replacement fstatat (which is what older AIX releases were using
7523         anyway).
7524         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7525         use is now changed to orig_fstatat.  This was probably the right
7526         thing to do anyway.
7527         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7528         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7529         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7530         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7531         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7532         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7533         if the bug is found.
7534
7535         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7536         This tests for another fstatat bug on AIX 7.1:
7537         fstatat (AT_FDCWD, ..., 0) does not work.  See
7538         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7539         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7540         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7541         (rpl_fstatat): Adjust so that it works around either (or both)
7542         bugs if present.
7543         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7544
7545 2011-09-03  Karl Berry  <karl@gnu.org>
7546
7547         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7548         in index entries.
7549
7550 2011-09-02  Bruno Haible  <bruno@clisp.org>
7551
7552         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7553         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7554         values of AR, ARFLAGS, RANLIB.
7555         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7556
7557 2011-09-02  Bruno Haible  <bruno@clisp.org>
7558
7559         Find 'ar' program that fits with --host argument.
7560         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7561
7562 2011-09-02  Bruno Haible  <bruno@clisp.org>
7563
7564         tests: init.sh: Support any non-GNU diff.
7565         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7566         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7567         Solaris 8.
7568
7569 2011-09-02  Bruno Haible  <bruno@clisp.org>
7570
7571         tests: init.sh: work also with any non-GNU diff that supports -u
7572         * tests/init.sh: Relax check for diff -u support.
7573         Rather than checking for GNU diff via --version, simply check
7574         for support for -u itself.  Useful at least on OpenBSD 4.9,
7575         AIX 7.1, IRIX 6.5, and Solaris 10.
7576
7577 2011-09-01  Bruno Haible  <bruno@clisp.org>
7578
7579         strtoimax, strtoumax: Document problem on HP-UX 11.
7580         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7581         * doc/posix-functions/strtoumax.texi: Likewise.
7582
7583 2011-09-01  Bruno Haible  <bruno@clisp.org>
7584
7585         strtoumax: Avoid link error on OSF/1 with DTK cc.
7586         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7587         defined as a function.
7588         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7589         strtoumax is defined, not whether it is declared.
7590
7591 2011-09-01  Bruno Haible  <bruno@clisp.org>
7592
7593         strtoimax: Avoid link error on OSF/1 with DTK cc.
7594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7595         defined as a function.
7596         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7597         strtoimax is defined, not whether it is declared.
7598
7599 2011-09-01  Bruno Haible  <bruno@clisp.org>
7600
7601         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7602         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7603         as a function.
7604         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7605         whether it is declared.
7606
7607 2011-09-01  Bruno Haible  <bruno@clisp.org>
7608
7609         imaxabs: Avoid link error on OSF/1 with DTK cc.
7610         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7611         as a function.
7612         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7613         whether it is declared.
7614
7615 2011-09-01  Bruno Haible  <bruno@clisp.org>
7616
7617         Tests for module 'strtoumax'.
7618         * modules/strtoumax-tests: New file.
7619         * tests/test-strtoumax.c: New file.
7620
7621         Tests for module 'strtoimax'.
7622         * modules/strtoimax-tests: New file.
7623         * tests/test-strtoimax.c: New file.
7624
7625         Tests for module 'imaxdiv'.
7626         * modules/imaxdiv-tests: New file.
7627         * tests/test-imaxdiv.c: New file.
7628
7629         Tests for module 'imaxabs'.
7630         * modules/imaxabs-tests: New file.
7631         * tests/test-imaxabs.c: New file.
7632
7633 2011-09-01  Bruno Haible  <bruno@clisp.org>
7634
7635         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7636         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7637         pthread_create.
7638
7639 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         openat: work around AIX 7.1 fstatat issue
7642         This should fix the problem that was not properly fixed
7643         in the previous change, dated 2011-08-30.
7644         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7645         __need_system_stat_h defined.
7646         (orig_fstatat) [HAVE_FSTATAT]: New function.
7647         (rpl_fstatat): Go back to the old way of doing things,
7648         except call orig_fstatat instead of fstatat.
7649         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7650         Remove unnecessary check whether fstatat fills in st_size etc.
7651
7652 2011-09-01  Bruno Haible  <bruno@clisp.org>
7653
7654         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7655         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7656         just include the system's header.
7657
7658 2011-08-31  Jim Meyering  <meyering@redhat.com>
7659
7660         tests: avoid spurious assertion failure in test-float.c on ppc64
7661         * tests/test-float.c (test_long_double): Comment out an assertion,
7662         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7663         with gcc-4.4.4.
7664
7665         maint: indent with spaces, not TABs
7666         I need to get in the habit of running gnulib's "make check".
7667         Both of these would have been caught.
7668         * m4/largefile.m4: Indent with spaces, not TABs.
7669         * lib/parse-datetime.y (iso_8601_time): Likewise.
7670         Spotted by Pádraig Brady.
7671
7672         test-parse-datetime.c: accommodate a relatively strict gcc warning
7673         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7674         to avoid a warning from gcc's -Werror=missing-declarations.
7675         Insert a few spaces-before-funcall-parenthesis.
7676
7677 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7678
7679         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7680         The parser now accepts ISO 8601 date-time strings with "T" as the
7681         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7682         with a space between the date and time strings.  Now it also parses
7683         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7684         variants like "2004-02-29T16:21:42.333-07:00"
7685         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7686         of day representation using the 'T' separator character.
7687         * doc/parse-datetime.texi (General date syntax): replace use of
7688         deprecated --iso-8601 option with --rfc-3339 in example of date
7689         command output formats that can be parsed.
7690         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7691         lib/parse-datetime.y.
7692         (gmt_offset): New function.
7693         (main): Add additional test cases to validate ISO8601 extended
7694         date and time of day parsing.
7695
7696 2011-08-31  Bruno Haible  <bruno@clisp.org>
7697
7698         freopen: Documentation.
7699         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7700         name.
7701         Reported by Claudio Bley <claudio.bley@gmail.com>.
7702
7703 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7704
7705         freopen: Don't crash if the filename argument is NULL.
7706         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7707         NULL.
7708
7709 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7710
7711         openat: work around AIX 7.1 fstatat bug
7712         Problem reported by Kevin Brott for GNU tar, in the thread containing
7713         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7714         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7715         FSTATAT_ST_SIZE_ETC_BROKEN.
7716         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7717         rpl_fstatat.
7718         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7719         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7720         AC_CHECK_FUNCS_ONCE for fstatat.
7721         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7722         fchmodat, mkdirat, openat and unlinkat.
7723
7724 2011-08-30  Bruno Haible  <bruno@clisp.org>
7725
7726         Avoid endless recursions if config.h includes some header files.
7727         * lib/fopen.c (__need_FILE): Define already before including config.h.
7728         * lib/freopen.c (__need_FILE): Likewise.
7729         * lib/open.c (__need_system_fcntl_h): Likewise.
7730         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7731         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7732         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7733
7734 2011-08-25  Karl Berry  <karl@gnu.org>
7735
7736         * config/srclist.txt (ylwrap): new try.
7737         * build-aux/ylwrap: new file.
7738
7739 2011-08-23  Bruno Haible  <bruno@clisp.org>
7740
7741         tmpdir: Use a good default directory on native Windows.
7742         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7743         (P_tmpdir): Default to _P_tmpdir on native Windows.
7744         (path_search): On native Windows, try the value returned by GetTempPath
7745         before trying P_tmpdir.
7746         * modules/tmpdir (Depends-on): Add pathmax.
7747         Suggested by John Darrington <john@darrington.wattle.id.au>.
7748
7749 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7750
7751         doc: fix typo in README-release
7752         * top/README-release: Capitalize first word of a sentence.
7753
7754 2011-08-19  Jim Meyering  <meyering@redhat.com>
7755
7756         fts: do not exhaust memory when processing million-entry directories
7757         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7758         directory would require about 256*N bytes of memory.  Thus, it was
7759         easy to construct a directory too large to be processed by any of
7760         those tools.  With this change, fts' maximum memory utilization is
7761         now limited to around 30MB.
7762         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7763         (fts_read): When we've processed the final entry (i.e., when
7764         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7765         using the parent entry to read any remaining entries.  Dispatch
7766         depending on what fts_build returns:
7767         - NULL+stop, aka failure: stop
7768         - NULL otherwise: move up in the dir hierarchy
7769         - non-NULL: handle this new entry
7770         (fts_build): Declare and use new local, continue_readdir.
7771         Prepare to be called from fts_read, when the entries
7772         from a partially-read directory have just been exhausted.
7773         In that case, we'll skip the opendir and instead use the parent's
7774         fts_dirp and derive dir_fd from that.
7775         Finally, in the readdir loop, if we read max_entries entries,
7776         exit the loop ensuring *not* to call closedir.  This is required
7777         so that fts_dirp can be reused on a subsequent call.
7778         Prompted by Ben England's report of memory exhaustion in find
7779         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7780
7781         maint: fts: move decl of `dp' down into while loop; split a long line
7782         * lib/fts.c (fts_build): No semantic change.
7783
7784         fts: add/use new struct member, fts_dirp
7785         We are about to use this to manage any directory with
7786         too many entries to read all of them into memory at once.
7787         To do that, we'll need to save the DIR* pointer in each
7788         affected FTSENT struct.
7789         * lib/fts_.h: Include <dirent.h>.
7790         (struct FTSENT) [fts_dirp]: New member.
7791         * lib/fts.c (closedir_and_clear): Define.
7792         Use it in place of closedir so that we are sure to
7793         clear the new fts_dirp member when done with it.
7794         (fts_alloc): Initialize the new member.
7795         (fts_lfree): Free, if needed.
7796
7797         maint: fts: give __opendir2 a new parameter and rename
7798         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7799         than surreptitiously using sole caller's "dir_fd".
7800         (fts_opendir): Rename from __opendir2.
7801
7802         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7803         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7804
7805         maint: fts.c: correct off-by-one indentation
7806         * lib/fts.c (fts_build): Correct indentation, change style
7807         of a couple of block comments, and bracing style.
7808
7809         maint: fts.c: move __opendir2 #define "up" out of function body
7810         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7811
7812         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7813         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7814         out for a long time and besides was useful only on BSD systems.
7815
7816 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7817
7818         regex: port to Stratus OpenVOS
7819         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7820         define to empty, rather than attempting nonportable optimizations.
7821         Problem reported by Paul Green in:
7822         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7823         and fix suggested by Eric Blake in:
7824         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7825
7826 2011-08-17  Eric Blake  <eblake@redhat.com>
7827
7828         getcwd: fix test failures on mingw
7829         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7830         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7831         test if long directory cannot be created, and allow mingw errno.
7832
7833         getcwd-lgpl: fix m4 to match relaxed test for BSD
7834         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7835         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7836         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7837         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7838         signature problem.
7839
7840         getcwd: fix compilation on mingw64
7841         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7842         getcwd.
7843         Reported by Marc-André Lureau.
7844
7845         pipe2: silence compiler warning
7846         * lib/pipe2.c (pipe2): Hide label if it is not used.
7847
7848 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7849
7850         relocatable-prog: fix link error
7851         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7852         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7853         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7854         into modules/relocatable-lib without noticing that
7855         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7856         also needs to build relocatable.c.
7857
7858 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7859
7860         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7862         shell code: it contained a 'break' that was not in a loop.
7863         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7864         via a shell-language loop; this may have been true in old Autoconf
7865         versions, but it's not true in Autoconf 2.68.  I found this bug
7866         when testing coreutils git on Solaris 8, whose shell complains
7867         about the syntax error.
7868
7869 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7870
7871         * lib/base64.c: Fix comment to reference RFC 4648.
7872         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7873         <gvtulder@gmail.com>.
7874
7875 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7876
7877         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7878
7879         po/Makefile.in.in: fix make -q problem
7880         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7881         rule, since there's no file named 'check-macro-version' and its
7882         use as a file breaks make -q.
7883         (all): Don't depend on check-macro-version.
7884         (CHECK_MACRO_VERSION): New macro.
7885         (stamp-po): Use it.
7886
7887         configmake: fix make -q problem
7888         * modules/configmake (configmake.h): Update configmake.h's time stamp
7889         even if the file does not change.  Otherwise, 'make -q' fails.
7890         Problem reported by Simon Josefsson in
7891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7892
7893 2011-08-11  Jim Meyering  <meyering@redhat.com>
7894
7895         git-version-gen: correct the advice in a comment
7896         * build-aux/git-version-gen: Correct comment.
7897         Don't recommend to list .tarball-version in .gitignore.
7898
7899 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7900
7901         base64: fix off-by-one buffer size bug
7902         Problem and (trivial) fix reported by Gijs van Tulder in
7903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7904         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7905         * tests/test-base64.c (main): Catch the bug.
7906
7907 2011-08-10  Eric Blake  <eblake@redhat.com>
7908
7909         closein: correct comments
7910         * lib/closein.c (close_stdin): Improve comments.
7911
7912 2011-08-09  Bruno Haible  <bruno@clisp.org>
7913
7914         More tests for 'fseeko'.
7915         * tests/test-fseeko3.c: New file, from Eric Blake.
7916         * tests/test-fseeko3.sh: New file.
7917         * modules/fseeko-tests (Files): Add them.
7918         (TESTS): Add test-fseeko3.sh.
7919         (check_PROGRAMS): Add test-fseeko3.
7920
7921 2011-08-09  Eric Blake  <eblake@redhat.com>
7922
7923         fseeko: remove unneeded hack
7924         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7925
7926         fseeko: fix bug on glibc
7927         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7928         Reported by John W. Eaton.
7929
7930 2011-08-08  Bruno Haible  <bruno@clisp.org>
7931
7932         unictype/base: Fix interoperability with preinstalled libunistring.
7933         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7934         Reported by Simon Josefsson.
7935
7936 2011-08-08  Bruno Haible  <bruno@clisp.org>
7937
7938         iswblank: Detect declaration correctly.
7939         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7940         AC_CHECK_DECLS invocation.
7941
7942 2011-08-08  Bruno Haible  <bruno@clisp.org>
7943
7944         tcgetsid: Detect declaration correctly.
7945         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7946         AC_CHECK_DECLS invocation.
7947         Reported by Simon Josefsson.
7948
7949 2011-08-08  Eric Blake  <eblake@redhat.com>
7950
7951         largefile: fix typo that regressed large file support
7952         * modules/largefile (configure.ac-early): Fix section name.
7953
7954 2011-08-06  Karl Berry  <karl@gnu.org>
7955
7956         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7957         a separate module.
7958
7959 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7960
7961         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7962         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7963         get prototype for free.
7964
7965 2011-08-04  Bruno Haible  <bruno@clisp.org>
7966
7967         Tests for module 'pathmax'.
7968         * modules/pathmax-tests: New file.
7969         * tests/test-pathmax.c: New file.
7970
7971         canonicalize-lgpl: Support larger filenames on the Hurd.
7972         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7973         Reported by Paul Eggert.
7974
7975         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7976         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7977         * lib/chdir-long.h: Include pathmax.h.
7978         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7979         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7980         (PATH_MAX): Remove code that is done by pathmax.h.
7981         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7982         * lib/tmpfile.c: Add a comment.
7983         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7984         * modules/chdir-long (Depends-on): Add pathmax.
7985         * modules/getcwd (Depends-on): Add pathmax.
7986         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7987         is not defined.
7988         * doc/posix-headers/limits.texi: Mention the pathmax module.
7989         * NEWS: Mention the change.
7990
7991 2011-08-02  Bruno Haible  <bruno@clisp.org>
7992
7993         pthread_sigmask: Actually use results of gl_THREADLIB.
7994         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7995         gl_THREADLIB, not gl_[]THREADLIB.
7996         Reported by Eric Blake.
7997
7998 2011-08-02  Jim Meyering  <meyering@redhat.com>
7999
8000         maint.mk: relax the default _gl_TS_function_match regexp
8001         * top/maint.mk (_gl_TS_function_match): Don't require at least one
8002         space between function name and "(" in an "extern" declaration.
8003         That would fail to match a decl with no space there: extern void foo();
8004
8005 2011-07-31  Iain Nicol  <iain@thenicols.net>
8006
8007         git-version-gen: document that EXTRA_DIST must include .version
8008         * build-aux/git-version-gen: In the how-to-use comment, document
8009         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
8010         will fail when run from an unpacked distribution tarball.
8011
8012 2011-08-01  Bruno Haible  <bruno@clisp.org>
8013
8014         wctype-h: Fix last change.
8015         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
8016         REPLACE_TOWLOWER to 0.
8017         Reported by Sam Steingold <sds@gnu.org>.
8018
8019 2011-07-31  Bruno Haible  <bruno@clisp.org>
8020
8021         frexpl: Update autoconf test.
8022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
8023         according to changes of 2011-06-20.
8024
8025 2011-07-31  Bruno Haible  <bruno@clisp.org>
8026
8027         sys_utsname: Add support for Minix.
8028         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
8029         <sys/utsname.h>.
8030         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8031         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8032
8033 2011-07-31  Bruno Haible  <bruno@clisp.org>
8034
8035         strings: Add support for Minix.
8036         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
8037         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8038         * doc/posix-headers/strings.texi: Document the Minix problem.
8039
8040 2011-07-31  Bruno Haible  <bruno@clisp.org>
8041
8042         wctype-h: Add support for Minix.
8043         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
8044         REPLACE_TOWLOWER.
8045         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
8046         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
8047         REPLACE_ISWCNTRL.
8048
8049 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
8050
8051         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
8052         This is a performance improvement for 64-bit hosts: it causes the
8053         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
8054
8055 2011-07-31  Bruno Haible  <bruno@clisp.org>
8056
8057         stdioext: Add support for Minix.
8058         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
8059         * lib/fpurge.c (fpurge): Likewise.
8060         * lib/freadahead.c (freadahead): Likewise.
8061         * lib/freadable.c (freadable): Likewise.
8062         * lib/freading.c (freading): Likewise.
8063         * lib/freadptr.c (freadptr): Likewise.
8064         * lib/freadseek.c (freadptrinc): Likewise.
8065         * lib/fseeko.c (rpl_fseeko): Likewise.
8066         * lib/fseterr.c (fseterr): Likewise.
8067         * lib/fwritable.c (fwritable): Likewise.
8068         * lib/fwriting.c (fwriting): Likewise.
8069         * lib/fflush.c (clear_ungetc_buffer): Update comment.
8070         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
8071
8072 2011-07-31  Bruno Haible  <bruno@clisp.org>
8073
8074         errno: Port to Minix.
8075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
8076         ECONNABORTED are defined.
8077         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
8078         GNULIB_defined_ECONNABORTED): New macros.
8079         * lib/strerror-override.h (strerror_override): Test also
8080         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
8081         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
8082         ECONNABORTED.
8083         * doc/posix-headers/errno.texi: Mention the Minix problem.
8084
8085 2011-07-31  Bruno Haible  <bruno@clisp.org>
8086
8087         Work around declaration collisions on Minix.
8088         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
8089         defined, set REPLACE_MBSINIT.
8090         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
8091         defined, set REPLACE_MBRTOWC.
8092         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
8093         set REPLACE_MBRLEN.
8094         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
8095         defined, set REPLACE_MBSRTOWCS.
8096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
8097         defined, set REPLACE_WCRTOMB.
8098         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
8099         defined, set REPLACE_WCSRTOMBS.
8100
8101 2011-07-31  Bruno Haible  <bruno@clisp.org>
8102
8103         Add support for Minix with ACK compiler.
8104         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
8105         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
8106         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
8107
8108 2011-07-31  Bruno Haible  <bruno@clisp.org>
8109
8110         Documentation about Minix.
8111         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
8112         * doc/glibc-headers/*.texi: Likewise.
8113         * doc/posix-functions/*.texi: Likewise.
8114         * doc/glibc-functions/*.texi: Likewise.
8115
8116 2011-07-31  Bruno Haible  <bruno@clisp.org>
8117
8118         snippet/warn-on-use: Fix indentation.
8119         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
8120
8121 2011-07-25  Jim Meyering  <meyering@redhat.com>
8122
8123         tests: test-update-copyright.sh: remove unnecessary "rm" commands
8124         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
8125         commands.
8126
8127 2011-07-27  Jim Meyering  <meyering@redhat.com>
8128
8129         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
8130         * top/maint.mk (gl_extract_significant_defines_): Now that
8131         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
8132         gnulib/lib/signal.in.h, and now that we recommend to
8133         define-if-undefined those two symbols in application code,
8134         we must filter them out of the "significant" list.
8135         This avoids a "make syntax-check" failure in coreutils.
8136
8137 2011-07-26  Eric Blake  <eblake@redhat.com>
8138
8139         warnings: add comments about previous patch
8140         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
8141         * m4/include_next.m4: Likewise.
8142         * m4/warn-on-use.m4: Likewise.
8143         * m4/warnings.m4: Likewise, and simplify use.
8144         Suggested by Stefano Lattarini.
8145
8146         include-next, warnings: support older autoconf
8147         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
8148         AS_VAR_PUSHDEF in a way that works with older autoconf.
8149         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8150         Reported by Daniel P. Berrange.
8151
8152 2011-07-25  Bruno Haible  <bruno@clisp.org>
8153
8154         fseek, ftell: Fix doc.
8155         * doc/posix-functions/fseek.texi: Reword statement about
8156         AC_SYS_LARGEFILE.
8157         * doc/posix-functions/ftell.texi: Likewise.
8158
8159 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8160             Bruno Haible  <bruno@clisp.org>
8161
8162         Add dependencies to the 'largefile' module.
8163         * modules/fopen (Depends-on): Add 'largefile'.
8164         * modules/freopen (Depends-on): Likewise.
8165         * modules/fseeko (Depends-on): Likewise.
8166         * modules/ftello (Depends-on): Likewise.
8167         * modules/glob (Depends-on): Likewise.
8168         * modules/lseek (Depends-on): Likewise.
8169         * modules/lstat (Depends-on): Likewise.
8170         * modules/mkostemp (Depends-on): Likewise.
8171         * modules/mkostemps (Depends-on): Likewise.
8172         * modules/mkstemp (Depends-on): Likewise.
8173         * modules/mkstemps (Depends-on): Likewise.
8174         * modules/open (Depends-on): Likewise.
8175         * modules/openat (Depends-on): Likewise.
8176         * modules/pread (Depends-on): Likewise.
8177         * modules/pwrite (Depends-on): Likewise.
8178         * modules/scandir (Depends-on): Likewise.
8179         * modules/stat (Depends-on): Likewise.
8180         * modules/tmpfile (Depends-on): Likewise.
8181         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8182         since the containing module now depends on the largefile module.
8183         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8184         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8185         off_t is fixed by gnulib.
8186         * doc/posix-functions/freopen.texi: Likewise.
8187         * doc/posix-functions/fseeko.texi: Likewise.
8188         * doc/posix-functions/fstatat.texi: Likewise.
8189         * doc/posix-functions/ftello.texi: Likewise.
8190         * doc/posix-functions/glob.texi: Likewise.
8191         * doc/posix-functions/lseek.texi: Likewise.
8192         * doc/posix-functions/lstat.texi: Likewise.
8193         * doc/posix-functions/mkstemp.texi: Likewise.
8194         * doc/posix-functions/open.texi: Likewise.
8195         * doc/posix-functions/openat.texi: Likewise.
8196         * doc/posix-functions/pread.texi: Likewise.
8197         * doc/posix-functions/pwrite.texi: Likewise.
8198         * doc/posix-functions/scandir.texi: Likewise.
8199         * doc/posix-functions/stat.texi: Likewise.
8200         * doc/posix-functions/tmpfile.texi: Likewise.
8201         * doc/glibc-functions/mkostemp.texi: Likewise.
8202         * doc/glibc-functions/mkostemps.texi: Likewise.
8203         * doc/glibc-functions/mkstemps.texi: Likewise.
8204
8205 2011-07-25  Bruno Haible  <bruno@clisp.org>
8206
8207         fcntl: Move AC_LIBOBJ invocation to module description.
8208         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8209         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8210
8211         fcntl: Remove call-in from fchdir.m4.
8212         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8214
8215         dup3: Remove potential call-in from fchdir.m4.
8216         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8218
8219         dup2: Move AC_LIBOBJ invocation to module description.
8220         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8221         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8222         Don't invoke AC_LIBOBJ.
8223         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8224
8225         dup2: Remove call-in from fchdir.m4.
8226         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8228
8229         fclose: Move AC_LIBOBJ invocation to module description.
8230         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8231         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8232         to 1.
8233         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8234
8235         fclose: Remove call-in from close.m4.
8236         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8237         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8238
8239         close: Move AC_LIBOBJ invocation to module description.
8240         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8241         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8242         1.
8243         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8244
8245         close: Remove call-in from fchdir.m4.
8246         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8248
8249         open: Move AC_LIBOBJ invocation to module description.
8250         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8251         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8252         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8253
8254         open: Remove call-in from fchdir.m4.
8255         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8257
8258         fchdir: Start to remove gl_REPLACE_* idiom.
8259         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8260         (gl_FUNC_FCHDIR): Invoke it.
8261
8262 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         * lib/ftell.c (ftell): Comment out cast.
8265
8266         close: use gl_REPLACE_FCLOSE only if defined
8267         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8268         is defined.  The close module doesn't depend on the fclose module
8269         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8271         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8272
8273 2011-07-24  Jim Meyering  <meyering@redhat.com>
8274
8275         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8276         * tests/test-select.h (test_function): Declare as "static".
8277
8278 2011-07-24  Bruno Haible  <bruno@clisp.org>
8279
8280         doc: Mention the effects of AC_SYS_LARGEFILE.
8281         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8282         on this function.
8283         * doc/posix-functions/aio_error.texi: Likewise.
8284         * doc/posix-functions/aio_fsync.texi: Likewise.
8285         * doc/posix-functions/aio_read.texi: Likewise.
8286         * doc/posix-functions/aio_return.texi: Likewise.
8287         * doc/posix-functions/aio_suspend.texi: Likewise.
8288         * doc/posix-functions/aio_write.texi: Likewise.
8289         * doc/posix-functions/fgetpos.texi: Likewise.
8290         * doc/posix-functions/fopen.texi: Likewise.
8291         * doc/posix-functions/freopen.texi: Likewise.
8292         * doc/posix-functions/fsetpos.texi: Likewise.
8293         * doc/posix-functions/fstatvfs.texi: Likewise.
8294         * doc/posix-functions/ftruncate.texi: Likewise.
8295         * doc/posix-functions/ftw.texi: Likewise.
8296         * doc/posix-functions/getrlimit.texi: Likewise.
8297         * doc/posix-functions/glob.texi: Likewise.
8298         * doc/posix-functions/lio_listio.texi: Likewise.
8299         * doc/posix-functions/lockf.texi: Likewise.
8300         * doc/posix-functions/mkstemp.texi: Likewise.
8301         * doc/posix-functions/mmap.texi: Likewise.
8302         * doc/posix-functions/nftw.texi: Likewise.
8303         * doc/posix-functions/openat.texi: Likewise.
8304         * doc/posix-functions/opendir.texi: Likewise.
8305         * doc/posix-functions/posix_fadvise.texi: Likewise.
8306         * doc/posix-functions/posix_fallocate.texi: Likewise.
8307         * doc/posix-functions/pread.texi: Likewise.
8308         * doc/posix-functions/pwrite.texi: Likewise.
8309         * doc/posix-functions/readdir.texi: Likewise.
8310         * doc/posix-functions/readdir_r.texi: Likewise.
8311         * doc/posix-functions/rewinddir.texi: Likewise.
8312         * doc/posix-functions/scandir.texi: Likewise.
8313         * doc/posix-functions/seekdir.texi: Likewise.
8314         * doc/posix-functions/setrlimit.texi: Likewise.
8315         * doc/posix-functions/statvfs.texi: Likewise.
8316         * doc/posix-functions/telldir.texi: Likewise.
8317         * doc/posix-functions/tmpfile.texi: Likewise.
8318         * doc/posix-functions/truncate.texi: Likewise.
8319         * doc/glibc-functions/fallocate.texi: Likewise.
8320         * doc/glibc-functions/fstatfs.texi: Likewise.
8321         * doc/glibc-functions/fts_children.texi: Likewise.
8322         * doc/glibc-functions/fts_read.texi: Likewise.
8323         * doc/glibc-functions/getdirentries.texi: Likewise.
8324         * doc/glibc-functions/mkostemp.texi: Likewise.
8325         * doc/glibc-functions/mkostemps.texi: Likewise.
8326         * doc/glibc-functions/mkstemps.texi: Likewise.
8327         * doc/glibc-functions/preadv.texi: Likewise.
8328         * doc/glibc-functions/pwritev.texi: Likewise.
8329         * doc/glibc-functions/sendfile.texi: Likewise.
8330         * doc/glibc-functions/statfs.texi: Likewise.
8331
8332 2011-07-24  Bruno Haible  <bruno@clisp.org>
8333
8334         doc: Fix typo.
8335         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8336
8337 2011-07-24  Bruno Haible  <bruno@clisp.org>
8338
8339         doc: Mention fsusage.
8340         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8341
8342 2011-07-24  Bruno Haible  <bruno@clisp.org>
8343
8344         doc: Mention new glibc headers and functions.
8345         * doc/glibc-headers/gshadow.texi: New file.
8346         * doc/glibc-functions/endsgent.texi: New file.
8347         * doc/glibc-functions/fgetsgent.texi: New file.
8348         * doc/glibc-functions/fgetsgent_r.texi: New file.
8349         * doc/glibc-functions/getsgent.texi: New file.
8350         * doc/glibc-functions/getsgent_r.texi: New file.
8351         * doc/glibc-functions/getsgnam.texi: New file.
8352         * doc/glibc-functions/getsgnam_r.texi: New file.
8353         * doc/glibc-functions/putsgent.texi: New file.
8354         * doc/glibc-functions/setsgent.texi: New file.
8355         * doc/glibc-functions/sgetsgent.texi: New file.
8356         * doc/glibc-functions/sgetsgent_r.texi: New file.
8357         * doc/glibc-functions/malloc_info.texi: New file.
8358         * doc/glibc-functions/preadv.texi: New file.
8359         * doc/glibc-functions/pwritev.texi: New file.
8360         * doc/glibc-functions/register_printf_modifier.texi: New file.
8361         * doc/glibc-functions/register_printf_specifier.texi: New file.
8362         * doc/glibc-functions/register_printf_type.texi: New file.
8363         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8364         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8365         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8366         * doc/glibc-functions/pthread_getname_np.texi: New file.
8367         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8368         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8369         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8370         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8371         * doc/glibc-functions/pthread_setname_np.texi: New file.
8372         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8373         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8374         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8375         * doc/glibc-functions/qsort_r.texi: New file.
8376         * doc/glibc-functions/quick_exit.texi: New file.
8377         * doc/glibc-functions/syncfs.texi: New file.
8378         * doc/gnulib.texi: Include them.
8379         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8380         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8381         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8382         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8383         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8384         * doc/glibc-functions/execvpe.texi: Likewise.
8385
8386 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         ftell: don't include <unistd.h>
8389         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8390         guaranteed to define off_t, and the ftell module depends on the
8391         stdio module.
8392
8393         ftell: do not assume wraparound signed arithmetic
8394         * lib/ftell.c: Include <limits.h>.
8395         (ftell): Don't assume wraparound signed arithmetic.
8396
8397 2011-07-24  Bruno Haible  <bruno@clisp.org>
8398
8399         close: No longer depend on module 'fclose'.
8400         * modules/close (Depends-on): Remove fclose.
8401         * NEWS: Mention the change.
8402         Suggested by Sam Steingold <sds@gnu.org>.
8403
8404 2011-07-24  Bruno Haible  <bruno@clisp.org>
8405
8406         fsusage: Enable large volume support on AIX >= 5.2.
8407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8408         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8409         instead of STAT_STATVFS.
8410         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8411
8412         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8414         f_blocks field only on MacOS X.
8415
8416         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8418         * modules/fsusage (Depends-on): Add largefile.
8419
8420 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         * README: Modernize discussion of signed integers.
8423         Assuming overflow wraparound is no longer safe.
8424         Mention ones' complement and signed magnitude.
8425
8426 2011-07-22  Bruno Haible  <bruno@clisp.org>
8427
8428         select tests, pselect tests: Refactor.
8429         * tests/test-select.h: New file, extracted from tests/test-select.c.
8430         (select_fn): New type.
8431         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8432         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8433         test_pipe): Add my_select argument.
8434         (test_function): Renamed from main. Add my_select argument.
8435         * tests/test-select.c: Move most code to tests/test-select.h. Include
8436         test-select.h.
8437         * modules/select-tests (Files): Add tests/test-select.h.
8438         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8439         (my_select, main): New functions.
8440         * modules/pselect-tests (Files): Add tests/test-select.h,
8441         tests/macros.h, tests/signature.h.
8442         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8443         (configure.ac): Check for <sys/wait.h>.
8444
8445 2011-07-22  Bruno Haible  <bruno@clisp.org>
8446
8447         sys_select tests: Check the signature of FD_*.
8448         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8449         signature tests from here...
8450         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8451         here.
8452         * modules/sys_select-tests (Files): Add tests/signature.h.
8453
8454 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8455
8456         largefile: new module, replacing large-inode
8457         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8458         * MODULES.html.sh: Add largefile, remove large-inode.
8459         * modules/largefile, m4/largefile.m4: New files.
8460         * modules/large-inode, m4/large-inode.m4: Remove.
8461
8462         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8464         implementations that use only 32 bits to count blocks.
8465         On typical hosts with 1024-byte blocks, this fails with file
8466         systems as small as 4 TiB.  Problem reported by Herb Wartens
8467         <http://debbugs.gnu.org/9140> and this should also fix a similar
8468         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8469
8470         large-inode: New module
8471         * MODULES.html.sh: Add it.
8472         * modules/large-inode, m4/large-inode.m4: New files.
8473
8474         extensions: Enable extensions on MacOS X 10.5 and later.
8475         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8476
8477 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8478
8479         file-has-acl: use acl_extended_file_nofollow if available
8480         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8481         (acl_extended_file): New macro.
8482         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8483         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8484
8485 2011-07-21  Bruno Haible  <bruno@clisp.org>
8486
8487         Declare system functions in a way that works with C++.
8488         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8489         declare fdopendir as extern "C".
8490         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8491         declare frexpl as extern "C".
8492         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8493         declare gai_strerror as extern "C".
8494         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8495         programs, declare gai_strerror as extern "C".
8496         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8497         declare getlogin_r as extern "C".
8498         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8499         as extern "C".
8500         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8501         declare ldexpl as extern "C".
8502         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8503         as extern "C".
8504         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8505         program, declare getmntinfo as extern "C".
8506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8507         stpncpy as extern "C".
8508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8509         program, declare __xpg_strerror_r as extern "C".
8510         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8511         strndup as extern "C".
8512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8513         declare memset and bzero as extern "C".
8514         Reported by Sam Steingold <sds@gnu.org>.
8515
8516 2011-07-12  Jim Meyering  <meyering@redhat.com>
8517
8518         maint.mk: prohibit inclusion of "verify.h" without use
8519         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8520
8521 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8522
8523         timer-time: A new module to check for timer_settime()
8524         * m4/timer_time.m4: Check for the posix function.
8525         * modules/timer-time: Add the new module.
8526         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8527         Mention it.
8528
8529 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8530             Bruno Haible  <bruno@clisp.org>
8531
8532         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8534         not defined, assume POSIX threads and look for pthread_sigmask in
8535         $LIBS, without changing $CPPFLAGS.
8536
8537 2011-07-19  Bruno Haible  <bruno@clisp.org>
8538
8539         strstr: Update cross-compilation guess.
8540         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8541         CPUs, guess no, in view of glibc
8542         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8543         Suggested by Eric Blake. Reported by Reuben Thomas.
8544
8545 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8546
8547         getopt-gnu: suppress core dumps from detection code
8548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8549         to suppress core dumps that may well occur on glibc systems.
8550         * modules/getopt-gnu: Depend on nocrash.
8551
8552 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8553
8554         pthread_sigmask: ensure usleep is declared
8555         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8556         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8557
8558 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8559
8560         doc: Document NonStop portability issues.
8561         * doc/posix-functions/sigaction.texi (sigaction):
8562         * doc/posix-headers/signal.texi (signal.h):
8563         Document NonStop.  See Joachim Schmitz in
8564         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8565
8566 2011-07-15  Bruno Haible  <bruno@clisp.org>
8567
8568         ffsl, ffsll: Avoid unportable behaviour.
8569         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8570
8571 2011-07-15  Bruno Haible  <bruno@clisp.org>
8572
8573         ffs: More tests.
8574         * tests/test-ffs.c (NBITS): New macro.
8575         (main): Add more tests.
8576         * tests/test-ffsl.c (NBITS): New macro.
8577         (main): Add more tests.
8578         * tests/test-ffsll.c (NBITS): New macro.
8579         (main): Add more tests.
8580
8581 2011-07-15  Eric Blake  <eblake@redhat.com>
8582
8583         ffsl, ffsll: new modules
8584         * modules/ffsl: New file.
8585         * modules/ffsll: Likewise.
8586         * m4/ffsl.m4: Likewise.
8587         * m4/ffsll.m4: Likewise.
8588         * lib/ffsl.c: Likewise.
8589         * lib/ffsl.h: Likewise.
8590         * lib/ffsll.c: Likewise.
8591         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8592         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8593         * modules/string (Makefile.am): Substitute witnesses.
8594         * lib/strings.in.h (ffsl, ffsll): Declare.
8595         * modules/ffsl-tests: New test file.
8596         * modules/ffsll-tests: Likewise.
8597         * tests/test-ffsl.c: Likewise.
8598         * tests/test-ffsll.c: Likewise.
8599         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8600         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8601         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8602
8603         ffs: fix m4 prerequisite
8604         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8605
8606         ffs: avoid undefined behavior
8607         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8608         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8609         Reported by Bruno Haible.
8610
8611 2011-07-12  Bruno Haible  <bruno@clisp.org>
8612
8613         pthread_sigmask: Rely on module 'threadlib'.
8614         * modules/pthread_sigmask (Depends-on): Add threadlib.
8615         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8616         is defined.
8617
8618 2011-07-12  Bruno Haible  <bruno@clisp.org>
8619
8620         regex: Depend on module 'strcase'.
8621         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8622
8623 2011-07-12  Jim Meyering  <meyering@redhat.com>
8624
8625         warn-on-use: fix typo in file name
8626         * modules/snippet/warn-on-use (Files): Correct file name:
8627         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8628
8629 2011-07-12  Bruno Haible  <bruno@clisp.org>
8630
8631         strings: Document module.
8632         * doc/posix-headers/strings.texi: Mention module 'strings'.
8633
8634 2011-07-12  Bruno Haible  <bruno@clisp.org>
8635
8636         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8637         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8638         (Files, Makefile.am): Update.
8639         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8640         * modules/stdlib (Depends-on): Update.
8641
8642 2011-07-12  Bruno Haible  <bruno@clisp.org>
8643
8644         * NEWS: Mention the changes.
8645
8646         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8647         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8648         (Files, Makefile.am): Update.
8649         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8650         * modules/arpa_inet (Depends-on): Update.
8651         * modules/ctype (Depends-on): Update.
8652         * modules/dirent (Depends-on): Update.
8653         * modules/fcntl-h (Depends-on): Update.
8654         * modules/glob (Depends-on): Update.
8655         * modules/iconv-h (Depends-on): Update.
8656         * modules/inttypes-incomplete (Depends-on): Update.
8657         * modules/langinfo (Depends-on): Update.
8658         * modules/locale (Depends-on): Update.
8659         * modules/math (Depends-on): Update.
8660         * modules/netdb (Depends-on): Update.
8661         * modules/poll-h (Depends-on): Update.
8662         * modules/pty (Depends-on): Update.
8663         * modules/search (Depends-on): Update.
8664         * modules/signal (Depends-on): Update.
8665         * modules/spawn (Depends-on): Update.
8666         * modules/stdio (Depends-on): Update.
8667         * modules/stdlib (Depends-on): Update.
8668         * modules/string (Depends-on): Update.
8669         * modules/strings (Depends-on): Update.
8670         * modules/sys_file (Depends-on): Update.
8671         * modules/sys_ioctl (Depends-on): Update.
8672         * modules/sys_select (Depends-on): Update.
8673         * modules/sys_socket (Depends-on): Update.
8674         * modules/sys_stat (Depends-on): Update.
8675         * modules/sys_time (Depends-on): Update.
8676         * modules/sys_times (Depends-on): Update.
8677         * modules/sys_utsname (Depends-on): Update.
8678         * modules/sys_wait (Depends-on): Update.
8679         * modules/termios (Depends-on): Update.
8680         * modules/time (Depends-on): Update.
8681         * modules/unistd (Depends-on): Update.
8682         * modules/wchar (Depends-on): Update.
8683         * modules/wctype-h (Depends-on): Update.
8684         * MODULES.html.sh (Support for building libraries and executables):
8685         Update.
8686
8687         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8688         * modules/snippet/unused-parameter: Renamed from
8689         modules/unused-parameter.
8690         (Files, Makefile.am): Update.
8691         * build-aux/snippet/unused-parameter.h: Renamed from
8692         build-aux/unused-parameter.h.
8693         * modules/selinux-h (Depends-on): Update.
8694         * modules/unistr/base (Depends-on): Update.
8695         * MODULES.html.sh (Core language properties): Update.
8696
8697         Rename module 'link-warning' to 'snippet/link-warning'.
8698         * modules/snippet/link-warning: Renamed from modules/link-warning.
8699         (Files, Makefile.am): Update.
8700         * build-aux/snippet/link-warning.h: Renamed from
8701         build-aux/link-warning.h.
8702         * MODULES.html.sh (Support for building libraries and executables):
8703         Update.
8704
8705         Rename module 'c++defs' to 'snippet/c++defs'.
8706         * modules/snippet/c++defs: Renamed from modules/c++defs.
8707         (Files, Makefile.am): Update.
8708         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8709         * modules/arpa_inet (Depends-on): Update.
8710         * modules/ctype (Depends-on): Update.
8711         * modules/dirent (Depends-on): Update.
8712         * modules/fcntl-h (Depends-on): Update.
8713         * modules/glob (Depends-on): Update.
8714         * modules/iconv-h (Depends-on): Update.
8715         * modules/langinfo (Depends-on): Update.
8716         * modules/locale (Depends-on): Update.
8717         * modules/math (Depends-on): Update.
8718         * modules/netdb (Depends-on): Update.
8719         * modules/poll-h (Depends-on): Update.
8720         * modules/pty (Depends-on): Update.
8721         * modules/search (Depends-on): Update.
8722         * modules/signal (Depends-on): Update.
8723         * modules/spawn (Depends-on): Update.
8724         * modules/stdio (Depends-on): Update.
8725         * modules/stdlib (Depends-on): Update.
8726         * modules/string (Depends-on): Update.
8727         * modules/strings (Depends-on): Update.
8728         * modules/sys_ioctl (Depends-on): Update.
8729         * modules/sys_select (Depends-on): Update.
8730         * modules/sys_socket (Depends-on): Update.
8731         * modules/sys_stat (Depends-on): Update.
8732         * modules/sys_time (Depends-on): Update.
8733         * modules/sys_wait (Depends-on): Update.
8734         * modules/termios (Depends-on): Update.
8735         * modules/time (Depends-on): Update.
8736         * modules/unistd (Depends-on): Update.
8737         * modules/wchar (Depends-on): Update.
8738         * modules/wctype-h (Depends-on): Update.
8739
8740         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8741         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8742         (Files, Makefile.am): Update.
8743         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8744         * modules/argv-iter (Depends-on): Update.
8745         * modules/arpa_inet (Depends-on): Update.
8746         * modules/dirent (Depends-on): Update.
8747         * modules/fcntl-h (Depends-on): Update.
8748         * modules/fnmatch (Depends-on): Update.
8749         * modules/getopt-posix (Depends-on): Update.
8750         * modules/glob (Depends-on): Update.
8751         * modules/iconv-h (Depends-on): Update.
8752         * modules/inttypes-incomplete (Depends-on): Update.
8753         * modules/locale (Depends-on): Update.
8754         * modules/math (Depends-on): Update.
8755         * modules/netdb (Depends-on): Update.
8756         * modules/search (Depends-on): Update.
8757         * modules/signal (Depends-on): Update.
8758         * modules/spawn (Depends-on): Update.
8759         * modules/stdio (Depends-on): Update.
8760         * modules/stdlib (Depends-on): Update.
8761         * modules/string (Depends-on): Update.
8762         * modules/strings (Depends-on): Update.
8763         * modules/sys_socket (Depends-on): Update.
8764         * modules/sys_stat (Depends-on): Update.
8765         * modules/sys_time (Depends-on): Update.
8766         * modules/sys_times (Depends-on): Update.
8767         * modules/sys_utsname (Depends-on): Update.
8768         * modules/time (Depends-on): Update.
8769         * modules/unistd (Depends-on): Update.
8770         * modules/wchar (Depends-on): Update.
8771         * MODULES.html.sh (Support for building libraries and executables):
8772         Update.
8773
8774 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8775
8776         Improvements on _Noreturn and related modules.
8777
8778         modules/_Exit-tests: test _Noreturn too
8779         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8780         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8781         (main): Use them.
8782
8783         stdnoreturn, stdnoreturn-tests: remove modules
8784         They're not needed here and a bit premature for use elsewhere.  See
8785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8786         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8787         * tests/test-stdnoreturn.c: Remove files.
8788         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8789         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8790         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8791         and using noreturn.
8792         * modules/openat, modules/sigpipe-die, modules/xalloc:
8793         * modules/xmemdup0, modules/xstrtol:
8794         Remove dependency on stdnoreturn.
8795
8796         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8797         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8798         Reparenthesize to avoid GCC warning.
8799         Support Microsoft's syntax.
8800         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8801
8802         _Noreturn-tests: remove module
8803         * modules/_Noreturn-tests: Remove.
8804         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8805         * tests/test-_Noreturn.c: Remove.
8806         * tests/test-stdnoreturn.c: Merge from the old
8807         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8808
8809 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8810
8811         _Noreturn, stdnoreturn, and related modules.
8812
8813         * top/maint.mk: Adjust to new noreturn support.
8814         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8815         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8816
8817         xalloc: use stdnoreturn.h
8818         * lib/xalloc.h: Include <stdnoreturn.h>.
8819         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8820         * modules/xalloc (Depends-on): Add stdnoreturn.
8821
8822         xstrtol: use stdnoreturn.h
8823         * lib/xstrtol.h: Include <stdnoreturn.h>.
8824         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8825         * modules/xstrtol (Depends-on): Add stdnoreturn.
8826
8827         xmemdup0: use stdnoreturn.h
8828         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8829         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8830         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8831
8832         sigpipe-die: use stdnoreturn.h
8833         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8834         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8835         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8836
8837         openat: use stdnoreturn.h
8838         * lib/openat.h: Include <stdnoreturn.h>.
8839         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8840         * modules/openat (Depends-on): Add stdnoreturn.
8841
8842         * lib/openat-die.c (openat_save_fail): Modernize comment.
8843
8844         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8845
8846         * lib/glthread/thread.h: Modernize comment.
8847
8848         obstack: use _Noreturn
8849         * lib/obstack.c (__attribute__): Remove macro.
8850         (print_and_abort): Use _Noreturn.
8851
8852         c-stack: use _Noreturn
8853         * lib/c-stack.c (die, overflow_handler, segv_handler):
8854         Use _Noreturn rather than __attribute__((noreturn)).
8855
8856         argmatch-tests, exclude_tests: use _Noreturn
8857         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8858         Remove.
8859         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8860
8861         stdlib: use _Noreturn
8862         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8863         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8864         * modules/stdlib (Depends-on): Add _Noreturn.
8865         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8866
8867         stdnoreturn-tests: new module
8868         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8869
8870         stdnoreturn: new module
8871         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8872         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8873
8874         _Noreturn-tests: new module
8875         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8876
8877         _Noreturn: new module
8878         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8879         New section, mentioning it.
8880         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8881
8882         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8883
8884 2011-07-11  Eric Blake  <eblake@redhat.com>
8885
8886         ffs: new module
8887         * modules/ffs: New file.
8888         * m4/ffs.m4: Likewise.
8889         * lib/ffs.c: Likewise.
8890         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8891         * modules/strings (Makefile.am): Substitute witness.
8892         (Depends-on): Add c++defs.
8893         * lib/strings.in.h (ffs): Declare.
8894         * modules/ffs-tests: New test file.
8895         * tests/test-ffs.c: Test new module.
8896         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8897         * doc/posix-functions/ffs.texi (ffs): Likewise.
8898
8899         regex: avoid compiler warning
8900         * lib/regex.c (includes): Include <strings.h>, for use of
8901         strcasecmp in regcomp.c.
8902         Reported by Joachim Schmitz.
8903
8904 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8905
8906         stdint: respect system's intmax_t if INTMAX_MAX
8907         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8908         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8909         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8910         long but int64_t is long long, and where we will clash with the
8911         system intmax_t if we override it.  See
8912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8913         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8914         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8915         similarly for UINTMAX_C.
8916
8917 2011-07-08  Bruno Haible  <bruno@clisp.org>
8918
8919         pthread_sigmask tests: Avoid a compiler warning.
8920         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8921         non-zero.
8922
8923         sigprocmask tests: A better way to avoid a compiler warning.
8924         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8925         (main): Complain if system() returns non-zero.
8926         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8927
8928 2011-07-08  Bruno Haible  <bruno@clisp.org>
8929
8930         pthread_sigmask: Work around IRIX bug.
8931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8932         bug.
8933         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8934         there may be unblocked pending signals.
8935         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8936
8937 2011-07-08  Bruno Haible  <bruno@clisp.org>
8938
8939         pthread_sigmask: Work around Cygwin bug.
8940         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8941         bug.
8942         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8943         the system's pthread_sigmask function.
8944         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8945
8946 2011-07-08  Bruno Haible  <bruno@clisp.org>
8947
8948         pthread_sigmask: Work around bug in single-threaded implementation.
8949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8950         FreeBSD, HP-UX, Solaris bug.
8951         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8952         * lib/pthread_sigmask.c: Include <stddef.h>.
8953         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8954         the system's pthread_sigmask function.
8955         * modules/pthread_sigmask (configure.ac): Invoke
8956         gl_PREREQ_PTHREAD_SIGMASK.
8957         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8958         HP-UX, Solaris.
8959
8960 2011-07-08  Eric Blake  <eblake@redhat.com>
8961
8962         test-sigprocmask: avoid compiler warning
8963         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8964         * tests/test-sigprocmask.c (main): Use it to silence warning.
8965         Reported by Jim Meyering.
8966
8967         test-snprintf: avoid compiler warning
8968         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8969         * tests/test-vsnprintf.c (main): Likewise.
8970         Reported by Jim Meyering.
8971
8972 2011-07-08  Bruno Haible  <bruno@clisp.org>
8973
8974         Tests for module 'pthread_sigmask'.
8975         * modules/pthread_sigmask-tests: New file.
8976         * tests/test-pthread_sigmask1.c: New file, based on
8977         tests/test-sigprocmask.c.
8978         * tests/test-pthread_sigmask2.c: New file.
8979
8980 2011-07-08  Jim Meyering  <meyering@redhat.com>
8981
8982         test-getopt.h: avoid warning about an unused variable
8983         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8984
8985 2011-07-07  Jim Meyering  <meyering@redhat.com>
8986
8987         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8988         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8989         now that it no longer contains leading TABs.
8990         Remove unused "url=FIXME" statement.
8991
8992 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8993
8994         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8996         When gl_THREADLIB is not in use, assume that the POSIX sematics
8997         are desired.  This is better for Emacs, which uses POSIX semantics
8998         on GNUish and/or POSIXish platforms, and does not use threads at
8999         all otherwise.
9000
9001         pthread_sigmask: fix typo when testing for libraries
9002         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9003         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
9004
9005 2011-07-08  Eric Blake  <eblake@redhat.com>
9006
9007         fts: introduce FTS_NOATIME
9008         * lib/fts_.h (FTS_NOATIME): New bit flag.
9009         (FTS_OPTIONMASK): Adjust.
9010         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
9011         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
9012
9013 2011-07-08  Bruno Haible  <bruno@clisp.org>
9014
9015         Tests for module 'thread'.
9016         * modules/thread-tests: New file.
9017         * tests/test-thread_self.c: New file.
9018         * tests/test-thread_create.cc: New file.
9019
9020 2011-07-08  Bruno Haible  <bruno@clisp.org>
9021
9022         thread: Avoid gcc warnings when using gl_thread_self().
9023         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
9024         'void *'.
9025         (gl_thread_self_pointer): Update.
9026
9027 2011-07-07  Bruno Haible  <bruno@clisp.org>
9028
9029         signal-c++-tests: Check declaration of pthread_sigmask.
9030         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
9031         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
9032         $(LIB_PTHREAD_SIGMASK).
9033
9034 2011-07-07  Bruno Haible  <bruno@clisp.org>
9035
9036         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
9037         * lib/signal.in.h (pthread_sigmask): Override if
9038         REPLACE_PTHREAD_SIGMASK is 1.
9039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9040         REPLACE_PTHREAD_SIGMASK.
9041         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
9042         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
9043         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
9044         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9045         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
9046
9047 2011-07-07  Bruno Haible  <bruno@clisp.org>
9048
9049         pthread_sigmask: Ensure declaration in <signal.h>.
9050         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
9051         include <pthread.h>.
9052         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
9053         problem.
9054
9055 2011-07-07  Bruno Haible  <bruno@clisp.org>
9056
9057         pthread_sigmask: Document the module.
9058         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
9059
9060 2011-07-07  Bruno Haible  <bruno@clisp.org>
9061
9062         pthread_sigmask: Follow gnulib conventions.
9063         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
9064         gl_PTHREAD_SIGMASK.
9065         * modules/pthread_sigmask (configure.ac): Update.
9066
9067 2011-07-07  Bruno Haible  <bruno@clisp.org>
9068
9069         pthread_sigmask: Make declaration C++ safe.
9070         * lib/signal.in.h: In two special conditions, just do an #include_next.
9071         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9072         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
9073         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9074         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9075         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
9076         not REPLACE_PTHREAD_MASK.
9077         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
9078         not REPLACE_PTHREAD_MASK.
9079         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9080
9081 2011-07-07  Bruno Haible  <bruno@clisp.org>
9082
9083         pthread_sigmask: Fix return value.
9084         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
9085         * lib/pthread_sigmask.c: New file.
9086         * modules/pthread_sigmask (Files): Add it.
9087         (configure.ac): Invoke AC_LIBOBJ.
9088
9089 2011-07-07  Eric Blake  <eblake@redhat.com>
9090
9091         getopt: more portable argv creation
9092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
9093         const, use char arrays rather than strings.
9094         Suggested by Paul Eggert.
9095
9096 2011-07-07  Bruno Haible  <bruno@clisp.org>
9097
9098         Tests for module 'sigprocmask'.
9099         * modules/sigprocmask-tests: New file.
9100         * tests/test-sigprocmask.c: New file.
9101
9102 2011-07-07  Bruno Haible  <bruno@clisp.org>
9103
9104         float tests: Tweak.
9105         * tests/test-float.c (main): Tweak skip message.
9106
9107 2011-07-07  Eric Blake  <eblake@redhat.com>
9108
9109         getopt: avoid compiler warning during configure
9110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
9111         assigning string literals to non-const pointer.
9112
9113         getopt-gnu: avoid crash in glibc getopt
9114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
9115         * tests/test-getopt.h (test_getopt): Enhance test.
9116         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9117         * doc/posix-functions/getopt.texi (getopt): Document it.
9118         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9119         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9120         Likewise.
9121
9122 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9123
9124         getopt: handle W; without long options in getopt [BZ #12922]
9125         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
9126         but no long options are defined, just return 'W'.
9127
9128 2011-07-07  Bruno Haible  <bruno@clisp.org>
9129
9130         Avoid literal tabs.
9131         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
9132         variable containing a tab instead of a literal tab.
9133         Reported by Jim Meyering.
9134
9135 2011-07-07  Bruno Haible  <bruno@clisp.org>
9136
9137         Comments.
9138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
9139
9140 2011-07-06  Bruno Haible  <bruno@clisp.org>
9141
9142         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
9143         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
9144         <winsock2.h>.
9145         (rpl_fd_isset, FD_ISSET): New definitions, copied from
9146         lib/sys_socket.in.h.
9147         (close, gethostname): Hide declarations from <winsock2.h>.
9148         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9149         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9150         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9151         (select): Don't override if gnulib's <sys/select.h> was already
9152         included.
9153         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9154         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9155         setsockopt, shutdown, select): Tweak indentation.
9156
9157 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9160         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9161         in an application that does not use the sys_select module.
9162
9163 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9164
9165         poll: do not return 0 on timeout=-1
9166         * lib/poll.c: Loop with yield if no events occured
9167
9168 2011-07-06  Eric Blake  <eblake@redhat.com>
9169
9170         pthread_sigmask: always replace when not using pthread
9171         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9172         replacement when using some threading other than pthread.  Fix
9173         logic bug.
9174
9175 2011-07-06  Bruno Haible  <bruno@clisp.org>
9176
9177         Comments.
9178         * m4/printf.m4: Update comments about mingw.
9179
9180 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9181
9182         sys_select: define sigset_t more portably
9183         * lib/sys_select.in.h: Always include <sys/types.h>, since
9184         we now need sigset_t and mingw defines it there.
9185         Include <signal.h> before split inclusion guard, to avoid
9186         mishaps on Solaris, whose <signal.h> eventually includes us.
9187         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9188         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9189         which come from ...
9190         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9191         gl_CHECK_TYPE_SIGSET_T.
9192         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9193         does the real work.
9194         * modules/sys_select (Depends-on): Add 'signal'.
9195
9196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9197         Suggested by Bruno Haible.
9198
9199         pselect: Use pthread_sigmask, not sigprocmask.
9200         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9201         multithreaded apps better than sigprocmask does.
9202         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9203         sigprocmask directly.
9204
9205 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9206
9207         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9208         Don't #undef,  since we don't need any underlying pselect.
9209         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9210         (Depends-on): Add select.
9211         (Link): Add $(LIBSOCKET).
9212         These changes suggested by Bruno Haible.
9213
9214         pselect: document better
9215         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9216         * doc/posix-functions/pselect.texi (pselect): Document new module.
9217
9218         pthread_sigmask: new module
9219         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9220         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9221         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9222         This is done only as a macro; I don't know how well that'll
9223         work for C++.  Move <sys/types.h> include before the include_next,
9224         to avoid mishap on Solaris.
9225         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9226         * modules/signal (Makefile.am): Substitute the check's results.
9227         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9228
9229         test-pselect: new module
9230         * modules/pselect-tests, tests/test-pselect.c: New files.
9231         * tests/test-select.c, tests/test-sys_select-c++.cc:
9232         If TEST_PSELECT is defined, test pselect instead of testing select.
9233
9234         * tests/test-sys_select.c (sigset_t): Test for it, too.
9235         Suggested by Bruno Haible.
9236
9237 2011-07-05  Eric Blake  <eblake@redhat.com>
9238
9239         snprintf: guarantee %1$d, for libintl
9240         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9241         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9242         * doc/posix-functions/snprintf.texi (snprintf): Update.
9243         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9244         * tests/test-snprintf.c (main): Enhance test.
9245         * tests/test-vsnprintf.c (main): Likewise.
9246
9247 2011-07-05  Jim Meyering  <meyering@redhat.com>
9248
9249         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9250         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9251         per Bruno's request, to accommodate this idiom (no space after "#")
9252         even when the function is inside an #if block:
9253         char *
9254         gets (char *s)
9255         #undef gets
9256         {
9257           ...
9258         }
9259
9260 2011-07-04  Jim Meyering  <meyering@redhat.com>
9261
9262         maint: indent with spaces, not TABs, and add a rule to check this
9263         * tests/test-userspec.c: Indent with spaces, not TABs.
9264         * tests/test-argp.c: Likewise.
9265         * tests/test-c-stack2.sh: Likewise.
9266         * tests/test-parse-duration.sh: Likewise
9267         * m4/strtod.m4: Likewise.
9268         * m4/alloca.m4: Likewise.
9269         * m4/pselect.m4: Likewise.
9270         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9271
9272 2011-07-03  Jim Meyering  <meyering@redhat.com>
9273
9274         maint.mk: correct omissions in prohibit_argmatch_without_use check
9275         This rule would mistakenly report that argmatch.h is included without
9276         use even when both the argmatch and invalid_arg macro were used.
9277         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9278         of argmatch and invalid_arg.
9279
9280 2011-07-03  Bruno Haible  <bruno@clisp.org>
9281
9282         Comments about EINTR.
9283         * lib/safe-read.h: Explain the purpose of this module.
9284         * lib/safe-write.h: Likewise.
9285         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9286         module.
9287         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9288         module.
9289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9290
9291 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9292
9293         xnanosleep: Rewrite to use new dtotimespec module.
9294         It has the conversion code that used to be in xnanosleep.
9295         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9296         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9297         (TIME_T_MAX): Remove.
9298         (xnanosleep): Rewrite in terms of dtotimespec.
9299         * modules/xnanosleep (Depends-on): Add dtotimespec.
9300         Remove intprops, stdbool.
9301
9302         timespec-add, timespec-sub: new modules
9303         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9304         * lib/timespec-add.c, lib/timespec-sub.c:
9305         * modules/timespec-add, modules/timespec-sub: New files.
9306
9307         dtotimespec: new module
9308         * lib/timespec.h (dtotimespec): New decl.
9309         * lib/dtotimespec.c, modules/dtotimespec: New files.
9310
9311         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9312
9313         pselect: new module
9314         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9315         (pselect): New decls.
9316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9317         since the standard pselect decl uses 'restrict'.
9318         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9319         HAVE_PSELECT, REPLACE_PSELECT.
9320         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9321         HAVE_PSELECT, REPLACE_PSELECT.
9322         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9323
9324         sys_select: don't depend on sys_socket
9325         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9327         This fix works on GNU and GNU-like platforms, but has not been tested
9328         on native Windows.
9329         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9331         gl_HEADER_SYS_SOCKET.
9332         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9333         gl_PREREQ_SYS_H_WINSOCK2.
9334
9335 2011-06-29  Eric Blake  <eblake@redhat.com>
9336
9337         pipe2: fix C89 compile problem
9338         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9339         Reported by Bruno Haible.
9340
9341         pipe, pipe2: don't corrupt fd on error
9342         * lib/pipe.c (pipe): Leave fd unchanged on error.
9343         * lib/pipe2.c (pipe2): Likewise.
9344         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9345         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9346
9347 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9348
9349         mmap-anon: do not use regular expressions inadvertently
9350         * m4/mmap-anon.m4: Remove trailing period from strings sought
9351         in the output.
9352
9353 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         nanosleep: fix integer overflow problem
9356         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9357         arithmetic wraps around on overflow.
9358
9359         nanosleep: simplify carrying
9360         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9361         first call to the underyling nanosleep, not for the last one.
9362         This doesn't fix any bugs, but it simplifies the computation of
9363         the remaining delay.  Found while auditing integer overflow issues.
9364
9365         dup2: remove test for existence of fcntl
9366         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9367         "#if HAVE_FCNTL", in the configure-time test program.
9368         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9369         and therefore speeds up "configure" a bit.  Found while
9370         adding the dup2 module to Emacs.
9371
9372 2011-06-24  Eric Blake  <eblake@redhat.com>
9373
9374         maint.mk: enhance useless header checks
9375         * top/maint.mk (_sc_header_without_use): Check both include
9376         styles.
9377         (sc_prohibit_assert_without_use)
9378         (sc_prohibit_close_stream_without_use)
9379         (sc_prohibit_getopt_without_use)
9380         (sc_prohibit_quotearg_without_use)
9381         (sc_prohibit_quote_without_use)
9382         (sc_prohibit_long_options_without_use)
9383         (sc_prohibit_inttostr_without_use)
9384         (sc_prohibit_ignore_value_without_use)
9385         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9386         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9387         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9388         (sc_prohibit_hash_pjw_without_use)
9389         (sc_prohibit_safe_read_without_use)
9390         (sc_prohibit_argmatch_without_use)
9391         (sc_prohibit_canonicalize_without_use)
9392         (sc_prohibit_root_dev_ino_without_use)
9393         (sc_prohibit_openat_without_use)
9394         (sc_prohibit_c_ctype_without_use)
9395         (sc_prohibit_signal_without_use)
9396         (sc_prohibit_stdio--_without_use)
9397         (sc_prohibit_stdio-safer_without_use)
9398         (sc_prohibit_strings_without_use)
9399         (sc_prohibit_intprops_without_use)
9400         (sc_prohibit_stddef_without_use)
9401         (sc_prohibit_xfreopen_without_use): Update clients.
9402
9403 2011-06-24  Jim Meyering  <meyering@redhat.com>
9404
9405         syntax-check: keep one maint.mk rule in sync with its header
9406         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9407         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9408         I prefer to avoid temporary files here, so use <(...), but that
9409         is not supported by /bin/sh, so...
9410         (SHELL): Define to /bin/bash.
9411
9412 2011-06-24  Eric Blake  <eblake@redhat.com>
9413
9414         maint.mk: update sc_prohibit_intprops_without_use
9415         * top/maint.mk (_intprops_names): Match recent changes.
9416
9417 2011-06-24  Bruno Haible  <bruno@clisp.org>
9418
9419         strerror-override: No-op tweak.
9420         * lib/strerror-override.h (strerror_override): Reorder conditions,
9421         for consistency with lib/strerror-override.c.
9422
9423 2011-06-23  Eric Blake  <eblake@redhat.com>
9424
9425         maint.mk: test further PATH_MAX issues
9426         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9427         (sc_prohibit_path_max_allocation): ...and also test alloca.
9428         Suggested by Jim Meyering.
9429
9430 2011-06-22  Eric Blake  <eblake@redhat.com>
9431
9432         maint.mk: add syntax-check to avoid char[PATH_MAX]
9433         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9434
9435         stat: be robust to PATH_MAX definition
9436         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9437         * modules/stat (Depends-on): Add verify.
9438
9439         link: work around IRIX bug
9440         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9441         * lib/link.c (rpl_link): Work around it.
9442         * tests/test-link.h (test_link): Enhance test.
9443         * doc/posix-functions/link.texi (link): Document the bug.
9444
9445         getopt: silence clang warning
9446         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9447         dereference.
9448         Reported by Gustavo Martin Domato.
9449
9450 2011-06-22  Jim Meyering  <meyering@redhat.com>
9451
9452         bootstrap: do not insert a blank line into each .gitignore file
9453         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9454
9455 2011-06-21  Eric Blake  <eblake@redhat.com>
9456
9457         perror: test for output mismatch
9458         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9459         perror on IRIX.
9460
9461         strerror_r: fix OpenBSD behavior on out-of-range
9462         * lib/strerror_r.c (strerror_r): Always use maximal string.
9463         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9464
9465         strerror_r: fix OpenBSD behavior on 0
9466         * lib/strerror-override.c (strerror_override): Also override 0
9467         when needed.
9468         * lib/strerror-override.h (strerror_override): Likewise.
9469         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9470         earlier.
9471         * lib/strerror_r.c (strerror_r): Likewise.
9472         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9473         behavior...
9474         (gl_FUNC_STRERROR_0): ...into new macro.
9475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9476         is overridden.
9477         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9478         * modules/strerror-override (Files): Add strerror.m4.
9479         (configure.ac): Also provide override for 0 when needed.
9480         * doc/posix-functions/strerror.texi (strerror): Document this.
9481         * doc/posix-functions/perror.texi (perror): Likewise.
9482
9483         perror: adjust array size
9484         * modules/perror (Depends-on): Add strerror-override.
9485         * lib/perror.c (perror): Use it to avoid magic number.
9486
9487         strerror-override: reduce size
9488         * lib/strerror-override.c (strerror_override): Use fewer lines.
9489
9490 2011-06-20  Bruno Haible  <bruno@clisp.org>
9491
9492         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9493         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9494
9495 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9496
9497         alloca: port to compilers that can optimize like GCC 4.6.0
9498         * lib/alloca.c (find_stack_direction): New signature, taken from
9499         Autoconf git.  This works with GCC 4.6.0.  This code should never
9500         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9501         be used with other compilers that optimize as well as GCC 4.6.0 does.
9502         (alloca): Adjust to new signature.
9503         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9504         New macro, which patches Autoconf in a similar way.
9505
9506         c-stack: stop worrying about stack direction
9507         * lib/c-stack.c (find_stack_direction): Remove.
9508         (segv_handler): Don't worry about stack direction growth, as it's
9509         too much of a pain to configure this correctly, given how compilers
9510         are optimizing-away our stack-growth detection code.  Instead, assume
9511         that any access to just before or just after the stack is OK.
9512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9513         Don't require AC_FUNC_ALLOCA; no longer needed.
9514
9515 2011-06-20  Eric Blake  <eblake@redhat.com>
9516
9517         test-stat: don't allocate PATH_MAX bytes
9518         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9519         PATH_MAX-sized buffer.
9520         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9521         * modules/stat-tests (Depends-on): Likewise.
9522         * tests/test-fstatat.c (includes): Drop pathmax.h.
9523         * tests/test-stat.c (includes): Likewise.
9524         Reported by Bruno Haible.
9525
9526 2011-06-20  Bruno Haible  <bruno@clisp.org>
9527
9528         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9529         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9530         * lib/float.c: New file.
9531         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9532         REPLACE_FLOAT_LDBL.
9533         * modules/float (Files): Add lib/float.c.
9534         (configure.ac): Invoke AC_LIBOBJ.
9535         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9536
9537 2011-06-20  Bruno Haible  <bruno@clisp.org>
9538
9539         Tests for module 'float'.
9540         * modules/float-tests: New file.
9541         * tests/test-float.c: New file.
9542
9543 2011-06-19  Bruno Haible  <bruno@clisp.org>
9544
9545         isinf: Coding style.
9546         * lib/isinf.c: Use GNU coding style.
9547
9548 2011-06-19  Bruno Haible  <bruno@clisp.org>
9549
9550         linkat test: Avoid test failure on AIX 7.1.
9551         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9552         * tests/test-link.h (test_link): Likewise.
9553
9554 2011-06-19  Bruno Haible  <bruno@clisp.org>
9555
9556         pread test: Avoid test failure on OpenBSD 4.9.
9557         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9558
9559 2011-06-19  Bruno Haible  <bruno@clisp.org>
9560
9561         sprintf-posix: Fix test failure on AIX 7.1.
9562         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9563         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9564         on AIX.
9565         * doc/posix-functions/fprintf.texi: Likewise.
9566         * doc/posix-functions/printf.texi: Likewise.
9567         * doc/posix-functions/snprintf.texi: Likewise.
9568         * doc/posix-functions/sprintf.texi: Likewise.
9569         * doc/posix-functions/vdprintf.texi: Likewise.
9570         * doc/posix-functions/vfprintf.texi: Likewise.
9571         * doc/posix-functions/vprintf.texi: Likewise.
9572         * doc/posix-functions/vsnprintf.texi: Likewise.
9573         * doc/posix-functions/vsprintf.texi: Likewise.
9574
9575 2011-06-19  Bruno Haible  <bruno@clisp.org>
9576
9577         roundl-ieee: Fix test failure on AIX 7.1.
9578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9579         * doc/posix-functions/roundl.texi: Mention problem with negative
9580         arguments.
9581
9582 2011-06-19  Bruno Haible  <bruno@clisp.org>
9583
9584         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9585         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9586         * doc/posix-functions/round.texi: Mention problem with negative
9587         arguments.
9588         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9589
9590 2011-06-19  Bruno Haible  <bruno@clisp.org>
9591
9592         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9594         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9595         * doc/posix-functions/roundf.texi: Mention problem with negative
9596         arguments.
9597         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9598
9599 2011-06-19  Bruno Haible  <bruno@clisp.org>
9600
9601         ceilf-ieee: Work around bug on MacOS X 10.5.
9602         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9603
9604         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9605         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9606         IEEE compliant, avoid compiler optimizations.
9607         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9608         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9609         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9610         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9611         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9612         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9613         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9614         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9615         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9616         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9617
9618 2011-06-19  Bruno Haible  <bruno@clisp.org>
9619
9620         ceilf-ieee: Work around bug on AIX 7.1.
9621         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9622         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9623
9624 2011-06-19  Bruno Haible  <bruno@clisp.org>
9625
9626         ceil-ieee: Work around bug on AIX 7.1.
9627         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9628         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9629
9630 2011-06-18  Bruno Haible  <bruno@clisp.org>
9631
9632         fsync test: Avoid test failure on MacOS X and AIX.
9633         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9634         EINVAL.
9635
9636 2011-06-18  Bruno Haible  <bruno@clisp.org>
9637
9638         openat, fdopendir tests: Fix link errors.
9639         * modules/openat-tests (Depends-on): Add progname.
9640         * modules/fdopendir-tests (Depends-on): Likewise.
9641         * tests/test-fchownat.c: Include progname.h.
9642         (main): Call set_program_name.
9643         * tests/test-fstatat.c: Include progname.h.
9644         (main): Call set_program_name.
9645         * tests/test-mkdirat.c: Include progname.h.
9646         (main): Call set_program_name.
9647         * tests/test-openat.c: Include progname.h.
9648         (main): Call set_program_name.
9649         * tests/test-unlinkat.c: Include progname.h.
9650         (main): Call set_program_name.
9651         * tests/test-fdopendir.c: Include progname.h.
9652         (main): Call set_program_name.
9653
9654 2011-06-18  Bruno Haible  <bruno@clisp.org>
9655
9656         Doc update.
9657         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9658         HP-UX.
9659         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9660
9661 2011-06-18  Bruno Haible  <bruno@clisp.org>
9662
9663         getcwd tests: Avoid compilation error on HP-UX 11.31.
9664         * modules/getcwd-tests (Depends-on): Add pathmax.
9665         * tests/test-getcwd.c: Include pathmax.h.
9666
9667 2011-06-18  Bruno Haible  <bruno@clisp.org>
9668
9669         isfinite, isinf: Fix link error on AIX 6 and 7.
9670         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9671         needed, also test the macro with a 'float' argument.
9672         * m4/isinf.m4 (gl_ISINF): Likewise.
9673
9674 2011-06-18  Bruno Haible  <bruno@clisp.org>
9675
9676         getloadavg: Don't clobber LIBS. Regression from previous commit.
9677         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9678         AC_CHECK_LIB from here...
9679         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9680         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9681         gl_func_getloadavg_done.
9682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9683
9684 2011-06-18  Bruno Haible  <bruno@clisp.org>
9685
9686         clean-temp: Improve documentation.
9687         * lib/clean-temp.h: Explain better how to use this module.
9688         Reported by John Darrington <john@darrington.wattle.id.au>.
9689
9690 2011-06-17  Bruno Haible  <bruno@clisp.org>
9691
9692         pread, pwrite: Avoid cc warning on AIX.
9693         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9694         (pwrite): Likewise.
9695
9696 2011-06-17  Bruno Haible  <bruno@clisp.org>
9697
9698         spawn-pipe tests: Fix link error.
9699         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9701
9702 2011-06-17  Bruno Haible  <bruno@clisp.org>
9703
9704         Tests: Remove unnecessary dependency.
9705         * modules/canonicalize-tests (Depends-on): Remove progname.
9706         * modules/chown-tests (Depends-on): Likewise.
9707         * modules/dirname-tests (Depends-on): Likewise.
9708         * modules/fdopendir-tests (Depends-on): Likewise.
9709         * modules/fdutimensat-tests (Depends-on): Likewise.
9710         * modules/hash-tests (Depends-on): Likewise.
9711         * modules/lchown-tests (Depends-on): Likewise.
9712         * modules/linkat-tests (Depends-on): Likewise.
9713         * modules/renameat-tests (Depends-on): Likewise.
9714         * modules/spawn-pipe-tests (Depends-on): Likewise.
9715         * modules/utimensat-tests (Depends-on): Likewise.
9716
9717 2011-06-17  Bruno Haible  <bruno@clisp.org>
9718
9719         spawn-pipe tests: Fix link error.
9720         * tests/test-spawn-pipe-child.c: Undefine fflush.
9721
9722 2011-06-17  Bruno Haible  <bruno@clisp.org>
9723
9724         Fix tests link errors.
9725         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9726         * modules/chown-tests (Makefile.am): Don't link test-chown with
9727         LIBINTL.
9728         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9729         LIBINTL.
9730         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9731         LIBINTL.
9732         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9733         LIBINTL.
9734
9735 2011-06-16  Bruno Haible  <bruno@clisp.org>
9736
9737         crypto/gc-sha1: Fix recent regression.
9738         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9739         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9740
9741         crypto/gc-md5: Fix recent regression.
9742         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9743
9744         crypto/gc-md4: Fix recent regression.
9745         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9746         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9747
9748         crypto/gc-arctwo: Fix recent regression.
9749         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9750         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9751
9752         crypto/gc-rijndael: Fix recent regression.
9753         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9754         (configure.ac): Invoke AC_LIBOBJ here.
9755         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9757
9758         crypto/gc-hmac-sha1: Fix recent regression.
9759         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9760         (configure.ac): Invoke AC_LIBOBJ here.
9761         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9763
9764         crypto/gc-hmac-md5: Fix recent regression.
9765         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9766         (configure.ac): Invoke AC_LIBOBJ here.
9767         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9769
9770         crypto/gc-des: Fix recent regression.
9771         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9772         (configure.ac): Invoke AC_LIBOBJ here.
9773         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9775
9776         crypto/gc-arcfour: Fix recent regression.
9777         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9778         (configure.ac): Invoke AC_LIBOBJ here.
9779         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9781
9782 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9783
9784         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9785         After the 2011-05-21 change, this macro requires
9786         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9787         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9788
9789 2011-06-16  Bruno Haible  <bruno@clisp.org>
9790
9791         fprintftime: Move AC_LIBOBJ invocations to module description.
9792         * m4/fprintftime.m4: Remove file.
9793         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9794         (configure.ac): Remove gl_FPRINTFTIME call.
9795         (Makefile.am): Augment lib_SOURCES.
9796         Reported by Jim Meyering.
9797
9798 2011-06-16  Bruno Haible  <bruno@clisp.org>
9799
9800         tmpfile-safer: Finish 2011-05-23 commit.
9801         * m4/stdio-safer.m4: Really remove file.
9802         Reported by Jim Meyering.
9803
9804 2011-06-16  Bruno Haible  <bruno@clisp.org>
9805
9806         syntax-check: Fix typo.
9807         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9808         printf-posix.m4.
9809         Reported by Jim Meyering.
9810
9811 2011-06-13  Jim Meyering  <meyering@redhat.com>
9812
9813         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9814         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9815
9816 2011-05-23  Bruno Haible  <bruno@clisp.org>
9817
9818         yesno: Move AC_LIBOBJ invocations to module description.
9819         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9820         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9821
9822 2011-05-23  Bruno Haible  <bruno@clisp.org>
9823
9824         xstrtol: Move AC_LIBOBJ invocations to module description.
9825         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9826         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9827
9828 2011-05-23  Bruno Haible  <bruno@clisp.org>
9829
9830         xstrtold: Move AC_LIBOBJ invocations to module description.
9831         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9832         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9833
9834 2011-05-23  Bruno Haible  <bruno@clisp.org>
9835
9836         xstrtod: Move AC_LIBOBJ invocations to module description.
9837         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9838         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9839
9840 2011-05-23  Bruno Haible  <bruno@clisp.org>
9841
9842         xnanosleep: Move AC_LIBOBJ invocations to module description.
9843         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9844         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9845
9846 2011-05-23  Bruno Haible  <bruno@clisp.org>
9847
9848         xgetcwd: Move AC_LIBOBJ invocations to module description.
9849         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9850         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9851
9852 2011-05-23  Bruno Haible  <bruno@clisp.org>
9853
9854         xalloc: Move AC_LIBOBJ invocations to module description.
9855         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9856         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9857
9858 2011-05-23  Bruno Haible  <bruno@clisp.org>
9859
9860         write-any-file: Move AC_LIBOBJ invocations to module description.
9861         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9862         invocation.
9863         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9864
9865 2011-05-23  Bruno Haible  <bruno@clisp.org>
9866
9867         utimens: Move AC_LIBOBJ invocations to module description.
9868         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9869         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9870
9871 2011-05-23  Bruno Haible  <bruno@clisp.org>
9872
9873         utimecmp: Move AC_LIBOBJ invocations to module description.
9874         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9875         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9876
9877 2011-05-23  Bruno Haible  <bruno@clisp.org>
9878
9879         userspec: Move AC_LIBOBJ invocations to module description.
9880         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9881         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9882
9883 2011-05-23  Bruno Haible  <bruno@clisp.org>
9884
9885         unlinkdir: Move AC_LIBOBJ invocations to module description.
9886         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9887         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9888
9889 2011-05-23  Bruno Haible  <bruno@clisp.org>
9890
9891         unistd-safer: Move AC_LIBOBJ invocations to module description.
9892         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9893         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9894
9895 2011-05-23  Bruno Haible  <bruno@clisp.org>
9896
9897         tempname: Move AC_LIBOBJ invocations to module description.
9898         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9899         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9900
9901 2011-05-23  Bruno Haible  <bruno@clisp.org>
9902
9903         strftime: Move AC_LIBOBJ invocations to module description.
9904         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9905         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9906
9907 2011-05-23  Bruno Haible  <bruno@clisp.org>
9908
9909         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9910         * m4/stdlib-safer.m4: Remove file.
9911         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9912         (configure.ac): Remove gl_STDLIB_SAFER call.
9913         (Makefile.am): Augment lib_SOURCES.
9914
9915 2011-05-23  Bruno Haible  <bruno@clisp.org>
9916
9917         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9918         * m4/stdio-safer.m4: Remove file.
9919         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9920         (configure.ac): Remove gl_TMPFILE_SAFER call.
9921         (Makefile.am): Augment lib_SOURCES.
9922
9923 2011-05-23  Bruno Haible  <bruno@clisp.org>
9924
9925         popen-safer: Move AC_LIBOBJ invocations to module description.
9926         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9927         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9928         (configure.ac): Remove gl_POPEN_SAFER call.
9929         (Makefile.am): Augment lib_SOURCES.
9930
9931 2011-05-23  Bruno Haible  <bruno@clisp.org>
9932
9933         freopen-safer: Move AC_LIBOBJ invocations to module description.
9934         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9935         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9936         (configure.ac): Remove gl_FREOPEN_SAFER call.
9937         (Makefile.am): Augment lib_SOURCES.
9938
9939 2011-05-23  Bruno Haible  <bruno@clisp.org>
9940
9941         fopen-safer: Move AC_LIBOBJ invocations to module description.
9942         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9943         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9944         (configure.ac): Remove gl_FOPEN_SAFER call.
9945         (Makefile.am): Augment lib_SOURCES.
9946
9947 2011-05-23  Bruno Haible  <bruno@clisp.org>
9948
9949         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9950         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9951         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9952
9953 2011-05-23  Bruno Haible  <bruno@clisp.org>
9954
9955         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9956         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9957         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9958
9959 2011-05-23  Bruno Haible  <bruno@clisp.org>
9960
9961         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9962         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9963         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9964
9965 2011-05-23  Bruno Haible  <bruno@clisp.org>
9966
9967         settime: Move AC_LIBOBJ invocations to module description.
9968         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9969         * modules/settime (Makefile.am): Augment lib_SOURCES.
9970
9971 2011-05-23  Bruno Haible  <bruno@clisp.org>
9972
9973         savedir: Move AC_LIBOBJ invocations to module description.
9974         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9975         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9976
9977 2011-05-23  Bruno Haible  <bruno@clisp.org>
9978
9979         save-cwd: Move AC_LIBOBJ invocations to module description.
9980         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9981         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9982
9983 2011-05-23  Bruno Haible  <bruno@clisp.org>
9984
9985         same: Move AC_LIBOBJ invocations to module description.
9986         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9987         * modules/same (Makefile.am): Augment lib_SOURCES.
9988
9989 2011-05-23  Bruno Haible  <bruno@clisp.org>
9990
9991         safe-write: Move AC_LIBOBJ invocations to module description.
9992         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9993         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9994         instead of gl_SAFE_WRITE.
9995         (Makefile.am): Augment lib_SOURCES.
9996
9997 2011-05-23  Bruno Haible  <bruno@clisp.org>
9998
9999         safe-read: Move AC_LIBOBJ invocations to module description.
10000         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
10001         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
10002         of gl_SAFE_READ.
10003         (Makefile.am): Augment lib_SOURCES.
10004
10005 2011-05-23  Bruno Haible  <bruno@clisp.org>
10006
10007         safe-alloc: Move AC_LIBOBJ invocations to module description.
10008         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
10009         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
10010
10011 2011-05-23  Bruno Haible  <bruno@clisp.org>
10012
10013         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
10014         * m4/rijndael.m4: Remove file.
10015         * modules/crypto/rijndael (Files): Remove it.
10016         (configure.ac): Remove gl_RIJNDAEL call.
10017         (Makefile.am): Augment lib_SOURCES.
10018
10019 2011-05-23  Bruno Haible  <bruno@clisp.org>
10020
10021         readtokens: Move AC_LIBOBJ invocations to module description.
10022         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
10023         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
10024
10025 2011-05-23  Bruno Haible  <bruno@clisp.org>
10026
10027         read-file: Move AC_LIBOBJ invocations to module description.
10028         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
10029         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
10030         of gl_FUNC_READ_FILE.
10031         (Makefile.am): Augment lib_SOURCES.
10032
10033 2011-05-23  Bruno Haible  <bruno@clisp.org>
10034
10035         quotearg: Move AC_LIBOBJ invocations to module description.
10036         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
10037         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
10038
10039 2011-05-23  Bruno Haible  <bruno@clisp.org>
10040
10041         quote: Move AC_LIBOBJ invocations to module description.
10042         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
10043         * modules/quote (Makefile.am): Augment lib_SOURCES.
10044
10045 2011-05-23  Bruno Haible  <bruno@clisp.org>
10046
10047         posixver: Move AC_LIBOBJ invocations to module description.
10048         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
10049         * modules/posixver (Makefile.am): Augment lib_SOURCES.
10050
10051 2011-05-23  Bruno Haible  <bruno@clisp.org>
10052
10053         posixtm: Move AC_LIBOBJ invocations to module description.
10054         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
10055         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
10056
10057 2011-05-23  Bruno Haible  <bruno@clisp.org>
10058
10059         physmem: Move AC_LIBOBJ invocations to module description.
10060         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
10061         * modules/physmem (Makefile.am): Augment lib_SOURCES.
10062
10063 2011-05-23  Bruno Haible  <bruno@clisp.org>
10064
10065         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
10066         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
10067         invocation.
10068         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
10069
10070 2011-05-23  Bruno Haible  <bruno@clisp.org>
10071
10072         mpsort: Move AC_LIBOBJ invocations to module description.
10073         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
10074         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
10075
10076 2011-05-23  Bruno Haible  <bruno@clisp.org>
10077
10078         modechange: Move AC_LIBOBJ invocations to module description.
10079         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
10080         * modules/modechange (Makefile.am): Augment lib_SOURCES.
10081
10082 2011-05-23  Bruno Haible  <bruno@clisp.org>
10083
10084         mkdir-p: Move AC_LIBOBJ invocations to module description.
10085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
10086         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
10087
10088 2011-05-23  Bruno Haible  <bruno@clisp.org>
10089
10090         mkancesdirs: Move AC_LIBOBJ invocations to module description.
10091         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
10092         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
10093
10094 2011-05-23  Bruno Haible  <bruno@clisp.org>
10095
10096         mgetgroups: Move AC_LIBOBJ invocations to module description.
10097         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
10098         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
10099
10100 2011-05-23  Bruno Haible  <bruno@clisp.org>
10101
10102         memxor: Move AC_LIBOBJ invocations to module description.
10103         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
10104         * modules/memxor (Makefile.am): Augment lib_SOURCES.
10105
10106 2011-05-23  Bruno Haible  <bruno@clisp.org>
10107
10108         memcoll: Move AC_LIBOBJ invocations to module description.
10109         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
10110         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
10111
10112 2011-05-23  Bruno Haible  <bruno@clisp.org>
10113
10114         memcasecmp: Move AC_LIBOBJ invocations to module description.
10115         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
10116         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
10117
10118 2011-05-23  Bruno Haible  <bruno@clisp.org>
10119
10120         crypto/md5: Move AC_LIBOBJ invocations to module description.
10121         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
10122         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
10123
10124 2011-05-23  Bruno Haible  <bruno@clisp.org>
10125
10126         crypto/md4: Move AC_LIBOBJ invocations to module description.
10127         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
10128         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
10129
10130 2011-05-23  Bruno Haible  <bruno@clisp.org>
10131
10132         crypto/md2: Move AC_LIBOBJ invocations to module description.
10133         * m4/md2.m4: Remove file.
10134         * modules/crypto/md2 (Files): Remove it.
10135         (configure.ac): Remove gl_MD2 call.
10136         (Makefile.am): Augment lib_SOURCES.
10137
10138 2011-05-23  Bruno Haible  <bruno@clisp.org>
10139
10140         long-options: Move AC_LIBOBJ invocations to module description.
10141         * m4/long-options.m4: Remove file.
10142         * modules/long-options (Files): Remove it.
10143         (configure.ac): Remove gl_LONG_OPTIONS call.
10144         (Makefile.am): Augment lib_SOURCES.
10145
10146 2011-05-23  Bruno Haible  <bruno@clisp.org>
10147
10148         i-ring: Move AC_LIBOBJ invocations to module description.
10149         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10150         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10151
10152 2011-05-23  Bruno Haible  <bruno@clisp.org>
10153
10154         idcache: Move AC_LIBOBJ invocations to module description.
10155         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10156         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10157
10158 2011-05-23  Bruno Haible  <bruno@clisp.org>
10159
10160         human: Move AC_LIBOBJ invocations to module description.
10161         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10162         * modules/human (Makefile.am): Augment lib_SOURCES.
10163
10164 2011-05-23  Bruno Haible  <bruno@clisp.org>
10165
10166         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10167         * m4/hmac-sha1.m4: Remove file.
10168         * modules/crypto/hmac-sha1 (Files): Remove it.
10169         (configure.ac): Remove gl_HMAC_SHA1 call.
10170         (Makefile.am): Augment lib_SOURCES.
10171
10172 2011-05-23  Bruno Haible  <bruno@clisp.org>
10173
10174         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10175         * m4/hmac-md5.m4: Remove file.
10176         * modules/crypto/hmac-md5 (Files): Remove it.
10177         (configure.ac): Remove gl_HMAC_MD5 call.
10178         (Makefile.am): Augment lib_SOURCES.
10179
10180 2011-05-23  Bruno Haible  <bruno@clisp.org>
10181
10182         hash: Move AC_LIBOBJ invocations to module description.
10183         * m4/hash.m4: Remove file.
10184         * modules/hash (Files): Remove it.
10185         (configure.ac): Remove gl_HASH call.
10186         (Makefile.am): Augment lib_SOURCES.
10187
10188 2011-05-23  Bruno Haible  <bruno@clisp.org>
10189
10190         hard-locale: Move AC_LIBOBJ invocations to module description.
10191         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10192         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10193
10194 2011-05-23  Bruno Haible  <bruno@clisp.org>
10195
10196         getugroups: Move AC_LIBOBJ invocations to module description.
10197         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10198         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10199
10200 2011-05-23  Bruno Haible  <bruno@clisp.org>
10201
10202         gettime: Move AC_LIBOBJ invocations to module description.
10203         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10204         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10205
10206 2011-05-23  Bruno Haible  <bruno@clisp.org>
10207
10208         getndelim2: Move AC_LIBOBJ invocations to module description.
10209         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10210         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10211
10212 2011-05-23  Bruno Haible  <bruno@clisp.org>
10213
10214         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10215         * m4/gc-pbkdf2-sha1.m4: Remove file.
10216         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10217         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10218         (Makefile.am): Augment lib_SOURCES.
10219
10220 2011-05-23  Bruno Haible  <bruno@clisp.org>
10221
10222         fts: Move AC_LIBOBJ invocations to module description.
10223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10224         * modules/fts (configure.ac): ... to here.
10225
10226 2011-05-23  Bruno Haible  <bruno@clisp.org>
10227
10228         file-type: Move AC_LIBOBJ invocations to module description.
10229         * m4/file-type.m4: Remove file.
10230         * modules/file-type (Files): Remove it.
10231         (configure.ac): Remove gl_FILE_TYPE call.
10232         (Makefile.am): Augment lib_SOURCES.
10233
10234 2011-05-23  Bruno Haible  <bruno@clisp.org>
10235
10236         filenamecat*: Respect rules for use of AC_LIBOBJ.
10237         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10238         Remove AC_LIBOBJ invocation.
10239         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10240         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10241
10242 2011-05-23  Bruno Haible  <bruno@clisp.org>
10243
10244         filemode: Move AC_LIBOBJ invocations to module description.
10245         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10246         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10247
10248 2011-05-23  Bruno Haible  <bruno@clisp.org>
10249
10250         openat-safer: Move AC_LIBOBJ invocations to module description.
10251         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10252         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10253
10254 2011-05-23  Bruno Haible  <bruno@clisp.org>
10255
10256         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10257         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10258         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10259
10260 2011-05-23  Bruno Haible  <bruno@clisp.org>
10261
10262         exclude: Move AC_LIBOBJ invocations to module description.
10263         * m4/exclude.m4: Remove file.
10264         * modules/exclude (Files): Remove it.
10265         (configure.ac): Remove gl_EXCLUDE call.
10266         (Makefile.am): Augment lib_SOURCES.
10267
10268 2011-05-23  Bruno Haible  <bruno@clisp.org>
10269
10270         dirname*: Respect rules for use of AC_LIBOBJ.
10271         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10272         invocations.
10273         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10274         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10275
10276 2011-05-23  Bruno Haible  <bruno@clisp.org>
10277
10278         dirent-safer: Move AC_LIBOBJ invocations to module description.
10279         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10280         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10281
10282 2011-05-23  Bruno Haible  <bruno@clisp.org>
10283
10284         crypto/des: Move AC_LIBOBJ invocations to module description.
10285         * m4/des.m4: Remove file.
10286         * modules/crypto/des (Files): Remove it.
10287         (configure.ac): Remove gl_DES call.
10288         (Makefile.am): Augment lib_SOURCES.
10289
10290 2011-05-23  Bruno Haible  <bruno@clisp.org>
10291
10292         cycle-check: Move AC_LIBOBJ invocations to module description.
10293         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10294         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10295
10296 2011-05-23  Bruno Haible  <bruno@clisp.org>
10297
10298         c-strtold: Move AC_LIBOBJ invocations to module description.
10299         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10300         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10301
10302 2011-05-23  Bruno Haible  <bruno@clisp.org>
10303
10304         c-strtod: Move AC_LIBOBJ invocations to module description.
10305         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10306         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10307
10308 2011-05-23  Bruno Haible  <bruno@clisp.org>
10309
10310         crc: Move AC_LIBOBJ invocations to module description.
10311         * m4/crc.m4: Remove file.
10312         * modules/crc (Files): Remove it.
10313         (configure.ac): Remove gl_CRC call.
10314         (Makefile.am): Augment lib_SOURCES.
10315
10316 2011-05-23  Bruno Haible  <bruno@clisp.org>
10317
10318         close-stream: Move AC_LIBOBJ invocations to module description.
10319         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10320         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10321
10322 2011-05-23  Bruno Haible  <bruno@clisp.org>
10323
10324         closeout: Move AC_LIBOBJ invocations to module description.
10325         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10326         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10327
10328 2011-05-23  Bruno Haible  <bruno@clisp.org>
10329
10330         closein: Move AC_LIBOBJ invocations to module description.
10331         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10332         * modules/closein (Makefile.am): Augment lib_SOURCES.
10333
10334 2011-05-23  Bruno Haible  <bruno@clisp.org>
10335
10336         cloexec: Move AC_LIBOBJ invocations to module description.
10337         * m4/cloexec.m4: Remove file.
10338         * modules/cloexec (Files): Remove it.
10339         (configure.ac): Remove gl_CLOEXEC call.
10340         (Makefile.am): Augment lib_SOURCES.
10341
10342 2011-05-23  Bruno Haible  <bruno@clisp.org>
10343
10344         check-version: Move AC_LIBOBJ invocations to module description.
10345         * m4/check-version.m4: Remove file.
10346         * modules/check-version (Files): Remove it.
10347         (configure.ac): Remove gl_CHECK_VERSION call.
10348         (Makefile.am): Augment lib_SOURCES.
10349
10350 2011-05-23  Bruno Haible  <bruno@clisp.org>
10351
10352         chdir-safer: Move AC_LIBOBJ invocations to module description.
10353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10354         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10355
10356 2011-05-23  Bruno Haible  <bruno@clisp.org>
10357
10358         canonicalize: Move AC_LIBOBJ invocations to module description.
10359         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10360         AC_LIBOBJ invocation.
10361         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10362
10363 2011-05-23  Bruno Haible  <bruno@clisp.org>
10364
10365         canon-host: Move AC_LIBOBJ invocations to module description.
10366         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10367         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10368         instead of gl_CANON_HOST.
10369         (Makefile.am): Augment lib_SOURCES.
10370
10371 2011-05-23  Bruno Haible  <bruno@clisp.org>
10372
10373         backupfile: Move AC_LIBOBJ invocations to module description.
10374         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10375         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10376
10377 2011-05-23  Bruno Haible  <bruno@clisp.org>
10378
10379         argmatch: Move AC_LIBOBJ invocations to module description.
10380         * m4/argmatch.m4: Remove file.
10381         * modules/argmatch (Files): Remove it.
10382         (configure.ac): Remove gl_ARGMATCH call.
10383         (Makefile.am): Augment lib_SOURCES.
10384
10385 2011-05-23  Bruno Haible  <bruno@clisp.org>
10386
10387         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10388         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10389         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10390
10391 2011-05-23  Bruno Haible  <bruno@clisp.org>
10392
10393         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10394         * m4/arcfour.m4: Remove file.
10395         * modules/crypto/arcfour (Files): Remove it.
10396         (configure.ac): Remove gl_ARCFOUR call.
10397         (Makefile.am): Augment lib_SOURCES.
10398
10399 2011-05-22  Bruno Haible  <bruno@clisp.org>
10400
10401         write: Move AC_LIBOBJ invocations to module description.
10402         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10403         * modules/write (configure.ac): ... to here.
10404
10405 2011-05-22  Bruno Haible  <bruno@clisp.org>
10406
10407         wmemset: Move AC_LIBOBJ invocations to module description.
10408         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10409         here...
10410         * modules/wmemset (configure.ac): ... to here.
10411
10412 2011-05-22  Bruno Haible  <bruno@clisp.org>
10413
10414         wmemmove: Move AC_LIBOBJ invocations to module description.
10415         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10416         here...
10417         * modules/wmemmove (configure.ac): ... to here.
10418
10419 2011-05-22  Bruno Haible  <bruno@clisp.org>
10420
10421         wmemcpy: Move AC_LIBOBJ invocations to module description.
10422         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10423         here...
10424         * modules/wmemcpy (configure.ac): ... to here.
10425
10426 2011-05-22  Bruno Haible  <bruno@clisp.org>
10427
10428         wmemcmp: Move AC_LIBOBJ invocations to module description.
10429         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10430         here...
10431         * modules/wmemcmp (configure.ac): ... to here.
10432
10433 2011-05-22  Bruno Haible  <bruno@clisp.org>
10434
10435         wmemchr: Move AC_LIBOBJ invocations to module description.
10436         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10437         here...
10438         * modules/wmemchr (configure.ac): ... to here.
10439
10440 2011-05-22  Bruno Haible  <bruno@clisp.org>
10441
10442         wcswidth: Move AC_LIBOBJ invocations to module description.
10443         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10444         here...
10445         * modules/wcswidth (configure.ac): ... to here.
10446
10447 2011-05-22  Bruno Haible  <bruno@clisp.org>
10448
10449         wcwidth: Respect rules for use of AC_LIBOBJ.
10450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10451         invocation from here...
10452         * modules/wcwidth (configure.ac): ... to here.
10453         (Depends-on): Update conditions.
10454
10455 2011-05-22  Bruno Haible  <bruno@clisp.org>
10456
10457         wctype: Move AC_LIBOBJ invocations to module description.
10458         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10459         invocation from here...
10460         * modules/wctype (configure.ac): ... to here.
10461         (Depends-on): Update conditions.
10462
10463 2011-05-22  Bruno Haible  <bruno@clisp.org>
10464
10465         wctrans: Move AC_LIBOBJ invocations to module description.
10466         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10467         invocation from here...
10468         * modules/wctrans (configure.ac): ... to here.
10469
10470 2011-05-22  Bruno Haible  <bruno@clisp.org>
10471
10472         wctomb: Move AC_LIBOBJ invocations to module description.
10473         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10474         invocations from here...
10475         * modules/wctomb (configure.ac): ... to here.
10476
10477 2011-05-22  Bruno Haible  <bruno@clisp.org>
10478
10479         wctob: Move AC_LIBOBJ invocations to module description.
10480         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10481         gl_PREREQ_WCTOB invocations from here...
10482         * modules/wctob (configure.ac): ... to here.
10483         (Depends-on): Update conditions.
10484
10485 2011-05-22  Bruno Haible  <bruno@clisp.org>
10486
10487         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10488         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10489         here...
10490         * modules/wcsxfrm (configure.ac): ... to here.
10491
10492 2011-05-22  Bruno Haible  <bruno@clisp.org>
10493
10494         wcstok: Move AC_LIBOBJ invocations to module description.
10495         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10496         * modules/wcstok (configure.ac): ... to here.
10497
10498 2011-05-22  Bruno Haible  <bruno@clisp.org>
10499
10500         wcsstr: Move AC_LIBOBJ invocations to module description.
10501         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10502         * modules/wcsstr (configure.ac): ... to here.
10503
10504 2011-05-22  Bruno Haible  <bruno@clisp.org>
10505
10506         wcsspn: Move AC_LIBOBJ invocations to module description.
10507         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10508         * modules/wcsspn (configure.ac): ... to here.
10509
10510 2011-05-22  Bruno Haible  <bruno@clisp.org>
10511
10512         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10513         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10514         gl_PREREQ_WCSRTOMBS invocations from here...
10515         * modules/wcsrtombs (configure.ac): ... to here.
10516
10517 2011-05-22  Bruno Haible  <bruno@clisp.org>
10518
10519         wcsrchr: Move AC_LIBOBJ invocations to module description.
10520         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10521         here...
10522         * modules/wcsrchr (configure.ac): ... to here.
10523
10524 2011-05-22  Bruno Haible  <bruno@clisp.org>
10525
10526         wcspbrk: Move AC_LIBOBJ invocations to module description.
10527         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10528         here...
10529         * modules/wcspbrk (configure.ac): ... to here.
10530
10531 2011-05-22  Bruno Haible  <bruno@clisp.org>
10532
10533         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10534         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10535         gl_PREREQ_WCSNRTOMBS invocations from here...
10536         * modules/wcsnrtombs (configure.ac): ... to here.
10537
10538 2011-05-22  Bruno Haible  <bruno@clisp.org>
10539
10540         wcsnlen: Move AC_LIBOBJ invocations to module description.
10541         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10542         here...
10543         * modules/wcsnlen (configure.ac): ... to here.
10544
10545 2011-05-22  Bruno Haible  <bruno@clisp.org>
10546
10547         wcsncpy: Move AC_LIBOBJ invocations to module description.
10548         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10549         here...
10550         * modules/wcsncpy (configure.ac): ... to here.
10551
10552 2011-05-22  Bruno Haible  <bruno@clisp.org>
10553
10554         wcsncmp: Move AC_LIBOBJ invocations to module description.
10555         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10556         here...
10557         * modules/wcsncmp (configure.ac): ... to here.
10558
10559 2011-05-22  Bruno Haible  <bruno@clisp.org>
10560
10561         wcsncat: Move AC_LIBOBJ invocations to module description.
10562         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10563         here...
10564         * modules/wcsncat (configure.ac): ... to here.
10565
10566 2011-05-22  Bruno Haible  <bruno@clisp.org>
10567
10568         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10569         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10570         from here...
10571         * modules/wcsncasecmp (configure.ac): ... to here.
10572
10573 2011-05-22  Bruno Haible  <bruno@clisp.org>
10574
10575         wcslen: Move AC_LIBOBJ invocations to module description.
10576         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10577         * modules/wcslen (configure.ac): ... to here.
10578
10579 2011-05-22  Bruno Haible  <bruno@clisp.org>
10580
10581         wcsdup: Move AC_LIBOBJ invocations to module description.
10582         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10583         * modules/wcsdup (configure.ac): ... to here.
10584
10585 2011-05-22  Bruno Haible  <bruno@clisp.org>
10586
10587         wcscspn: Move AC_LIBOBJ invocations to module description.
10588         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10589         here...
10590         * modules/wcscspn (configure.ac): ... to here.
10591
10592 2011-05-22  Bruno Haible  <bruno@clisp.org>
10593
10594         wcscpy: Move AC_LIBOBJ invocations to module description.
10595         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10596         * modules/wcscpy (configure.ac): ... to here.
10597
10598 2011-05-22  Bruno Haible  <bruno@clisp.org>
10599
10600         wcscoll: Move AC_LIBOBJ invocations to module description.
10601         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10602         here...
10603         * modules/wcscoll (configure.ac): ... to here.
10604
10605 2011-05-22  Bruno Haible  <bruno@clisp.org>
10606
10607         wcscmp: Move AC_LIBOBJ invocations to module description.
10608         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10609         * modules/wcscmp (configure.ac): ... to here.
10610
10611 2011-05-22  Bruno Haible  <bruno@clisp.org>
10612
10613         wcschr: Move AC_LIBOBJ invocations to module description.
10614         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10615         * modules/wcschr (configure.ac): ... to here.
10616
10617 2011-05-22  Bruno Haible  <bruno@clisp.org>
10618
10619         wcscat: Move AC_LIBOBJ invocations to module description.
10620         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10621         * modules/wcscat (configure.ac): ... to here.
10622
10623 2011-05-22  Bruno Haible  <bruno@clisp.org>
10624
10625         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10626         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10627         here...
10628         * modules/wcscasecmp (configure.ac): ... to here.
10629
10630 2011-05-22  Bruno Haible  <bruno@clisp.org>
10631
10632         wcrtomb: Move AC_LIBOBJ invocations to module description.
10633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10634         invocations from here...
10635         * modules/wcrtomb (configure.ac): ... to here.
10636
10637 2011-05-22  Bruno Haible  <bruno@clisp.org>
10638
10639         wcpncpy: Move AC_LIBOBJ invocations to module description.
10640         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10641         here...
10642         * modules/wcpncpy (configure.ac): ... to here.
10643
10644 2011-05-22  Bruno Haible  <bruno@clisp.org>
10645
10646         wcpcpy: Move AC_LIBOBJ invocations to module description.
10647         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10648         * modules/wcpcpy (configure.ac): ... to here.
10649
10650 2011-05-22  Bruno Haible  <bruno@clisp.org>
10651
10652         waitpid: Move AC_LIBOBJ invocations to module description.
10653         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10654         invocation from here...
10655         * modules/waitpid (configure.ac): ... to here.
10656
10657 2011-05-22  Bruno Haible  <bruno@clisp.org>
10658
10659         utimensat: Move AC_LIBOBJ invocations to module description.
10660         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10661         here...
10662         * modules/utimensat (configure.ac): ... to here.
10663
10664 2011-05-22  Bruno Haible  <bruno@clisp.org>
10665
10666         usleep: Move AC_LIBOBJ invocations to module description.
10667         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10668         here...
10669         * modules/usleep (configure.ac): ... to here.
10670
10671 2011-05-22  Bruno Haible  <bruno@clisp.org>
10672
10673         unlockpt: Move AC_LIBOBJ invocations to module description.
10674         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10675         gl_PREREQ_UNLOCKPT invocations from here...
10676         * modules/unlockpt (configure.ac): ... to here.
10677
10678 2011-05-22  Bruno Haible  <bruno@clisp.org>
10679
10680         unlink: Respect rules for use of AC_LIBOBJ.
10681         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10682         * modules/unlink (configure.ac): ... to here.
10683
10684 2011-05-22  Bruno Haible  <bruno@clisp.org>
10685
10686         uname: Move AC_LIBOBJ invocations to module description.
10687         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10689         here...
10690         * modules/uname (configure.ac): ... to here.
10691
10692 2011-05-22  Bruno Haible  <bruno@clisp.org>
10693
10694         ttyname_r: Move AC_LIBOBJ invocations to module description.
10695         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10696         gl_PREREQ_TTYNAME_R invocations from here...
10697         * modules/ttyname_r (configure.ac): ... to here.
10698
10699 2011-05-22  Bruno Haible  <bruno@clisp.org>
10700
10701         tsearch: Move AC_LIBOBJ invocations to module description.
10702         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10703         invocations from here...
10704         * modules/tsearch (configure.ac): ... to here.
10705
10706 2011-05-22  Bruno Haible  <bruno@clisp.org>
10707
10708         towctrans: Move AC_LIBOBJ invocations to module description.
10709         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10710         AC_LIBOBJ invocation from here...
10711         * modules/towctrans (configure.ac): ... to here.
10712
10713 2011-05-22  Bruno Haible  <bruno@clisp.org>
10714
10715         tmpfile: Move AC_LIBOBJ invocations to module description.
10716         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10717         invocations from here...
10718         * modules/tmpfile (configure.ac): ... to here.
10719
10720 2011-05-22  Bruno Haible  <bruno@clisp.org>
10721
10722         times: Move AC_LIBOBJ invocations to module description.
10723         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10724         * modules/times (configure.ac): ... to here.
10725
10726 2011-05-22  Bruno Haible  <bruno@clisp.org>
10727
10728         time_r: Move AC_LIBOBJ invocations to module description.
10729         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10730         invocations from here...
10731         * modules/time_r (configure.ac): ... to here.
10732
10733 2011-05-22  Bruno Haible  <bruno@clisp.org>
10734
10735         timegm: Move AC_LIBOBJ invocations to module description.
10736         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10737         invocations from here...
10738         * modules/timegm (configure.ac): ... to here.
10739
10740 2011-05-22  Bruno Haible  <bruno@clisp.org>
10741
10742         tcgetsid: Move AC_LIBOBJ invocations to module description.
10743         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10744         and gl_PREREQ_TCGETSID invocations from here...
10745         * modules/tcgetsid (configure.ac): ... to here.
10746         (Depends-on): Update conditions.
10747
10748 2011-05-22  Bruno Haible  <bruno@clisp.org>
10749
10750         symlinkat: Move AC_LIBOBJ invocations to module description.
10751         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10752         here...
10753         * modules/symlinkat (configure.ac): ... to here.
10754
10755 2011-05-22  Bruno Haible  <bruno@clisp.org>
10756
10757         symlink: Move AC_LIBOBJ invocations to module description.
10758         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10759         here...
10760         * modules/symlink (configure.ac): ... to here.
10761
10762 2011-05-22  Bruno Haible  <bruno@clisp.org>
10763
10764         strverscmp: Move AC_LIBOBJ invocations to module description.
10765         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10767         from here...
10768         * modules/strverscmp (configure.ac): ... to here.
10769
10770 2011-05-22  Bruno Haible  <bruno@clisp.org>
10771
10772         strtok_r: Move AC_LIBOBJ invocations to module description.
10773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10774         and gl_PREREQ_STRTOK_R invocations from here...
10775         * modules/strtok_r (configure.ac): ... to here.
10776         (Depends-on): Update conditions.
10777
10778 2011-05-22  Bruno Haible  <bruno@clisp.org>
10779
10780         strtoumax: Move AC_LIBOBJ invocations to module description.
10781         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10783         from here...
10784         * modules/strtoumax (configure.ac): ... to here.
10785
10786 2011-05-22  Bruno Haible  <bruno@clisp.org>
10787
10788         strtoimax: Move AC_LIBOBJ invocations to module description.
10789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10791         from here...
10792         * modules/strtoimax (configure.ac): ... to here.
10793
10794 2011-05-22  Bruno Haible  <bruno@clisp.org>
10795
10796         strtoull: Move AC_LIBOBJ invocations to module description.
10797         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10799         from here...
10800         * modules/strtoull (configure.ac): ... to here.
10801
10802 2011-05-22  Bruno Haible  <bruno@clisp.org>
10803
10804         strtoll: Move AC_LIBOBJ invocations to module description.
10805         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10807         here...
10808         * modules/strtoll (configure.ac): ... to here.
10809
10810 2011-05-22  Bruno Haible  <bruno@clisp.org>
10811
10812         strtoul: Move AC_LIBOBJ invocations to module description.
10813         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10814         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10815         * modules/strtoul (configure.ac): ... to here.
10816
10817 2011-05-22  Bruno Haible  <bruno@clisp.org>
10818
10819         strtol: Move AC_LIBOBJ invocations to module description.
10820         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10821         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10822         * modules/strtol (configure.ac): ... to here.
10823
10824 2011-05-22  Bruno Haible  <bruno@clisp.org>
10825
10826         strtod: Move AC_LIBOBJ invocations to module description.
10827         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10828         invocations from here...
10829         * modules/strtod (configure.ac): ... to here.
10830
10831 2011-05-22  Bruno Haible  <bruno@clisp.org>
10832
10833         strstr*: Move AC_LIBOBJ invocations to module description.
10834         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10835         invocations from here...
10836         * modules/strstr-simple (configure.ac): ... to here.
10837         * modules/strstr (configure.ac): ... and here.
10838
10839 2011-05-22  Bruno Haible  <bruno@clisp.org>
10840
10841         strsignal: Move AC_LIBOBJ invocations to module description.
10842         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10843         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10844         * modules/strsignal (configure.ac): ... to here.
10845         (Depends-on): Update conditions.
10846
10847 2011-05-22  Bruno Haible  <bruno@clisp.org>
10848
10849         strsep: Move AC_LIBOBJ invocations to module description.
10850         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10852         here...
10853         * modules/strsep (configure.ac): ... to here.
10854
10855 2011-05-22  Bruno Haible  <bruno@clisp.org>
10856
10857         strptime: Move AC_LIBOBJ invocations to module description.
10858         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10859         gl_PREREQ_STRPTIME invocations from here...
10860         * modules/strptime (configure.ac): ... to here.
10861
10862 2011-05-22  Bruno Haible  <bruno@clisp.org>
10863
10864         strpbrk: Move AC_LIBOBJ invocations to module description.
10865         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10867         here...
10868         * modules/strpbrk (configure.ac): ... to here.
10869
10870 2011-05-22  Bruno Haible  <bruno@clisp.org>
10871
10872         strnlen: Move AC_LIBOBJ invocations to module description.
10873         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10874         invocations from here...
10875         * modules/strnlen (configure.ac): ... to here.
10876
10877 2011-05-22  Bruno Haible  <bruno@clisp.org>
10878
10879         strndup: Move AC_LIBOBJ invocations to module description.
10880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10881         invocations from here...
10882         * modules/strndup (configure.ac): ... to here.
10883         (Depends-on): Update conditions.
10884
10885 2011-05-22  Bruno Haible  <bruno@clisp.org>
10886
10887         strncat: Move AC_LIBOBJ invocations to module description.
10888         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10889         invocations from here...
10890         * modules/strncat (configure.ac): ... to here.
10891
10892 2011-05-22  Bruno Haible  <bruno@clisp.org>
10893
10894         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10895         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10896         invocations from here...
10897         * modules/strdup (configure.ac): ... to here.
10898         * modules/strdup-posix (configure.ac): ... and here.
10899
10900 2011-05-22  Bruno Haible  <bruno@clisp.org>
10901
10902         strcspn: Move AC_LIBOBJ invocations to module description.
10903         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10905         here...
10906         * modules/strcspn (configure.ac): ... to here.
10907
10908 2011-05-22  Bruno Haible  <bruno@clisp.org>
10909
10910         strchrnul: Move AC_LIBOBJ invocations to module description.
10911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10912         gl_PREREQ_STRCHRNUL invocations from here...
10913         * modules/strchrnul (configure.ac): ... to here.
10914
10915 2011-05-22  Bruno Haible  <bruno@clisp.org>
10916
10917         strcasestr*: Move AC_LIBOBJ invocations to module description.
10918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10919         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10920         * modules/strcasestr-simple (configure.ac): ... to here.
10921         * modules/strcasestr (configure.ac): ... and here.
10922
10923 2011-05-22  Bruno Haible  <bruno@clisp.org>
10924
10925         strcase: Move AC_LIBOBJ invocations to module description.
10926         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10927         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10928         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10929         gl_PREREQ_STRNCASECMP invocations from here...
10930         * modules/strcase (configure.ac): ... to here.
10931
10932 2011-05-22  Bruno Haible  <bruno@clisp.org>
10933
10934         stpncpy: Move AC_LIBOBJ invocations to module description.
10935         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10936         here...
10937         * modules/stpncpy (configure.ac): ... to here.
10938
10939 2011-05-22  Bruno Haible  <bruno@clisp.org>
10940
10941         stpcpy: Move AC_LIBOBJ invocations to module description.
10942         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10944         here...
10945         * modules/stpcpy (configure.ac): ... to here.
10946
10947 2011-05-21  Bruno Haible  <bruno@clisp.org>
10948
10949         stat: Move AC_LIBOBJ invocations to module description.
10950         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10951         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10952         here...
10953         * modules/stat (configure.ac): ... to here.
10954
10955 2011-05-21  Bruno Haible  <bruno@clisp.org>
10956
10957         sleep: Move AC_LIBOBJ invocations to module description.
10958         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10959         * modules/sleep (configure.ac): ... to here.
10960
10961 2011-05-21  Bruno Haible  <bruno@clisp.org>
10962
10963         signbit: Move AC_LIBOBJ invocations to module description.
10964         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10965         * modules/signbit (configure.ac): ... to here.
10966
10967 2011-05-21  Bruno Haible  <bruno@clisp.org>
10968
10969         sigprocmask: Move AC_LIBOBJ invocations to module description.
10970         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10971         gl_PREREQ_SIGPROMASK invocations from here...
10972         * modules/sigprocmask (configure.ac): ... to here.
10973
10974 2011-05-21  Bruno Haible  <bruno@clisp.org>
10975
10976         sigaction: Move AC_LIBOBJ invocations to module description.
10977         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10978         gl_PREREQ_SIGACTION invocations from here...
10979         * modules/sigaction (configure.ac): ... to here.
10980
10981 2011-05-21  Bruno Haible  <bruno@clisp.org>
10982
10983         sig2str: Move AC_LIBOBJ invocations to module description.
10984         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10985         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10986         here...
10987         * modules/sig2str (configure.ac): ... to here.
10988
10989 2011-05-21  Bruno Haible  <bruno@clisp.org>
10990
10991         setlocale: Move AC_LIBOBJ invocations to module description.
10992         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10993         gl_PREREQ_SETLOCALE invocations from here...
10994         * modules/setlocale (configure.ac): ... to here.
10995
10996 2011-05-21  Bruno Haible  <bruno@clisp.org>
10997
10998         unsetenv: Move AC_LIBOBJ invocations to module description.
10999         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
11000         and gl_PREREQ_UNSETENV invocations from here...
11001         * modules/unsetenv (configure.ac): ... to here.
11002         (Depends-on): Update.
11003
11004 2011-05-21  Bruno Haible  <bruno@clisp.org>
11005
11006         setenv: Move AC_LIBOBJ invocations to module description.
11007         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
11008         here...
11009         * modules/setenv (configure.ac): ... to here.
11010
11011 2011-05-21  Bruno Haible  <bruno@clisp.org>
11012
11013         selinux-h: Move AC_LIBOBJ invocations to module description.
11014         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
11015         AC_LIBOBJ invocation from here...
11016         * modules/selinux-h (configure.ac): ... to here.
11017
11018 2011-05-21  Bruno Haible  <bruno@clisp.org>
11019
11020         select: Respect rules for use of AC_LIBOBJ.
11021         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
11022         here...
11023         * modules/select (configure.ac): ... to here.
11024
11025 2011-05-21  Bruno Haible  <bruno@clisp.org>
11026
11027         scandir: Move AC_LIBOBJ invocations to module description.
11028         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
11029         invocations from here...
11030         * modules/scandir (configure.ac): ... to here.
11031
11032 2011-05-21  Bruno Haible  <bruno@clisp.org>
11033
11034         rpmatch: Move AC_LIBOBJ invocations to module description.
11035         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
11036         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
11037         here...
11038         * modules/rpmatch (configure.ac): ... to here.
11039
11040 2011-05-21  Bruno Haible  <bruno@clisp.org>
11041
11042         rmdir: Respect rules for use of AC_LIBOBJ.
11043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
11044         * modules/rmdir (configure.ac): ... to here.
11045
11046 2011-05-21  Bruno Haible  <bruno@clisp.org>
11047
11048         renameat: Move AC_LIBOBJ invocations to module description.
11049         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
11050         here...
11051         * modules/renameat (configure.ac): ... to here.
11052
11053 2011-05-21  Bruno Haible  <bruno@clisp.org>
11054
11055         rename: Respect rules for use of AC_LIBOBJ.
11056         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
11057         here...
11058         * modules/rename (configure.ac): ... to here.
11059
11060 2011-05-21  Bruno Haible  <bruno@clisp.org>
11061
11062         remove: Move AC_LIBOBJ invocations to module description.
11063         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
11064         here...
11065         * modules/remove (configure.ac): ... to here.
11066
11067 2011-05-21  Bruno Haible  <bruno@clisp.org>
11068
11069         relocatable-lib: Move AC_LIBOBJ invocations to module description.
11070         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
11071         macro.
11072         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
11073         * modules/relocatable-lib (configure.ac): ... to here.
11074         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11075         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         relocatable-prog: Move AC_LIBOBJ invocations to module description.
11080         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
11081         here...
11082         * modules/relocatable-prog (configure.ac): ... to here.
11083
11084 2011-05-21  Bruno Haible  <bruno@clisp.org>
11085
11086         regex: Move AC_LIBOBJ invocations to module description.
11087         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
11088         invocations from here...
11089         * modules/regex (configure.ac): ... to here.
11090
11091 2011-05-21  Bruno Haible  <bruno@clisp.org>
11092
11093         realloc-*: Move AC_LIBOBJ invocations to module description.
11094         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
11095         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
11096         AC_LIBOBJ invocations from here...
11097         * modules/realloc-gnu (configure.ac): ... to here.
11098         * modules/realloc-posix (configure.ac): ... and here.
11099
11100 2011-05-21  Bruno Haible  <bruno@clisp.org>
11101
11102         readutmp: Move AC_LIBOBJ invocations to module description.
11103         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
11104         * modules/readutmp (configure.ac): ... to here.
11105
11106 2011-05-21  Bruno Haible  <bruno@clisp.org>
11107
11108         readlinkat: Move AC_LIBOBJ invocations to module description.
11109         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
11110         here...
11111         * modules/readlinkat (configure.ac): ... to here.
11112
11113 2011-05-21  Bruno Haible  <bruno@clisp.org>
11114
11115         readlink: Move AC_LIBOBJ invocations to module description.
11116         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
11117         gl_PREREQ_READLINK invocations from here...
11118         * modules/readlink (configure.ac): ... to here.
11119
11120 2011-05-21  Bruno Haible  <bruno@clisp.org>
11121
11122         readline: Move AC_LIBOBJ invocations to module description.
11123         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
11124         gl_PREREQ_READLINE invocations from here...
11125         * modules/readline (configure.ac): ... to here.
11126
11127 2011-05-21  Bruno Haible  <bruno@clisp.org>
11128
11129         read: Move AC_LIBOBJ invocations to module description.
11130         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
11131         * modules/read (configure.ac): ... to here.
11132
11133 2011-05-21  Bruno Haible  <bruno@clisp.org>
11134
11135         rawmemchr: Move AC_LIBOBJ invocations to module description.
11136         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
11137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
11138         from here...
11139         * modules/rawmemchr (configure.ac): ... to here.
11140
11141 2011-05-21  Bruno Haible  <bruno@clisp.org>
11142
11143         random_r: Move AC_LIBOBJ invocations to module description.
11144         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
11145         gl_PREREQ_RANDOM_R invocations from here...
11146         * modules/random_r (configure.ac): ... to here.
11147
11148 2011-05-21  Bruno Haible  <bruno@clisp.org>
11149
11150         pwrite: Move AC_LIBOBJ invocations to module description.
11151         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11152         * modules/pwrite (configure.ac): ... to here.
11153
11154 2011-05-21  Bruno Haible  <bruno@clisp.org>
11155
11156         putenv: Move AC_LIBOBJ invocations to module description.
11157         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11158         * modules/putenv (configure.ac): ... to here.
11159
11160 2011-05-21  Bruno Haible  <bruno@clisp.org>
11161
11162         login_tty: Move AC_LIBOBJ invocations to module description.
11163         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11164         * modules/login_tty (configure.ac): ... to here.
11165
11166 2011-05-21  Bruno Haible  <bruno@clisp.org>
11167
11168         openpty: Move AC_LIBOBJ invocations to module description.
11169         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11170         * modules/openpty (configure.ac): ... to here.
11171
11172 2011-05-21  Bruno Haible  <bruno@clisp.org>
11173
11174         forkpty: Move AC_LIBOBJ invocations to module description.
11175         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11176         * modules/forkpty (configure.ac): ... to here.
11177
11178 2011-05-21  Bruno Haible  <bruno@clisp.org>
11179
11180         ptsname: Move AC_LIBOBJ invocations to module description.
11181         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11182         invocations from here...
11183         * modules/ptsname (configure.ac): ... to here.
11184
11185 2011-05-21  Bruno Haible  <bruno@clisp.org>
11186
11187         pread: Move AC_LIBOBJ invocations to module description.
11188         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11189         * modules/pread (configure.ac): ... to here.
11190
11191 2011-05-21  Bruno Haible  <bruno@clisp.org>
11192
11193         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11194         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11195         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11196         * modules/posix_spawn (configure.ac): ... to here.
11197         * modules/posix_spawnp (configure.ac): ... and here.
11198
11199 2011-05-21  Bruno Haible  <bruno@clisp.org>
11200
11201         popen: Move AC_LIBOBJ invocations to module description.
11202         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11203         invocations from here...
11204         * modules/popen (configure.ac): ... to here.
11205
11206 2011-05-21  Bruno Haible  <bruno@clisp.org>
11207
11208         poll: Move AC_LIBOBJ invocations to module description.
11209         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11210         invocations from here...
11211         * modules/poll (configure.ac): ... to here.
11212
11213 2011-05-21  Bruno Haible  <bruno@clisp.org>
11214
11215         pipe-posix: Move AC_LIBOBJ invocations to module description.
11216         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11217         * modules/pipe-posix (configure.ac): ... to here.
11218
11219 2011-05-21  Bruno Haible  <bruno@clisp.org>
11220
11221         openat: Respect rules for use of AC_LIBOBJ.
11222         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11223         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11224         * modules/openat (configure.ac): ... to here.
11225
11226 2011-05-21  Bruno Haible  <bruno@clisp.org>
11227
11228         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11229         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11230         invocation from here...
11231         * modules/obstack-printf (configure.ac): ... to here.
11232         * modules/obstack-printf-posix (configure.ac): ... and here.
11233
11234 2011-05-21  Bruno Haible  <bruno@clisp.org>
11235
11236         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11237         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11238         from here...
11239         * modules/nl_langinfo (configure.ac): ... to here.
11240
11241 2011-05-21  Bruno Haible  <bruno@clisp.org>
11242
11243         nanosleep: Move AC_LIBOBJ invocations to module description.
11244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11245         gl_PREREQ_NANOSLEEP invocations from here...
11246         * modules/nanosleep (configure.ac): ... to here.
11247
11248 2011-05-21  Bruno Haible  <bruno@clisp.org>
11249
11250         mountlist: Move AC_LIBOBJ invocations to module description.
11251         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11252         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11253         * modules/mountlist (configure.ac): ... to here.
11254
11255 2011-05-21  Bruno Haible  <bruno@clisp.org>
11256
11257         mktime: Respect rules for use of AC_LIBOBJ.
11258         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11259         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11260         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11261         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11262         * modules/mktime (configure.ac): ... to here.
11263         * modules/mktime-internal (configure.ac): ... and here.
11264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11265
11266 2011-05-21  Bruno Haible  <bruno@clisp.org>
11267
11268         mkstemps: Move AC_LIBOBJ invocations to module description.
11269         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11270         here...
11271         * modules/mkstemps (configure.ac): ... to here.
11272
11273 2011-05-21  Bruno Haible  <bruno@clisp.org>
11274
11275         mkstemp: Move AC_LIBOBJ invocations to module description.
11276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11277         gl_PREREQ_MKSTEMP invocations from here...
11278         * modules/mkstemp (configure.ac): ... to here.
11279
11280 2011-05-21  Bruno Haible  <bruno@clisp.org>
11281
11282         mkostemps: Move AC_LIBOBJ invocations to module description.
11283         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11284         here...
11285         * modules/mkostemps (configure.ac): ... to here.
11286
11287 2011-05-21  Bruno Haible  <bruno@clisp.org>
11288
11289         mkostemp: Move AC_LIBOBJ invocations to module description.
11290         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11291         gl_PREREQ_MKOSTEMP invocations from here...
11292         * modules/mkostemp (configure.ac): ... to here.
11293
11294 2011-05-21  Bruno Haible  <bruno@clisp.org>
11295
11296         mknod: Move AC_LIBOBJ invocations to module description.
11297         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11298         * modules/mknod (configure.ac): ... to here.
11299
11300 2011-05-21  Bruno Haible  <bruno@clisp.org>
11301
11302         mkfifoat: Move AC_LIBOBJ invocations to module description.
11303         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11304         here...
11305         * modules/mkfifoat (configure.ac): ... to here.
11306
11307 2011-05-21  Bruno Haible  <bruno@clisp.org>
11308
11309         mkfifo: Respect rules for use of AC_LIBOBJ.
11310         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11311         here...
11312         * modules/mkfifo (configure.ac): ... to here.
11313
11314 2011-05-21  Bruno Haible  <bruno@clisp.org>
11315
11316         mkdtemp: Move AC_LIBOBJ invocations to module description.
11317         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11318         invocations from here...
11319         * modules/mkdtemp (configure.ac): ... to here.
11320
11321 2011-05-21  Bruno Haible  <bruno@clisp.org>
11322
11323         mkdir: Move AC_LIBOBJ invocations to module description.
11324         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11325         * modules/mkdir (configure.ac): ... to here.
11326
11327 2011-05-21  Bruno Haible  <bruno@clisp.org>
11328
11329         memset: Move AC_LIBOBJ invocations to module description.
11330         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11332         here...
11333         * modules/memset (configure.ac): ... to here.
11334
11335 2011-05-21  Bruno Haible  <bruno@clisp.org>
11336
11337         memrchr: Move AC_LIBOBJ invocations to module description.
11338         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11340         here...
11341         * modules/memrchr (configure.ac): ... to here.
11342
11343 2011-05-21  Bruno Haible  <bruno@clisp.org>
11344
11345         mempcpy: Move AC_LIBOBJ invocations to module description.
11346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11347         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11348         here...
11349         * modules/mempcpy (configure.ac): ... to here.
11350
11351 2011-05-21  Bruno Haible  <bruno@clisp.org>
11352
11353         memmove: Move AC_LIBOBJ invocations to module description.
11354         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11355         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11356         here...
11357         * modules/memmove (configure.ac): ... to here.
11358
11359 2011-05-21  Bruno Haible  <bruno@clisp.org>
11360
11361         memmem*: Move AC_LIBOBJ invocations to module description.
11362         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11363         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11364         here...
11365         (gl_FUNC_MEMMEM): ... and here...
11366         * modules/memmem-simple (configure.ac): ... to here.
11367         * modules/memmem (configure.ac): ... and here.
11368
11369 2011-05-21  Bruno Haible  <bruno@clisp.org>
11370
11371         memcpy: Move AC_LIBOBJ invocations to module description.
11372         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11374         here...
11375         * modules/memcpy (configure.ac): ... to here.
11376
11377 2011-05-21  Bruno Haible  <bruno@clisp.org>
11378
11379         memcmp: Simplify autoconf macro.
11380         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11381         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11382         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11383
11384 2011-05-21  Bruno Haible  <bruno@clisp.org>
11385
11386         memcmp: Move AC_LIBOBJ invocations to module description.
11387         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11388         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11389         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11390         * modules/memcmp (configure.ac): ... to here.
11391         (Depends-on): Update conditions.
11392
11393 2011-05-21  Bruno Haible  <bruno@clisp.org>
11394
11395         memchr: Respect rules for use of AC_LIBOBJ.
11396         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11397         invocations from here...
11398         * modules/memchr (configure.ac): ... to here.
11399
11400 2011-05-21  Bruno Haible  <bruno@clisp.org>
11401
11402         mbtowc: Move AC_LIBOBJ invocations to module description.
11403         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11404         invocations from here...
11405         * modules/mbtowc (configure.ac): ... to here.
11406
11407 2011-05-21  Bruno Haible  <bruno@clisp.org>
11408
11409         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11410         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11411         gl_PREREQ_MBSRTOWCS invocations from here...
11412         * modules/mbsrtowcs (configure.ac): ... to here.
11413
11414 2011-05-21  Bruno Haible  <bruno@clisp.org>
11415
11416         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11417         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11418         gl_PREREQ_MBSNRTOWCS invocations from here...
11419         * modules/mbsnrtowcs (configure.ac): ... to here.
11420
11421 2011-05-21  Bruno Haible  <bruno@clisp.org>
11422
11423         mbsinit: Move AC_LIBOBJ invocations to module description.
11424         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11425         invocations from here...
11426         * modules/mbsinit (configure.ac): ... to here.
11427
11428 2011-05-21  Bruno Haible  <bruno@clisp.org>
11429
11430         mbrlen: Move AC_LIBOBJ invocations to module description.
11431         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11432         invocations from here...
11433         * modules/mbrlen (configure.ac): ... to here.
11434
11435 2011-05-21  Bruno Haible  <bruno@clisp.org>
11436
11437         mbrtowc: Respect rules for use of AC_LIBOBJ.
11438         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11439         invocations from here...
11440         * modules/mbrtowc (configure.ac): ... to here.
11441
11442 2011-05-21  Bruno Haible  <bruno@clisp.org>
11443
11444         malloc-*: Move AC_LIBOBJ invocations to module description.
11445         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11446         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11447         AC_LIBOBJ invocations from here...
11448         * modules/malloc-gnu (configure.ac): ... to here.
11449         * modules/malloc-posix (configure.ac): ... and here.
11450
11451 2011-05-21  Bruno Haible  <bruno@clisp.org>
11452
11453         lstat, openat: Respect rules for use of AC_LIBOBJ.
11454         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11455         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11456         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11457         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11458         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11459         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11460         here.
11461         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11462
11463 2011-05-21  Bruno Haible  <bruno@clisp.org>
11464
11465         lseek: Move AC_LIBOBJ invocations to module description.
11466         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11467         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11468         * modules/lseek (configure.ac): ... to here.
11469
11470 2011-05-21  Bruno Haible  <bruno@clisp.org>
11471
11472         linkat: Move AC_LIBOBJ invocations to module description.
11473         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11474         here...
11475         * modules/linkat (configure.ac): ... to here.
11476
11477 2011-05-21  Bruno Haible  <bruno@clisp.org>
11478
11479         link: Respect rules for use of AC_LIBOBJ.
11480         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11481         * modules/link (configure.ac): ... to here.
11482
11483 2011-05-21  Bruno Haible  <bruno@clisp.org>
11484
11485         lchown: Move AC_LIBOBJ invocations to module description.
11486         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11487         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11488         * modules/lchown (configure.ac): ... to here.
11489
11490 2011-05-21  Bruno Haible  <bruno@clisp.org>
11491
11492         iswctype: Move AC_LIBOBJ invocations to module description.
11493         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11494         here...
11495         * modules/iswctype (configure.ac): ... to here.
11496
11497 2011-05-21  Bruno Haible  <bruno@clisp.org>
11498
11499         iswblank: Move AC_LIBOBJ invocations to module description.
11500         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11501         here...
11502         * modules/iswblank (configure.ac): ... to here.
11503
11504 2011-05-21  Bruno Haible  <bruno@clisp.org>
11505
11506         atanl: Move AC_LIBOBJ invocations to module description.
11507         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11508         * modules/atanl (configure.ac): ... to here.
11509
11510 2011-05-21  Bruno Haible  <bruno@clisp.org>
11511
11512         acosl: Move AC_LIBOBJ invocations to module description.
11513         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11514         * modules/acosl (configure.ac): ... to here.
11515
11516 2011-05-21  Bruno Haible  <bruno@clisp.org>
11517
11518         asinl: Respect rules for use of AC_LIBOBJ.
11519         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11520         * modules/asinl (configure.ac): ... to here.
11521
11522 2011-05-21  Bruno Haible  <bruno@clisp.org>
11523
11524         tanl: Move AC_LIBOBJ invocations to module description.
11525         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11526         * modules/tanl (configure.ac): ... to here.
11527
11528 2011-05-21  Bruno Haible  <bruno@clisp.org>
11529
11530         cosl: Move AC_LIBOBJ invocations to module description.
11531         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11532         * modules/cosl (configure.ac): ... to here.
11533
11534 2011-05-21  Bruno Haible  <bruno@clisp.org>
11535
11536         sinl: Move AC_LIBOBJ invocations to module description.
11537         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11538         * modules/sinl (configure.ac): ... to here.
11539
11540 2011-05-21  Bruno Haible  <bruno@clisp.org>
11541
11542         logl: Move AC_LIBOBJ invocations to module description.
11543         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11544         * modules/logl (configure.ac): ... to here.
11545
11546 2011-05-21  Bruno Haible  <bruno@clisp.org>
11547
11548         expl: Move AC_LIBOBJ invocations to module description.
11549         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11550         * modules/expl (configure.ac): ... to here.
11551
11552 2011-05-21  Bruno Haible  <bruno@clisp.org>
11553
11554         roundl: Move AC_LIBOBJ invocations to module description.
11555         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11556         * modules/roundl (configure.ac): ... to here.
11557
11558 2011-05-21  Bruno Haible  <bruno@clisp.org>
11559
11560         round: Move AC_LIBOBJ invocations to module description.
11561         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11562         * modules/round (configure.ac): ... to here.
11563
11564 2011-05-21  Bruno Haible  <bruno@clisp.org>
11565
11566         roundf: Move AC_LIBOBJ invocations to module description.
11567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11568         * modules/roundf (configure.ac): ... to here.
11569
11570 2011-05-21  Bruno Haible  <bruno@clisp.org>
11571
11572         truncl: Move AC_LIBOBJ invocations to module description.
11573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11574         * modules/truncl (configure.ac): ... to here.
11575
11576 2011-05-21  Bruno Haible  <bruno@clisp.org>
11577
11578         trunc: Move AC_LIBOBJ invocations to module description.
11579         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11580         * modules/trunc (configure.ac): ... to here.
11581
11582 2011-05-21  Bruno Haible  <bruno@clisp.org>
11583
11584         truncf: Move AC_LIBOBJ invocations to module description.
11585         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11586         * modules/truncf (configure.ac): ... to here.
11587
11588 2011-05-21  Bruno Haible  <bruno@clisp.org>
11589
11590         ceill: Move AC_LIBOBJ invocations to module description.
11591         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11592         * modules/ceill (configure.ac): ... to here.
11593
11594 2011-05-21  Bruno Haible  <bruno@clisp.org>
11595
11596         ceil: Move AC_LIBOBJ invocations to module description.
11597         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11598         * modules/ceil (configure.ac): ... to here.
11599
11600 2011-05-21  Bruno Haible  <bruno@clisp.org>
11601
11602         ceilf: Move AC_LIBOBJ invocations to module description.
11603         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11604         * modules/ceilf (configure.ac): ... to here.
11605
11606 2011-05-21  Bruno Haible  <bruno@clisp.org>
11607
11608         floorl: Respect rules for use of AC_LIBOBJ.
11609         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11610         * modules/floorl (configure.ac): ... to here.
11611
11612 2011-05-21  Bruno Haible  <bruno@clisp.org>
11613
11614         floor: Respect rules for use of AC_LIBOBJ.
11615         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11616         * modules/floor (configure.ac): ... to here.
11617
11618 2011-05-21  Bruno Haible  <bruno@clisp.org>
11619
11620         floorf: Move AC_LIBOBJ invocations to module description.
11621         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11622         * modules/floorf (configure.ac): ... to here.
11623
11624 2011-05-20  Bruno Haible  <bruno@clisp.org>
11625
11626         sqrtl: Respect rules for use of AC_LIBOBJ.
11627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11628         * modules/sqrtl (configure.ac): ... to here.
11629
11630 2011-05-20  Bruno Haible  <bruno@clisp.org>
11631
11632         ldexpl: Respect rules for use of AC_LIBOBJ.
11633         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11634         * modules/ldexpl (configure.ac): ... to here.
11635
11636 2011-05-20  Bruno Haible  <bruno@clisp.org>
11637
11638         frexpl*: Respect rules for use of AC_LIBOBJ.
11639         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11640         invocation from here...
11641         * modules/frexpl (configure.ac): ... to here.
11642         * modules/frexpl-nolibm (configure.ac): ... and here.
11643
11644 2011-05-20  Bruno Haible  <bruno@clisp.org>
11645
11646         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11647         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11648         invocation from here...
11649         * modules/frexp (configure.ac): ... to here.
11650         * modules/frexp-nolibm (configure.ac): ... and here.
11651
11652 2011-05-20  Bruno Haible  <bruno@clisp.org>
11653
11654         isnan: Respect rules for use of AC_LIBOBJ.
11655         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11656         invocations here.
11657         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11658         REPLACE_ISNAN.
11659         * modules/isnand (configure.ac): Likewise.
11660         * modules/isnanl (configure.ac): Likewise.
11661
11662 2011-05-20  Bruno Haible  <bruno@clisp.org>
11663
11664         isnanl*: Respect rules for use of AC_LIBOBJ.
11665         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11666         invocation from here...
11667         * modules/isnanl (configure.ac): ... to here.
11668         * modules/isnanl-nolibm (configure.ac): ... and here.
11669
11670 2011-05-20  Bruno Haible  <bruno@clisp.org>
11671
11672         isnand*: Move AC_LIBOBJ invocations to module description.
11673         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11674         invocation from here...
11675         * modules/isnand (configure.ac): ... to here.
11676         * modules/isnand-nolibm (configure.ac): ... and here.
11677
11678 2011-05-20  Bruno Haible  <bruno@clisp.org>
11679
11680         isnanf*: Move AC_LIBOBJ invocations to module description.
11681         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11682         invocation from here...
11683         * modules/isnanf (configure.ac): ... to here.
11684         * modules/isnanf-nolibm (configure.ac): ... and here.
11685
11686 2011-05-20  Bruno Haible  <bruno@clisp.org>
11687
11688         isnan*: Separate the AC_LIBOBJ invocations.
11689         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11690         AC_LIBOBJ invocation.
11691         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11692         here.
11693         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11694         AC_LIBOBJ invocation.
11695         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11696         here.
11697         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11698         AC_LIBOBJ invocation.
11699         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11700         here.
11701         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11702
11703 2011-05-08  Bruno Haible  <bruno@clisp.org>
11704
11705         isinf: Move AC_LIBOBJ invocations to module description.
11706         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11707         * modules/isinf (configure.ac): ... to here.
11708
11709 2011-05-08  Bruno Haible  <bruno@clisp.org>
11710
11711         isfinite: Move AC_LIBOBJ invocations to module description.
11712         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11713         * modules/isfinite (configure.ac): ... to here.
11714
11715 2011-05-08  Bruno Haible  <bruno@clisp.org>
11716
11717         isblank: Move AC_LIBOBJ invocations to module description.
11718         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11719         here...
11720         * modules/isblank (configure.ac): ... to here.
11721
11722 2011-05-08  Bruno Haible  <bruno@clisp.org>
11723
11724         isapipe: Move AC_LIBOBJ invocations to module description.
11725         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11726         gl_PREREQ_ISAPIPE invocations from here...
11727         * modules/isapipe (configure.ac): ... to here.
11728         (Depends-on): Update condition.
11729
11730 2011-05-08  Bruno Haible  <bruno@clisp.org>
11731
11732         ioctl: Move AC_LIBOBJ invocations to module description.
11733         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11734         invocations from here...
11735         * modules/ioctl (configure.ac): ... to here.
11736         (Depends-on): Update condition.
11737
11738 2011-05-08  Bruno Haible  <bruno@clisp.org>
11739
11740         imaxdiv: Move AC_LIBOBJ invocations to module description.
11741         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11742         invocations from here...
11743         * modules/imaxdiv (configure.ac): ... to here.
11744
11745 2011-05-08  Bruno Haible  <bruno@clisp.org>
11746
11747         imaxabs: Move AC_LIBOBJ invocations to module description.
11748         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11749         invocations from here...
11750         * modules/imaxabs (configure.ac): ... to here.
11751
11752 2011-05-08  Bruno Haible  <bruno@clisp.org>
11753
11754         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11756         AC_LIBOBJ invocations from here...
11757         * modules/getaddrinfo (configure.ac): ... to here.
11758         (Depends-on): Add conditions.
11759
11760 2011-05-08  Bruno Haible  <bruno@clisp.org>
11761
11762         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11763         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11764         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11765         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11766         (gl_PREREQ_INET_PTON): ... from here.
11767         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11768         gl_PREREQ_INET_PTON here.
11769         (Depends-on): Update condition.
11770
11771 2011-05-08  Bruno Haible  <bruno@clisp.org>
11772
11773         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11774         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11775         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11776         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11777         (gl_PREREQ_INET_NTOP): ... from here.
11778         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11779         gl_PREREQ_INET_NTOP here.
11780         (Depends-on): Update condition.
11781
11782 2011-05-08  Bruno Haible  <bruno@clisp.org>
11783
11784         iconv_open: Move AC_LIBOBJ invocations to module description.
11785         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11786         AC_LIBOBJ invocations from here...
11787         * modules/iconv_open (configure.ac): ... to here.
11788
11789 2011-05-08  Bruno Haible  <bruno@clisp.org>
11790
11791         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11792         If module 'iconv_open' is among the main modules and module
11793         'iconv_open-utf' is among the tests dependencies, then
11794         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11795         return the special iconv_t values. Therefore iconv() and iconv_close()
11796         must support these special iconv_t values, already in lib, not only in
11797         tests.
11798         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11800         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11801         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11802         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11803         (Depends-on): Add the dependencies of iconv_open-utf.
11804         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11805         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11806         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11807
11808 2011-05-08  Bruno Haible  <bruno@clisp.org>
11809
11810         group-member: Move AC_LIBOBJ invocations to module description.
11811         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11812         gl_PREREQ_GROUP_MEMBER invocations from here...
11813         * modules/group-member (configure.ac): ... to here.
11814
11815 2011-05-08  Bruno Haible  <bruno@clisp.org>
11816
11817         grantpt: Move AC_LIBOBJ invocations to module description.
11818         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11819         invocations from here...
11820         * modules/grantpt (configure.ac): ... to here.
11821
11822 2011-05-08  Bruno Haible  <bruno@clisp.org>
11823
11824         glob: Move AC_LIBOBJ invocations to module description.
11825         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11826         from here...
11827         * modules/glob (configure.ac): ... to here.
11828
11829 2011-05-08  Bruno Haible  <bruno@clisp.org>
11830
11831         getusershell: Move AC_LIBOBJ invocations to module description.
11832         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11833         Move AC_LIBOBJ invocation from here...
11834         * modules/getusershell (configure.ac): ... to here.
11835         (Depends-on): Update condition.
11836
11837 2011-05-08  Bruno Haible  <bruno@clisp.org>
11838
11839         gettimeofday: Move AC_LIBOBJ invocations to module description.
11840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11841         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11842         gl_PREREQ_GETTIMEOFDAY invocations from here...
11843         * modules/gettimeofday (configure.ac): ... to here.
11844
11845 2011-05-08  Bruno Haible  <bruno@clisp.org>
11846
11847         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11848         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11849         just gl_FUNC_TZSET.
11850         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11851         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11853         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11854
11855 2011-05-08  Bruno Haible  <bruno@clisp.org>
11856
11857         getsubopt: Move AC_LIBOBJ invocations to module description.
11858         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11859         gl_PREREQ_GETSUBOPT invocations from here...
11860         * modules/getsubopt (configure.ac): ... to here.
11861
11862 2011-05-08  Bruno Haible  <bruno@clisp.org>
11863
11864         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11865         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11866         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11867         * modules/getpass-gnu (configure.ac): ... to here.
11868
11869 2011-05-08  Bruno Haible  <bruno@clisp.org>
11870
11871         getpass: Move AC_LIBOBJ invocations to module description.
11872         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11873         gl_PREREQ_GETPASS invocations from here...
11874         * modules/getpass (configure.ac): ... to here.
11875
11876 2011-05-08  Bruno Haible  <bruno@clisp.org>
11877
11878         getpagesize: Move AC_LIBOBJ invocations to module description.
11879         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11880         from here...
11881         * modules/getpagesize (configure.ac): ... to here.
11882
11883 2011-05-08  Bruno Haible  <bruno@clisp.org>
11884
11885         getopt: Move AC_LIBOBJ invocations to module description.
11886         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11887         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11888         invocations from here...
11889         * modules/getopt-gnu (configure.ac): ... to here.
11890         * modules/getopt-posix (configure.ac): ... and here.
11891         (Depends-on): Update condition.
11892
11893 2011-05-08  Bruno Haible  <bruno@clisp.org>
11894
11895         getopt, argp: Respect rules for use of AC_LIBOBJ.
11896         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11897         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11898         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11899         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11900
11901 2011-05-08  Bruno Haible  <bruno@clisp.org>
11902
11903         getlogin_r: Move AC_LIBOBJ invocations to module description.
11904         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11905         gl_PREREQ_GETLOGIN_R invocations from here...
11906         * modules/getlogin_r (configure.ac): ... to here.
11907
11908 2011-05-08  Bruno Haible  <bruno@clisp.org>
11909
11910         getlogin: Move AC_LIBOBJ invocations to module description.
11911         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11912         here...
11913         * modules/getlogin (configure.ac): ... to here.
11914
11915 2011-05-08  Bruno Haible  <bruno@clisp.org>
11916
11917         getloadavg: Move AC_LIBOBJ invocations to module description.
11918         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11919         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11920         * modules/getloadavg (configure.ac): ... to here.
11921
11922 2011-05-08  Bruno Haible  <bruno@clisp.org>
11923
11924         gethrxtime: Move AC_LIBOBJ invocations to module description.
11925         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11926         LIB_GETHRXTIME from here...
11927         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11928         invocations from here...
11929         * modules/gethrxtime (configure.ac): ... to here.
11930
11931 2011-05-08  Bruno Haible  <bruno@clisp.org>
11932
11933         gethostname: Move AC_LIBOBJ invocations to module description.
11934         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11935         gl_PREREQ_GETHOSTNAME invocations from here...
11936         * modules/gethostname (configure.ac): ... to here.
11937
11938 2011-05-08  Bruno Haible  <bruno@clisp.org>
11939
11940         getgroups: Move AC_LIBOBJ invocations to module description.
11941         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11942         here...
11943         * modules/getgroups (configure.ac): ... to here.
11944
11945 2011-05-08  Bruno Haible  <bruno@clisp.org>
11946
11947         getdtablesize: Move AC_LIBOBJ invocations to module description.
11948         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11949         invocation from here...
11950         * modules/getdtablesize (configure.ac): ... to here.
11951
11952 2011-05-08  Bruno Haible  <bruno@clisp.org>
11953
11954         getdomainname: Move AC_LIBOBJ invocations to module description.
11955         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11956         gl_PREREQ_GETDOMAINNAME invocations from here...
11957         * modules/getdomainname (configure.ac): ... to here.
11958
11959 2011-05-08  Bruno Haible  <bruno@clisp.org>
11960
11961         getline: Move AC_LIBOBJ invocations to module description.
11962         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11963         invocations from here...
11964         * modules/getline (configure.ac): ... to here.
11965
11966 2011-05-08  Bruno Haible  <bruno@clisp.org>
11967
11968         getline: Simplify.
11969         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11970         It's already handled through the module dependency.
11971
11972 2011-05-08  Bruno Haible  <bruno@clisp.org>
11973
11974         getdelim: Move AC_LIBOBJ invocations to module description.
11975         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11976         and gl_PREREQ_GETDELIM invocations from here...
11977         * modules/getdelim (configure.ac): ... to here.
11978         (Depends-on): Fix condition.
11979
11980 2011-05-08  Bruno Haible  <bruno@clisp.org>
11981
11982         getcwd: Move AC_LIBOBJ invocations to module description.
11983         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11984         invocations from here...
11985         * modules/getcwd (configure.ac): ... to here.
11986
11987 2011-05-08  Bruno Haible  <bruno@clisp.org>
11988
11989         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11990         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11991         here...
11992         * modules/getcwd-lgpl (configure.ac): ... to here.
11993
11994 2011-05-07  Bruno Haible  <bruno@clisp.org>
11995
11996         crypto/gc: Move AC_LIBOBJ invocations to module description.
11997         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11998         * modules/crypto/gc (configure.ac): ... to here.
11999
12000 2011-05-07  Bruno Haible  <bruno@clisp.org>
12001
12002         fwriting: Move AC_LIBOBJ invocations to module description.
12003         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
12004         here...
12005         * modules/fwriting (configure.ac): ... to here.
12006
12007 2011-05-07  Bruno Haible  <bruno@clisp.org>
12008
12009         fwritable: Move AC_LIBOBJ invocations to module description.
12010         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12011         here...
12012         * modules/fwritable (configure.ac): ... to here.
12013
12014 2011-05-07  Bruno Haible  <bruno@clisp.org>
12015
12016         futimens: Move AC_LIBOBJ invocations to module description.
12017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
12018         here...
12019         * modules/futimens (configure.ac): ... to here.
12020
12021 2011-05-07  Bruno Haible  <bruno@clisp.org>
12022
12023         ftruncate: Move AC_LIBOBJ invocations to module description.
12024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
12025         gl_PREREQ_FTRUNCATE invocations from here...
12026         * modules/ftruncate (configure.ac): ... to here.
12027
12028 2011-05-07  Bruno Haible  <bruno@clisp.org>
12029
12030         fsync: Move AC_LIBOBJ invocations to module description.
12031         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
12032         invocations from here...
12033         * modules/fsync (configure.ac): ... to here.
12034
12035 2011-05-07  Bruno Haible  <bruno@clisp.org>
12036
12037         fsusage: Move AC_LIBOBJ invocations to module description.
12038         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
12039         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
12040         * modules/fsusage (configure.ac): ... to here.
12041
12042 2011-05-07  Bruno Haible  <bruno@clisp.org>
12043
12044         freopen: Move AC_LIBOBJ invocations to module description.
12045         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
12046         invocations from here...
12047         * modules/freopen (configure.ac): ... to here.
12048
12049 2011-05-07  Bruno Haible  <bruno@clisp.org>
12050
12051         free: Move AC_LIBOBJ invocations to module description.
12052         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
12053         invocations from here...
12054         * modules/free (configure.ac): ... to here.
12055
12056 2011-05-07  Bruno Haible  <bruno@clisp.org>
12057
12058         freadable: Move AC_LIBOBJ invocations to module description.
12059         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
12060         here...
12061         * modules/freadable (configure.ac): ... to here.
12062
12063 2011-05-07  Bruno Haible  <bruno@clisp.org>
12064
12065         fpurge: Move AC_LIBOBJ invocations to module description.
12066         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
12067         invocations from here...
12068         * modules/fpurge (configure.ac): ... to here.
12069
12070 2011-05-07  Bruno Haible  <bruno@clisp.org>
12071
12072         fpending: Move AC_LIBOBJ invocations to module description.
12073         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12074         gl_FUNC_FPENDING.
12075         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
12076         invocations from here...
12077         * modules/fpending (configure.ac): ... to here.
12078
12079 2011-05-07  Bruno Haible  <bruno@clisp.org>
12080
12081         fopen: Move AC_LIBOBJ invocations to module description.
12082         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
12083         invocations from here...
12084         * modules/fopen (configure.ac): ... to here.
12085
12086 2011-05-07  Bruno Haible  <bruno@clisp.org>
12087
12088         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
12089         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
12090         gl_FUNC_FNMATCH_POSIX.
12091         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
12092         invocations from here...
12093         * modules/fnmatch (configure.ac): ... to here.
12094         * modules/fnmatch-gnu (configure.ac): ... and here.
12095
12096 2011-05-07  Bruno Haible  <bruno@clisp.org>
12097
12098         flock: Move AC_LIBOBJ invocations to module description.
12099         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
12100         invocations from here...
12101         * modules/flock (configure.ac): ... to here.
12102
12103 2011-05-07  Bruno Haible  <bruno@clisp.org>
12104
12105         fileblocks: Move AC_LIBOBJ invocations to module description.
12106         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12107         gl_PREREQ_FILEBLOCKS invocations from here...
12108         * modules/fileblocks (configure.ac): ... to here.
12109
12110 2011-05-06  Bruno Haible  <bruno@clisp.org>
12111
12112         fflush: Move AC_LIBOBJ invocations to module description.
12113         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
12114         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
12115         invocations from here...
12116         * modules/fflush (configure.ac): ... to here.
12117
12118 2011-05-06  Bruno Haible  <bruno@clisp.org>
12119
12120         fdopendir: Move AC_LIBOBJ invocations to module description.
12121         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
12122         here...
12123         * modules/fdopendir (configure.ac): ... to here.
12124         (Depends-on): Improve conditions.
12125
12126 2011-05-06  Bruno Haible  <bruno@clisp.org>
12127
12128         _Exit: Move AC_LIBOBJ invocations to module description.
12129         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
12130         invocations from here...
12131         * modules/_Exit (configure.ac): ... to here.
12132
12133 2011-05-21  Bruno Haible  <bruno@clisp.org>
12134
12135         euidaccess: Respect rules for use of AC_LIBOBJ.
12136         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
12138         from here...
12139         * modules/euidaccess (configure.ac): ... to here.
12140
12141 2011-05-06  Bruno Haible  <bruno@clisp.org>
12142
12143         error: Move AC_LIBOBJ invocations to module description.
12144         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
12145         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
12146         invocations from here...
12147         * modules/error (configure.ac): ... to here.
12148
12149 2011-05-06  Bruno Haible  <bruno@clisp.org>
12150
12151         duplocale: Move AC_LIBOBJ invocations to module description.
12152         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12153         gl_PREREQ_DUPLOCALE invocations from here...
12154         * modules/duplocale (configure.ac): ... to here.
12155
12156 2011-05-05  Bruno Haible  <bruno@clisp.org>
12157
12158         dirfd: Move AC_LIBOBJ invocations to module description.
12159         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12160         gl_FUNC_DIRFD.
12161         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12162         here...
12163         * modules/dirfd (configure.ac): ... to here.
12164         (Depends-on): Fix condition.
12165
12166 2011-05-05  Bruno Haible  <bruno@clisp.org>
12167
12168         chown: Respect rules for use of AC_LIBOBJ.
12169         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12170         * modules/chown (configure.ac): ... to here.
12171
12172 2011-05-05  Bruno Haible  <bruno@clisp.org>
12173
12174         chdir-long: Move AC_LIBOBJ invocations to module description.
12175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12176         gl_PREREQ_CHDIR_LONG invocations from here...
12177         * modules/chdir-long (configure.ac): ... to here.
12178
12179 2011-05-05  Bruno Haible  <bruno@clisp.org>
12180
12181         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12182         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12183         from here...
12184         * modules/canonicalize-lgpl (configure.ac): ... to here.
12185
12186 2011-05-05  Bruno Haible  <bruno@clisp.org>
12187
12188         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12189         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12190         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12191         REPLACE_CALLOC.
12192         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12193         * modules/calloc-gnu (configure.ac): Likewise.
12194
12195 2011-05-05  Bruno Haible  <bruno@clisp.org>
12196
12197         btowc: Move AC_LIBOBJ invocations to module description.
12198         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12199         invocations from here...
12200         * modules/btowc (configure.ac): ... to here.
12201
12202 2011-05-21  Bruno Haible  <bruno@clisp.org>
12203
12204         atexit: Move AC_LIBOBJ invocations to module description.
12205         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12206         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12207         here...
12208         * modules/atexit (configure.ac): ... to here.
12209
12210 2011-05-05  Bruno Haible  <bruno@clisp.org>
12211
12212         atoll: Move AC_LIBOBJ invocations to module description.
12213         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12214         invocations from here...
12215         * modules/atoll (configure.ac): ... to here.
12216
12217 2011-05-05  Bruno Haible  <bruno@clisp.org>
12218
12219         argz: Move AC_LIBOBJ invocations to module description.
12220         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12221         * modules/argz (configure.ac): ... to here.
12222
12223 2011-05-05  Bruno Haible  <bruno@clisp.org>
12224
12225         alphasort: Move AC_LIBOBJ invocations to module description.
12226         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12227         gl_PREREQ_ALPHASORT invocations from here...
12228         * modules/alphasort (configure.ac): ... to here.
12229
12230 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12231
12232         verify: new macro verify_expr; verify_true deprecated
12233         * NEWS: Mention this.
12234         * doc/verify.texi (Compile-time Assertions): Document this.
12235         * lib/verify.h (verify_true): Deprecate.
12236         (verify_expr): New macro.
12237         * tests/test-verify.c (function): Test verify_expr.
12238
12239 2011-06-14  Jim Meyering  <meyering@redhat.com>
12240
12241         init.sh: give more portable redirection-related advice in a comment
12242         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12243         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12244         for lots of discussion.  Stefano Lattarini suggested the solution
12245         of putting "9>&2" after the command.  Reported by Bruno Haible.
12246
12247 2011-06-13  Bruno Haible  <bruno@clisp.org>
12248
12249         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12250         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12251         'none'.
12252
12253 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12254
12255         ftoastr: use strtof only if HAVE_STRTOF
12256         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12258         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12259         * modules/ftoastr (configure.ac): Check for strtof.
12260
12261 2011-06-13  Bruno Haible  <bruno@clisp.org>
12262
12263         gnulib-tool: Addendum to 2011-06-08 commit.
12264         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12265         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12266
12267 2011-06-13  Bruno Haible  <bruno@clisp.org>
12268
12269         fseeko: Provide a non-inline replacement of fseek().
12270         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12271         * modules/fseeko (Depends-on): Add fseek.
12272         * modules/fseek (License): Change to LGPLv2+.
12273
12274 2011-06-13  Bruno Haible  <bruno@clisp.org>
12275
12276         ftello: Provide a non-inline replacement of ftell().
12277         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12278         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12279         not have ftello() (such as on mingw).
12280         * modules/ftello (Depends-on): Add ftell.
12281         * modules/ftell (License): Change to LGPLv2+.
12282
12283 2011-05-07  Bruno Haible  <bruno@clisp.org>
12284
12285         ftell: Move AC_LIBOBJ invocations to module description.
12286         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12287         * modules/ftell (configure.ac): ... to here.
12288
12289 2011-05-07  Bruno Haible  <bruno@clisp.org>
12290
12291         ftello: Respect rules for use of AC_LIBOBJ.
12292         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12293         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12294         here...
12295         * modules/ftello (configure.ac): ... to here.
12296
12297 2011-05-07  Bruno Haible  <bruno@clisp.org>
12298
12299         fseeko: Simplify.
12300         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12301         (gl_FUNC_FSEEKO): Inline it here.
12302
12303 2011-05-07  Bruno Haible  <bruno@clisp.org>
12304
12305         fseek: Move AC_LIBOBJ invocations to module description.
12306         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12307         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12308         * modules/fseek (configure.ac): ... to here.
12309
12310 2011-05-07  Bruno Haible  <bruno@clisp.org>
12311
12312         fseek: Respect rules for use of AC_LIBOBJ.
12313         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12314         here...
12315         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12316
12317 2011-05-07  Bruno Haible  <bruno@clisp.org>
12318
12319         fseeko: Respect rules for use of AC_LIBOBJ.
12320         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12321         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12322         here...
12323         * modules/fseeko (configure.ac): ... to here.
12324
12325 2011-06-13  Bruno Haible  <bruno@clisp.org>
12326
12327         gnulib-tool: Allow comments in the 'Depends-on' section.
12328         * doc/gnulib.texi (Module description): Mention comment syntax in the
12329         Depends-on section.
12330         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12331
12332 2011-06-13  Bruno Haible  <bruno@clisp.org>
12333
12334         file-set.h: guard __attibute__ use, now that it's not always defined
12335         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12336         versions that support it.  This fixes a coreutils build failure with
12337         the vendor cc on HP-UX 11.31.
12338
12339 2011-06-12  Bruno Haible  <bruno@clisp.org>
12340
12341         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12342         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12343         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12344         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12345         (acl, aclsort): New declarations.
12346         (aclv_nontrivial): New declaration.
12347         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12348         (file_has_acl): Read also the second kind of HP-UX ACLs.
12349         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12350         kind of HP-UX ACLs if the first kind fails.
12351         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12352         second kind of HP-UX ACLs.
12353         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12354         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12355         agree.
12356         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12357         hpuxjfs.
12358         Handle hpuxjfs.
12359         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12360         hpuxjfs.
12361         Handle hpuxjfs.
12362         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12363         (func_test_same_acls): Use both lsacl and getacl.
12364         Handle hpuxjfs.
12365         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12366         (func_test_same_acls): Use both lsacl and getacl.
12367         Handle hpuxjfs.
12368
12369 2011-06-12  Bruno Haible  <bruno@clisp.org>
12370
12371         acl: Complete the 2010-08-10 fix.
12372         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12373         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12374         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12375         explicitly.
12376         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12377         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12378
12379 2011-06-12  Bruno Haible  <bruno@clisp.org>
12380
12381         spawn-pipe tests: Comments.
12382         * tests/test-spawn-pipe-child.c (main): Update comment.
12383         Reported by James Youngman <jay@gnu.org>.
12384
12385 2011-06-11  James Youngman  <jay@gnu.org>
12386
12387         New module 'stat-size'.
12388         * modules/stat-size: New module.  Provides macros for accessing
12389         file size information in instances of struct stat.  Depends on the
12390         fileblocks module because it calls st_blocks.
12391         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12392         * doc/gnulib.texi: Include stat-size.texi.
12393         * doc/stat-size.texi: Documentation for this module.
12394         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12395         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12396         AC_STRUCT_ST_BLOCKS.
12397
12398 2011-06-09  Bruno Haible  <bruno@clisp.org>
12399
12400         thread: Support pthreads-win32.
12401         * lib/glthread/thread.h (gl_thread_self): Define differently on
12402         pthreads-win32.
12403         (gl_null_thread): New declaration.
12404         (gl_thread_self_pointer): New macro.
12405         * lib/glthread/thread.c (gl_null_thread): New constant.
12406         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12407         gl_thread_self.
12408         * tests/test-tls.c: Likewise.
12409         Suggested by Paul Eggert. Reported by Eric Blake.
12410
12411 2011-06-09  Bruno Haible  <bruno@clisp.org>
12412
12413         thread: Fix confusion between NULL and 0.
12414         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12415         Reported by Paul Eggert.
12416
12417 2011-06-09  Bruno Haible  <bruno@clisp.org>
12418
12419         spawn-pipe tests: Avoid test failure on HP-UX 11.
12420         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12421         is closed.
12422
12423 2011-06-09  Bruno Haible  <bruno@clisp.org>
12424
12425         acl tests: Fix compilation error on HP-UX 11.
12426         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12427
12428 2011-06-09  Bruno Haible  <bruno@clisp.org>
12429
12430         rmdir: Avoid test failure on HP-UX 10.20.
12431         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12432         EEXIST.
12433
12434 2011-06-08  Eric Blake  <eblake@redhat.com>
12435
12436         perror: fix test on mingw
12437         * modules/perror-tests (Depends-on): Add dup2.
12438
12439         strerror_r-posix: fix on MacOS
12440         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12441         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12442         logic bug.
12443         * lib/strerror_r.c (strerror_r): Fix the bug.
12444         * lib/strerror.c (strerror): Likewise.
12445         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12446         problem.
12447         * doc/posix-functions/strerror.texi (strerror): Likewise.
12448         * doc/posix-functions/perror.texi (perror): Likewise.
12449         * tests/test-strerror.c (main): Enhance test.
12450         * tests/test-strerror_r.c (main): Likewise.
12451
12452 2011-06-08  Bruno Haible  <bruno@clisp.org>
12453
12454         gnulib-tool: Better isolation between different gnulib-tool invocations.
12455         * gnulib-tool: New option --witness-c-macro.
12456         (witness_c_macro): New variable.
12457         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12458         AM_CPPFLAGS define it as a C macro.
12459         (func_emit_tests_Makefile_am): Likewise.
12460         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12461         read it from there.
12462         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12463         m4_define, not AC_DEFUN.
12464         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12465         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12466         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12467         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12468         s|...|...|, to substitute the values of the GNULIB_* module indicator
12469         variables.
12470         * modules/dirent (Makefile.am): Likewise.
12471         * modules/fcntl-h (Makefile.am): Likewise.
12472         * modules/iconv-h (Makefile.am): Likewise.
12473         * modules/langinfo (Makefile.am): Likewise.
12474         * modules/locale (Makefile.am): Likewise.
12475         * modules/math (Makefile.am): Likewise.
12476         * modules/netdb (Makefile.am): Likewise.
12477         * modules/poll-h (Makefile.am): Likewise.
12478         * modules/pty (Makefile.am): Likewise.
12479         * modules/search (Makefile.am): Likewise.
12480         * modules/signal (Makefile.am): Likewise.
12481         * modules/spawn (Makefile.am): Likewise.
12482         * modules/stdio (Makefile.am): Likewise.
12483         * modules/stdlib (Makefile.am): Likewise.
12484         * modules/string (Makefile.am): Likewise.
12485         * modules/sys_ioctl (Makefile.am): Likewise.
12486         * modules/sys_select (Makefile.am): Likewise.
12487         * modules/sys_socket (Makefile.am): Likewise.
12488         * modules/sys_stat (Makefile.am): Likewise.
12489         * modules/sys_times (Makefile.am): Likewise.
12490         * modules/sys_utsname (Makefile.am): Likewise.
12491         * modules/sys_wait (Makefile.am): Likewise.
12492         * modules/termios (Makefile.am): Likewise.
12493         * modules/time (Makefile.am): Likewise.
12494         * modules/unistd (Makefile.am): Likewise.
12495         * modules/wchar (Makefile.am): Likewise.
12496
12497 2011-06-08  Eric Blake  <eblake@redhat.com>
12498
12499         strerror: simplify replacement
12500         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12501         * modules/strerror (configure.ac): No prereqs needed here...
12502         * modules/strerror-override (configure.ac): ...but this needs it.
12503         (Files): Add file for needed prereq macro.
12504
12505 2011-06-08  Bruno Haible  <bruno@clisp.org>
12506
12507         strerror_r-posix: Tweaks.
12508         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12509         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12511         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12512         (gl_FUNC_STRERROR_R): ... to here.
12513         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12514
12515 2011-06-07  Eric Blake  <eblake@redhat.com>
12516
12517         perror: document fixed bugs
12518         * doc/posix-functions/perror.texi (perror): Document recent
12519         patches.
12520
12521 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12522
12523         stat-time: get_stat_birthtime failure is better-defined
12524         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12525         return a timestamp whose tv_sec and tv_nsec values are both -1.
12526         Previously, the spec said only that the tv_nsec value was negative.
12527         This upward-compatible change simplifies GNU tar a bit.
12528
12529 2011-06-07  Eric Blake  <eblake@redhat.com>
12530
12531         strerror_r-posix: work around cygwin 1.7.9
12532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12533         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12534         bug without replacing strerror_r.
12535         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12536         strerror_r is buggy, but without requiring strerror_r compilation.
12537         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12538
12539         test-perror: relax test to ignore cygwin bug
12540         * tests/test-perror2.c (main): Relax test on requiring detection
12541         of stream errors, and use unbuffered stream.
12542         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12543         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12544         * doc/posix-functions/fputc.texi (fputc): Likewise.
12545         * doc/posix-functions/fputs.texi (fputs): Likewise.
12546         * doc/posix-functions/fputws.texi (fputws): Likewise.
12547         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12548         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12549         * doc/posix-functions/getopt.texi (getopt): Likewise.
12550         * doc/posix-functions/perror.texi (perror): Likewise.
12551         * doc/posix-functions/printf.texi (printf): Likewise.
12552         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12553         * doc/posix-functions/psignal.texi (psignal): Likewise.
12554         * doc/posix-functions/putc.texi (putc): Likewise.
12555         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12556         Likewise.
12557         * doc/posix-functions/putchar.texi (putchar): Likewise.
12558         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12559         Likewise.
12560         * doc/posix-functions/puts.texi (puts): Likewise.
12561         * doc/posix-functions/putwc.texi (putwc): Likewise.
12562         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12563         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12564         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12565         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12566         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12567         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12568         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12569         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12570
12571 2011-05-22  Bruno Haible  <bruno@clisp.org>
12572
12573         strerror: Move AC_LIBOBJ invocations to module description.
12574         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12575         gl_PREREQ_STRERROR invocations from here...
12576         * modules/strerror (configure.ac): ... to here.
12577
12578 2011-05-21  Bruno Haible  <bruno@clisp.org>
12579
12580         perror: Use common idiom.
12581         * modules/perror (configure.ac): Reorder statements.
12582
12583 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12584
12585         tests: fix usage message in 'mktempd_'
12586         * tests/init.sh (mktempd_): In the usage message, use literal
12587         'mktempd_', not '$ME' (which is even undefined), as the name of
12588         the subroutine.
12589
12590 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12591
12592         tests init: new function 'fatal_', for hard errors
12593         Before this patch, the only way offered by tests/init.sh to
12594         properly signal a hard error was the `framework_failure_'
12595         function.  But the error message issued by that function,
12596         as its name would suggest, refers to a set-up failure in the
12597         testsuite, while hard errors can obviously also be due to
12598         other reasons.  The best way to fix this inconsistency is to
12599         introduce a new function with a more general error message.
12600         * tests/init.sh (fatal_): New function.
12601
12602 2011-06-06  Eric Blake  <eblake@redhat.com>
12603
12604         canonicalize-lgpl: use common idiom
12605         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12606         over newer POSIX -Rf.
12607         Reported by Bruno Haible.
12608
12609         canonicalize-lgpl: work around AIX realpath bug
12610         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12611         * doc/posix-functions/realpath.texi (realpath): Document it.
12612         Reported by Bruno Haible.
12613
12614         strerror: work around FreeBSD bug
12615         * lib/strerror.c (strerror): Special case 0.
12616         Reported by Bruno Haible.
12617
12618         strerror-override: avoid bloating errno module
12619         * modules/errno (Files, configure.ac): Move replacement strings...
12620         * modules/strerror-override: ...to new module.
12621         * modules/strerror (Depends-on): Add strerror-override.
12622         * modules/strerror_r-posix (Depends-on): Likewise.
12623         * MODULES.html.sh: Document new module.
12624         Reported by Bruno Haible.
12625
12626 2011-06-06  Bruno Haible  <bruno@clisp.org>
12627
12628         spawn-pipe tests: Rename program.
12629         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12630         * tests/test-spawn-pipe-child.c: Update comment.
12631         * tests/test-spawn-pipe.sh: Update.
12632         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12633
12634         spawn-pipe tests: Link the child program only against libc.
12635         * tests/test-spawn-pipe-child.c: New file, extracted from
12636         tests/test-spawn-pipe.c.
12637         (main): Expect only one argument.
12638         (is_open): New function, copied from tests/test-pipe.c.
12639         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12640         (child_main): Remove function.
12641         (test_pipe): Pass only one argument to the child program.
12642         (main): Remove child process code. Expect the child program's name as
12643         first argument.
12644         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12645         argument.
12646         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12647         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12648         test-spawn-pipe-child against no libraries.
12649
12650 2011-06-06  Bruno Haible  <bruno@clisp.org>
12651
12652         careadlinkat: Avoid mismatch between ssize_t and int.
12653         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12654         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12655
12656 2011-06-06  Jim Meyering  <meyering@redhat.com>
12657
12658         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12659         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12660         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12661
12662 2011-06-05  Bruno Haible  <bruno@clisp.org>
12663
12664         ansi-c++-opt: Interoperability with libtool.
12665         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12666         set the variable to "no", not to ":".
12667         * NEWS: Mention the change.
12668
12669 2011-06-05  Bruno Haible  <bruno@clisp.org>
12670
12671         acl: Fix test failure on AIX 7.
12672         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12673         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12674
12675 2011-06-05  Bruno Haible  <bruno@clisp.org>
12676
12677         pipe-filter-ii: Fix test failure on AIX and IRIX.
12678         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12679         with EAGAIN, retry with a smaller buffer size.
12680
12681 2011-06-05  Bruno Haible  <bruno@clisp.org>
12682
12683         localename: Fix link dependencies.
12684         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12685         * modules/localename-tests (Makefile.am): Link test-localename with
12686         $(LIBTHREAD).
12687
12688 2011-06-05  Bruno Haible  <bruno@clisp.org>
12689
12690         error: Avoid gcc warning.
12691         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12692
12693 2011-06-05  Bruno Haible  <bruno@clisp.org>
12694
12695         unsetenv: Avoid gcc warning.
12696         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12697
12698 2011-06-05  Bruno Haible  <bruno@clisp.org>
12699
12700         setenv: Avoid gcc warning.
12701         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12702
12703 2011-06-05  Bruno Haible  <bruno@clisp.org>
12704
12705         sys_select: Ensure memset is declared also on AIX 7.
12706         * lib/sys_select.in.h: Include <string.h> also on AIX.
12707         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12708         self-contained also on AIX 7.1.
12709
12710 2011-06-04  Jim Meyering  <meyering@redhat.com>
12711
12712         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12713         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12714         function name, "error".
12715         (_gl_translatable_diag_func_re): New configurable variable.
12716
12717 2011-06-04  Bruno Haible  <bruno@clisp.org>
12718
12719         getopt: Avoid gcc warning.
12720         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12721
12722 2011-06-04  Bruno Haible  <bruno@clisp.org>
12723
12724         strerror_r: Fix comments.
12725         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12726         commit.
12727
12728 2011-06-04  Bruno Haible  <bruno@clisp.org>
12729
12730         perror: Fix compilation error.
12731         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12732         Undefine fprintf, not sprintf.
12733         * modules/perror (Depends-on): Remove intprops, verify.
12734
12735 2011-06-04  Bruno Haible  <bruno@clisp.org>
12736
12737         setlocale: Enable replacement on Cygwin 1.5.
12738         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12739         Cygwin 1.5.x.
12740         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12741         LC_CTYPE category also exists on Cygwin 1.5.x.
12742
12743 2011-06-04  Bruno Haible  <bruno@clisp.org>
12744
12745         strerror-override: Don't disable symbol renamings.
12746         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12747         * lib/strerror-override.c: Include config.h.
12748         (strerror_override): Don't undefine.
12749
12750 2011-06-03  Bruno Haible  <bruno@clisp.org>
12751
12752         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12753         * lib/localename.h: Update copyright header.
12754         * lib/localename.c: Likewise.
12755         * lib/relocatable.h: Likewise.
12756         * lib/relocatable.c: Likewise.
12757
12758 2011-06-02  Bruno Haible  <bruno@clisp.org>
12759
12760         doc: Fix a module name.
12761         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12762
12763 2011-06-02  Bruno Haible  <bruno@clisp.org>
12764
12765         pipe2: Remove dependency on 'nonblocking' module.
12766         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12767         O_NONBLOCK is defined by gnulib.
12768         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12769         is zero.
12770         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12771         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12772         defined by gnulib.
12773         (get_nonblocking_flag): New function.
12774         (main): Test O_NONBLOCK flag only if it is nonzero.
12775         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12776
12777 2011-06-03  Jim Meyering  <meyering@redhat.com>
12778
12779         maint: three new prohibit-header-without-use rules
12780         Prohibit use of cloexec.h, posixver.h, same.h without use.
12781         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12782         (sc_prohibit_posixver_without_use): Likewise.
12783         (sc_prohibit_same_without_use): Likewise.
12784
12785 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12786
12787         allocator: 'die' routine is now given requested size
12788         * lib/allocator.h (struct allocator.die): New size arg.
12789         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12790         If the actual problem is an ssize_t limitation, not a size_t or
12791         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12792
12793 2011-06-01  Eric Blake  <eblake@redhat.com>
12794
12795         strerror: drop strerror_r dependency
12796         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12797         * lib/strerror-override.c (strerror_override): ...to new file.
12798         * lib/strerror-override.h: Add prototype.
12799         * lib/strerror-impl.h: Delete.
12800         * lib/strerror.c (strerror): New implementation.
12801         * modules/errno (Files): Add new files.
12802         (configure.ac): Compile new file as appropriate.
12803         * modules/strerror (Files): Drop unused file.
12804         (Depends-on): Drop strerror_r-posix.
12805         * MODULES.html.sh: Document strerror_r-posix.
12806         Requested by Sam Steingold.
12807
12808         perror: call strerror_r directly
12809         * modules/perror (Files): Drop strerror-impl.h.
12810         * lib/perror.c (perror): Use our own stack buffer, rather than
12811         calling a wrapper that uses static storage.
12812         * doc/posix-functions/perror.texi (perror): Document a limitation
12813         of our replacement.
12814
12815         strerror_r: fix includes for FreeBSD
12816         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12817         since we use abort on some platforms.
12818         Reported by Matthias Bolte.
12819
12820 2011-05-31  Bruno Haible  <bruno@clisp.org>
12821
12822         Fix link errors in tests: openat-die uses gettext-h.
12823         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12824         against $(LIBINTL).
12825         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12826         against $(LIBINTL).
12827         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12828         $(LIBINTL).
12829         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12830         against $(LIBINTL).
12831         * modules/linkat-tests (Makefile.am): Link test-linkat against
12832         $(LIBINTL).
12833         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12834         $(LIBINTL).
12835         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12836         against $(LIBINTL).
12837         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12838         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12839         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12840         $(LIBINTL).
12841         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12842         $(LIBINTL).
12843         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12844         $(LIBINTL).
12845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12846
12847 2011-05-31  Bruno Haible  <bruno@clisp.org>
12848
12849         Fix link errors in tests: wait-process uses gettext-h.
12850         * modules/nonblocking-pipe-tests (Makefile.am): Set
12851         test_nonblocking_pipe_main_LDADD.
12852         * modules/nonblocking-socket-tests (Makefile.am): Link
12853         test-nonblocking-socket-main against $(LIBINTL).
12854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12855
12856 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12857
12858         assert-h: work around 'verify' incompatibility
12859         * lib/verify.h: Use @...@ directives, not ifdef.
12860         * modules/assert-h (assert.h): Implement the directives.
12861         (assert.h): Substitute the symbol-prefix more consistently.
12862
12863 2011-05-29  Jim Meyering  <meyering@redhat.com>
12864
12865         trim: remove three superfluous assignments
12866         * lib/trim.c (trim2): Remove three superfluous assignments
12867         and correct brace positioning.
12868
12869 2011-05-29  Bruno Haible  <bruno@clisp.org>
12870
12871         wctype-h: Avoid namespace pollution on Solaris 2.6.
12872         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12873         identifiers.
12874         * doc/posix-headers/wctype.texi: Mention the problem.
12875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12876
12877 2011-05-28  Jim Meyering  <meyering@redhat.com>
12878
12879         parse-datetime.y: accommodate -Wstrict-overflow
12880         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12881         placate -Wstrict-overflow.
12882
12883         trim: avoid a warning from -O2 -Wstrict-overflow
12884         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12885
12886 2011-05-29  Bruno Haible  <bruno@clisp.org>
12887
12888         gnulib-tool: Fix bug in yesterday's commit.
12889         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12890         twice.
12891
12892 2011-05-29  Bruno Haible  <bruno@clisp.org>
12893
12894         Allow multiple gnulib generated include files to be combined.
12895         * gnulib-tool (func_compute_include_guard_prefix): New function.
12896         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12897         ${gl_include_guard_prefix} references.
12898         (func_import, func_create_testdir): Invoke
12899         func_compute_include_guard_prefix.
12900         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12901         * lib/ctype.in.h: Likewise.
12902         * lib/dirent.in.h: Likewise.
12903         * lib/errno.in.h: Likewise.
12904         * lib/fcntl.in.h: Likewise.
12905         * lib/float.in.h: Likewise.
12906         * lib/getopt.in.h: Likewise.
12907         * lib/iconv.in.h: Likewise.
12908         * lib/langinfo.in.h: Likewise.
12909         * lib/locale.in.h: Likewise.
12910         * lib/math.in.h: Likewise.
12911         * lib/netdb.in.h: Likewise.
12912         * lib/netinet_in.in.h: Likewise.
12913         * lib/poll.in.h: Likewise.
12914         * lib/pthread.in.h: Likewise.
12915         * lib/pty.in.h: Likewise.
12916         * lib/sched.in.h: Likewise.
12917         * lib/se-selinux.in.h: Likewise.
12918         * lib/search.in.h: Likewise.
12919         * lib/signal.in.h: Likewise.
12920         * lib/spawn.in.h: Likewise.
12921         * lib/stdarg.in.h: Likewise.
12922         * lib/stddef.in.h: Likewise.
12923         * lib/stdint.in.h: Likewise.
12924         * lib/stdio.in.h: Likewise.
12925         * lib/stdlib.in.h: Likewise.
12926         * lib/string.in.h: Likewise.
12927         * lib/strings.in.h: Likewise.
12928         * lib/sys_file.in.h: Likewise.
12929         * lib/sys_ioctl.in.h: Likewise.
12930         * lib/sys_select.in.h: Likewise.
12931         * lib/sys_socket.in.h: Likewise.
12932         * lib/sys_stat.in.h: Likewise.
12933         * lib/sys_time.in.h: Likewise.
12934         * lib/sys_times.in.h: Likewise.
12935         * lib/sys_uio.in.h: Likewise.
12936         * lib/sys_utsname.in.h: Likewise.
12937         * lib/sys_wait.in.h: Likewise.
12938         * lib/sysexits.in.h: Likewise.
12939         * lib/termios.in.h: Likewise.
12940         * lib/time.in.h: Likewise.
12941         * lib/unistd.in.h: Likewise.
12942         * lib/wchar.in.h: Likewise.
12943         * lib/wctype.in.h: Likewise.
12944         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12945         * modules/ctype (Makefile.am): Likewise.
12946         * modules/dirent (Makefile.am): Likewise.
12947         * modules/errno (Makefile.am): Likewise.
12948         * modules/fcntl-h (Makefile.am): Likewise.
12949         * modules/float (Makefile.am): Likewise.
12950         * modules/getopt-posix (Makefile.am): Likewise.
12951         * modules/iconv-h (Makefile.am): Likewise.
12952         * modules/langinfo (Makefile.am): Likewise.
12953         * modules/locale (Makefile.am): Likewise.
12954         * modules/math (Makefile.am): Likewise.
12955         * modules/netdb (Makefile.am): Likewise.
12956         * modules/netinet_in (Makefile.am): Likewise.
12957         * modules/poll-h (Makefile.am): Likewise.
12958         * modules/pthread (Makefile.am): Likewise.
12959         * modules/pty (Makefile.am): Likewise.
12960         * modules/sched (Makefile.am): Likewise.
12961         * modules/search (Makefile.am): Likewise.
12962         * modules/selinux-h (Makefile.am): Likewise.
12963         * modules/signal (Makefile.am): Likewise.
12964         * modules/spawn (Makefile.am): Likewise.
12965         * modules/stdarg (Makefile.am): Likewise.
12966         * modules/stddef (Makefile.am): Likewise.
12967         * modules/stdint (Makefile.am): Likewise.
12968         * modules/stdio (Makefile.am): Likewise.
12969         * modules/stdlib (Makefile.am): Likewise.
12970         * modules/string (Makefile.am): Likewise.
12971         * modules/strings (Makefile.am): Likewise.
12972         * modules/sys_file (Makefile.am): Likewise.
12973         * modules/sys_ioctl (Makefile.am): Likewise.
12974         * modules/sys_select (Makefile.am): Likewise.
12975         * modules/sys_socket (Makefile.am): Likewise.
12976         * modules/sys_stat (Makefile.am): Likewise.
12977         * modules/sys_time (Makefile.am): Likewise.
12978         * modules/sys_times (Makefile.am): Likewise.
12979         * modules/sys_uio (Makefile.am): Likewise.
12980         * modules/sys_utsname (Makefile.am): Likewise.
12981         * modules/sys_wait (Makefile.am): Likewise.
12982         * modules/sysexits (Makefile.am): Likewise.
12983         * modules/termios (Makefile.am): Likewise.
12984         * modules/time (Makefile.am): Likewise.
12985         * modules/unistd (Makefile.am): Likewise.
12986         * modules/wchar (Makefile.am): Likewise.
12987         * modules/wctype-h (Makefile.am): Likewise.
12988         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12989
12990 2011-05-29  Bruno Haible  <bruno@clisp.org>
12991
12992         assert-h: Allow multiple gnulib generated replacements to coexist.
12993         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12994
12995 2011-05-29  Bruno Haible  <bruno@clisp.org>
12996
12997         argp: Allow coexistence with strerror_r-posix module.
12998         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12999         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
13000         by gnulib's <string.h> replacement), assume it has the POSIX signature,
13001         not the glibc signature.
13002
13003 2011-05-28  Bruno Haible  <bruno@clisp.org>
13004
13005         gnulib-tool: Alternative structure of testdirs, similar to --import.
13006         * gnulib-tool: New option --single-configure.
13007         (func_usage): Document it.
13008         (single_configure): New variable.
13009         (func_modules_transitive_closure_separately,
13010         func_modules_transitive_closure_separately,
13011         func_determine_use_libtests, func_modules_add_dummy_separately,
13012         func_modules_to_filelist_separately): New functions, extracted from
13013         func_import.
13014         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
13015         (func_import): Use the new functions.
13016         (func_create_testdir): Set final_modules. Handle $single_configure =
13017         true case.
13018
13019 2011-05-28  Bruno Haible  <bruno@clisp.org>
13020
13021         getloadavg: Remove an unreliable safety check.
13022         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
13023         getloadavg.c is in place.
13024         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
13025         Reported by Sam Steingold <sds@gnu.org>.
13026
13027 2011-05-28  Bruno Haible  <bruno@clisp.org>
13028
13029         doc: Cleanup yet another file produced by texinfo.tex.
13030         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
13031
13032 2011-05-28  Bruno Haible  <bruno@clisp.org>
13033
13034         Finish the conditional dependencies mechanism.
13035         * gnulib-tool: New option --no-conditional-dependencies.
13036         (func_usage): Document it. Don't mark --conditional-dependencies as
13037         experimental.
13038         (cond_dependencies): The possible values can now be true, false, empty.
13039         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
13040         (func_import): Store setting in gnulib-cache.m4 and read it from there.
13041         * doc/gnulib-tool.texi (Conditional dependencies): New section.
13042
13043 2011-05-28  Bruno Haible  <bruno@clisp.org>
13044
13045         doc: Use a recent texinfo.tex.
13046         * doc/Makefile (tex_opts): New variable.
13047         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
13048
13049 2011-05-28  Jim Meyering  <meyering@redhat.com>
13050
13051         intprops.h: adjust comment to match code change
13052         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
13053         only once, it *may* have side effects.  Also fix an unrelated typo.
13054         (_GL_INT_SIGNED): Likewise.
13055
13056 2011-05-26  Simon Josefsson  <simon@josefsson.org>
13057
13058         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
13059
13060 2011-05-26  Bruno Haible  <bruno@clisp.org>
13061
13062         mbsrchr: Avoid collision with system function on Interix.
13063         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
13064         Reported by Markus Duft <mduft@gentoo.org>.
13065
13066 2011-05-15  James Youngman  <jay@gnu.org>
13067
13068         getopt: for ambiguous options, enumerate the possibilities.
13069         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
13070         the ambiguous options when an ambiguous prefix is given. This was
13071         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
13072         glibc change was
13073         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
13074
13075 2011-05-25  Eric Blake  <eblake@redhat.com>
13076
13077         getcwd: work around mingw bug
13078         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
13079         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13080         Reported by Matthias Bolte.
13081
13082 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13083
13084         test-intprops: disable -Wtype-limits diagnostics
13085         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
13086         diagnostics.  Otherwise, the integer overflow macros generate many
13087         diagnostics.  Reported by Jim Meyering in
13088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13089
13090         intprops: shorten, to pacify gcc -Woverlength-strings
13091         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
13092         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
13093         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13094         likely to run afoul of C compiler limits for string constant lengths.
13095         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13096
13097 2011-05-24  Eric Blake  <eblake@redhat.com>
13098
13099         docs: document recently fixed glibc printf bug
13100         * doc/posix-functions/fprintf.texi (fprintf): Document it.
13101         * doc/posix-functions/printf.texi (printf): Likewise.
13102         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13103         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13104
13105         closein-tests: convert to init.sh
13106         * modules/closein-tests (Files): Add init.sh
13107         * tests/test-closein.sh Use it.
13108
13109         yesno-tests: convert to init.sh
13110         * modules/yesno-tests (Files): Add init.sh.
13111         * tests/test-yesno.sh: Use it.
13112
13113         atexit-tests: ensure reliable exit status
13114         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
13115         Reported by Bruno Haible.
13116
13117 2011-05-24  Bruno Haible  <bruno@clisp.org>
13118
13119         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
13120         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
13121         gl_PREREQ_STRERROR_R invocations from here...
13122         * modules/strerror_r-posix (configure.ac): ... to here.
13123
13124 2011-05-24  Eric Blake  <eblake@redhat.com>
13125
13126         strerror_r: fix missing header
13127         * lib/strerror_r.c: Avoid compiler warning about snprintf.
13128
13129         strerror_r: fix AIX test failures
13130         * lib/strerror_r.c (strerror_r): Convert silent truncation to
13131         ERANGE failure.
13132
13133         strerror_r: fix Solaris test failures
13134         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
13135         failures.
13136         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13137
13138         strerror_r: enforce POSIX recommendations
13139         * lib/strerror_r.c (safe_copy): New helper method.
13140         (strerror_r): Guarantee a non-empty string.
13141         * tests/test-strerror_r.c (main): Enhance tests to incorporate
13142         recent POSIX rulings and to match our strerror guarantees.
13143         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13144
13145 2011-05-24  Jim Meyering  <meyering@redhat.com>
13146
13147         test-perror2.c: avoid warning about unused variable
13148         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13149
13150 2011-05-24  Eric Blake  <eblake@redhat.com>
13151
13152         perror: avoid spurious test failure on HP-UX
13153         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13154
13155         tests: fix logic bug in init.sh
13156         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13157         shell.
13158
13159 2011-05-24  Jim Meyering  <meyering@redhat.com>
13160
13161         utimensat: do not reference an out-of-scope buffer
13162         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13163         declared in an inner scope, yet "times" would be dereferenced outside
13164         the scope in which "ts" was valid.
13165         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13166         of ts[2] "out/up", so that the use of aliased "times" (via
13167         "times = ts;") does not end up referencing an out-of-scope "ts"
13168
13169         opendir-safer.c: don't clobber errno; don't close negative FD
13170         * lib/opendir-safer.c (opendir_safer):
13171         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13172         file descriptor, and more importantly, don't clobber the
13173         offending errno value with EINVAL.  Before, upon failure
13174         of dup_safer, we would pass the negative file descriptor to
13175         fdopendir, which would clobber errno.
13176
13177 2011-05-23  Bruno Haible  <bruno@clisp.org>
13178
13179         idcache: Fix module description.
13180         * modules/idcache (Include): Set to "idcache.h".
13181
13182 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         gnulib-tool: fix portability problem with MacOS sed
13185         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13186         before the "}".  Problem reported by Leo in
13187         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13188         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13189         sed_extract_condition1, sed_extract_condition2.
13190
13191 2011-05-23  Bruno Haible  <bruno@clisp.org>
13192
13193         hash: Simplify autoconf macro.
13194         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13195
13196 2011-05-23  Bruno Haible  <bruno@clisp.org>
13197
13198         getugroups: Fix module description.
13199         * modules/getugroups (Include): Set to "getugroups.h".
13200
13201 2011-05-23  Bruno Haible  <bruno@clisp.org>
13202
13203         linkat: Simplify autoconf macro.
13204         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13205
13206 2011-05-23  Bruno Haible  <bruno@clisp.org>
13207             Eric Blake  <eblake@redhat.com>
13208
13209         linkat, renameat: Update dependencies.
13210         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13211         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13212         symlinkat.
13213
13214 2011-05-23  Jim Meyering  <meyering@redhat.com>
13215
13216         maint.mk: more tight_scope improvements
13217         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13218         (_gl_TS_headers): Define only in if-0'd block.
13219         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13220         sometimes we must *not* use it.  Adjust uses accordingly.
13221         (sc_tight_scope): Use much simpler grep-based test to determine
13222         whether we skip this rule.
13223
13224         maint.mk: generalize/improve the tight-scope rule
13225         * top/maint.mk: Emit a warning when the test is skipped.
13226         (_gl_TS_dir): Add $(srcdir)/ prefix.
13227         (_gl_TS_function_match): Simplify, rather than trying
13228         to enumerate common types.  Otherwise, it would fail to match an
13229         "extern unsigned char const *" declaration in idutils.
13230         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13231         a way to support use of that type of macro.
13232         (_gl_TS_var_match): Simplify regexp.
13233         (_gl_TS_obj_files): New configurable variable.
13234         (_gl_TS_headers): Likewise.
13235
13236 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13237
13238         verify: fix bug when gnulib <assert.h> is also included
13239         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13240         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13241         Perhaps there's a better way, but this fixes the immediate problem.
13242         Problem reported by Bruno Haible in
13243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13244
13245 2011-05-22  Bruno Haible  <bruno@clisp.org>
13246
13247         xgetcwd: Simplify autoconf macro.
13248         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13249
13250 2011-05-22  Bruno Haible  <bruno@clisp.org>
13251
13252         New module 'mktime-internal'.
13253         * modules/mktime-internal: New file.
13254         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13255         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13256         mktime_internal as a C macro if libc has __mktime_internal.
13257         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13258         conditions.
13259         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13260
13261 2011-05-22  Bruno Haible  <bruno@clisp.org>
13262
13263         timegm: Correct mktime replacement statements.
13264         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13265         defining mktime as a C macro. This completes a 2009-07-28 commit.
13266
13267 2011-05-22  Bruno Haible  <bruno@clisp.org>
13268
13269         timegm: Simplify autoconf macro.
13270         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13271
13272 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         clock-time: change to LGPLv2+.
13275         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13276         BSD-like but we have no mark for that; this is good enough for now.
13277
13278 2011-05-21  Bruno Haible  <bruno@clisp.org>
13279
13280         strerror_r: Fix comments.
13281         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13282
13283 2011-05-21  Bruno Haible  <bruno@clisp.org>
13284
13285         relocatable-prog-wrapper: Fix possible link error.
13286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13287         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13288         (gl_FUNC_SETENV): ... to here.
13289         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13290         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13291
13292 2011-05-21  Bruno Haible  <bruno@clisp.org>
13293
13294         relocatable-prog-wrapper: Assume strerror() exists.
13295         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13296         m4/strerror.m4.
13297         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13298         * lib/relocwrapper.c: Remove mention of strerror module.
13299         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13300         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13301         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13302         C macro.
13303
13304 2011-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         select: Simplify replacement idiom.
13307         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13308         Win32 platforms.
13309         * lib/sys_select.in.h (select): Simplify accordingly.
13310         * modules/select (Depends-on): Likewise.
13311
13312 2011-05-21  Bruno Haible  <bruno@clisp.org>
13313
13314         mkdir-p: Simplify autoconf macro.
13315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13316         gl_FUNC_LCHOWN.
13317
13318 2011-05-21  Eric Blake  <eblake@redhat.com>
13319
13320         strerror_r: avoid clobbering strerror on cygwin
13321         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13322         fall back instead to sys_errlist.
13323         * modules/strerror (configure.ac): Add witness.
13324         * tests/test-strerror_r.c (main): Enhance test.
13325         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13326         * tests/test-perror2.c (main): Free memory before exit.
13327
13328 2011-05-21  Bruno Haible  <bruno@clisp.org>
13329
13330         mkdtemp: Use gnulib naming conventions.
13331         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13332         * modules/mkdtemp (configure.ac): Update.
13333
13334 2011-05-20  Eric Blake  <eblake@redhat.com>
13335
13336         strerror_r: avoid corrupting errno on Solaris
13337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13338         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13339
13340         strerror_r: avoid compiler warning
13341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13342
13343         strerror_r: simplify AIX code
13344         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13345
13346         test-perror: avoid spurious failure on FreeBSD
13347         * modules/perror-tests (Depends-on): Add strerror, now that
13348         strerror_r no longer pulls it in.
13349
13350 2011-05-20  Bruno Haible  <bruno@clisp.org>
13351
13352         strerror_r-posix: Remove unused dependencies.
13353         * modules/strerror_r-posix (Depends-on): Remove strerror.
13354         Reported by Eric Blake.
13355
13356 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         intprops: remove assumption about A|B representation
13359         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13360         is a valid integer if both A and B are.  Although this is true for
13361         all known practical hosts, the C standard doesn't guarantee it,
13362         and the code need not assume it.  Also, this change may work around
13363         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13365
13366 2011-05-20  Eric Blake  <eblake@redhat.com>
13367
13368         perror: work around FreeBSD bug
13369         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13370         is broken.  Move AC_LIBOBJ...
13371         * modules/perror (configure.ac): Here.
13372         * doc/posix-functions/perror.texi (perror): Document this.
13373         * tests/test-perror2.c (main): Enhance test.
13374
13375         test-perror: check for strerror interactions
13376         * tests/macros.h (STREQ): Add macro.
13377         * modules/perror-tests (Files): Add second test.
13378         * tests/test-perror2.c (main): New file.
13379         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13380
13381         test-perror: rewrite to use init script
13382         * modules/perror-tests (Files): Add init.sh.
13383         * tests/test-perror.sh: Use temporary directory.
13384
13385 2011-05-20  Jim Meyering  <meyering@redhat.com>
13386
13387         maint: replace misused "a" with "an"
13388         * doc/intprops.texi: "a integer"
13389         * doc/regex.texi: "a explanation"
13390         * lib/alignof.h: "a object"
13391         * lib/argmatch.h: "a explanation"
13392         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13393         * lib/stdint.in.h: "a integer"
13394         * lib/userspec.c: "a owner"
13395         * doc/gnulib.texi: Fix "a idea", and reword.
13396
13397 2011-05-19  Jim Meyering  <meyering@redhat.com>
13398
13399         maint: correct misuse of "a" and "an"
13400         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13401         * lib/argp-help.c: "an docum...": s/an/a/
13402         * lib/argp-parse.c: "An vector": s/An/A/
13403         * lib/execute.c: "an native": s/an/a/
13404         * lib/spawn-pipe.c: Likewise.
13405         * lib/gc.h: "an Gc_rc": s/an/a/
13406         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13407         * lib/fts.c: "an stat.st_dev": s/an/a/
13408
13409 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13410
13411         intprops-tests: work around HP-UX 11.23 cc bug with constants
13412         * tests/test-intprops.c (VERIFY): New macro.
13413         (main): Use it, instead of verify, to work around the compiler bug; see
13414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13415
13416         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13417         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13418         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13419         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13420         (_GL_REMAINDER_OVERFLOW): Use it.
13421
13422         intprops-tests: revert unsigned part of previous change
13423         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13424         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13425         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13427
13428 2011-05-19  Bruno Haible  <bruno@clisp.org>
13429
13430         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13431         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13432         strerror_r() returned without filling the buffer.
13433         Reported by Eric Blake.
13434
13435 2011-05-19  Eric Blake  <eblake@redhat.com>
13436
13437         strerror_r: guarantee unchanged errno
13438         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13439         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13440         failure.
13441         * tests/test-strerror_r.c (main): Enhance test.
13442
13443 2011-05-19  Bruno Haible  <bruno@clisp.org>
13444
13445         strerror_r: Reorder #if blocks.
13446         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13447         for consistency with the previous commit.
13448
13449 2011-05-19  Bruno Haible  <bruno@clisp.org>
13450
13451         perror: Avoid clobbering the strerror buffer when possible.
13452         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13453         * lib/strerror.c: Include it.
13454         * modules/strerror (Files): Add lib/strerror-impl.h.
13455         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13456         (my_strerror): New function, defined through lib/strerror-impl.h.
13457         (perror): Use it instead of strerror.
13458         * modules/perror (Files): Add lib/strerror-impl.h.
13459         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13460
13461 2011-05-19  Eric Blake  <eblake@redhat.com>
13462
13463         strerror_r: fix on newer cygwin
13464         * lib/strerror_r.c (strerror_r): Cygwin now has
13465         __xpg_strerror_r, use it.
13466
13467 2011-05-19  Bruno Haible  <bruno@clisp.org>
13468
13469         strerror_r: Avoid clobbering the strerror buffer when possible.
13470         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13471         (sys_nerr, sys_errlist): New declarations.
13472         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13473         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13474         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13475
13476 2011-05-19  Bruno Haible  <bruno@clisp.org>
13477
13478         strerror_r: Fix test failure on mingw.
13479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13480         EXTEND_STRERROR_R.
13481         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13482         macros from errno.in.h instead.
13483
13484 2011-05-19  Eric Blake  <eblake@redhat.com>
13485
13486         strerror: relax test for Solaris
13487         * tests/test-strerror.c (main): Permit Solaris behavior.
13488         * tests/test-strerror_r.c (main): Likewise.
13489
13490         strerror: enforce POSIX ruling on strerror(0)
13491         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13492         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13493         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13494         * doc/posix-functions/strerror.texi (strerror): Document it.
13495         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13496         * tests/test-strerror.c (main): Strengthen test.
13497         * tests/test-strerror_r.c (main): Likewise.
13498
13499 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         intprop-tests: port to older and more-pedantic compilers
13502         * modules/intprops-tests (Files): Add tests/macros.h.
13503         * tests/test-intprops.c: Include macros.h.
13504         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13505         it's no longer documented to expand to an integer constant expression.
13506         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13507         argument is floating point, as it's no longer documented to expand
13508         to an integer constant expression in that case.
13509         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13510         compiler bugs reported by Bruno Haible.  See
13511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13512         (U0, U1): New constants, to work around the same bugs.  Also,
13513         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13514
13515         intprops: work around C compiler bugs
13516         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13517         bug in Sun C 5.11 2010/08/13 and other compilers; see
13518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13519
13520         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13521         * doc/intprops.texi (Integer Type Determination): Fix
13522         documentation for TYPE_IS_INTEGER: it returns an constant
13523         expression, not an integer constant expression.  Fix doc for
13524         TYPE_SIGNED: it returns an integer constant expression only if its
13525         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13526         hardly worth documented that way....)
13527
13528 2011-05-18  Bruno Haible  <bruno@clisp.org>
13529
13530         strerror_r: Avoid clobbering the strerror buffer when possible.
13531         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13532         Handle gnulib defined errno values here. When strerror() returns NULL
13533         or an empty string, return EINVAL.
13534         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13535         gnulib defined errno values here.
13536         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13537
13538 2011-05-18  Eric Blake  <eblake@redhat.com>
13539
13540         fnmatch: avoid compiler warning
13541         * lib/fnmatch_loop.c (FCT): Use correct type.
13542         Reported by Matthias Bolte.
13543
13544 2011-05-13  Jim Meyering  <meyering@redhat.com>
13545
13546         maint.mk: three new prohibit_<HDR>_without_use rules
13547         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13548         (sc_prohibit_stdio-safer_without_use): Likewise.
13549         (sc_prohibit_xfreopen_without_use): Likewise.
13550
13551 2011-05-17  Jim Meyering  <meyering@redhat.com>
13552
13553         announce-gen: fail if the NEWS delta is empty
13554         If there's nothing noteworthy in NEWS, then either you forgot
13555         or you shouldn't be releasing.
13556         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13557
13558 2011-05-17  Pádraig Brady <P@draigBrady.com>
13559
13560         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13561         reserved symbols starting with double underscore from the check.
13562
13563 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13564
13565         intprops: add doc
13566         * doc/intprops.texi: New file, documenting intprops.
13567         * doc/gnulib.texi (Particular Modules): Include it.
13568
13569         verify: add doc to gnulib manual and fix example
13570         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13571         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13572         (Compile-time Assertions): Fix example so it can't overflow.
13573
13574 2011-05-17  Jim Meyering  <meyering@redhat.com>
13575
13576         warnings.m4: don't usurp save_CPPFLAGS variable name
13577         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13578
13579         doc: fix typo
13580         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13581
13582 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13583             Bruno Haible  <bruno@clisp.org>
13584
13585         doc: Tweak recent change.
13586         * README (Portability guidelines): Tweak new text.
13587         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13588         Interix 6.1.
13589
13590 2011-05-16  Eric Blake  <eblake@redhat.com>
13591
13592         inttypes: avoid autoconf warning
13593         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13594         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13595
13596 2011-05-16  Sam Steingold <sds@gnu.org>
13597         and Eric Blake  <eblake@redhat.com>
13598
13599         vc-list-files: accept multiple directory operands
13600         * build-aux/vc-list-files: Iterate over all remaining operands.
13601
13602 2011-05-16  Bruno Haible  <bruno@clisp.org>
13603
13604         Fix confusion regarding deprecated modules.
13605         * modules/calloc (Status, Notice): Mark module as deprecated, not
13606         obsolete.
13607         * modules/fnmatch-posix (Status, Notice): Likewise.
13608         * modules/getdate (Status, Notice): Likewise.
13609         * modules/getopt (Status, Notice): Likewise.
13610         * modules/malloc (Status, Notice): Likewise.
13611         * modules/pipe (Status, Notice): Likewise.
13612         * modules/realloc (Status, Notice): Likewise.
13613         * modules/rename-dest-slash (Status, Notice): Likewise.
13614         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13615         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13616         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13617         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13618         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13619
13620 2011-05-16  Bruno Haible  <bruno@clisp.org>
13621
13622         doc: List the target platforms.
13623         * doc/gnulib-intro.texi (Target Platforms): New section.
13624         * doc/gnulib.texi (Introduction): Update menu.
13625         * README (Portability guidelines): Refer to the new section. Update
13626         statement about oldest supported environment. Remove rationale why
13627         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13628         unportable C89 function.
13629         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13630         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13631
13632 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13633
13634         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13635
13636 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         intprops-tests: new module
13639         * modules/intprops-tests, tests/test-intprops.c: New files.
13640
13641         intprops: add safe, portable integer overflow checking
13642         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13643         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13644         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13645         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13646         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13647         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13648         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13649         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13650         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13651         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13652         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13653
13654 2011-05-12  James Youngman  <jay@gnu.org>
13655
13656         Add a test for glibc's Bugzilla bug #12378.
13657         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13658         doesn't allow the literal matching of a lone "[" (which is
13659         required by POSIX).
13660         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13661
13662 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13663
13664         Sync glibc change fixing Bugzilla bug #12378.
13665         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13666         beginning and fall back to matching as normal character if the
13667         string ends before the matching ']' is found.  This is what POSIX
13668         requires.
13669
13670 2011-05-13  Eric Blake  <eblake@redhat.com>
13671
13672         getcwd-lgpl: relax test for FreeBSD
13673         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13674         issue.
13675         * tests/test-getcwd-lgpl.c (main): Relax test.
13676         Reported by Matthias Bolte.
13677
13678 2011-05-11  Eric Blake  <eblake@redhat.com>
13679
13680         test-fflush: silence compiler warning
13681         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13682
13683 2011-05-11  Bruno Haible  <bruno@clisp.org>
13684
13685         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13686         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13687         * modules/canonicalize (Depends-on): Add 'nocrash'.
13688         * modules/canonicalize-lgpl (Depends-on): Likewise.
13689         * doc/posix-functions/realpath.texi: Update platforms list.
13690         Reported by Ryan Schmidt <ryandesign@macports.org>.
13691
13692 2011-05-11  Bruno Haible  <bruno@clisp.org>
13693
13694         group-member: Declare function in <unistd.h>.
13695         * lib/unistd.in.h (group_member): New declaration.
13696         * lib/group-member.h: Remove file.
13697         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13698         * tests/test-unistd-c++.cc: Check signature of group_member.
13699         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13700         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13701         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13702         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13703         HAVE_GROUP_MEMBER.
13704         * modules/group-member (Files): Remove lib/group-member.h.
13705         (Depends-on): Add unistd. Specify conditions.
13706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13707         (Include): Change to <unistd.h>.
13708         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13709         HAVE_GROUP_MEMBER.
13710         * NEWS: Mention the change.
13711         * lib/euidaccess.c: Don't include group-member.h.
13712
13713 2011-05-11  Bruno Haible  <bruno@clisp.org>
13714
13715         group-member: Document module.
13716         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13717         module.
13718
13719 2011-05-11  Bruno Haible  <bruno@clisp.org>
13720
13721         fclose: Fix mistake earlier today.
13722         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13723
13724 2011-05-11  Eric Blake  <eblake@redhat.com>
13725
13726         fclose: preserve fflush errors
13727         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13728         Reported by Jim Meyering.
13729
13730         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13731         * build-aux/bootstrap (check_versions): When no specific version
13732         is required, merely check that the app produces an exit status
13733         that indicates its existence.
13734
13735         maint.mk: drop redundant check
13736         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13737         the same but better.
13738
13739 2011-05-11  Bruno Haible  <bruno@clisp.org>
13740
13741         fclose: Fix possible link error.
13742         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13743         unregister_shadow_fd. Improve comments.
13744         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13745         Eric Blake.
13746
13747 2011-05-11  Jim Meyering  <meyering@redhat.com>
13748
13749         maint.mk: improve "can not" detection and generalize rule name
13750         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13751         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13752         Use the same technique as in sc_prohibit_doubled_word, so that
13753         we recognize "can not" also when the words are separated by a newline.
13754         Suggested by Eric Blake.
13755         (perl_filename_lineno_text_): Define.  Factored out of...
13756         (prohibit_doubled_word_): ...here.  Use the new definition.
13757         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13758         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13759         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13760
13761 2011-05-10  Eric Blake  <eblake@redhat.com>
13762
13763         fclose: avoid double close race when possible
13764         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13765         all but WINDOWS_SOCKETS.
13766
13767 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13768
13769         openat: correct new comment
13770         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13771
13772 2011-05-10  Jim Meyering  <meyering@redhat.com>
13773
13774         openat: add comments
13775         * lib/openat-proc.c (openat_proc_name): Add comments,
13776         mostly from Eric Blake.
13777
13778 2011-05-09  Eric Blake  <eblake@redhat.com>
13779
13780         openat: reduce syscalls in first probe of /proc
13781         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13782         be a directory.  Simplify the probe for .. bugs.
13783         * modules/openat (Depends-on): Drop same-inode.
13784         Reported by Bastien ROUCARIES.
13785
13786 2011-05-09  Jim Meyering  <meyering@redhat.com>
13787
13788         maint.mk: change semantics/name of tight_scope variables
13789         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13790         Rename variables to align with semantics that make them more useful.
13791
13792         maint.mk: tweak new rule's name not to impinge
13793         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13794         (sc_tight_scope): Use new rule name rather than $@-0.
13795
13796         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13797         * top/maint.mk (sc_tight_scope): New rule.
13798         (sc_tight_scope-0): New rule, ifdef'd out.
13799         (_gl_TS_dir): Default.
13800         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13801         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13802
13803 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13804
13805         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13806         Haible <bruno@clisp.org>.
13807
13808 2011-05-08  Bruno Haible  <bruno@clisp.org>
13809
13810         Comments.
13811         * m4/isnanf.m4: Add comment.
13812         * m4/isnanl.m4: Likewise.
13813
13814 2011-05-08  Bruno Haible  <bruno@clisp.org>
13815
13816         glob: Remove obsolete macro.
13817         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13818
13819 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13820
13821         intprops: Sun C 5.11 supports __typeof__
13822         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13823         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13824         which is new.
13825         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13826
13827         intprops: switch to usual gnulib indenting and naming
13828         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13829         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13830
13831         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13832
13833 2011-05-08  Jim Meyering  <meyering@redhat.com>
13834
13835         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13836         * top/maint.mk (release-prep): Use make's --no-print-directory
13837         option when generating the announcement.  This eliminates the
13838         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13839         generated announcement template.
13840
13841 2011-05-08  Bruno Haible  <bruno@clisp.org>
13842
13843         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13844         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13845         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13846
13847 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         ignore-value, verify: Omit include files from lib_SOURCES.
13850         * modules/ignore-value, modules/verify (Makefile.am):
13851         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13852         that leads Automake to duplicate use of am__objects_... variables
13853         in Makefile.in.  See
13854         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13855
13856 2011-05-07  Bruno Haible  <bruno@clisp.org>
13857
13858         fclose: Simplify autoconf macro.
13859         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13860         defined.
13861
13862 2011-05-07  Bruno Haible  <bruno@clisp.org>
13863
13864         canonicalize-lgpl: Fix autoconf macro ordering bug.
13865         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13866         gl_STDLIB_H_DEFAULTS.
13867
13868 2011-05-06  Eric Blake  <eblake@redhat.com>
13869
13870         maintainer-makefile: make sc_po_check easier to tune
13871         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13872         to probe for strings, such as an alternate location for gnulib.
13873
13874         fclose: guarantee behavior on seekable stdin
13875         * modules/fclose (Depends-on): Add fflush.
13876         * doc/posix-functions/fclose.texi (fclose): Document this.
13877         * tests/test-fclose.c (main): Make test for this unconditional.
13878
13879 2011-05-06  Bruno Haible  <bruno@clisp.org>
13880
13881         fflush, fpurge: Relicense under LGPLv2+.
13882         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13883         * modules/fpurge (License): Likewise.
13884         With permission from Eric Blake and Jim Meyering.
13885         Suggested by Eric Blake.
13886
13887 2011-05-06  Karl Berry  <karl@gnu.org>
13888
13889         * MODULES.html.sh (func_all_modules): remove exit.
13890
13891 2011-05-06  Jim Meyering  <meyering@redhat.com>
13892
13893         maint.mk: use info-gnu@ as the default only for a stable release
13894         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13895         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13896         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13898
13899 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13900
13901         assert-h: new module, which supports C1X-style static_assert
13902         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13903         * lib/verify.h: Revamp so that this can be copied into assert.h,
13904         while retaining the ability to use it standalone as before.
13905         Rename private identifiers so as not to encroach on the
13906         standard C namespace, since this is now used by assert.h.
13907         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13908         the old verify_true.
13909         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13910         the old verify_true.  Use _GL_VERIFY_TYPE.
13911         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13912         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13913         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13914         defined when this file is copied into the replacement assert.h.
13915         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13916         and _Static_assert is not built in.
13917         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13918         defined, and use the new macros mentioned above.
13919         * doc/posix-headers/assert.texi: Document this.
13920
13921 2011-05-05  Bruno Haible  <bruno@clisp.org>
13922
13923         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13924         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13925         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13926         gl_REPLACE_FCLOSE here.
13927         * modules/fflush (Depends-on): Remove fclose.
13928         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13929         combination with module 'fclose'.
13930
13931 2011-05-05  Bruno Haible  <bruno@clisp.org>
13932
13933         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13934         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13935         gl_FUNC_FFLUSH.
13936         (gl_FUNC_FFLUSH): Use it.
13937         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13938         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13939         gl_REPLACE_FSEEKO here.
13940
13941 2011-05-05  Bruno Haible  <bruno@clisp.org>
13942
13943         tzset: Relicense under LGPL.
13944         * modules/tzset (License): Change to LGPL.
13945         No agreement needed; it's a no-op.
13946
13947         strtoimax, strtoumax: Relicense under LGPL.
13948         * modules/strtoimax (License): Change to LGPL.
13949         * modules/strtoumax (License): Likewise.
13950         With permission from Jim Meyering, Paul Eggert:
13951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13953
13954         getgroups: Relicense under LGPL.
13955         * modules/getgroups (License): Change to LGPL.
13956         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13960
13961         nanosleep: Relicense under LGPL.
13962         * modules/nanosleep (License): Change to LGPL.
13963         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13964         Haible:
13965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13969
13970         futimens: Relicense under LGPL.
13971         * modules/futimens (License): Change to LGPL.
13972         With permission from Eric Blake:
13973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13974
13975         fflush: Relicense under LGPL.
13976         * modules/fflush (License): Change to LGPL.
13977         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13981
13982         tmpfile: Relicense under LGPL.
13983         * modules/tmpfile (License): Change to LGPL.
13984         With permission from Ben Pfaff:
13985         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13986
13987         isfinite: Relicense under LGPL.
13988         * modules/isfinite (License): Change to LGPL.
13989         With permission from Ben Pfaff, Bruno Haible:
13990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13992
13993         acosl..tanl: Relicense under LGPL.
13994         * modules/acosl (License): Change to LGPL.
13995         * modules/asinl (License): Likewise.
13996         * modules/atanl (License): Likewise.
13997         * modules/cosl (License): Likewise.
13998         * modules/expl (License): Likewise.
13999         * modules/logl (License): Likewise.
14000         * modules/sinl (License): Likewise.
14001         * modules/sqrtl (License): Likewise.
14002         * modules/tanl (License): Likewise.
14003         Source code originally from glibc and Paolo Bonzini. Agreements:
14004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
14005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
14006
14007 2011-05-05  Bruno Haible  <bruno@clisp.org>
14008
14009         signal: Define sighandler_t.
14010         * lib/signal.in.h (sighandler_t): New type.
14011         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
14012         whether sighandler_t is defined.
14013         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
14014         * modules/signal (Depends-on): Add extensions.
14015         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
14016         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
14017         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
14018
14019 2011-05-05  Eric Blake  <eblake@redhat.com>
14020
14021         maint: remove useless REPLACE_*_H macros
14022         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
14023         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14024         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14025         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
14026         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14027         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14028         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
14029         * m4/btowc.m4: Update callers.
14030         * m4/dirfd.m4: Likewise.
14031         * m4/duplocale.m4: Likewise.
14032         * m4/fchdir.m4: Likewise.
14033         * m4/fdopendir.m4: Likewise.
14034         * m4/inet_ntop.m4: Likewise.
14035         * m4/inet_pton.m4: Likewise.
14036         * m4/ioctl.m4: Likewise.
14037         * m4/mbrlen.m4: Likewise.
14038         * m4/mbrtowc.m4: Likewise.
14039         * m4/mbsinit.m4: Likewise.
14040         * m4/mbsnrtowcs.m4: Likewise.
14041         * m4/mbsrtowcs.m4: Likewise.
14042         * m4/poll.m4: Likewise.
14043         * m4/setlocale.m4: Likewise.
14044         * m4/wcrtomb.m4: Likewise.
14045         * m4/wcsnrtombs.m4: Likewise.
14046         * m4/wcsrtombs.m4: Likewise.
14047         * m4/wctob.m4: Likewise.
14048         * m4/wcwidth.m4: Likewise.
14049         * modules/posix_spawn: Likewise.
14050         * modules/posix_spawn_file_actions_addclose: Likewise.
14051         * modules/posix_spawn_file_actions_adddup2: Likewise.
14052         * modules/posix_spawn_file_actions_addopen: Likewise.
14053         * modules/posix_spawn_file_actions_destroy: Likewise.
14054         * modules/posix_spawn_file_actions_init: Likewise.
14055         * modules/posix_spawnattr_destroy: Likewise.
14056         * modules/posix_spawnattr_getflags: Likewise.
14057         * modules/posix_spawnattr_getpgroup: Likewise.
14058         * modules/posix_spawnattr_getschedparam: Likewise.
14059         * modules/posix_spawnattr_getschedpolicy: Likewise.
14060         * modules/posix_spawnattr_getsigdefault: Likewise.
14061         * modules/posix_spawnattr_getsigmask: Likewise.
14062         * modules/posix_spawnattr_init: Likewise.
14063         * modules/posix_spawnattr_setflags: Likewise.
14064         * modules/posix_spawnattr_setpgroup: Likewise.
14065         * modules/posix_spawnattr_setschedparam: Likewise.
14066         * modules/posix_spawnattr_setschedpolicy: Likewise.
14067         * modules/posix_spawnattr_setsigdefault: Likewise.
14068         * modules/posix_spawnattr_setsigmask: Likewise.
14069         * modules/posix_spawnp: Likewise.
14070
14071 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
14072
14073         Add option to do-release-commit-and-tag to specify branch.
14074         * build-aux/do-release-commit-and-tag: Add --branch.
14075
14076 2011-05-03  Bruno Haible  <bruno@clisp.org>
14077
14078         Avoid unnecessary compilation units, through conditional dependencies.
14079         * modules/accept (Depends-on): Add conditions to the dependencies.
14080         * modules/acosl (Depends-on): Likewise.
14081         * modules/argz (Depends-on): Likewise.
14082         * modules/asinl (Depends-on): Likewise.
14083         * modules/atanl (Depends-on): Likewise.
14084         * modules/atoll (Depends-on): Likewise.
14085         * modules/bind (Depends-on): Likewise.
14086         * modules/btowc (Depends-on): Likewise.
14087         * modules/canonicalize-lgpl (Depends-on): Likewise.
14088         * modules/ceil (Depends-on): Likewise.
14089         * modules/ceilf (Depends-on): Likewise.
14090         * modules/ceill (Depends-on): Likewise.
14091         * modules/chdir-long (Depends-on): Likewise.
14092         * modules/chown (Depends-on): Likewise.
14093         * modules/close (Depends-on): Likewise.
14094         * modules/connect (Depends-on): Likewise.
14095         * modules/cosl (Depends-on): Likewise.
14096         * modules/dirfd (Depends-on): Likewise.
14097         * modules/dprintf (Depends-on): Likewise.
14098         * modules/dprintf-posix (Depends-on): Likewise.
14099         * modules/error (Depends-on): Likewise.
14100         * modules/euidaccess (Depends-on): Likewise.
14101         * modules/expl (Depends-on): Likewise.
14102         * modules/faccessat (Depends-on): Likewise.
14103         * modules/fchdir (Depends-on): Likewise.
14104         * modules/fclose (Depends-on): Likewise.
14105         * modules/fcntl (Depends-on): Likewise.
14106         * modules/fdopendir (Depends-on): Likewise.
14107         * modules/fflush (Depends-on): Likewise.
14108         * modules/floor (Depends-on): Likewise.
14109         * modules/floorf (Depends-on): Likewise.
14110         * modules/floorl (Depends-on): Likewise.
14111         * modules/fnmatch (Depends-on): Likewise.
14112         * modules/fopen (Depends-on): Likewise.
14113         * modules/fprintf-posix (Depends-on): Likewise.
14114         * modules/frexp (Depends-on): Likewise.
14115         * modules/frexp-nolibm (Depends-on): Likewise.
14116         * modules/frexpl (Depends-on): Likewise.
14117         * modules/frexpl-nolibm (Depends-on): Likewise.
14118         * modules/fseek (Depends-on): Likewise.
14119         * modules/fsusage (Depends-on): Likewise.
14120         * modules/ftell (Depends-on): Likewise.
14121         * modules/ftello (Depends-on): Likewise.
14122         * modules/futimens (Depends-on): Likewise.
14123         * modules/getcwd (Depends-on): Likewise.
14124         * modules/getcwd-lgpl (Depends-on): Likewise.
14125         * modules/getdelim (Depends-on): Likewise.
14126         * modules/getdomainname (Depends-on): Likewise.
14127         * modules/getgroups (Depends-on): Likewise.
14128         * modules/gethostname (Depends-on): Likewise.
14129         * modules/getline (Depends-on): Likewise.
14130         * modules/getlogin_r (Depends-on): Likewise.
14131         * modules/getopt-posix (Depends-on): Likewise.
14132         * modules/getpeername (Depends-on): Likewise.
14133         * modules/getsockname (Depends-on): Likewise.
14134         * modules/getsockopt (Depends-on): Likewise.
14135         * modules/getsubopt (Depends-on): Likewise.
14136         * modules/getusershell (Depends-on): Likewise.
14137         * modules/glob (Depends-on): Likewise.
14138         * modules/grantpt (Depends-on): Likewise.
14139         * modules/iconv_open (Depends-on): Likewise.
14140         * modules/iconv_open-utf (Depends-on): Likewise.
14141         * modules/inet_ntop (Depends-on): Likewise.
14142         * modules/inet_pton (Depends-on): Likewise.
14143         * modules/ioctl (Depends-on): Likewise.
14144         * modules/isapipe (Depends-on): Likewise.
14145         * modules/isfinite (Depends-on): Likewise.
14146         * modules/isinf (Depends-on): Likewise.
14147         * modules/lchown (Depends-on): Likewise.
14148         * modules/ldexpl (Depends-on): Likewise.
14149         * modules/link (Depends-on): Likewise.
14150         * modules/linkat (Depends-on): Likewise.
14151         * modules/listen (Depends-on): Likewise.
14152         * modules/logl (Depends-on): Likewise.
14153         * modules/lstat (Depends-on): Likewise.
14154         * modules/mbrlen (Depends-on): Likewise.
14155         * modules/mbrtowc (Depends-on): Likewise.
14156         * modules/mbsinit (Depends-on): Likewise.
14157         * modules/mbsnrtowcs (Depends-on): Likewise.
14158         * modules/mbsrtowcs (Depends-on): Likewise.
14159         * modules/mbtowc (Depends-on): Likewise.
14160         * modules/memcmp (Depends-on): Likewise.
14161         * modules/mkdir (Depends-on): Likewise.
14162         * modules/mkdtemp (Depends-on): Likewise.
14163         * modules/mkfifo (Depends-on): Likewise.
14164         * modules/mkfifoat (Depends-on): Likewise.
14165         * modules/mknod (Depends-on): Likewise.
14166         * modules/mkostemp (Depends-on): Likewise.
14167         * modules/mkostemps (Depends-on): Likewise.
14168         * modules/mkstemp (Depends-on): Likewise.
14169         * modules/mkstemps (Depends-on): Likewise.
14170         * modules/mktime (Depends-on): Likewise.
14171         * modules/nanosleep (Depends-on): Likewise.
14172         * modules/open (Depends-on): Likewise.
14173         * modules/openat (Depends-on): Likewise.
14174         * modules/perror (Depends-on): Likewise.
14175         * modules/poll (Depends-on): Likewise.
14176         * modules/popen (Depends-on): Likewise.
14177         * modules/posix_spawn (Depends-on): Likewise.
14178         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14179         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14180         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14181         * modules/posix_spawnp (Depends-on): Likewise.
14182         * modules/pread (Depends-on): Likewise.
14183         * modules/printf-posix (Depends-on): Likewise.
14184         * modules/ptsname (Depends-on): Likewise.
14185         * modules/putenv (Depends-on): Likewise.
14186         * modules/pwrite (Depends-on): Likewise.
14187         * modules/readline (Depends-on): Likewise.
14188         * modules/readlink (Depends-on): Likewise.
14189         * modules/readlinkat (Depends-on): Likewise.
14190         * modules/recv (Depends-on): Likewise.
14191         * modules/recvfrom (Depends-on): Likewise.
14192         * modules/regex (Depends-on): Likewise.
14193         * modules/remove (Depends-on): Likewise.
14194         * modules/rename (Depends-on): Likewise.
14195         * modules/renameat (Depends-on): Likewise.
14196         * modules/rmdir (Depends-on): Likewise.
14197         * modules/round (Depends-on): Likewise.
14198         * modules/roundf (Depends-on): Likewise.
14199         * modules/roundl (Depends-on): Likewise.
14200         * modules/rpmatch (Depends-on): Likewise.
14201         * modules/select (Depends-on): Likewise.
14202         * modules/send (Depends-on): Likewise.
14203         * modules/sendto (Depends-on): Likewise.
14204         * modules/setenv (Depends-on): Likewise.
14205         * modules/setlocale (Depends-on): Likewise.
14206         * modules/setsockopt (Depends-on): Likewise.
14207         * modules/shutdown (Depends-on): Likewise.
14208         * modules/sigaction (Depends-on): Likewise.
14209         * modules/signbit (Depends-on): Likewise.
14210         * modules/sigprocmask (Depends-on): Likewise.
14211         * modules/sinl (Depends-on): Likewise.
14212         * modules/sleep (Depends-on): Likewise.
14213         * modules/snprintf (Depends-on): Likewise.
14214         * modules/snprintf-posix (Depends-on): Likewise.
14215         * modules/socket (Depends-on): Likewise.
14216         * modules/sprintf-posix (Depends-on): Likewise.
14217         * modules/sqrtl (Depends-on): Likewise.
14218         * modules/stat (Depends-on): Likewise.
14219         * modules/strchrnul (Depends-on): Likewise.
14220         * modules/strdup-posix (Depends-on): Likewise.
14221         * modules/strerror (Depends-on): Likewise.
14222         * modules/strerror_r-posix (Depends-on): Likewise.
14223         * modules/strndup (Depends-on): Likewise.
14224         * modules/strnlen (Depends-on): Likewise.
14225         * modules/strptime (Depends-on): Likewise.
14226         * modules/strsep (Depends-on): Likewise.
14227         * modules/strsignal (Depends-on): Likewise.
14228         * modules/strstr-simple (Depends-on): Likewise.
14229         * modules/strtod (Depends-on): Likewise.
14230         * modules/strtoimax (Depends-on): Likewise.
14231         * modules/strtok_r (Depends-on): Likewise.
14232         * modules/strtoumax (Depends-on): Likewise.
14233         * modules/symlink (Depends-on): Likewise.
14234         * modules/symlinkat (Depends-on): Likewise.
14235         * modules/tanl (Depends-on): Likewise.
14236         * modules/tcgetsid (Depends-on): Likewise.
14237         * modules/tmpfile (Depends-on): Likewise.
14238         * modules/trunc (Depends-on): Likewise.
14239         * modules/truncf (Depends-on): Likewise.
14240         * modules/truncl (Depends-on): Likewise.
14241         * modules/uname (Depends-on): Likewise.
14242         * modules/unlink (Depends-on): Likewise.
14243         * modules/unlockpt (Depends-on): Likewise.
14244         * modules/unsetenv (Depends-on): Likewise.
14245         * modules/usleep (Depends-on): Likewise.
14246         * modules/utimensat (Depends-on): Likewise.
14247         * modules/vasprintf (Depends-on): Likewise.
14248         * modules/vdprintf (Depends-on): Likewise.
14249         * modules/vdprintf-posix (Depends-on): Likewise.
14250         * modules/vfprintf-posix (Depends-on): Likewise.
14251         * modules/vprintf-posix (Depends-on): Likewise.
14252         * modules/vsnprintf (Depends-on): Likewise.
14253         * modules/vsnprintf-posix (Depends-on): Likewise.
14254         * modules/vsprintf-posix (Depends-on): Likewise.
14255         * modules/wcrtomb (Depends-on): Likewise.
14256         * modules/wcscasecmp (Depends-on): Likewise.
14257         * modules/wcscspn (Depends-on): Likewise.
14258         * modules/wcsdup (Depends-on): Likewise.
14259         * modules/wcsncasecmp (Depends-on): Likewise.
14260         * modules/wcsnrtombs (Depends-on): Likewise.
14261         * modules/wcspbrk (Depends-on): Likewise.
14262         * modules/wcsrtombs (Depends-on): Likewise.
14263         * modules/wcsspn (Depends-on): Likewise.
14264         * modules/wcsstr (Depends-on): Likewise.
14265         * modules/wcstok (Depends-on): Likewise.
14266         * modules/wcswidth (Depends-on): Likewise.
14267         * modules/wctob (Depends-on): Likewise.
14268         * modules/wctomb (Depends-on): Likewise.
14269         * modules/wctype (Depends-on): Likewise.
14270         * modules/wcwidth (Depends-on): Likewise.
14271         * modules/write (Depends-on): Likewise.
14272
14273 2011-05-03  Bruno Haible  <bruno@clisp.org>
14274
14275         Support for conditional dependencies.
14276         * doc/gnulib.texi (Module description): Document the syntax of
14277         conditional dependencies.
14278         * gnulib-tool: New option --conditional-dependencies.
14279         (func_usage): Document it.
14280         (cond_dependencies): New variable.
14281         (func_get_automake_snippet_conditional,
14282         func_get_automake_snippet_unconditional): New functions, extracted from
14283         func_get_automake_snippet.
14284         (func_get_automake_snippet): Use them.
14285         (sed_first_32_chars): New variable.
14286         (func_module_shellfunc_name): New function.
14287         (func_module_shellvar_name): New function.
14288         (func_module_conditional_name): New function.
14289         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14290         func_cond_module_condition): New functions.
14291         (func_modules_transitive_closure): Add support for conditional
14292         dependencies.
14293         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14294         conditional automake snippet in an automake conditional.
14295         (func_emit_autoconf_snippets): Emit shell functions that contain the
14296         code for conditional modules.
14297         (func_import, func_create_testdir): Update specification.
14298
14299 2011-05-03  Eric Blake  <eblake@redhat.com>
14300
14301         test-getaddrinfo: report error information
14302         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14303
14304 2011-05-03  Jim Meyering  <meyering@redhat.com>
14305
14306         bootstrap: avoid build failure when $GZIP is set
14307         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14308         program name.  If defined at all, it is supposed to list gzip options.
14309         Reported by Alan Curry in http://debbugs.gnu.org/8609
14310
14311 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14312
14313         readme-release: new module with release instructions
14314         * modules/readme-release: New module.
14315         * top/README-release: New file, from coreutils, grep, diffutils.
14316         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14317
14318 2011-05-02  Eric Blake  <eblake@redhat.com>
14319
14320         fflush: also replace fclose when fixing fflush
14321         * modules/fflush (Depends-on): Add fclose.
14322         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14323         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14324         memstreams with no backing fd.
14325         * doc/posix-functions/fclose.texi (fclose): Document the use of
14326         fflush module to fix the bug.
14327         * tests/test-fclose.c (main): Relax test when fclose is used in
14328         isolation.
14329
14330         fclose: add some tests
14331         * modules/fclose-tests: New test module.
14332         * tests/test-fclose.c: New file.
14333         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14334
14335         fclose: reduced dependencies
14336         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14337         simpler lseek.
14338         * lib/fclose.c (rpl_fclose): Likewise.
14339         Reported by Simon Josefsson.
14340
14341         exit: drop remaining clients
14342         * modules/argmatch (Depends-on): Replace exit with stdlib.
14343         * modules/copy-file (Depends-on): Likewise.
14344         * modules/execute (Depends-on): Likewise.
14345         * modules/exitfail (Depends-on): Likewise.
14346         * modules/obstack (Depends-on): Likewise.
14347         * modules/pagealign_alloc (Depends-on): Likewise.
14348         * modules/pipe-filter-gi (Depends-on): Likewise.
14349         * modules/pipe-filter-ii (Depends-on): Likewise.
14350         * modules/savewd (Depends-on): Likewise.
14351         * modules/spawn-pipe (Depends-on): Likewise.
14352         * modules/wait-process (Depends-on): Likewise.
14353         * modules/xsetenv (Depends-on): Likewise.
14354         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14355         * modules/git-merge-changelog (Depends-on): Likewise.
14356         * modules/long-options (Depends-on): Likewise.
14357         * modules/pt_chown (Depends-on): Likewise.
14358         * modules/sysexits (Depends-on): Likewise.
14359
14360         freading: relax license from LGPLv3+ to LGPLv2+
14361         * modules/freading (License): Relax LGPL version.
14362
14363 2011-05-02  Bruno Haible  <bruno@clisp.org>
14364
14365         fchdir: Remove unused dependencies.
14366         * modules/fchdir (Depends-on): Remove include_next.
14367
14368 2011-05-02  Bruno Haible  <bruno@clisp.org>
14369
14370         gnulib-tool: Refactor.
14371         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14372         from func_emit_autoconf_snippets.
14373         (func_emit_autoconf_snippets): Use it.
14374
14375 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14376
14377         * NEWS: Document removal of 'exit'.
14378         * modules/exit: Remove file.
14379
14380 2011-05-01  Bruno Haible  <bruno@clisp.org>
14381
14382         Update DEPENDENCIES.
14383         * DEPENDENCIES (gettext): Recommend the newest release.
14384         Reported by Simon Josefsson.
14385
14386 2011-05-01  Bruno Haible  <bruno@clisp.org>
14387
14388         gnulib-tool: Reduce code duplication.
14389         * gnulib-tool (func_emit_autoconf_snippets): New function.
14390         (func_import, func_create_testdir): Use it.
14391
14392 2011-04-30  Eric Blake  <eblake@redhat.com>
14393
14394         fclose: don't fail on non-seekable input stream
14395         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14396         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14397         since fflush is allowed to fail in that case.
14398
14399 2011-04-30  Bruno Haible  <bruno@clisp.org>
14400
14401         dup3: cleanup
14402         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14403
14404 2011-04-30  Bruno Haible  <bruno@clisp.org>
14405
14406         netdb: Make it work in C++ mode.
14407         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14408         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14409         module.
14410         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14411         gl_MODULE_INDICATOR_FOR_TESTS.
14412         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14413         * modules/netdb-c++-tests: New file.
14414         * tests/test-netdb-c++.cc: New file.
14415
14416 2011-04-30  Bruno Haible  <bruno@clisp.org>
14417
14418         New modules 'vfscanf', 'vscanf'.
14419         * modules/vfscanf: New file.
14420         * modules/vscanf: New file.
14421         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14422         here.
14423         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14424         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14425
14426 2011-04-30  Bruno Haible  <bruno@clisp.org>
14427
14428         passfd: Add comments.
14429         * lib/passfd.c: Add comments about platforms.
14430
14431 2011-04-30  Bruno Haible  <bruno@clisp.org>
14432
14433         sys_uio: Make <sys/uio.h> self-contained.
14434         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14435         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14436
14437 2011-04-30  Bruno Haible  <bruno@clisp.org>
14438
14439         sys_socket: Ensure 'struct iovec' definition.
14440         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14441         <sys/socket.h>.
14442         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14443
14444 2011-04-30  Bruno Haible  <bruno@clisp.org>
14445
14446         sys_uio: Protect definition of 'struct iovec'.
14447         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14448         it as a C struct.
14449
14450 2011-04-30  Bruno Haible  <bruno@clisp.org>
14451
14452         manywarnings: fix indentation
14453         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14454
14455 2011-04-30  Pádraig Brady <P@draigBrady.com>
14456
14457         manywarnings: add -Wno-missing-field-initializers if needed.
14458         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14459         option if it's needed to allow initialization with { 0, }
14460
14461 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14462
14463         announce-gen: cosmetic improvement
14464         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14465
14466 2011-04-29  Jim Meyering  <meyering@redhat.com>
14467
14468         vc-list-files: indent with spaces, not TABs
14469         * build-aux/vc-list-files: Convert leading TABs to spaces,
14470         to match the style of most other files in gnulib.
14471
14472         announce-gen: indent with spaces, not TABs
14473         * build-aux/announce-gen: Convert all TABs to spaces, to match
14474         the style of most other files in gnulib.
14475
14476 2011-04-29  Eric Blake  <eblake@redhat.com>
14477
14478         quotearg: avoid uninitialized variable use
14479         * lib/quotearg.c (quoting_options_from_style): Initialize
14480         remaining fields, and ensure that custom styles are only used via
14481         quoting_options rather than quoting_style.
14482
14483 2011-04-29  Jim Meyering  <meyering@redhat.com>
14484
14485         maint.mk: remove unused VC-tag variable
14486         * top/maint.mk (VC-tag): Remove unused variable.
14487
14488 2011-04-29  Bruno Haible  <bruno@clisp.org>
14489
14490         netdb: fix gai_strerror replacements
14491         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14492         * modules/netdb: Substitute it.
14493
14494 2011-04-29  Jim Meyering  <meyering@redhat.com>
14495
14496         test-getcwd.c: avoid new set-but-not-used warning
14497         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14498         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14499         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14500         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14501
14502         test-hash.c: avoid a new shadowing warning
14503         * tests/test-hash.c (main): Don't shadow "dup".
14504
14505 2011-04-28  Eric Blake  <eblake@redhat.com>
14506
14507         getaddrinfo: fix gai_strerror signature
14508         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14509         and work around mingw with UNICODE defined.
14510         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14511         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14512         * modules/netdb (Makefile.am): Substitute it.
14513         * lib/netdb.in.h (gai_strerror): Declare replacement.
14514         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14515         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14516         the fix.
14517
14518         getsockopt: avoid compiler warning
14519         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14520         Reported by Matthias Bolte.
14521
14522         tests: drop unused link dependency
14523         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14524         * modules/dirent-safer-tests (Makefile.am): Likewise.
14525         * modules/fdopendir-tests (Makefile.am): Likewise.
14526         * modules/mkfifoat-tests (Makefile.am): Likewise.
14527         * modules/openat-safer-tests (Makefile.am): Likewise.
14528         * modules/openat-tests (Makefile.am): Likewise.
14529         * modules/readlinkat-tests (Makefile.am): Likewise.
14530         * modules/symlinkat-tests (Makefile.am): Likewise.
14531         * modules/linkat-tests (Makefile.am): Likewise.
14532         (Depends-on): Switch to filenamecat-lgpl.
14533         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14534         LIBINTL.
14535         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14536         * tests/test-linkat.c (main): Don't require xalloc.
14537
14538         hash, mgetgroups: drop xalloc dependency
14539         * lib/hash.c (includes): Adjust includes.
14540         * lib/mgetgroups.c (includes): Likewise.
14541         (xgetgroups): Move...
14542         * lib/xgetgroups.c: ...to new file.
14543         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14544         * modules/xgetgroups: New file, split from...
14545         * modules/mgetgroups: ...here.
14546         (Depends-on): Add xalloc-oversized.
14547         * modules/hash (Depends-on): Likewise.
14548         * modules/hash-tests (Depends-on): Drop xalloc.
14549         (test_hash_LDADD): Drop unused library.
14550         * tests/test-hash.c (main): Break xalloc dependency.
14551         (includes): Drop unused include.
14552
14553         xalloc-oversized: new module
14554         * modules/xalloc-oversized: New module.
14555         * modules/xalloc (Depends-on): Add it.
14556         * lib/xalloc.h (xalloc_oversized): Move...
14557         * lib/xalloc-oversized.h: ...into new file.
14558
14559         utimecmp: drop dependency on xmalloc
14560         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14561         due to memory pressure.
14562         * modules/utimecmp (Depends-on): Drop xalloc.
14563
14564 2011-04-27  Eric Blake  <eblake@redhat.com>
14565
14566         getcwd: fix mingw bugs
14567         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14568         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14569         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14570
14571 2011-04-27  Bruno Haible  <bruno@clisp.org>
14572
14573         mkstemps: Ensure declaration on MacOS X 10.5.
14574         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14575         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14576         MacOS X.
14577
14578 2011-04-27  Bruno Haible  <bruno@clisp.org>
14579
14580         mkstemp: More documentation.
14581         * doc/posix-functions/mkstemp.texi: Document header file problem on
14582         MacOS X.
14583
14584 2011-04-27  Bruno Haible  <bruno@clisp.org>
14585
14586         mkstemp: Tweak configure message when cross-compiling.
14587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14588         result as a guess.
14589
14590 2011-04-27  Bruno Haible  <bruno@clisp.org>
14591
14592         clean-temp: Clarify what it does.
14593         * lib/clean-temp.h: Add more comments.
14594         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14595         module.
14596         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14597         * doc/glibc-functions/mkstemps.texi: Likewise.
14598         * doc/glibc-functions/mkostemps.texi: Likewise.
14599
14600 2011-04-27  Eric Blake  <eblake@redhat.com>
14601
14602         fchdir: avoid extra chdir and fix test
14603         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14604         getcwd-lgpl.
14605         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14606         have to be canonical.
14607         (canonicalize_file_name): Drop unused macro.
14608         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14609
14610         filenamecat-lgpl: fix licence
14611         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14612         when it was first created.
14613
14614         linkat, renameat: add missing dependency
14615         * modules/linkat (Depends-on): Require getcwd-lgpl.
14616         * modules/renameat (Depends-on): Likewise.
14617
14618         tests: reduce dependencies
14619         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14620         * tests/test-renameat.c (main): Likewise.
14621         * modules/linkat-tests (Depends-on): Relax dependency.
14622         * modules/renameat-tests (Depends-on): Likewise.
14623         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14624         dependency explicit.
14625
14626         save-cwd: reduce default dependency
14627         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14628         * lib/save-cwd.c: Update comments.
14629         * NEWS: Document the semantic change.
14630
14631         getcwd: enhance tests
14632         * tests/test-getcwd-lgpl.c: New file, taken from...
14633         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14634         repeat long path stress tests from m4 probe.
14635         * modules/getcwd-lgpl-tests: New module.
14636         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14637         * m4/getcwd-abort-bug.m4: Update comment.
14638         * m4/getcwd-path-max.m4: Likewise.
14639
14640         getcwd-lgpl: new module
14641         * modules/getcwd-lgpl: New module.
14642         * lib/getcwd-lgpl.c: New file.
14643         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14644         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14645         * modules/getcwd (configure.ac): Set C witness.
14646         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14647
14648         getcwd: tweak comments
14649         * m4/getcwd-abort-bug.m4: Fix comments.
14650         * m4/getcwd-path-max.m4: Likewise.
14651         * m4/getcwd.m4: Likewise.
14652
14653 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14654         and Eric Blake  <eblake@redhat.com>
14655
14656         mkstemp: replace if system version uses wrong permissions
14657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14658         read/write mode bits set in file created by mkstemp.
14659         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14660
14661 2011-04-27  Eric Blake  <eblake@redhat.com>
14662
14663         passfd: avoid compiler warning
14664         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14665         Reported by Laine Stump.
14666
14667 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14668
14669         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14670         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14671
14672 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14673         and Eric Blake  <eblake@redhat.com>
14674
14675         mkstemp: mention clean-temp module
14676         * lib/mkstemp.c: Add comment.
14677         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14678
14679 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14680
14681         inttypes: also provide default values for 32-bit tests
14682         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14683         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14684
14685 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14686
14687         strtoumax: remove dependency on strtoimax
14688         This is like the strtoull change of yesterday.
14689         * modules/strtoumax (Files): Add lib/strtoimax.c.
14690         (Depends-on): Remove strtoimax and add verify.
14691
14692         inttypes-incomplete: new module
14693         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14694         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14695         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14696         of gl_INTTYPES_H.
14697         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14698         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14699         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14700         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14701         * modules/strtoumax, modules/xstrtol (Depends-on):
14702         Depend on inttypes-incomplete, not inttypes.
14703         * modules/inttypes-incomplete: New module, containing the contents
14704         of the old modules/inttypes module, except that the Files: section
14705         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14706         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14707         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14708         (Depends-on): Depend only on inttypes-incomplete.
14709         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14710
14711         inttypes: omit now-redundant strtoimax and strtoumax work
14712         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14713         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14714
14715         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14716         This supports apps that need pointers to strtoimax and strtoumax,
14717         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14718         nonexistent functions.  See
14719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14720         et seq.
14721         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14722         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14723         a macro.
14724         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14725
14726 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14727
14728         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14729
14730 2011-04-25  Bruno Haible  <bruno@clisp.org>
14731
14732         strtol, strtoul: Mark modules as obsolete.
14733         * modules/strtol (Status, Notice): New sections.
14734         * modules/strtoul (Status, Notice): New sections.
14735
14736 2011-04-25  Bruno Haible  <bruno@clisp.org>
14737
14738         strtod: Remove check for strtod, unless supporting old platforms.
14739         * modules/strtod-obsolete: New file.
14740         * m4/strtod-obsolete.m4: New file.
14741         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14742         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14743         * modules/strtod (Depends-on): Add strtod-obsolete.
14744         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14745
14746 2011-04-25  Bruno Haible  <bruno@clisp.org>
14747
14748         strcase: Make module obsolete.
14749         * modules/strcase (Status, Notice): New sections.
14750
14751 2011-04-25  Bruno Haible  <bruno@clisp.org>
14752
14753         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14754         * modules/dup2-obsolete: New file.
14755         * m4/dup2-obsolete.m4: New file.
14756         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14757         gl_FUNC_DUP2_OBSOLETE is not also defined.
14758         * modules/dup2 (Depends-on): Add dup2-obsolete.
14759         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14760
14761 2011-04-25  Bruno Haible  <bruno@clisp.org>
14762
14763         strnlen: Avoid memchr related link error on old obsolete platforms.
14764         * modules/memchr-obsolete: New file.
14765         * m4/memchr-obsolete.m4: New file.
14766         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14767         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14768         * modules/memchr (Depends-on): Add memchr-obsolete.
14769         * modules/strnlen (Depends-on): Likewise.
14770         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14771
14772 2011-04-25  Jim Meyering  <meyering@redhat.com>
14773
14774         maint.mk: makefile_at_at_check extend and clean up
14775         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14776         in addition to */Makefile.am.
14777         Exempt legitimate uses of @VAR@ notation, e.g.,
14778         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14779         Remove obsolete coreutils-specific comment.
14780         Prompted by discussion here:
14781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14782
14783 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         strtoul: remove dependency on strtol
14786         This is so that 'configure' need not check for strtol merely because
14787         the application needs strtoul.
14788         * modules/strtoul (Files): Add lib/strtol.c.
14789         (Depends-on): Remove strtol.
14790
14791         strtoull: remove dependency on strtoul
14792         This is like the strtoll change.
14793         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14794         (Depends-on): Remove strtoul.
14795
14796         strtoll: remove dependency on strtol
14797         This is so that 'configure' need not check for strtol merely because
14798         the application needs strtoll.
14799         * modules/strtoll (Files): Add lib/strtol.c.
14800         (Depends-on): Remove strtol.
14801
14802 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14803
14804         inttypes: Move some configure check to module 'imaxdiv'.
14805         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14806         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14807         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14808
14809 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         inttypes: Move some configure check to module 'imaxabs'.
14812         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14813         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14814         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14815
14816 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14817
14818         inttypes: Remove configure tests that are not needed since 2009-12-31.
14819         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14820         gl_cv_header_working_inttypes_h.
14821
14822 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14823
14824         * modules/strnlen (Depends-on): Remove memchr.
14825         The strnlen implementation doesn't need the memchr module's fixes; see
14826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14827
14828         strtol: remove dependency on wchar
14829         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14830         * modules/strtol (Depends-on): Remove wchar.
14831
14832 2011-04-21  Eric Blake  <eblake@redhat.com>
14833
14834         passfd: fix test regression on Linux
14835         * modules/passfd-tests (configure.ac): Correct socketpair check.
14836
14837         passfd: speed up configure and drop unused code
14838         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14839         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14840         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14841         Instead of probing at configure for unix_scm_rights_bsd44_way,
14842         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14843         check to a struct member probe.
14844         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14845         (sendfd, recvfd): Update preprocessor checks.
14846         * modules/passfd (Files): Reflect rename, and drop unused file.
14847         (Depends-on): Drop unused dependency.
14848
14849         passfd: allow compilation on mingw
14850         * modules/sys_socket (Depends-on): Add sys_uio.
14851         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14852         iovec and a minimal struct msghdr.
14853         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14854         * tests/test-sys_socket.c (main): Enhance test.
14855         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14856         guaranteed to provide what we need.
14857         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14858         * modules/passfd-tests (Depends-on): Add sys_wait.
14859         * tests/test-passfd.c (main): Skip test on mingw, for now.
14860         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14861         partial 'struct msghdr' implementation.
14862
14863         sys_uio: new module
14864         * modules/sys_uio: New module.
14865         * modules/sys_uio-tests: Likewise.
14866         * lib/sys_uio.in.h: New file.
14867         * m4/sys_uio_h.m4: Likewise.
14868         * tests/test-sys_uio.c: Likewise.
14869         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14870         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14871
14872 2011-04-20  Jim Meyering  <meyering@redhat.com>
14873
14874         useless-if-before-free: avoid false-positive
14875         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14876         disjunct so that it too requires a terminating ";".  Without that,
14877         this script would identify as useless one statement from gcc that
14878         was not:
14879           if (aligned_ptr)
14880             free (((void **) aligned_ptr) [-1]);
14881
14882 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14883
14884         doc: update users.txt.
14885         * users.txt: Add barcode.
14886
14887 2011-04-19  Bruno Haible  <bruno@clisp.org>
14888
14889         ioctl: Remove link dependency on native Windows.
14890         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14891         (gl_close_fn, gl_ioctl_fn): New types.
14892         (struct fd_hook): Renamed from struct close_hook. Change type of
14893         private_close_fn field. Add private_ioctl_fn field.
14894         (close_hook_fn): Add parameter for primary close method.
14895         (execute_close_hooks, execute_all_close_hooks): Likewise.
14896         (ioctl_hook_fn): New type.
14897         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14898         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14899         argument.
14900         (unregister_fd_hook): Renamed from unregister_close_hook.
14901         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14902         Don't include <unistd.h>.
14903         (close): Remove undef.
14904         (anchor): Update.
14905         (execute_close_hooks): Add argument for primary close method.
14906         (execute_all_close_hooks): Likewise.
14907         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14908         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14909         argument. Allow each argument to be NULL.
14910         (unregister_fd_hook): Renamed from unregister_close_hook.
14911         * lib/close.c (rpl_close): Pass 'close' function pointer to
14912         execute_all_close_hooks.
14913         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14914         (primary_ioctl): New function.
14915         (ioctl): Don't call ioctlsocket here. Instead, call
14916         execute_all_ioctl_hooks.
14917         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14918         close method.
14919         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14920         (fd_sockets_hook): Renamed from close_sockets_hook.
14921         (gl_sockets_startup, gl_sockets_cleanup): Update.
14922         * modules/fd-hook: Renamed from modules/close-hook. Update.
14923         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14924         * modules/sockets (Depends-on): Likewise.
14925         * modules/ioctl (Depends-on): Add fd-hook.
14926         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14927         GNULIB_SOCKET.
14928
14929 2011-04-19  Bruno Haible  <bruno@clisp.org>
14930
14931         Move the support of O_NONBLOCK in open() to the 'open' module.
14932         * modules/nonblocking (Depends-on): Remove 'open'.
14933         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14934         gl_cv_have_open_O_NONBLOCK.
14935         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14936         O_NONBLOCK support.
14937         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14938
14939 2011-04-17  Bruno Haible  <bruno@clisp.org>
14940
14941         pipe2: Simplify code.
14942         * lib/pipe2.c (pipe2): Reduce code duplication.
14943
14944 2011-04-17  Bruno Haible  <bruno@clisp.org>
14945
14946         nonblocking: Add comment.
14947         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14948
14949 2011-04-17  Bruno Haible  <bruno@clisp.org>
14950
14951         nonblocking: Add tests for sockets.
14952         * tests/test-nonblocking-socket.sh: New file.
14953         * tests/test-nonblocking-socket-main.c: New file.
14954         * tests/test-nonblocking-socket-child.c: New file.
14955         * tests/test-nonblocking-socket.h: New file.
14956         * tests/socket-server.h: New file.
14957         * tests/socket-client.h: New file.
14958         * modules/nonblocking-socket-tests: New file.
14959         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14960
14961 2011-04-17  Bruno Haible  <bruno@clisp.org>
14962
14963         nonblocking: Add tests for pipes.
14964         * tests/test-nonblocking-pipe.sh: New file.
14965         * tests/test-nonblocking-pipe-main.c: New file.
14966         * tests/test-nonblocking-pipe-child.c: New file.
14967         * tests/test-nonblocking-pipe.h: New file.
14968         * tests/test-nonblocking-writer.h: New file.
14969         * tests/test-nonblocking-reader.h: New file.
14970         * tests/test-nonblocking-misc.h: New file.
14971         * modules/nonblocking-pipe-tests: New file.
14972         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14973
14974 2011-04-16  Bruno Haible  <bruno@clisp.org>
14975
14976         gettext: Clarify the needed programmer actions.
14977         * modules/gettext (Notice): New field.
14978         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14979
14980 2011-04-16  Bruno Haible  <bruno@clisp.org>
14981
14982         strchrnul: Tweak last commit.
14983         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14984         bug.
14985         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14986         as in _GL_FUNCDECL_SYS.
14987         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14988         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14989
14990 2011-04-15  Eric Blake  <eblake@redhat.com>
14991
14992         strchrnul: work around cygwin bug
14993         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14994         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14996         * modules/string (Makefile.am): Substitute it.
14997         * lib/string.in.h (strchrnul): Use it.
14998
14999 2011-04-15  Bruno Haible  <bruno@clisp.org>
15000
15001         Don't require lib/stdio-write.c when only module 'stdio' is used.
15002         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
15003         invocation.
15004         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
15005
15006 2011-04-14  Bruno Haible  <bruno@clisp.org>
15007
15008         Support non-blocking pipe I/O in read() on native Windows.
15009         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
15010         (read): New declaration.
15011         * lib/read.c: New file.
15012         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
15013         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
15014         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
15015         vscanf): New declarations.
15016         * lib/stdio-read.c: New file.
15017         * m4/read.m4: New file.
15018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
15019         REPLACE_READ.
15020         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
15021         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15022         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
15023         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
15024         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
15025         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15026         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15027         * modules/read: New file.
15028         * modules/nonblocking (Files): Add lib/stdio-read.c.
15029         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
15030         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
15031         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15032         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15033         * modules/pread (Depends-on): Add read.
15034         * modules/safe-read (Depends-on): Likewise.
15035         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
15036         gets, scanf, vfscanf, vscanf): Verify signatures.
15037         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
15038         problem with non-blocking pipes.
15039         * doc/posix-functions/fgetc.texi: Likewise.
15040         * doc/posix-functions/fgets.texi: Likewise.
15041         * doc/posix-functions/fread.texi: Likewise.
15042         * doc/posix-functions/fscanf.texi: Likewise.
15043         * doc/posix-functions/getc.texi: Likewise.
15044         * doc/posix-functions/getchar.texi: Likewise.
15045         * doc/posix-functions/gets.texi: Likewise.
15046         * doc/posix-functions/scanf.texi: Likewise.
15047         * doc/posix-functions/vfscanf.texi: Likewise.
15048         * doc/posix-functions/vscanf.texi: Likewise.
15049
15050 2011-04-14  Bruno Haible  <bruno@clisp.org>
15051
15052         Support non-blocking pipe I/O in write() on native Windows.
15053         * lib/write.c (rpl_write): Split a write request that failed merely
15054         because the byte count was larger than the pipe buffer's size.
15055         * doc/posix-functions/write.texi: Mention the problem with large byte
15056         counts.
15057
15058 2011-04-14  Bruno Haible  <bruno@clisp.org>
15059
15060         wchar: Ensure that wchar_t gets defined on uClibc.
15061         * lib/wchar.in.h: On uClibc, include <stddef.h>.
15062         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
15063
15064 2011-04-13  Bruno Haible  <bruno@clisp.org>
15065
15066         safe-write, full-read: Avoid unnecessary compilation units.
15067         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
15068         (Depends-on): Remove safe-read. Add ssize_t.
15069         * modules/full-read (Files): Add lib/full-write.c.
15070         (Depends-on): Add full-write.
15071
15072 2011-04-13  Bruno Haible  <bruno@clisp.org>
15073
15074         Support non-blocking pipe I/O and SIGPIPE in pwrite().
15075         * modules/pwrite (Depends-on): Add 'write'.
15076
15077 2011-04-13  Bruno Haible  <bruno@clisp.org>
15078
15079         Support non-blocking pipe I/O in write() on native Windows.
15080         * lib/unistd.in.h (write): Enable replacement also if
15081         GNULIB_UNISTD_H_NONBLOCKING is 1.
15082         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
15083         (rpl_write): When failing to write on a non-blocking pipe, change
15084         errno from ENOSPC to EAGAIN.
15085         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
15086         putchar, puts, vfprintf, vprintf): Enable replacement also if
15087         GNULIB_STDIO_H_NONBLOCKING is 1.
15088         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
15089         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
15090         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
15091         CALL_WITH_SIGPIPE_EMULATION.
15092         (CALL_WITH_SIGPIPE_EMULATION): Use them.
15093         * m4/nonblocking.m4: New file.
15094         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
15095         for non-blocking I/O support.
15096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15097         GNULIB_UNISTD_H_NONBLOCKING.
15098         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
15099         required for non-blocking I/O support.
15100         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
15101         * modules/nonblocking (Files): Add m4/nonblocking.m4,
15102         lib/stdio-write.c, m4/asm-underscore.m4.
15103         (Depends-on): Add stdio, unistd.
15104         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
15105         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
15106         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
15107         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
15108         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
15109         problem with non-blocking pipes.
15110         * doc/posix-functions/fputc.texi: Likewise.
15111         * doc/posix-functions/fputs.texi: Likewise.
15112         * doc/posix-functions/fwrite.texi: Likewise.
15113         * doc/posix-functions/printf.texi: Likewise.
15114         * doc/posix-functions/putc.texi: Likewise.
15115         * doc/posix-functions/putchar.texi: Likewise.
15116         * doc/posix-functions/puts.texi: Likewise.
15117         * doc/posix-functions/vfprintf.texi: Likewise.
15118         * doc/posix-functions/vprintf.texi: Likewise.
15119         * doc/posix-functions/write.texi: Likewise.
15120
15121 2011-04-10  Jim Meyering  <meyering@redhat.com>
15122
15123         maint.mk: prohibit doubled words
15124         Detect them also when they're separated by a newline.
15125         There are 3 ways to customize it:
15126           - disable the test on a per file basis, as usual with rules using
15127             $(VC_LIST_EXCEPT)
15128           - replace the default doubled-word-selecting regexp (affects all files)
15129           - ignore a particular file-vs-doubled-word match
15130         I nearly used that last one to ignore the "is is" match in
15131         coreutils' NEWS file, since the text was "ls -is is ..."
15132         To do that, I would have added this line to cfg.mk:
15133           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
15134         but it would have ignored any "is is" match in NEWS.
15135         Low probability, but still...
15136         Instead, I changed the text, slightly:
15137           -  ls -is is now consistent with ls -lis in ignoring values returned
15138           +  "ls -is" is now consistent with ls -lis in ignoring values returned
15139         * top/maint.mk (prohibit_double_word_RE_): Provide default.
15140         (prohibit_doubled_word_): Define.
15141         (sc_prohibit_doubled_word): New rule.
15142         (sc_prohibit_the_the): Remove.  Subsumed by the above.
15143
15144 2011-04-10  Jim Meyering  <meyering@redhat.com>
15145
15146         maint: fix doubled-word typo in comment
15147         * m4/gethostname.m4: s/is is/it is/
15148         * m4/getdomainname.m4: Likewise.
15149
15150 2011-04-10  Jim Meyering  <meyering@redhat.com>
15151
15152         maint: remove doubled word: s/it it/it/
15153         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15154
15155 2011-04-10  Jim Meyering  <meyering@redhat.com>
15156
15157         maint.mk: remove useless semicolon and backslash
15158         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15159         semicolon and backslash.
15160
15161 2011-04-10  Bruno Haible  <bruno@clisp.org>
15162
15163         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15164         * modules/stdint-tests (Depends-on): Add wchar.
15165
15166 2011-04-10  Jim Meyering  <meyering@redhat.com>
15167
15168         maint: remove doubled words in comments, e.g., s/a a/a/
15169         * lib/strptime.c (day_of_the_week): s/the the/the/
15170         * tests/test-chown.h (test_chown): s/a a/a/
15171
15172         test-chown.h: correct a cast
15173         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15174         when the destination is a stat.st_gid.
15175
15176 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15177
15178         getaddrinfo: Fix test for sa_len member.
15179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15180         include <sys/types.h> before <sys/socket.h>.
15181
15182 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15183
15184         maint: change "can not" to "cannot"
15185         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15186         boundaries.
15187
15188 2011-04-09  Jim Meyering  <meyering@redhat.com>
15189
15190         maint: change "a a" to "a"
15191         * tests/test-lchown.h (test_lchown): s/a a/a/
15192
15193         maint.mk: prohibit \<the the\>
15194         * top/maint.mk (sc_prohibit_the_the): New rule.
15195
15196         maint: fix "the the" in comment
15197         * lib/count-one-bits.h: s/the the/the/
15198
15199         maint: change "can not" to "cannot"
15200         But do not change the occurrences in maintain.texi or in
15201         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15202         * doc/gnulib-tool.texi: s/can not/cannot/
15203         * doc/posix-functions/accept.texi (accept): Likewise.
15204         * doc/posix-functions/socket.texi (socket): Likewise.
15205         * lib/mbrtowc.c: Likewise.
15206
15207         maint.mk: prohibit use of "can not"
15208         * top/maint.mk (sc_prohibit_can_not): New rule.
15209         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15210
15211 2011-04-09  Bruno Haible  <bruno@clisp.org>
15212
15213         careadlinkat: Guard against misuse of careadlinkatcwd.
15214         * lib/careadlinkat.c: Include <stdlib.h>.
15215         (careadlinkatcwd): Check that the fd argument is as expected.
15216
15217 2011-04-09  Bruno Haible  <bruno@clisp.org>
15218
15219         careadlinkat: Use common coding style.
15220         * lib/careadlinkat.c: Move gnulib includes after system includes.
15221
15222 2011-04-09  Bruno Haible  <bruno@clisp.org>
15223
15224         careadlinkat: Clarify specification.
15225         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15226         (careadlinkatcwd): Add comment.
15227         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15228
15229 2011-04-09  Bruno Haible  <bruno@clisp.org>
15230
15231         areadlinkat: Avoid link error on many platforms.
15232         * modules/areadlinkat (Depends-on): Add areadlink.
15233
15234 2011-04-09  Bruno Haible  <bruno@clisp.org>
15235
15236         allocator, careadlinkat: Fix double-inclusion guard.
15237         * lib/allocator.h: Fix double-inclusion guard.
15238         * lib/careadlinkat.h: Likewise.
15239
15240 2011-04-09  Bruno Haible  <bruno@clisp.org>
15241
15242         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15243         * lib/relocwrapper.c: Update dependencies hierarchy.
15244         * build-aux/install-reloc: Update list of files to be compiled.
15245         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15246         lib/allocator.[hc].
15247
15248 2011-04-08  Eric Blake  <eblake@redhat.com>
15249
15250         strftime: silence gnulib-tool warning
15251         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15252
15253 2011-04-08  Bruno Haible  <bruno@clisp.org>
15254
15255         verify: Fix syntax error with GCC 4.6 in C++ mode.
15256         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15257         (HAVE_STATIC_ASSERT): New macro.
15258         (verify_true, verify): Use 'static_assert' if it is supported and
15259         '_Static_assert' is not supported.
15260
15261 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15262
15263         allocator: New module.
15264         * modules/allocator, lib/allocator.c: New files.
15265         * lib/allocator.h (stdlib_allocator): New decl.
15266         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15267         Remove.  Do not include <stdlib.h>.
15268         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15269         * modules/careadlinkat (Files): Remove lib/allocator.h.
15270         (Depends-on): Add allocator.
15271
15272         stdlib: let modules use system malloc, realloc
15273         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15274         if !_GL_USE_STDLIB_ALLOC.
15275         (malloc, realloc): Limit this change to a smaller scope.
15276
15277         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15278         (malloc, realloc): Don't #undef; no longer needed.
15279         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15280         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15281         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15282         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15283         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15284         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15285         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15286         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15287
15288         careadlinkat: rename members to avoid problem
15289         * lib/allocator.h (struct allocator): Rename members from
15290         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15291         and realloc are #define'd.  Reported by Eric Blake in
15292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15293         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15294
15295 2011-04-08  Eric Blake  <eblake@redhat.com>
15296
15297         nonblocking: reduce dependency
15298         * tests/test-nonblocking.c: Only test sockets when in use.
15299         * modules/nonblocking-tests (Depends-on): Drop socket.
15300         (Makefile.am): Link even if sockets are not present.
15301         * modules/pipe2-tests (Makefile.am): Likewise.
15302         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15303
15304         pipe2: fix O_NONBLOCK support on mingw
15305         * modules/pipe2 (Depends-on): Add nonblocking.
15306         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15307         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15308         * tests/test-nonblocking.c (main): Likewise.
15309         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15310
15311         fcntl-h: fix O_ACCMODE on cygwin
15312         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15313         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15314
15315         pipe-filter: drop O_NONBLOCK workarounds
15316         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15317         * modules/pipe-filter-ii (Depends-on): Likewise.
15318         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15319
15320         nonblocking: provide O_NONBLOCK for mingw
15321         * modules/nonblocking (Depends-on): Add open.
15322         (configure.ac): Set new witness macro.
15323         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15324         * modules/fcntl-h (Makefile.am): Substitute it.
15325         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15326         nonblocking module is in use.
15327         * lib/nonblocking.c: Adjust portability test.
15328         * lib/open.c (open): Don't let native open see gnulib flag.
15329         * tests/test-fcntl-h.c (main): Enhance test.
15330         * tests/test-open.h (test_open): Likewise.
15331         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15332
15333         careadlinkat: fix compilation error on mingw
15334         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15335         within struct allocator.
15336
15337 2011-04-06  Eric Blake  <eblake@redhat.com>
15338
15339         binary-io: relicense under LGPLv2+
15340         * modules/binary-io (License): Relax to LGPLv2+.
15341         Requested for libvirt, and required by pipe2.
15342
15343 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15344
15345         verify: use _Static_assert if available
15346         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15347         (verify_true, verify): Use it if available.  This generates better
15348         diagnostics with GCC 4.6.0 and later.
15349
15350 2011-04-05  Bruno Haible  <bruno@clisp.org>
15351
15352         Remove leftover generated .h files after config.status changed.
15353
15354         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15355         GL_GENERATE_ALLOCA_H.
15356         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15357         GL_GENERATE_ALLOCA_H evaluates to false.
15358
15359         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15360         GL_GENERATE_ARGZ_H.
15361         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15362         evaluates to false.
15363
15364         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15365         GL_GENERATE_BYTESWAP_H.
15366         * modules/byteswap (Makefile.am): Remove byteswap.h if
15367         GL_GENERATE_BYTESWAP_H evaluates to false.
15368
15369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15370         GL_GENERATE_ERRNO_H.
15371         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15372         evaluates to false.
15373
15374         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15375         GL_GENERATE_FLOAT_H.
15376         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15377         evaluates to false.
15378
15379         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15380         GL_GENERATE_FNMATCH_H.
15381         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15382         GL_GENERATE_FNMATCH_H evaluates to false.
15383
15384         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15385         GL_GENERATE_GLOB_H.
15386         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15387         evaluates to false.
15388
15389         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15390         automake conditional GL_GENERATE_ICONV_H.
15391         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15392         evaluates to false.
15393
15394         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15395         GL_GENERATE_NETINET_IN_H.
15396         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15397         GL_GENERATE_NETINET_IN_H evaluates to false.
15398
15399         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15400         conditional GL_GENERATE_PTHREAD_H.
15401         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15402         * modules/pthread (Makefile.am): Remove pthread.h if
15403         GL_GENERATE_PTHREAD_H evaluates to false.
15404
15405         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15406         GL_GENERATE_SCHED_H.
15407         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15408         evaluates to false.
15409
15410         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15411         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15412         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15413         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15414
15415         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15416         GL_GENERATE_STDARG_H.
15417         * modules/stdarg (Makefile.am): Remove stdarg.h if
15418         GL_GENERATE_STDARG_H evaluates to false.
15419
15420         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15421         GL_GENERATE_STDBOOL_H.
15422         * modules/stdbool (Makefile.am): Remove stdbool.h if
15423         GL_GENERATE_STDBOOL_H evaluates to false.
15424
15425         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15426         conditional GL_GENERATE_STDDEF_H.
15427         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15428         * modules/stddef (Makefile.am): Remove stddef.h if
15429         GL_GENERATE_STDDEF_H evaluates to false.
15430
15431         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15432         GL_GENERATE_STDINT_H.
15433         * modules/stdint (Makefile.am): Remove stdint.h if
15434         GL_GENERATE_STDINT_H evaluates to false.
15435
15436         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15437         GL_GENERATE_SYSEXITS_H.
15438         * modules/sysexits (Makefile.am): Remove sysexits.h if
15439         GL_GENERATE_SYSEXITS_H evaluates to false.
15440
15441         Reported by Karl Berry and Ralf Wildenhues.
15442
15443 2011-04-05  Bruno Haible  <bruno@clisp.org>
15444
15445         Ensure to rebuild generated .h files when config.status has changed.
15446         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15447         config.status.
15448         * modules/ctype (Makefile.am): Likewise.
15449         * modules/dirent (Makefile.am): Likewise.
15450         * modules/errno (Makefile.am): Likewise.
15451         * modules/fcntl-h (Makefile.am): Likewise.
15452         * modules/float (Makefile.am): Likewise.
15453         * modules/getopt-posix (Makefile.am): Likewise.
15454         * modules/glob (Makefile.am): Likewise.
15455         * modules/iconv-h (Makefile.am): Likewise.
15456         * modules/inttypes (Makefile.am): Likewise.
15457         * modules/langinfo (Makefile.am): Likewise.
15458         * modules/locale (Makefile.am): Likewise.
15459         * modules/math (Makefile.am): Likewise.
15460         * modules/netdb (Makefile.am): Likewise.
15461         * modules/netinet_in (Makefile.am): Likewise.
15462         * modules/poll-h (Makefile.am): Likewise.
15463         * modules/pthread (Makefile.am): Likewise.
15464         * modules/pty (Makefile.am): Likewise.
15465         * modules/sched (Makefile.am): Likewise.
15466         * modules/search (Makefile.am): Likewise.
15467         * modules/selinux-h (Makefile.am): Likewise.
15468         * modules/signal (Makefile.am): Likewise.
15469         * modules/spawn (Makefile.am): Likewise.
15470         * modules/stdarg (Makefile.am): Likewise.
15471         * modules/stdbool (Makefile.am): Likewise.
15472         * modules/stddef (Makefile.am): Likewise.
15473         * modules/stdint (Makefile.am): Likewise.
15474         * modules/stdio (Makefile.am): Likewise.
15475         * modules/stdlib (Makefile.am): Likewise.
15476         * modules/string (Makefile.am): Likewise.
15477         * modules/strings (Makefile.am): Likewise.
15478         * modules/sys_file (Makefile.am): Likewise.
15479         * modules/sys_ioctl (Makefile.am): Likewise.
15480         * modules/sys_select (Makefile.am): Likewise.
15481         * modules/sys_socket (Makefile.am): Likewise.
15482         * modules/sys_stat (Makefile.am): Likewise.
15483         * modules/sys_time (Makefile.am): Likewise.
15484         * modules/sys_times (Makefile.am): Likewise.
15485         * modules/sys_utsname (Makefile.am): Likewise.
15486         * modules/sys_wait (Makefile.am): Likewise.
15487         * modules/sysexits (Makefile.am): Likewise.
15488         * modules/termios (Makefile.am): Likewise.
15489         * modules/time (Makefile.am): Likewise.
15490         * modules/unistd (Makefile.am): Likewise.
15491         * modules/wchar (Makefile.am): Likewise.
15492         * modules/wctype-h (Makefile.am): Likewise.
15493         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15494
15495 2011-04-05  Bruno Haible  <bruno@clisp.org>
15496
15497         pipe2: Relicense under LGPLv2+.
15498         * modules/pipe2 (License): Change to LGPLv2+.
15499         Requested by Eric Blake, for libvirt.
15500
15501 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15502
15503         bootstrap: compute gnulib_extra_files after updating build_aux
15504         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15505         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15506
15507 2011-04-05  Eric Blake  <eblake@redhat.com>
15508
15509         bootstrap: preserve git whitelist item sorting
15510         * build-aux/bootstrap (sort_patterns): New function.
15511         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15512
15513 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15514
15515         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15516         sc_space_tab check.
15517
15518 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15519
15520         areadlink, areadlinkat: rewrite in terms of careadlinkat
15521         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15522         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15523         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15524         (malloc, realloc): Remove #undefs.
15525         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15526         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15527         readlink, ssize_t, stdint, unistd.
15528         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15529         areadlink, stdint.
15530
15531         careadlinkat: new module
15532         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15533         * modules/careadlinkat: New files, written by me with
15534         a review and feedback from Ben Pfaff in
15535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15536
15537 2011-04-01  Bruno Haible  <bruno@clisp.org>
15538
15539         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15540         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15541         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15542         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15543         Reported by Bruce Korb <bruce.korb@gmail.com>.
15544
15545 2011-04-01  Bruno Haible  <bruno@clisp.org>
15546
15547         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15548         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15549         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15550         * modules/wcpcpy (Depends-on): Add extensions.
15551         * modules/wcpncpy (Depends-on): Likewise.
15552         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15553         systems.
15554         * doc/posix-functions/wcpncpy.texi: Likewise.
15555         * doc/posix-functions/wcwidth.texi: Likewise.
15556
15557 2011-03-31  Eric Blake  <eblake@redhat.com>
15558
15559         nonblocking: fix mingw test failures
15560         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15561         non-blocking flag on regular file.
15562         (get_nonblocking_flag): Set errno on invalid fd.
15563         * tests/test-nonblocking.c (main): Avoid test failure on
15564         directories if fchdir is not active.
15565         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15566
15567 2011-03-31  Bruno Haible  <bruno@clisp.org>
15568
15569         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15570         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15571         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15572         Reported by Simon Josefsson <simon@josefsson.org>.
15573
15574 2011-03-31  Bruno Haible  <bruno@clisp.org>
15575         and Eric Blake  <eblake@redhat.com>
15576
15577         nonblocking: new module
15578         * modules/nonblocking: New module.
15579         * modules/nonblocking-tests: Likewise.
15580         * lib/nonblocking.h: New file.
15581         * lib/nonblocking.c: Likewise.
15582         * tests/test-nonblocking.c: New test.
15583         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15584
15585 2011-03-30  Bruno Haible  <bruno@clisp.org>
15586
15587         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15588         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15589         instead of 'printf' format for GCC >= 4.4.
15590         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15591         (fprintf, printf, vfprintf, vprintf): Declare with
15592         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15593         the system's vfprintf() function.
15594         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15595
15596 2011-03-30  Eric Blake  <eblake@redhat.com>
15597
15598         passfd: fix scoping bug
15599         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15600         before sendmsg/recvmsg.
15601
15602         passfd: standardize coding conventions
15603         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15604         can be learned at compile time.
15605         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15606         ifdefs.
15607         (sendfd, recvfd): Follow gnulib code conventions.
15608
15609         passfd: fix incorrect sendmsg arguments
15610         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15611         incorrect msg_controllen value.
15612         * modules/passfd-tests (Depends-on): Check for alarm.
15613         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15614         Reported by Bastien ROUCARIES.
15615
15616 2011-03-30  Bruno Haible  <bruno@clisp.org>
15617
15618         c-strcasestr: Relicense under LGPLv2+.
15619         * modules/c-strcasestr (License): Change to LGPLv2+.
15620         Requested by Eric Blake, for libvirt.
15621
15622 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15623
15624         * users.txt: Add libidn2.  Fix libtasn1 link.
15625
15626 2011-03-30  Jim Meyering  <meyering@redhat.com>
15627
15628         tests: readlink* ("",... fails with EINVAL on newer kernels
15629         readlink and readlinkat have typically failed with ENOENT for
15630         the invalid, empty file name,  "".  However, with the advent
15631         of linux-2.6.39, they fail with EINVAL.
15632         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15633         when operating on the empty file name.
15634         * tests/test-readlink.h (test_readlink): Likewise.
15635
15636 2011-03-29  Bruno Haible  <bruno@clisp.org>
15637
15638         Relicense some modules under LGPLv2+, for libidn2.
15639         * modules/array-mergesort (License): Change to LGPLv2+.
15640         * modules/c-strcaseeq (License): Likewise.
15641         * modules/striconveh (License): Likewise.
15642         * modules/striconveha (License): Likewise.
15643         * modules/uniconv/base (License): Likewise.
15644         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15645         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15646         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15647         * modules/unictype/base (License): Likewise.
15648         * modules/unictype/bidiclass-of (License): Likewise.
15649         * modules/unictype/category-M (License): Likewise.
15650         * modules/unictype/category-none (License): Likewise.
15651         * modules/unictype/category-of (License): Likewise.
15652         * modules/unictype/category-test (License): Likewise.
15653         * modules/unictype/category-test-withtable (License): Likewise.
15654         * modules/unictype/combining-class (License): Likewise.
15655         * modules/unictype/joiningtype-of (License): Likewise.
15656         * modules/unictype/scripts (License): Likewise.
15657         * modules/uninorm/base (License): Likewise.
15658         * modules/uninorm/canonical-decomposition (License): Likewise.
15659         * modules/uninorm/composition (License): Likewise.
15660         * modules/uninorm/decompose-internal (License): Likewise.
15661         * modules/uninorm/decomposition-table (License): Likewise.
15662         * modules/uninorm/nfc (License): Likewise.
15663         * modules/uninorm/nfd (License): Likewise.
15664         * modules/uninorm/u32-normalize (License): Likewise.
15665         * modules/unistr/base (License): Likewise.
15666         * modules/unistr/u32-cpy (License): Likewise.
15667         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15668         * modules/unistr/u32-to-u8 (License): Likewise.
15669         * modules/unistr/u32-uctomb (License): Likewise.
15670         * modules/unistr/u8-check (License): Likewise.
15671         * modules/unistr/u8-mblen (License): Likewise.
15672         * modules/unistr/u8-mbtouc (License): Likewise.
15673         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15674         * modules/unistr/u8-mbtoucr (License): Likewise.
15675         * modules/unistr/u8-prev (License): Likewise.
15676         * modules/unistr/u8-strlen (License): Likewise.
15677         * modules/unistr/u8-to-u32 (License): Likewise.
15678         * modules/unistr/u8-uctomb (License): Likewise.
15679         * modules/unitypes (License): Likewise.
15680         Requested by Simon Josefsson.
15681
15682 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15683
15684         lib-symbol-visibility: Add a notice.
15685         * modules/lib-symbol-visibility (Notice): New field.
15686
15687 2011-03-29  Bruno Haible  <bruno@clisp.org>
15688
15689         getaddrinfo: Doc fix.
15690         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15691         section "fixed in Gnulib".
15692
15693 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15694
15695         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15696         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15697
15698 2011-03-26  Bruno Haible  <bruno@clisp.org>
15699
15700         unictype/property-byname: Reduce the number of load-time relocations.
15701         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15702         (UC_PROPERTY_INDEX_*): New enumeration values.
15703         (uc_property_byname): Convert an index from the lookup table to an
15704         uc_property_t.
15705         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15706         values.
15707
15708 2011-03-26  Bruno Haible  <bruno@clisp.org>
15709
15710         unictype/property-byname: Allow omitted word separators and aliases.
15711         * lib/unictype/pr_byname.gperf: Add property names without word
15712         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15713         for 'space'.
15714
15715 2011-03-26  Bruno Haible  <bruno@clisp.org>
15716
15717         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15718         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15719         also hyphens to space.
15720         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15721         without spaces.
15722         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15723
15724 2011-03-26  Bruno Haible  <bruno@clisp.org>
15725
15726         unictype/joiningtype-byname: Recognize long names as well.
15727         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15728         a long name.
15729         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15730         unictype/joiningtype_byname.h.
15731         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15732         * lib/unictype/joiningtype_byname.gperf: New file.
15733         * modules/unictype/joiningtype-byname (Files): Add
15734         lib/unictype/joiningtype_byname.gperf.
15735         (Depends-on): Add gperf.
15736         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15737         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15738         long names.
15739
15740         Tests for module 'unictype/joiningtype-longname'.
15741         * modules/unictype/joiningtype-longname-tests: New file.
15742         * tests/unictype/test-joiningtype_longname.c: New file.
15743
15744         New module 'unictype/joiningtype-longname'.
15745         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15746         * lib/unictype/joiningtype_longname.c: New file.
15747         * modules/unictype/joiningtype-longname: New file.
15748         * modules/unictype/joiningtype-all (Depends-on): Add
15749         unictype/joiningtype-longname.
15750
15751 2011-03-26  Bruno Haible  <bruno@clisp.org>
15752
15753         unictype/bidiclass-byname: Recognize long names as well.
15754         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15755         name.
15756         * lib/unictype/bidi_byname.c: Include <string.h>,
15757         unictype/bidi_byname.h.
15758         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15759         * lib/unictype/bidi_byname.gperf: New file.
15760         * modules/unictype/bidiclass-byname (Files): Add
15761         lib/unictype/bidi_byname.gperf.
15762         (Depends-on): Add gperf.
15763         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15764         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15765         long names.
15766
15767         Tests for module 'unictype/bidiclass-longname'.
15768         * modules/unictype/bidiclass-longname-tests: New file.
15769         * tests/unictype/test-bidi_longname.c: New file.
15770
15771         New module 'unictype/bidiclass-longname'.
15772         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15773         * lib/unictype/bidi_longname.c: New file.
15774         * modules/unictype/bidiclass-longname: New file.
15775         * modules/unictype/bidiclass-all (Depends-on): Add
15776         unictype/bidiclass-longname.
15777
15778 2011-03-26  Bruno Haible  <bruno@clisp.org>
15779
15780         unictype/bidi*: Rename modules.
15781         * modules/unictype/bidiclass-all: Renamed from
15782         modules/unictype/bidicategory-all.
15783         * modules/unictype/bidiclass-name: Renamed from
15784         modules/unictype/bidiclass-name.
15785         (Description): Update.
15786         * modules/unictype/bidiclass-name-tests: Renamed from
15787         modules/unictype/bidicategory-name-tests.
15788         * modules/unictype/bidiclass-byname: Renamed from
15789         modules/unictype/bidicategory-byname.
15790         (Description): Update.
15791         * modules/unictype/bidiclass-byname-tests: Renamed from
15792         modules/unictype/bidicategory-byname-tests.
15793         * modules/unictype/bidiclass-of: Renamed from
15794         modules/unictype/bidicategory-of.
15795         (Description): Update.
15796         * modules/unictype/bidiclass-of-tests: Renamed from
15797         modules/unictype/bidicategory-of-tests.
15798         * modules/unictype/bidiclass-test: Renamed from
15799         modules/unictype/bidicategory-test.
15800         (Description): Update.
15801         * modules/unictype/bidiclass-test-tests: Renamed from
15802         modules/unictype/bidicategory-test-tests.
15803         * modules/unictype/bidicategory-all: New file, a simple redirection.
15804         * modules/unictype/bidicategory-name: Likewise.
15805         * modules/unictype/bidicategory-byname: Likewise.
15806         * modules/unictype/bidicategory-of: Likewise.
15807         * modules/unictype/bidicategory-test: Likewise.
15808         * modules/unictype/property-bidi-* (Dependencies): Update.
15809         * lib/unictype/bidi_*.c: Update comment.
15810
15811 2011-03-26  Bruno Haible  <bruno@clisp.org>
15812
15813         unictype/bidi*: Rename functions, part 2.
15814         * modules/unictype/bidicategory-name (configure.ac): Update required
15815         libunistring version.
15816         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15817
15818 2011-03-25  Bruno Haible  <bruno@clisp.org>
15819
15820         New module 'unictype/combining-class-all'.
15821         * modules/unictype/combining-class-all: New file.
15822
15823         Tests for module 'unictype/combining-class-byname'.
15824         * modules/unictype/combining-class-byname-tests: New file.
15825         * tests/unictype/test-combiningclass_byname.c: New file.
15826
15827         New module 'unictype/combining-class-byname'.
15828         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15829         * lib/unictype/combiningclass_byname.c: New file.
15830         * lib/unictype/combiningclass_byname.gperf: New file.
15831         * modules/unictype/combining-class-byname: New file.
15832
15833         Tests for module 'unictype/combining-class-longname'.
15834         * modules/unictype/combining-class-longname-tests: New file.
15835         * tests/unictype/test-combiningclass_longname.c: New file.
15836
15837         New module 'unictype/combining-class-longname'.
15838         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15839         * lib/unictype/combiningclass_longname.c: New file.
15840         * modules/unictype/combining-class-longname: New file.
15841
15842         Tests for module 'unictype/combining-class-name'.
15843         * modules/unictype/combining-class-name-tests: New file.
15844         * tests/unictype/test-combiningclass_name.c: New file.
15845
15846         New module 'unictype/combining-class-name'.
15847         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15848         * lib/unictype/combiningclass_name.c: New file.
15849         * modules/unictype/combining-class-name: New file.
15850
15851 2011-03-25  Bruno Haible  <bruno@clisp.org>
15852
15853         unictype/combining-class: Rename source files.
15854         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15855         of unictype/combining.h.
15856         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15857         Update.
15858         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15859         * modules/unictype/combining-class (Description): Fix.
15860         (Files, Makefile.am): Update.
15861         * tests/unictype/test-combiningclass.c: Renamed from
15862         tests/unictype/test-combining.c.
15863         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15864
15865 2011-03-25  Bruno Haible  <bruno@clisp.org>
15866
15867         unictype: Update list of canonical combining classes.
15868         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15869
15870 2011-03-25  Bruno Haible  <bruno@clisp.org>
15871
15872         unictype/category-byname: Recognize long names as well.
15873         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15874         a long name.
15875         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15876         unictype/categ_byname.h.
15877         (UC_CATEGORY_INDEX_*): New enumeration values.
15878         (uc_general_category_byname): Use uc_general_category_lookup and
15879         convert from index to value.
15880         * lib/unictype/categ_byname.gperf: New file.
15881         * modules/unictype/category-byname (Files): Add
15882         lib/unictype/categ_byname.gperf.
15883         (Depends-on): Add gperf.
15884         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15885         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15886         long names.
15887
15888         Tests for module 'unictype/category-longname'.
15889         * modules/unictype/category-longname-tests: New file.
15890         * tests/unictype/test-categ_longname.c: New file.
15891
15892         New module 'unictype/category-longname'.
15893         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15894         * lib/unictype/categ_longname.c: New file.
15895         * modules/unictype/category-longname: New file.
15896         * modules/unictype/category-all (Depends-on): Add it.
15897
15898 2011-03-25  Bruno Haible  <bruno@clisp.org>
15899
15900         Tests for module 'unictype/category-LC'.
15901         * modules/unictype/category-LC-tests: New file.
15902         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15903
15904         New module 'unictype/category-LC'.
15905         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15906         (UC_CATEGORY_LC): New declaration.
15907         (UC_CASED_LETTER): New macro.
15908         * lib/gen-uni-tables.c (is_category_LC): New function.
15909         (output_categories): Also handle category LC.
15910         (UC_CATEGORY_MASK_LC): New enumeration value.
15911         (general_category_byname): Also handle category LC.
15912         * lib/unictype/categ_LC.c: New file.
15913         * lib/unictype/categ_LC.h: New file, automatically generated.
15914         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15915         category LC.
15916         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15917         * modules/unictype/category-LC: New file.
15918         * modules/unictype/category-byname (Depends-on): Add
15919         unictype/category-LC.
15920         * modules/unictype/category-all (Depends-on): Likewise.
15921
15922 2011-03-25  Eric Blake  <eblake@redhat.com>
15923
15924         xmalloc: revert yesterday's regression
15925         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15926         realloc's underlying behavior (allowing allocation of zero-size
15927         objects, especially if malloc-gnu is also in use).
15928
15929 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15930
15931         maint.mk: add missing version to VC-tag
15932         * top/maint.mk: git tag was missing actual tag name; add it.
15933
15934         valgrind: do leak checking, and exit with code 1 on error (not 0)
15935         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15936         to VALGRIND.
15937
15938 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15939
15940         posix-modules: say what it does.
15941         * posix-modules: Add a line to the --help output saying what it does.
15942
15943 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15944
15945         xmalloc: Do not leak if underlying realloc is C99 compatible.
15946         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15947         This avoids a leak on C99-based systems.  See
15948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15949
15950 2011-03-24  Eric Blake  <eblake@redhat.com>
15951
15952         realloc: document portability problem
15953         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15954         passing 0 size to realloc.
15955
15956 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15957
15958         doc: update users.txt
15959         * users.txt: Add cvsps, tmpwatch
15960
15961 2011-03-23  Matt Rice  <ratmice@gmail.com>
15962
15963         doc: update users.txt
15964         * users.txt: Add gdb.
15965
15966 2011-03-23  Jim Meyering  <meyering@redhat.com>
15967
15968         doc: update users.txt
15969         Looking through matches up to the following URL (there are still
15970         several more pages), I found several projects that use gnulib:
15971         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15972         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15973         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15974
15975 2011-03-22  Bruno Haible  <bruno@clisp.org>
15976
15977         unictype/bidi*: Rename functions.
15978         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15979         uc_bidi_class, uc_is_bidi_class): New declarations.
15980         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15981         uc_bidi_category_byname.
15982         (uc_bidi_category_byname): New function.
15983         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15984         u_bidi_category_name.
15985         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15986         (uc_bidi_category_name): New function.
15987         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15988         uc_bidi_category.
15989         (uc_bidi_category): New function.
15990         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15991         uc_is_bidi_category. Invoke uc_bidi_class.
15992         (uc_is_bidi_category): New function.
15993         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15994         instead of uc_bidi_category_byname.
15995         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15996         instead of uc_bidi_category_name.
15997         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15998         uc_bidi_category.
15999         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
16000         instead of uc_is_bidi_category.
16001
16002 2011-03-21  Bruno Haible  <bruno@clisp.org>
16003
16004         New module 'unictype/joininggroup-all'.
16005         * modules/unictype/joininggroup-all: New file.
16006
16007         Tests for module 'unictype/joininggroup-of'.
16008         * modules/unictype/joininggroup-of-tests: New file.
16009         * tests/unictype/test-joininggroup_of.c: New file.
16010         * tests/unictype/test-joininggroup_of.h: New file, automatically
16011         generated by gen-uni-tables.
16012
16013         New module 'unictype/joininggroup-of'.
16014         * modules/unictype/joininggroup-of: New file.
16015         * lib/unictype/joininggroup_of.c: New file.
16016         * lib/unictype/joininggroup_of.h: New file, automatically generated by
16017         gen-uni-tables.
16018
16019         Tests for module 'unictype/joininggroup-byname'.
16020         * modules/unictype/joininggroup-byname-tests: New file.
16021         * tests/unictype/test-joininggroup_byname.c: New file.
16022
16023         New module 'unictype/joininggroup-byname'.
16024         * modules/unictype/joininggroup-byname: New file.
16025         * lib/unictype/joininggroup_byname.c: New file.
16026         * lib/unictype/joininggroup_byname.gperf: New file.
16027
16028         Tests for module 'unictype/joininggroup-name'.
16029         * modules/unictype/joininggroup-name-tests: New file.
16030         * tests/unictype/test-joininggroup_name.c: New file.
16031
16032         New module 'unictype/joininggroup-name'.
16033         * modules/unictype/joininggroup-name: New file.
16034         * lib/unictype/joininggroup_name.c: New file.
16035         * lib/unictype/joininggroup_name.h: New file.
16036
16037         New module 'unictype/joiningtype-all'.
16038         * modules/unictype/joiningtype-all: New file.
16039
16040         Tests for module 'unictype/joiningtype-of'.
16041         * modules/unictype/joiningtype-of-tests: New file.
16042         * tests/unictype/test-joiningtype_of.c: New file.
16043         * tests/unictype/test-joiningtype_of.h: New file, automatically
16044         generated by gen-uni-tables.
16045
16046         New module 'unictype/joiningtype-of'.
16047         * modules/unictype/joiningtype-of: New file.
16048         * lib/unictype/joiningtype_of.c: New file.
16049         * lib/unictype/joiningtype_of.h: New file, automatically generated by
16050         gen-uni-tables.
16051
16052         Tests for module 'unictype/joiningtype-byname'.
16053         * modules/unictype/joiningtype-byname-tests: New file.
16054         * tests/unictype/test-joiningtype_byname.c: New file.
16055
16056         New module 'unictype/joiningtype-byname'.
16057         * modules/unictype/joiningtype-byname: New file.
16058         * lib/unictype/joiningtype_byname.c: New file.
16059
16060         Tests for module 'unictype/joiningtype-name'.
16061         * modules/unictype/joiningtype-name-tests: New file.
16062         * tests/unictype/test-joiningtype_name.c: New file.
16063
16064         New module 'unictype/joiningtype-name'.
16065         * modules/unictype/joiningtype-name: New file.
16066         * lib/unictype/joiningtype_name.c: New file.
16067
16068         unictype: Add support for Arabic shaping properties.
16069         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
16070         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
16071         declarations.
16072         (UC_JOINING_GROUP_*): New enumeration values.
16073         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
16074         declarations.
16075         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
16076         (unicode_joining_type): New variable.
16077         (UC_JOINING_GROUP_*): New enumeration values.
16078         (unicode_joining_group): New variable.
16079         (fill_arabicshaping, joining_type_as_c_identifier,
16080         output_joining_type_test, output_joining_type,
16081         joining_group_as_c_identifier, output_joining_group_test,
16082         output_joining_group): New functions.
16083         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
16084         fill_arabicshaping and output_joining_type_test, output_joining_type,
16085         output_joining_group_test, output_joining_group.
16086         Reported by Simon Josefsson.
16087
16088 2011-03-21  Jim Meyering  <meyering@redhat.com>
16089
16090         strftime: fix a bug in yesterday's change
16091         * lib/strftime.c (add): Accommodate width's initial value of -1.
16092         Otherwise, nstrftime would copy uninitialized data into
16093         the result buffer.
16094
16095 2011-03-21  Jim Meyering  <meyering@redhat.com>
16096
16097         tests: add strftime-tests module
16098         * tests/test-strftime.c: New file.
16099         * modules/strftime-tests: New module.
16100
16101 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16102
16103         strftime: don't assume a byte count fits in 'int'
16104         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
16105         found this problem by static analysis, using gcc -Wstrict-overflow
16106         (GCC 4.5.2, x86-64).  This reported an optimization that depended
16107         on an integer overflow having undefined behavior, but it turns out
16108         that the argument is a size, which might not fit in 'int' anyway,
16109
16110 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16111
16112         stdio: don't require ignore_value around fwrite
16113
16114         This patch works around libc bug 11959
16115         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
16116         Without this patch, applications must often write
16117         ignore_value (fwrite (...)) even though the ignore_value is
16118         not helpful here.  It's common to write many objects, using
16119         fwrite/printf/etc., and then use ferror to detect output error.
16120
16121         I considered making this patch optional, but decided against it,
16122         because libc is obviously being inconsistent here: there is no
16123         reason libc should insist that user code must inspect fwrite
16124         return's value without also insisting that it inspect printf's,
16125         putchar's, etc.  If user code wants to have a strict style where
16126         all these functions' values are checked (so that ferror need not
16127         be checked), we could add support for that style in a new gnulib
16128         module, but in the meantime it's better to be consistent and to
16129         support common usage.
16130
16131         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
16132         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
16133         that we are compiling in checking mode, and if not C++, and
16134         if not already wrapping fwrite for some other reason.
16135         (fwrite): #define to rpl_fwrite if the latter is defined.
16136
16137 2011-03-20  Bruno Haible  <bruno@clisp.org>
16138
16139         verror: Fix compilation error introduced on 2011-02-13.
16140         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
16141         instead of __attribute__.
16142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16143
16144 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16145             Bruno Haible  <bruno@clisp.org>
16146
16147         socklen: do not depend on sys_socket
16148         While trying to modify Emacs to use gnulib's socklen module,
16149         I discovered a circular dependency: socklen depends on sys_socket
16150         and vice versa.  Emacs can use socklen, but it does not need
16151         sys_socket because it has its own substitute for sys/socket.h.
16152         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16153         gl_TYPE_SOCKLEN_T.
16154         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16155         gl_PREREQ_SYS_H_SOCKET.
16156         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16157         gl_PREREQ_SYS_H_SOCKET.
16158         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16159         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16160         * modules/socklen (Depends-on): Do not depend on sys_socket.
16161         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16162
16163 2011-03-20  Jim Meyering  <meyering@redhat.com>
16164
16165         maint.mk: sort file names *after* new transformation
16166         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16167         prefix would have led to an unwarranted failure in GNU parted.
16168         Sort after that transformation.
16169
16170 2011-03-19  Jim Meyering  <meyering@redhat.com>
16171
16172         maint.mk: fix po-file syntax-check rule
16173         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16174         Patch by Bruno Haible.
16175
16176 2011-03-19  Bruno Haible  <bruno@clisp.org>
16177
16178         socklen: Update comment.
16179         * m4/socklen.m4: Update comment about platforms.
16180
16181 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16182             Bruno Haible  <bruno@clisp.org>
16183
16184         inet_ntop, inet_pton: Simplify.
16185         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16186         documented to provide socklen_t and we already depend on sys_socket.
16187         * modules/inet_pton (Depends-on): Likewise.
16188         * lib/arpa_inet.in.h: Adjust comment.
16189
16190 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16191             Bruno Haible  <bruno@clisp.org>
16192
16193         netdb: Simplify.
16194         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16195         documented to provide socklen_t and we already depend on sys_socket.
16196         * lib/netdb.in.h: Adjust comment.
16197
16198 2011-03-19  Bruno Haible  <bruno@clisp.org>
16199
16200         sys_socket, netdb: Document problem with socklen_t.
16201         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16202         platforms.
16203         * doc/posix-headers/netdb.texi: Likewise.
16204
16205 2011-03-18  Eric Blake  <eblake@redhat.com>
16206
16207         maint.mk: let po check work in VPATH build
16208         * top/maint.mk (po_file): Allow cfg.mk override.
16209         (sc_po_check): Allow VPATH use.
16210         Reported by Jiri Denemark.
16211
16212 2011-03-16  Jim Meyering  <meyering@redhat.com>
16213
16214         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16215         Before, you would have had to create one .x-sc_ file per rule in order
16216         to exempt offending files.  Now, you may instead use a Make variable --
16217         usually defined in cfg.mk -- whose name identifies the affected rule.
16218         * top/maint.mk (_sc_excl): Define.
16219         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16220         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16221
16222 2011-03-13  Bruno Haible  <bruno@clisp.org>
16223
16224         ignore-value tests: Avoid warnings.
16225         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16226         empty for gcc < 3.4.
16227
16228 2011-03-13  Bruno Haible  <bruno@clisp.org>
16229
16230         passfd: Fix link error on Solaris.
16231         * modules/passfd (Description): Correct.
16232         (Depends-on): Add socketlib.
16233         (Link): New section.
16234         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16235
16236 2011-03-13  Bruno Haible  <bruno@clisp.org>
16237
16238         passfd: Fix link error on AIX 5.2.
16239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16240
16241 2011-03-13  Bruno Haible  <bruno@clisp.org>
16242
16243         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16244         * lib/sys_socket.in.h: Include <stddef.h>.
16245         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16246         CMSG_FIRSTHDR. Remove unused variable.
16247
16248 2011-03-13  Bruno Haible  <bruno@clisp.org>
16249
16250         passfd: Fix compilation error on OpenBSD.
16251         * lib/passfd.c: Include <sys/uio.h>.
16252
16253 2011-03-13  Bruno Haible  <bruno@clisp.org>
16254
16255         passfd test: Fix warnings.
16256         * tests/test-passfd.c: Include <sys/wait.h>.
16257         (main): Fix typo.
16258
16259 2011-03-13  Bruno Haible  <bruno@clisp.org>
16260
16261         passfd module, part 4, tweaks.
16262         * tests/test-passfd.c: Reorder includes.
16263         (main): Fix perror and printf calls.
16264
16265 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16266
16267         passfd module, part 4.
16268         * modules/passfd-tests: New file.
16269         * tests/test-passfd.c: New file.
16270
16271 2011-03-13  Jim Meyering  <meyering@redhat.com>
16272
16273         Makefile: rely on GNU make; derive syntax-check rule names
16274         Rather than requiring that each sc_ rule be listed as a dependent
16275         of "check", use features of GNU make to derive the list.
16276         * Makefile (syntax-check-rules): Define.
16277         (check): Depend on the new variable, not the hard-coded list.
16278
16279 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16280             Bruno Haible  <bruno@clisp.org>
16281
16282         passfd module, part 3.
16283         * lib/passfd.h (recvfd): Add a flags argument.
16284         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16285         (recvfd): Add a flags argument.
16286         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16287         exists.
16288         * modules/passfd (Depends-on): Add cloexec.
16289         Suggested by Eric Blake.
16290
16291 2011-03-13  Bruno Haible  <bruno@clisp.org>
16292
16293         passfd module, part 2, tweaks.
16294         * modules/passfd (Files): Reorder.
16295         (Depends-on): Remove errno.
16296         (Include): Remove <sys/socket.h>, <sys/un.h>.
16297         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16298         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16299         specification header. Include <sys/socket.h> always. Don't include
16300         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16301         (sendfd): Clarify that it sets errno when it fails.
16302         (recvfd): Fix specification.
16303
16304 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16305
16306         passfd module, part 2.
16307         * modules/passfd: New file.
16308         * lib/passfd.h: New file.
16309         * lib/passfd.c: New file.
16310
16311 2011-03-12  Bruno Haible  <bruno@clisp.org>
16312
16313         wcswidth, mbswidth: Avoid integer overflow.
16314         * lib/wcswidth.c: Include <limits.h>.
16315         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16316         * lib/mbswidth.c: Include <limits.h>.
16317         (mbsnwidth): Avoid 'int' overflow.
16318         Reported by Jim Meyering.
16319
16320 2011-03-12  Bruno Haible  <bruno@clisp.org>
16321
16322         futimens, utimensat: Avoid endless recursion on Solaris 10.
16323         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16324         Solaris.
16325         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16326         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16327
16328 2011-03-11  Jim Meyering  <meyering@redhat.com>
16329
16330         maint.mk: relax a regexp to accommodate other formatting styles
16331         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16332         between "ngettext" and the following "(".
16333
16334 2011-03-11  Pádraig Brady <P@draigBrady.com>
16335
16336         maint.mk: suppress a false positive warning
16337         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16338         diagnostics are marked with ngettext.
16339
16340 2011-03-10  Eric Blake  <eblake@redhat.com>
16341
16342         wchar: add explicit dependencies, for Tru64
16343         * modules/mbmemcasecoll (Depends-on): Add wchar.
16344         * modules/mbtowc (Depends-on): Likewise.
16345         * modules/vasnprintf (Depends-on): Likewise.
16346         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16347         * modules/wctomb (Depends-on): Likewise.
16348         Reported by Peter O'Gorman.
16349
16350 2011-03-08  Bruno Haible  <bruno@clisp.org>
16351
16352         passfd module, part 1, tweaks.
16353         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16354         Improve indentation. Improve AC_MSG_CHECKING messages.
16355         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16356         gl_SOCKET_FAMILIES.
16357
16358 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16359
16360         passfd module, part 1.
16361         * m4/afunix.m4: New file.
16362         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16363         sockets.
16364
16365 2011-03-08  Bruno Haible  <bruno@clisp.org>
16366
16367         regex-quote: New API.
16368         * lib/regex-quote.h: Include <stdbool.h>.
16369         (struct regex_quote_spec): New type.
16370         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16371         New declarations.
16372         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16373         'const struct regex_quote_spec *' argument.
16374         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16375         (pcre_special): New constant.
16376         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16377         New functions.
16378         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16379         'const struct regex_quote_spec *' argument.
16380         * modules/regex-quote (Depends-on): Add stdbool.
16381         * tests/test-regex-quote.c (check): Update for new API. Add test for
16382         anchored results.
16383         * NEWS: Mention the API change.
16384         Reported by Reuben Thomas and Eric Blake.
16385
16386 2011-03-06  Bruno Haible  <bruno@clisp.org>
16387
16388         regex-quote: Fix creation of POSIX extended regular expressions.
16389         * lib/regex-quote.c (ere_special): Add grouping and alternation
16390         operators.
16391
16392 2011-03-05  Bruno Haible  <bruno@clisp.org>
16393
16394         doc: Improve doc regarding autopoint vs. gnulib.
16395         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16396         disable autopoint while running autoreconf.
16397         Suggested by Ralf Wildenhues.
16398
16399 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16400
16401         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16402         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16403
16404 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16405
16406         parse-duration: remove xalloc.h dependency
16407         * lib/parse-duration.c (parse_period): handle NULL return from
16408         strdup instead of calling xstrdup().
16409         * modules/parse-duration: remove "xalloc" dependency
16410
16411 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16412
16413         bootstrap: honor m4_base when running aclocal
16414         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16415
16416 2011-03-02  Jim Meyering  <meyering@redhat.com>
16417
16418         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16419         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16420         on request from Matt Booth.
16421
16422 2011-03-01  Eric Blake  <eblake@redhat.com>
16423
16424         test-link: work on Hurd
16425         * tests/test-link.h (test_link): Hurd rejects linking directories
16426         with EISDIR instead of the POSIX-mandated EPERM.
16427
16428 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         stdio: simplify by moving files to printf-posix, sigpipe
16431         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16432         since this symbol is needed only if printf is replaced.
16433         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16434         Require gl_ASM_SYMBOL_PREFIX.
16435         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16436         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16437         (Depends-on): Add 'raise'.
16438         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16439         * modules/stdio (Files): Remove lib/stdio-write.c,
16440         m4/asm-underscore.m4.
16441         (Depends-on): Remove 'raise'.
16442
16443         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16444         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16445         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16446         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16447
16448 2011-02-28  Bruno Haible  <bruno@clisp.org>
16449
16450         localcharset: Assume ANSI C behaviour of free().
16451         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16452         calling free().
16453         Suggested by Simon Josefsson <simon@josefsson.org>.
16454
16455 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16456             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16457             Bruno Haible  <bruno@clisp.org>  (tiny change)
16458
16459         On Cygwin, use /proc file system instead of win32 API.
16460         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16461         Win32 file names.
16462         (DllMain): Simplify by removing Cygwin specific code.
16463         (find_shared_library_fullname): Use Linux specific implementation also
16464         for Cygwin.
16465         (get_shared_library_fullname): Update accordingly.
16466         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16467         Win32 file names.
16468         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16469         Cygwin specific code.
16470
16471 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16472             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16473
16474         Fix OpenMP flag detection for various Fortran compilers.
16475         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16476         OpenMP-conditional compilation construct, to force compile
16477         failure with missing OpenMP flag.
16478         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16479
16480 2011-02-25  Eric Blake  <eblake@redhat.com>
16481
16482         strstr: expand test coverage
16483         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16484         compilation.
16485         * tests/test-memmem.c (main): Duplicate tests.
16486         * tests/test-strcasestr.c (main): Likewise.
16487         * tests/test-c-strcasestr.c (main): Likewise.
16488
16489 2011-02-25  Jim Meyering  <meyering@redhat.com>
16490
16491         maint.mk: detect missing-NL-at-EOF, too
16492         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16493         it also detects when a file lacks a newline at EOF.
16494         (require_exactly_one_NL_at_EOF_): Renamed from
16495         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16496         since people may well have .x-sc_... file names tied to the
16497         existing name.  Suggested by Eric Blake.
16498
16499 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16500
16501         dirname: move m4/dos.m4 functionality into lib/dosname.h
16502
16503         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16504         extracts symbols from it, puts them into config.h; but it's much
16505         easier to use the symbols directly.  filename.h already does this,
16506         but it disagrees with dos.m4 in some respects.  This patch
16507         introduces a different include file dosname.h that packages up
16508         dos.m4, and then later we can work on merging filename.h and
16509         dosname.h.  Applications that need only the easy-to-configure
16510         symbols should consider including dosname.h rather than dirname.h.
16511         * NEWS: Mention incompatible changes.
16512         * m4/dos.m4: Remove.
16513         * lib/dosname.h, modules/dosname: New files.
16514         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16515         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16516         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16517         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16518         Include dosname.h, not dirname.h.
16519         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16520         Include dosname.h, for definitions of symbols like ISSLASH
16521         that used to be in config.h.
16522         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16523         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16524         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16525         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16526         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16527         * modules/rmdir (Files): Likewise.
16528         * modules/stat (Files): Likewise.
16529         * modules/unlink (Files): Likewise.
16530         * modules/dirname-lgpl (Depends-on): Add dosname.
16531         * modules/lstat (Depends-on): Likewise.
16532         * modules/openat (Depends-on): Likewise.
16533         * modules/rmdir (Depends-on): Likewise.
16534         * modules/savewd (Depends-on): Likewise.
16535         * modules/stat (Depends-on): Likewise.
16536         * modules/unlink (Depends-on): Likewise.
16537         * modules/openat (Depends-on): Remove dirname-lgpl.
16538         * modules/savewd (Depends-on): Likewise.
16539         * tests/test-dirname.c: Do not use removed symbols like
16540         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16541         the remaining symbols, e.g., ISSLASH ('\\').
16542
16543 2011-02-25  Eric Blake  <eblake@redhat.com>
16544
16545         strstr: revert patches that introduced bug and pessimization
16546         * lib/str-two-way.h: Add another reference.
16547         (two_way_short_needle, two_way_long_needle): Revert changes from
16548         2011-02-24; they pessimize search speed.
16549         (critical_factorization): Partially revert changes from
16550         2010-06-22; they violate the requirement that the left half of the
16551         needle be smaller than the period of the needle.
16552
16553 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         filenamecat: remove unnecessary dependency on dirname-lgpl
16556         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16557         is no direct dependency, just an indirect one via filenamecat-lgpl.
16558
16559         remove: remove unnecessary use of m4/dos.m4
16560         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16561         * modules/remove (FILES): Remove m4/dos.m4.
16562
16563         * lib/openat-proc.c: Don't include dirname.h; not needed.
16564
16565         backupfile: remove unnecessary use of m4/dos.m4
16566         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16567         of its symbols are used by the backupfile code.  backupfile.c does
16568         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16569         for the rare case of programs that want all their backup file
16570         names to live within 8+3 limits, and dos.m4 doesn't address that.
16571         * modules/backupfile (Files): Remove m4/dos.m4.
16572
16573 2011-02-24  Jim Meyering  <meyering@redhat.com>
16574
16575         strstr: fix a bug whereby strstr would mistakenly return NULL
16576         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16577         in period calculation.
16578         (two_way_long_needle): Likewise.
16579         The original problem was reported by Mike Stump in
16580         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16581         Ralf Wildenhues provided the short needle and haystack.
16582         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16583         Add a more involved test to trigger the bug in two_way_long_needle.
16584
16585 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16586
16587         gnulib-tool: remove use of bold display in help screen
16588         * gnulib-tool (func_usage): Do not use bold display anymore in the
16589         help screen.  That was just meant to be a temporary emphasis for a
16590         backward-incompatible change.
16591
16592 2011-02-23  Bruno Haible  <bruno@clisp.org>
16593
16594         Fix misindentation of preprocessor directives.
16595         * lib/argp-namefrob.h: Reindent preprocessor directives.
16596         * lib/getopt_int.h (struct _getopt_data): Likewise.
16597         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16598         * lib/vasnprintf.c (decode_long_double): Likewise.
16599         * tests/test-argmatch.c: Insert blank lines, for clarity.
16600         * tests/test-exclude.c: Likewise.
16601
16602 2011-02-22  Bruno Haible  <bruno@clisp.org>
16603
16604         ioctl: Fix for MacOS X in 64-bit mode.
16605         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16606         value.
16607         Suggested by Eric Blake.
16608         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16609
16610 2011-02-22  Jim Meyering  <meyering@redhat.com>
16611
16612         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16613         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16614         in lib/.
16615
16616 2011-02-22  Eric Blake  <eblake@redhat.com>
16617
16618         maint: avoid any CDPATH issue
16619         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16620
16621         maint: adjust cpp indentation for my modules, as well
16622         * Makefile (sc_cpp_indent_check): Add my name.
16623         * lib/fbufmode.c: Filter through cppi.
16624         * lib/fpurge.c: Likewise.
16625         * lib/freadable.c: Likewise.
16626         * lib/freading.c: Likewise.
16627         * lib/fwritable.c: Likewise.
16628         * lib/fwriting.c: Likewise.
16629         * lib/sigaction.c: Likewise.
16630
16631 2011-02-22  Jim Meyering  <meyering@redhat.com>
16632
16633         maint: adjust cpp indentation to reflect nesting depth
16634         I.e., in a block of code that begins with an unnested "#if",
16635         put one space between the "#" in column 1 and following token.
16636         For example,
16637         -#include <sys/vfs.h>
16638         +# include <sys/vfs.h>
16639         Do this only in .c files that are part of a module I maintain.
16640         * lib/linkat.c: Filter through cppi.
16641         * lib/nanosleep.c: Likewise.
16642         * lib/openat.c: Likewise.
16643         * lib/openat-die.c: Likewise.
16644         * lib/dup3.c: Likewise.
16645         * lib/fchownat.c: Likewise.
16646         * lib/flock.c: Likewise.
16647         * lib/fsync.c: Likewise.
16648         * lib/fts.c: Likewise.
16649         * lib/getpass.c: Likewise.
16650         * lib/gettimeofday.c: Likewise.
16651         * lib/userspec.c: Likewise.
16652         * Makefile (sc_cpp_indent_check): New rule, to check this.
16653
16654 2011-02-22  Bruno Haible  <bruno@clisp.org>
16655
16656         New module 'wctomb'.
16657         * lib/stdlib.in.h (wctomb): New declaration.
16658         * lib/wctomb.c: New file.
16659         * lib/wctomb-impl.h: New file.
16660         * m4/wctomb.m4: New file.
16661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16662         REPLACE_WCTOMB.
16663         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16664         REPLACE_WCTOMB.
16665         * modules/wctomb: New file.
16666         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16667         * doc/posix-functions/wctomb.texi: Mention the new module.
16668         * modules/wctob (Depends-on): Add wctomb.
16669
16670 2011-02-22  Bruno Haible  <bruno@clisp.org>
16671
16672         New module 'mbtowc'.
16673         * lib/stdlib.in.h (mbtowc): New declaration.
16674         * lib/mbtowc.c: New file.
16675         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16676         * m4/mbtowc.m4: New file.
16677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16678         REPLACE_MBTOWC.
16679         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16680         REPLACE_MBTOWC.
16681         * modules/mbtowc: New file.
16682         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16683         * doc/posix-functions/mbtowc.texi: Mention the new module.
16684         * modules/btowc (Depends-on): Add mbtowc.
16685
16686 2011-02-22  Bruno Haible  <bruno@clisp.org>
16687
16688         wcrtomb: Add more tests for native Windows platforms.
16689         * tests/test-wcrtomb-w32-1.sh: New file.
16690         * tests/test-wcrtomb-w32-2.sh: New file.
16691         * tests/test-wcrtomb-w32-3.sh: New file.
16692         * tests/test-wcrtomb-w32-4.sh: New file.
16693         * tests/test-wcrtomb-w32-5.sh: New file.
16694         * tests/test-wcrtomb-w32.c: New file.
16695         * modules/wcrtomb-tests (Files): Add them.
16696         (Makefile.am): Arrange to run these tests.
16697         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16698         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16699
16700 2011-02-20  Bruno Haible  <bruno@clisp.org>
16701
16702         wcrtomb: Enhance test.
16703         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16704
16705 2011-02-20  Bruno Haible  <bruno@clisp.org>
16706
16707         mbrtowc: Tiny optimization.
16708         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16709
16710 2011-02-20  Jim Meyering  <meyering@redhat.com>
16711
16712         test-exclude.c: remove unmatched #endif
16713         * tests/test-exclude.c: Remove stray #endif, left over from
16714         the change of a week ago.
16715
16716 2011-02-19  Jim Meyering  <meyering@redhat.com>
16717
16718         git-version-gen: skip "-dirty" check when appropriate
16719         * build-aux/git-version-gen: Don't run any git commands when the
16720         version string comes from .tarball-version.  Prior to this, we
16721         would run git update-index --refresh even from a just-unpacked
16722         tarball directory, and that could affect a .git/ directory in a
16723         parent of the build directory.  Reported by Mike Frysinger.
16724
16725 2011-02-19  Bruno Haible  <bruno@clisp.org>
16726
16727         unictype/property-byname: Reduce the size of the 'data' segment.
16728         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16729
16730 2011-02-19  Bruno Haible  <bruno@clisp.org>
16731
16732         unictype/scripts: Reduce the size of the 'data' segment.
16733         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16734         '%pic'.
16735         * lib/unictype/scripts_byname.gperf: Regenerated.
16736
16737 2011-02-19  Bruno Haible  <bruno@clisp.org>
16738
16739         stdint: Update documentation.
16740         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16741
16742 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16743
16744         stdint: omit redundant check for wchar.h
16745         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16746         always tests whether wchar.h exists, so remove the now-redundant test.
16747
16748 2011-02-18  Bruno Haible  <bruno@clisp.org>
16749
16750         stdint: Cut dependency to module 'wchar'.
16751         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16752         include the necessary prerequisites.
16753         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16754         * modules/stdint (Depends-on): Remove wchar.
16755         (Makefile.am): Substitute HAVE_WCHAR_H.
16756         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16757
16758 2011-02-18  Eric Blake  <eblake@redhat.com>
16759
16760         longlong: skip, rather than fail, on cross-compilation
16761         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16762         when cross-compiling; regression from 2011-02-16.
16763
16764 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16765
16766         * NEWS: Mention 2011-02-08 change to stdlib.
16767
16768 2011-02-17  Bruno Haible  <bruno@clisp.org>
16769
16770         getloadavg: Add comments about platforms.
16771         * m4/getloadavg.m4: Add comment.
16772         * lib/getloadavg.c: Likewise.
16773
16774 2011-02-17  Bruno Haible  <bruno@clisp.org>
16775
16776         getloadavg: Fix link error on Solaris 2.6.
16777         * modules/getloadavg (Link): New section.
16778         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16779         linking test-getloadavg.
16780         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16781         getloadavg.
16782
16783 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16784
16785         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16786         It was 'int', but this doesn't match the IRIX 6.5 manual.
16787         Suggested by Bruno Haible in
16788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16789
16790 2011-02-17  Bruno Haible  <bruno@clisp.org>
16791
16792         havelib: Fix comments.
16793         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16794         change.
16795
16796 2011-02-17  Bruno Haible  <bruno@clisp.org>
16797
16798         havelib: Update config.rpath.
16799         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16800
16801 2011-02-17  Bruno Haible  <bruno@clisp.org>
16802
16803         getloadavg test: Add some plausibility checks.
16804         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16805         is improbable.
16806
16807 2011-02-16  Eric Blake  <eblake@redhat.com>
16808
16809         maintainer-makefile: make syntax-check a no-op from tarballs
16810         * top/maint.mk (no-vc-detected): New rule.
16811         (local-checks-available): Use it to avoid hanging if someone tries
16812         'make syntax-check' from a tarball.  Also append to any non-syntax
16813         checks already defined in cfg.mk.
16814
16815 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         longlong: tune, particularly for common case of c99
16818
16819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16820         or running anything if c99, or if unsigned long long int does not
16821         work.  In either case, we know the answer without further tests.
16822         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16823         it at most once, and use its results for both long long int and
16824         unsigned long long int.  This is more likely to be efficient in
16825         the common case where the program wants to check for both long
16826         long int and unsigned long long int.
16827         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16828         since the answer is already known.
16829
16830 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16831
16832         getloadavg: set errno
16833         * lib/getloadavg.c: Set errno when returning -1.  If no other
16834         error number looks appropriate, set it to ENOSYS if the getloadavg
16835         looks like it can't possibly ever work, ENOTSUP otherwise.
16836         Suggested by Bruno Haible in
16837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16838
16839         getloadavg: trim unused parts and speed up 'configure'
16840         * NEWS: Document this.
16841         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16842         always compiled if getloadavg is absent.
16843         Move test code to ...
16844         * tests/test-getloadavg.c: New file, containing previous
16845         contents of test from lib/getloadavg.c.  It also contains
16846         suggestions by Bruno Haible in
16847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16848         * modules/getloadavg-tests: New file.
16849         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16850         Do tests in the same order as they're needed for getloadavg.c.
16851         Omit setgid-related tests that generate symbols KMEM_GROUP,
16852         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16853         Do only the tests that are needed to see whether the system has
16854         getloadavg, moving the other tests into ...
16855         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16856         NLIST_NAME_UNION; nobody should be using it.  Do not define
16857         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16858         relevant, as the user of this module shouldn't care how getloadavg
16859         is implemented.
16860
16861         getloadavg: omit unused var
16862         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16863
16864 2011-02-15  Jim Meyering  <meyering@redhat.com>
16865
16866         doc: update users.txt
16867         * users.txt: Update iwhd's URL.
16868
16869 2011-02-13  Bruno Haible  <bruno@clisp.org>
16870
16871         Consistent macro naming for macros that use GCC __attribute__.
16872         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16873         _ATTRIBUTE_NONNULL_.
16874         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16875         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16876         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16877         ATTRIBUTE_DEPRECATED.
16878         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16879         ATTRIBUTE_NORETURN.
16880         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16881         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16882         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16883         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16884         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16885         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16886         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16887         ATTRIBUTE_SENTINEL.
16888         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16889         ATTRIBUTE_RETURN_CHECK.
16890         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16891         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16892         ATTRIBUTE_NORETURN.
16893         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16894         Reported by Paul Eggert.
16895
16896 2011-02-13  Bruno Haible  <bruno@clisp.org>
16897
16898         Don't interfere with a program's definition of __attribute__.
16899         * lib/argp.h (__attribute__): Remove definition.
16900         (_GL_ATTRIBUTE_FORMAT): New macro.
16901         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16902         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16903         (_GL_ATTRIBUTE_FORMAT): New macro.
16904         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16905         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16906         GCC 3 or newer.
16907         * lib/error.h (__attribute__): Remove definition.
16908         (_GL_ATTRIBUTE_FORMAT): New macro.
16909         (error, error_at_line): Use it.
16910         * lib/hash.h (__attribute__): Remove definition.
16911         (ATTRIBUTE_WUR): Update definition. Define always.
16912         * lib/openat.h (__attribute__): Remove definition.
16913         (ATTRIBUTE_NORETURN): Update definition. Define always.
16914         * lib/sigpipe-die.h (__attribute__): Remove definition.
16915         (ATTRIBUTE_NORETURN): Update definition. Define always.
16916         * lib/vasnprintf.h (__attribute__): Remove definition.
16917         (_GL_ATTRIBUTE_FORMAT): New macro.
16918         (asnprintf, vasnprintf): Use it.
16919         * lib/xalloc.h (__attribute__): Remove definition.
16920         (ATTRIBUTE_NORETURN): Update definition. Define always.
16921         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16922         * lib/xmemdup0.h (__attribute__): Remove definition.
16923         (ATTRIBUTE_NORETURN): Update definition. Define always.
16924         * lib/xprintf.h (__attribute__): Remove definition.
16925         (_GL_ATTRIBUTE_FORMAT): New macro.
16926         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16927         * lib/xstrtol.h (__attribute__): Remove definition.
16928         (ATTRIBUTE_NORETURN): Update definition. Define always.
16929         * lib/xvasprintf.h (__attribute__): Remove definition.
16930         (_GL_ATTRIBUTE_FORMAT): New macro.
16931         (xasprintf, xvasprintf): Use it.
16932         * tests/test-argmatch.c (__attribute__): Remove definition.
16933         (ATTRIBUTE_NORETURN): Update definition. Define always.
16934         * tests/test-exclude.c (__attribute__): Remove definition.
16935         (ATTRIBUTE_NORETURN): Update definition. Define always.
16936         Reported by Paul Eggert.
16937
16938 2011-02-13  Bruno Haible  <bruno@clisp.org>
16939
16940         mbrtowc: Add more tests for native Windows platforms.
16941         * tests/test-mbrtowc-w32-1.sh: New file.
16942         * tests/test-mbrtowc-w32-2.sh: New file.
16943         * tests/test-mbrtowc-w32-3.sh: New file.
16944         * tests/test-mbrtowc-w32-4.sh: New file.
16945         * tests/test-mbrtowc-w32-5.sh: New file.
16946         * tests/test-mbrtowc-w32.c: New file.
16947         * modules/mbrtowc-tests (Files): Add them.
16948         (Makefile.am): Arrange to run these tests.
16949         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16950         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16951
16952 2011-02-13  Bruno Haible  <bruno@clisp.org>
16953
16954         mbrtowc: Work around native Windows bug.
16955         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16956         guess when no suitable locale for testing was found.
16957         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16958
16959 2011-02-13  Bruno Haible  <bruno@clisp.org>
16960
16961         mbsinit: Work around mingw bug.
16962         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16963         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16964         Windows.
16965         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16966
16967 2011-02-13  Bruno Haible  <bruno@clisp.org>
16968
16969         mbsinit: Don't crash for a NULL argument.
16970         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16971         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16972
16973 2011-02-13  Bruno Haible  <bruno@clisp.org>
16974
16975         Don't interfere with a program's definition of __attribute__.
16976         * lib/stdio.in.h (__attribute__): Remove definition.
16977         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16978         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16979         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16980         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16981         * lib/string.in.h (__attribute__): Remove definition.
16982         Reported by Paul Eggert.
16983
16984 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16985
16986         stdlib: don't get in the way of non-GCC __attribute__
16987         See thread starting at
16988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16989         Revert previous stdlib change, installing the following instead:
16990         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16991         to get in the way of a non-GCC compiler that supports __attribute__.
16992         (_GL_ATTRIBUTE_RETURN): New macro.
16993         (_Exit): Use it instead of __attribute__.
16994
16995 2011-02-12  Bruno Haible  <bruno@clisp.org>
16996
16997         quotearg test: Avoid test failure on mingw.
16998         * tests/test-quotearg.sh: Convert the locale identifier from native
16999         Windows syntax to Unix syntax.
17000
17001 2011-02-12  Bruno Haible  <bruno@clisp.org>
17002
17003         setlocale: Prefer gnulib's override over libintl's override.
17004         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
17005         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
17006         GNULIB_defined_setlocale is set.
17007
17008 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17009
17010         stdlib: support non-GCC __attribute__
17011
17012         Fix a serious and tricky problem encountered when attempting to
17013         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
17014         5.5, but it crashed due to memory corruption on Solaris 10 with
17015         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
17016         bits that are otherwise zero.  This tagging is optional inside
17017         Emacs but is preferred and is used when __attribute__ ((__aligned
17018         (8))) works, as it does with both recent-enough GCC and with Sun C
17019         5.11.  However, Sun C 5.11 is not GCC and does not #define
17020         __GNUC__ and __GNUC_MINOR__.
17021
17022         When I added the getloadavg module to Emacs, it brought in
17023         stdlib.in.h, which contained this fragment:
17024
17025            #ifndef __attribute__
17026            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
17027            #  define __attribute__(Spec)   /* empty */
17028            # endif
17029            #endif
17030
17031         When files that include <stdlib.h> were compiled with Sun C 5.11,
17032         the above code disabled __attribute__ ((__aligned (8))), which
17033         caused variables to not be properly aligned, which eventually led
17034         to the pointer corruption mentioned above.  (This was a bit hard
17035         to diagnose, unfortunately.)
17036
17037         Several "#define __attribute__(X) /* empty */" code snippets need
17038         to be eradicated from Gnulib to work with non-GCC compilers that
17039         support __attribute__.  The Autoconf way to do this is to test for
17040         each kind of attribute that we want support for, and selectively
17041         enable that in source code.
17042
17043         Fix this problem just for stdlib.h, by adding a test for the
17044         __noreturn__ attribute, and change stdlib.in.h to use that test
17045         when needed.  This technique can be easily generalized to the
17046         other *.in.h files and attributes, and a similar technique can be
17047         used for *.h and *.c files.  This patch is enough to solve the
17048         problem for Emacs + getloadavg, and I thought I'd publish it for
17049         feedback before undertaking further, similar fixes in other
17050         modules.
17051
17052         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
17053         because it's not needed for stdlib.h.  It merely substitutes the
17054         value directly into stdlib.h.  We may well need to #define it, or
17055         similar symbols, for other modules, but it's nice to also have an
17056         option to not #define it for applications like Emacs that do not
17057         need it.
17058
17059         * lib/stdlib.in.h (__attribute__): Do not #define.
17060         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
17061         be defined only if the _Exit module is also used.
17062         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
17063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
17064         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
17065         platforms.
17066         * modules/_Exit (Files): Add m4/attribute.m4.
17067         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
17068         * m4/attribute.m4: New file.
17069
17070 2011-02-12  Bruno Haible  <bruno@clisp.org>
17071
17072         wcsrtombs: Work around bug on native Windows.
17073         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
17074         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
17075         instead of len.
17076         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
17077
17078 2011-02-12  Bruno Haible  <bruno@clisp.org>
17079
17080         mbsrtowcs: Work around bug on native Windows.
17081         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
17082         against mingw bug.
17083         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
17084
17085 2011-02-12  Bruno Haible  <bruno@clisp.org>
17086
17087         Avoid setlocale bugs in tests.
17088         * modules/btowc (Dependencies): Add setlocale.
17089         * modules/c-strcase (Dependencies): Likewise.
17090         * modules/mbmemcasecmp (Dependencies): Likewise.
17091         * modules/mbmemcasecoll (Dependencies): Likewise.
17092         * modules/mbrtowc (Dependencies): Likewise.
17093         * modules/mbscasecmp (Dependencies): Likewise.
17094         * modules/mbscasestr (Dependencies): Likewise.
17095         * modules/mbschr (Dependencies): Likewise.
17096         * modules/mbscspn (Dependencies): Likewise.
17097         * modules/mbsinit (Dependencies): Likewise.
17098         * modules/mbsncasecmp (Dependencies): Likewise.
17099         * modules/mbsnrtowcs (Dependencies): Likewise.
17100         * modules/mbspbrk (Dependencies): Likewise.
17101         * modules/mbspcasecmp (Dependencies): Likewise.
17102         * modules/mbsrchr (Dependencies): Likewise.
17103         * modules/mbsrtowcs (Dependencies): Likewise.
17104         * modules/mbsspn (Dependencies): Likewise.
17105         * modules/mbsstr (Dependencies): Likewise.
17106         * modules/nl_langinfo (Dependencies): Likewise.
17107         * modules/quotearg (Dependencies): Likewise.
17108         * modules/unicase/locale-language (Dependencies): Likewise.
17109         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
17110         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
17111         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
17112         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
17113         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
17114         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
17115         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
17116         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
17117         * modules/vasnprintf-posix (Dependencies): Likewise.
17118         * modules/wcrtomb (Dependencies): Likewise.
17119         * modules/wcsnrtombs (Dependencies): Likewise.
17120         * modules/wcsrtombs (Dependencies): Likewise.
17121
17122 2011-02-12  Bruno Haible  <bruno@clisp.org>
17123
17124         setlocale: Workaround native Windows bug.
17125         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
17126         succeeds but sets LC_CTYPE to "C", report a failure.
17127         * tests/test-setlocale2.sh: New file.
17128         * tests/test-setlocale2.c: New file.
17129         * modules/setlocale-tests (Files): Add the new files.
17130         (Makefile.am): Enable test-setlocale2.sh test.
17131         * doc/posix-functions/setlocale.texi: Mention workaround.
17132
17133 2011-02-11  Bruno Haible  <bruno@clisp.org>
17134
17135         Tests for module 'setlocale'.
17136         * modules/setlocale-tests: New file.
17137         * tests/test-setlocale1.sh: New file.
17138         * tests/test-setlocale1.c: New file.
17139
17140         New module 'setlocale'.
17141         * lib/locale.in.h (setlocale): New declaration.
17142         * lib/setlocale.c: New file, based on
17143         gettext/gettext-runtime/intl/setlocale.c.
17144         * m4/setlocale.m4: New file.
17145         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
17146         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
17147         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
17148         REPLACE_SETLOCALE.
17149         * modules/setlocale: New file.
17150         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17151         * doc/posix-functions/setlocale.texi: Mention the new module.
17152
17153 2011-02-11  Bruno Haible  <bruno@clisp.org>
17154
17155         Prepare for locale dependent tests on mingw.
17156         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17157         because it has the wrong locale encoding.
17158         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17159         French_France.1252 instead of "fr".
17160         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17161         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17162         because it has the wrong locale encoding.
17163         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17164         native Windows, try Turkish_Turkey.65001.
17165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17166         Chinese_China.54936.
17167
17168         Prepare for locale dependent tests on mingw.
17169         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17170         differently.
17171         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17172         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17173         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17175
17176 2011-02-11  Eric Blake  <eblake@redhat.com>
17177
17178         strptime: avoid compiler warnings
17179         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17180         compiler warnings about dead code.
17181         Reported by Daniel P. Berrange.
17182
17183 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17184
17185         doc: update users.txt
17186         * users.txt: Add rcs.
17187
17188 2011-02-10  John W. Eaton  <jwe@gnu.org>
17189
17190         doc: update users.txt
17191         * users.txt: Add octave.
17192
17193 2011-02-10  Jim Meyering  <meyering@redhat.com>
17194
17195         doc: update users.txt
17196         * users.txt: Add iwhd.
17197
17198 2011-02-09  Bruno Haible  <bruno@clisp.org>
17199
17200         gnulib-tool: Make copyright notice adjustment more robust.
17201         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17202         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17203         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17204         License".
17205         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17206
17207 2011-02-06  Bruno Haible  <bruno@clisp.org>
17208
17209         New module 'towctrans'.
17210         * modules/towctrans: New file.
17211         * lib/wctype.in.h (towctrans): New declaration.
17212         * lib/towctrans.c: New file.
17213         * lib/towctrans-impl.h: New file.
17214         * m4/towctrans.m4: New file.
17215         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17216         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17217         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17218         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17219         * doc/posix-functions/towctrans.texi: Mention the new module.
17220
17221 2011-02-06  Bruno Haible  <bruno@clisp.org>
17222
17223         New module 'wctrans'.
17224         * modules/wctrans: New file.
17225         * lib/wctype.in.h (wctrans): New declaration.
17226         * lib/wctrans.c: New file.
17227         * lib/wctrans-impl.h: New file.
17228         * m4/wctrans.m4: New file.
17229         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17230         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17231         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17232         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17233         * doc/posix-functions/wctrans.texi: Mention the new module.
17234
17235 2011-02-06  Bruno Haible  <bruno@clisp.org>
17236
17237         New module 'iswctype'.
17238         * modules/iswctype: New file.
17239         * lib/wctype.in.h (iswctype): New declaration.
17240         * lib/iswctype.c: New file.
17241         * lib/iswctype-impl.h: New file.
17242         * m4/iswctype.m4: New file.
17243         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17244         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17245         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17246         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17247         * doc/posix-functions/iswctype.texi: Mention the new module and the
17248         HP-UX 11.00 problem.
17249
17250 2011-02-06  Bruno Haible  <bruno@clisp.org>
17251
17252         New module 'wctype'.
17253         * modules/wctype: Change to represent the wctype() substitute.
17254         * lib/wctype.in.h (wctype): New declaration.
17255         * lib/wctype.c: New file.
17256         * lib/wctype-impl.h: New file.
17257         * m4/wctype.m4: New file.
17258         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17259         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17260         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17261         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17262         * doc/posix-functions/wctype.texi: Mention the new module and the
17263         HP-UX 11.00 problem.
17264
17265 2011-02-06  Bruno Haible  <bruno@clisp.org>
17266
17267         wctype-h: Ensure wctype_t and wctrans_t are defined.
17268         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17269         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17270         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17271         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17272         HAVE_WCTRANS_T.
17273         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17274
17275 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17276
17277         flock: fix license typo
17278
17279         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17280         omitted.
17281
17282 2011-02-08  Bruno Haible  <bruno@clisp.org>
17283
17284         Split large sed scripts, for HP-UX sed.
17285         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17286         to avoid HP-UX limit of 99 commands, in the near future.
17287         * modules/stdlib (Makefile.am): Likewise.
17288         * modules/unistd (Makefile.am): Likewise.
17289         * modules/wchar (Makefile.am): Likewise.
17290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17291         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17293
17294 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17295             Bruno Haible  <bruno@clisp.org>
17296
17297         stdlib: improve random_r modularization
17298         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17299         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17300         you also need the random_r module to get this material right.
17301         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17302         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17303         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17304
17305 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17306
17307         stdlib: don't depend on stdint
17308         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17309         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17310         be independent of whether stdint.h is needed.
17311         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17312         here, instead of ...
17313         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17314         struct random_data should be using the random_r module, not just
17315         the stdlib module (which wouldn't make sense: what package needs
17316         just struct random_data without also needing random_r?).
17317         * modules/stdlib (Depends-on): Remove stdint.
17318
17319         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17320         See the thread rooted at
17321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17322         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17323         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17324         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17325         __VMS)); previously it was always included (via fcntl--.h).
17326         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17327         hand; this is good enough for load averages.  Also, do not use
17328         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17329         flags directly if available and don't bother otherwise.  (Packages
17330         that need the extra reliability should use the modules that define
17331         these flags on older platforms that lack them.)
17332         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17333         fcntl-safer.
17334
17335 2011-02-08  Jim Meyering  <meyering@redhat.com>
17336
17337         di-set.h, ino-map.h: add multiple-inclusion guard
17338         Technically, the guard is required only for ino-map.h, due to its
17339         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17340         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17341         * lib/ino-map.h: Likewise.
17342
17343 2011-02-06  Bruno Haible  <bruno@clisp.org>
17344
17345         iswblank: Ensure declaration on glibc systems.
17346         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17347         * modules/iswblank (Dependencies): Add 'extensions'.
17348         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17349
17350 2011-02-06  Bruno Haible  <bruno@clisp.org>
17351
17352         New module 'iswblank'.
17353         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17354         * modules/iswblank: New file.
17355         * modules/wctype-h (Files): Remove lib/iswblank.c.
17356         (Makefile.am): Substitute GNULIB_ISWBLANK.
17357         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17358         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17359         (gl_WCTYPE_H_DEFAULTS): New macro.
17360         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17361         * modules/iswblank-tests: New file.
17362         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17363         * tests/test-wctype-h.c (main): Remove iswblank tests.
17364         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17365         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17366         of 'wctype-h'.
17367         * NEWS: Mention the change.
17368         * modules/mbchar (Depends-on): Add iswblank.
17369
17370 2011-02-08  Bruno Haible  <bruno@clisp.org>
17371
17372         di-set tests: Refactor.
17373         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17374         unnecessary includes.
17375         (ASSERT): Remove macro.
17376         (main): Make C90 compliant by avoiding variable declaration after
17377         statement.
17378         * modules/di-set-tests (Files): Add tests/macros.h.
17379
17380 2011-02-08  Bruno Haible  <bruno@clisp.org>
17381
17382         ino-map tests: Refactor.
17383         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17384         unnecessary includes.
17385         (ASSERT): Remove macro.
17386         (main): Make C90 compliant by avoiding variable declaration after
17387         statement.
17388         * modules/ino-map-tests (Files): Add tests/macros.h.
17389
17390 2011-02-08  Jim Meyering  <meyering@redhat.com>
17391
17392         di-set: add "const" to a cast
17393         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17394         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17395
17396 2011-02-06  Bruno Haible  <bruno@clisp.org>
17397
17398         Rename module 'wctype' to 'wctype-h'.
17399         * modules/wctype-h: Renamed from modules/wctype.
17400         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17401         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17402         (Files, Depends-on, Makefile.am): Update.
17403         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17404         (Files, Makefile.am): Update.
17405         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17406         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17407         * doc/posix-headers/wctype.texi: Update.
17408         * doc/posix-functions/iswalnum.texi: Update.
17409         * doc/posix-functions/iswalpha.texi: Update.
17410         * doc/posix-functions/iswblank.texi: Update.
17411         * doc/posix-functions/iswcntrl.texi: Update.
17412         * doc/posix-functions/iswdigit.texi: Update.
17413         * doc/posix-functions/iswgraph.texi: Update.
17414         * doc/posix-functions/iswlower.texi: Update.
17415         * doc/posix-functions/iswprint.texi: Update.
17416         * doc/posix-functions/iswpunct.texi: Update.
17417         * doc/posix-functions/iswspace.texi: Update.
17418         * doc/posix-functions/iswupper.texi: Update.
17419         * doc/posix-functions/iswxdigit.texi: Update.
17420         * doc/posix-functions/towlower.texi: Update.
17421         * doc/posix-functions/towupper.texi: Update.
17422         * NEWS: Mention the change.
17423         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17424         * modules/mbchar (Dependencies): Likewise.
17425         * modules/mbswidth (Dependencies): Likewise.
17426         * modules/quotearg (Dependencies): Likewise.
17427         * modules/regex (Dependencies): Likewise.
17428         * modules/wcscasecmp (Dependencies): Likewise.
17429         * modules/wcsncasecmp (Dependencies): Likewise.
17430         * modules/wcwidth (Dependencies): Likewise.
17431
17432 2011-02-06  Bruno Haible  <bruno@clisp.org>
17433
17434         New module 'wcswidth'.
17435         * modules/wcswidth: New file.
17436         * lib/wchar.in.h (wcswidth): New declaration.
17437         * lib/wcswidth.c: New file.
17438         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17439         * m4/wcswidth.m4: New file.
17440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17442         REPLACE_WCSWIDTH.
17443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17444         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17445         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17446         * doc/posix-functions/wcswidth.texi: Mention the new module.
17447
17448 2011-02-06  Bruno Haible  <bruno@clisp.org>
17449
17450         New module 'wcstok'.
17451         * modules/wcstok: New file.
17452         * lib/wchar.in.h (wcstok): New declaration.
17453         * lib/wcstok.c: New file.
17454         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17455         * m4/wcstok.m4: New file.
17456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17459         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17460         * doc/posix-functions/wcstok.texi: Mention the new module.
17461
17462 2011-02-06  Bruno Haible  <bruno@clisp.org>
17463
17464         New module 'wcsstr'.
17465         * modules/wcsstr: New file.
17466         * lib/wchar.in.h (wcsstr): New declaration.
17467         * lib/wcsstr.c: New file.
17468         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17469         * m4/wcsstr.m4: New file.
17470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17473         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17474         * doc/posix-functions/wcsstr.texi: Mention the new module.
17475
17476 2011-02-06  Bruno Haible  <bruno@clisp.org>
17477
17478         New module 'wcspbrk'.
17479         * modules/wcspbrk: New file.
17480         * lib/wchar.in.h (wcspbrk): New declaration.
17481         * lib/wcspbrk.c: New file.
17482         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17483         * m4/wcspbrk.m4: New file.
17484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17487         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17488         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17489
17490 2011-02-06  Bruno Haible  <bruno@clisp.org>
17491
17492         New module 'wcsspn'.
17493         * modules/wcsspn: New file.
17494         * lib/wchar.in.h (wcsspn): New declaration.
17495         * lib/wcsspn.c: New file.
17496         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17497         * m4/wcsspn.m4: New file.
17498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17501         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17502         * doc/posix-functions/wcsspn.texi: Mention the new module.
17503
17504 2011-02-06  Bruno Haible  <bruno@clisp.org>
17505
17506         New module 'wcscspn'.
17507         * modules/wcscspn: New file.
17508         * lib/wchar.in.h (wcscspn): New declaration.
17509         * lib/wcscspn.c: New file.
17510         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17511         * m4/wcscspn.m4: New file.
17512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17515         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17516         * doc/posix-functions/wcscspn.texi: Mention the new module.
17517
17518 2011-02-06  Bruno Haible  <bruno@clisp.org>
17519
17520         New module 'wcsrchr'.
17521         * modules/wcsrchr: New file.
17522         * lib/wchar.in.h (wcsrchr): New declaration.
17523         * lib/wcsrchr.c: New file.
17524         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17525         * m4/wcsrchr.m4: New file.
17526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17529         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17530         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17531
17532 2011-02-06  Bruno Haible  <bruno@clisp.org>
17533
17534         New module 'wcschr'.
17535         * modules/wcschr: New file.
17536         * lib/wchar.in.h (wcschr): New declaration.
17537         * lib/wcschr.c: New file.
17538         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17539         * m4/wcschr.m4: New file.
17540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17543         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17544         * doc/posix-functions/wcschr.texi: Mention the new module.
17545
17546 2011-02-06  Bruno Haible  <bruno@clisp.org>
17547
17548         New module 'wcsdup'.
17549         * modules/wcsdup: New file.
17550         * lib/wchar.in.h (wcsdup): New declaration.
17551         * lib/wcsdup.c: New file.
17552         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17553         * m4/wcsdup.m4: New file.
17554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17557         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17558         * doc/posix-functions/wcsdup.texi: Mention the new module.
17559
17560 2011-02-06  Bruno Haible  <bruno@clisp.org>
17561
17562         New module 'wcsxfrm'.
17563         * modules/wcsxfrm: New file.
17564         * lib/wchar.in.h (wcsxfrm): New declaration.
17565         * lib/wcsxfrm.c: New file.
17566         * lib/wcsxfrm-impl.h: New file.
17567         * m4/wcsxfrm.m4: New file.
17568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17571         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17572         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17573
17574 2011-02-06  Bruno Haible  <bruno@clisp.org>
17575
17576         New module 'wcscoll'.
17577         * modules/wcscoll: New file.
17578         * lib/wchar.in.h (wcscoll): New declaration.
17579         * lib/wcscoll.c: New file.
17580         * lib/wcscoll-impl.h: New file.
17581         * m4/wcscoll.m4: New file.
17582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17585         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17586         * doc/posix-functions/wcscoll.texi: Mention the new module.
17587
17588 2011-02-06  Bruno Haible  <bruno@clisp.org>
17589
17590         New module 'wcsncasecmp'.
17591         * modules/wcsncasecmp: New file.
17592         * lib/wchar.in.h (wcsncasecmp): New declaration.
17593         * lib/wcsncasecmp.c: New file.
17594         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17595         * m4/wcsncasecmp.m4: New file.
17596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17599         HAVE_WCSNCASECMP.
17600         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17601         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17602
17603 2011-02-06  Bruno Haible  <bruno@clisp.org>
17604
17605         New module 'wcscasecmp'.
17606         * modules/wcscasecmp: New file.
17607         * lib/wchar.in.h (wcscasecmp): New declaration.
17608         * lib/wcscasecmp.c: New file.
17609         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17610         * m4/wcscasecmp.m4: New file.
17611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17614         HAVE_WCSCASECMP.
17615         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17616         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17617
17618 2011-02-05  Bruno Haible  <bruno@clisp.org>
17619
17620         New module 'wcsncmp'.
17621         * modules/wcsncmp: New file.
17622         * lib/wchar.in.h (wcsncmp): New declaration.
17623         * lib/wcsncmp.c: New file.
17624         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17625         * m4/wcsncmp.m4: New file.
17626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17629         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17630         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17631
17632 2011-02-05  Bruno Haible  <bruno@clisp.org>
17633
17634         New module 'wcscmp'.
17635         * modules/wcscmp: New file.
17636         * lib/wchar.in.h (wcscmp): New declaration.
17637         * lib/wcscmp.c: New file.
17638         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17639         * m4/wcscmp.m4: New file.
17640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17643         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17644         * doc/posix-functions/wcscmp.texi: Mention the new module.
17645
17646 2011-02-05  Bruno Haible  <bruno@clisp.org>
17647
17648         New module 'wcsncat'.
17649         * modules/wcsncat: New file.
17650         * lib/wchar.in.h (wcsncat): New declaration.
17651         * lib/wcsncat.c: New file.
17652         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17653         * m4/wcsncat.m4: New file.
17654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17657         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17658         * doc/posix-functions/wcsncat.texi: Mention the new module.
17659
17660 2011-02-05  Bruno Haible  <bruno@clisp.org>
17661
17662         New module 'wcscat'.
17663         * modules/wcscat: New file.
17664         * lib/wchar.in.h (wcscat): New declaration.
17665         * lib/wcscat.c: New file.
17666         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17667         * m4/wcscat.m4: New file.
17668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17671         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17672         * doc/posix-functions/wcscat.texi: Mention the new module.
17673
17674 2011-02-05  Bruno Haible  <bruno@clisp.org>
17675
17676         New module 'wcpncpy'.
17677         * modules/wcpncpy: New file.
17678         * lib/wchar.in.h (wcpncpy): New declaration.
17679         * lib/wcpncpy.c: New file.
17680         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17681         * m4/wcpncpy.m4: New file.
17682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17684         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17685         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17686         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17687
17688 2011-02-05  Bruno Haible  <bruno@clisp.org>
17689
17690         New module 'wcsncpy'.
17691         * modules/wcsncpy: New file.
17692         * lib/wchar.in.h (wcsncpy): New declaration.
17693         * lib/wcsncpy.c: New file.
17694         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17695         * m4/wcsncpy.m4: New file.
17696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17699         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17700         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17701
17702 2011-02-05  Bruno Haible  <bruno@clisp.org>
17703
17704         New module 'wcpcpy'.
17705         * modules/wcpcpy: New file.
17706         * lib/wchar.in.h (wcpcpy): New declaration.
17707         * lib/wcpcpy.c: New file.
17708         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17709         * m4/wcpcpy.m4: New file.
17710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17712         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17713         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17714         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17715
17716 2011-02-05  Bruno Haible  <bruno@clisp.org>
17717
17718         New module 'wcscpy'.
17719         * modules/wcscpy: New file.
17720         * lib/wchar.in.h (wcscpy): New declaration.
17721         * lib/wcscpy.c: New file.
17722         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17723         * m4/wcscpy.m4: New file.
17724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17727         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17728         * doc/posix-functions/wcscpy.texi: Mention the new module.
17729
17730 2011-02-05  Bruno Haible  <bruno@clisp.org>
17731
17732         New module 'wcsnlen'.
17733         * modules/wcsnlen: New file.
17734         * lib/wchar.in.h (wcsnlen): New declaration.
17735         * lib/wcsnlen.c: New file.
17736         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17737         * m4/wcsnlen.m4: New file.
17738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17741         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17742         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17743
17744 2011-02-05  Bruno Haible  <bruno@clisp.org>
17745
17746         New module 'wcslen'.
17747         * modules/wcslen: New file.
17748         * lib/wchar.in.h (wcslen): New declaration.
17749         * lib/wcslen.c: New file.
17750         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17751         * m4/wcslen.m4: New file.
17752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17755         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17756         * doc/posix-functions/wcslen.texi: Mention the new module.
17757
17758 2011-02-05  Bruno Haible  <bruno@clisp.org>
17759
17760         New module 'wmemset'.
17761         * modules/wmemset: New file.
17762         * lib/wchar.in.h (wmemset): New declaration.
17763         * lib/wmemset.c: New file.
17764         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17765         * m4/wmemset.m4: New file.
17766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17768         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17769         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17770         * doc/posix-functions/wmemset.texi: Mention the new module.
17771
17772 2011-02-05  Bruno Haible  <bruno@clisp.org>
17773
17774         New module 'wmemmove'.
17775         * modules/wmemmove: New file.
17776         * lib/wchar.in.h (wmemmove): New declaration.
17777         * lib/wmemmove.c: New file.
17778         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17779         * m4/wmemmove.m4: New file.
17780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17782         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17783         HAVE_WMEMMOVE.
17784         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17785         * doc/posix-functions/wmemmove.texi: Mention the new module.
17786
17787 2011-02-05  Bruno Haible  <bruno@clisp.org>
17788
17789         New module 'wmemcpy'.
17790         * modules/wmemcpy: New file.
17791         * lib/wchar.in.h (wmemcpy): New declaration.
17792         * lib/wmemcpy.c: New file.
17793         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17794         * m4/wmemcpy.m4: New file.
17795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17797         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17798         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17799         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17800
17801 2011-02-05  Bruno Haible  <bruno@clisp.org>
17802
17803         New module 'wmemcmp'.
17804         * modules/wmemcmp: New file.
17805         * lib/wchar.in.h (wmemcmp): New declaration.
17806         * lib/wmemcmp.c: New file.
17807         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17808         * m4/wmemcmp.m4: New file.
17809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17811         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17812         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17813         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17814
17815 2011-02-07  Jim Meyering  <meyering@redhat.com>
17816
17817         di-set, ino-map: new modules, from coreutils
17818         * lib/di-set.c: New file.
17819         * lib/di-set.h: Likewise.
17820         * lib/ino-map.c: Likewise.
17821         * lib/ino-map.h: Likewise.
17822         * modules/di-set: Likewise.
17823         * modules/di-set-tests: Likewise.
17824         * modules/ino-map: Likewise.
17825         * modules/ino-map-tests: Likewise.
17826         * tests/test-di-set.c: Likewise.
17827         * tests/test-ino-map.c: Likewise.
17828
17829 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17830
17831         getloadavg: merge minor changes from Emacs
17832
17833         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17834         (getloadavg): Use memset, not bzero.
17835
17836         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17837         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17838         clash (bug#86).
17839
17840 2010-11-14  Bruno Haible  <bruno@clisp.org>
17841
17842         Allow multiple gnulib generated replacements to coexist.
17843         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17844         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17845         * lib/langinfo.in.h (nl_item): Likewise.
17846         * lib/math.in.h (_NaN, NAN): Likewise.
17847         * lib/netdb.in.h (struct addrinfo): Likewise.
17848         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17849         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17850         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17851         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17852         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17853         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17854         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17855         pthread_mutexattr_init, pthread_mutexattr_settype,
17856         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17857         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17858         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17859         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17860         * lib/sched.in.h (struct sched_param): Likewise.
17861         * lib/se-selinux.in.h (security_class_t, security_context_t,
17862         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17863         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17864         lsetfilecon, fsetfilecon, security_check_context,
17865         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17866         Likewise.
17867         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17868         Likewise.
17869         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17870         _gl_function_taking_int_returning_void_t, union sigval,
17871         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17872         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17873         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17874         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17875         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17876         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17877         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17878         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17879         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17880         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17881         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17882         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17883         socklen_t, rpl_fd_isset): Likewise.
17884         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17885         * lib/sys_time.in.h (struct timeval): Likewise.
17886         * lib/sys_times.in.h (struct tms): Likewise.
17887         * lib/sys_utsname.in.h (struct utsname):
17888         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17889         * lib/unistd.in.h (getpagesize): Likewise.
17890         * lib/wchar.in.h (mbstate_t): Likewise.
17891         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17892         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17893         towlower, towupper): Likewise.
17894         Reported by Sam Steingold <sds@gnu.org>.
17895
17896 2011-02-05  Eric Blake  <eblake@redhat.com>
17897
17898         unsetenv: work around Haiku issues
17899         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17900         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17901
17902 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17903
17904         libposix: avoid calling error() within libposix
17905         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17906         is defined.
17907
17908 2011-02-05  Eric Blake  <eblake@redhat.com>
17909
17910         strerror_r-posix: port to cygwin
17911         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17912         implementation.
17913         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17914         * tests/test-strerror_r.c (main): Fix test.
17915         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17916         issue.
17917
17918 2011-02-05  Bruno Haible  <bruno@clisp.org>
17919
17920         New module 'wmemchr'.
17921         * modules/wmemchr: New file.
17922         * lib/wchar.in.h (wmemchr): New declaration.
17923         * lib/wmemchr.c: New file.
17924         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17925         * m4/wmemchr.m4: New file.
17926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17928         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17929         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17930         * doc/posix-functions/wmemchr.texi: Mention the new module.
17931
17932 2011-02-04  Eric Blake  <eblake@redhat.com>
17933
17934         fdopendir: detect FreeBSD bug
17935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17936         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17937
17938 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17939
17940         stdbool: do not define HAVE_STDBOOL_H
17941         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17942         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17943         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17944         imported from the latest Autoconf git.  It was motivated by Emacs,
17945         which uses gnulib but does not need HAVE_STDBOOL_H.
17946
17947 2011-02-04  Bruno Haible  <bruno@clisp.org>
17948
17949         wcsnrtombs: Prepare for new module wwcsnrtombs.
17950         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17951         * lib/wcsnrtombs.c: Include it.
17952         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17953
17954         wcsrtombs: Prepare for new module wwcsrtombs.
17955         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17956         * lib/wcsrtombs.c: Include it.
17957         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17958
17959         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17960         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17961         * lib/mbsnrtowcs.c: Include it.
17962         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17963
17964         mbsrtowcs: Prepare for new module mbsrtowwcs.
17965         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17966         * lib/mbsrtowcs.c: Include it.
17967         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17968
17969 2011-02-04  Bruno Haible  <bruno@clisp.org>
17970
17971         vasnprintf: Reduce use of malloc for small format strings.
17972         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17973         (arguments): Add room for the first 7 arguments.
17974         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17975         (char_directives, u8_directives, u16_directives, u32_directives): Add
17976         room for the first 7 directives.
17977         * lib/printf-parse.c: Include <string.h>.
17978         (PRINTF_PARSE): Change memory handling code so that it uses the first
17979         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17980         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17981         Reported by Pádraig Brady <P@draigbrady.com>.
17982
17983 2011-01-31  Eric Blake  <eblake@redhat.com>
17984
17985         dup2: work around Haiku bug
17986         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17987         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17988         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17989         * tests/test-dup2.c (main): Enhance test.
17990
17991 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17992
17993         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17994         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17995         declared by eglibc 2.11.2.
17996         * lib/stdio.in.h: Likewise.
17997
17998 2011-01-31  Eric Blake  <eblake@redhat.com>
17999
18000         ignore-value: add missing test dependency
18001         * tests/test-ignore-value.c: Revert previous change; stdio.h
18002         provides off_t.
18003         * modules/ignore-value-tests (Depends-on): Add missing dependency.
18004
18005 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18006
18007         mktime: clarify long_int width checking
18008         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
18009         the top level, to make it clearer that the assumption about
18010         long_int width is being checked.  See
18011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
18012
18013 2011-01-30  Simon Josefsson  <simon@josefsson.org>
18014
18015         ignore-value: Fix self-test.
18016         * tests/test-ignore-value.c: Include sys/types.h for off_t.
18017
18018 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18019
18020         TYPE_MAXIMUM: avoid theoretically undefined behavior
18021         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
18022         negative number, which the C Standard says has undefined behavior.
18023         In practice this is not a problem, but might as well do it by the book.
18024         Reported by Rich Felker and Eric Blake; see
18025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
18026         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
18027         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18029         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18030         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18031         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
18032
18033         mktime: #undef mktime before #defining it
18034         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
18035
18036         mktime: systematically normalize tm_isdst comparisons
18037         * lib/mktime.c (isdst_differ): New function.
18038         (__mktime_internal): Use it systematically for all isdst comparisons.
18039         This completes the fix for libc BZ #6723, and removes the need for
18040         normalizing tm_isdst.  See
18041         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
18042         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
18043
18044         mktime: fix some integer overflow issues and sidestep the rest
18045
18046         This was prompted by a bug report by Benjamin Lindner for MinGW
18047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
18048         His bug is due to signed integer overflow (0 - INT_MIN), and I
18049         I scanned through mktime.c looking for other integer overflow
18050         problems, fixing all the bugs I found.
18051
18052         Although the C Standard says the resulting code is still not safe
18053         in the presence of integer overflow, in practice it should be good
18054         enough for all real-world two's-complement implementations, except
18055         for debugging environments that deliberately trap on integer
18056         overflow (e.g., gcc -ftrapv).
18057
18058         * lib/mktime.c (WRAPV): New macro.
18059         (SHR): Also check that long_int and time_t shift right in the
18060         usual way, before using the fast-but-unportable method.
18061         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
18062         used.  The code already assumed two's complement, so there's
18063         no need to test for alternatives.  All uses removed.
18064         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
18065         the C standard.  Problem reported by Rich Felker in
18066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
18067         (twos_complement_arithmetic): Also check long_int and time_t.
18068         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
18069         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
18070         (__mktime_internal): Avoid integer overflow with unary subtraction
18071         in two instances where -1 - X is an adequate replacement for -X,
18072         since the calculations are approximate.
18073
18074 2011-01-29  Eric Blake  <eblake@redhat.com>
18075
18076         mktime: avoid infinite loop
18077         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
18078         type; behavior is still undefined but portable to all known targets.
18079         Reported by Rich Felker.
18080
18081 2011-01-29  Simon Josefsson  <simon@josefsson.org>
18082
18083         rename, unlink, same-inode: Relicense.
18084         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
18085         * modules/unlink (License): Likewise.
18086         * modules/same-inode (License): Likewise.
18087
18088 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18089
18090         mktime: avoid problems on NetBSD 5 / i386
18091         * lib/mktime.c (long_int): New type.  This works around a problem
18092         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
18093         but time_t is 64 bits, and where I expect the existing code is
18094         wrong in some cases.
18095         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
18096         (ydhms_diff): Bring back the compile-time check for wide-enough
18097         year and yday.
18098
18099         mktime: fix misspelling in comment
18100         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
18101         This merges all recent glibc changes of importance.
18102
18103 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18104
18105         move-if-change: cope with concurrent mv of identical file.
18106         * build-aux/move-if-change (CMPPROG): Accept environment
18107         variable as an override for `cmp'.
18108         (usage): Document CMPPROG.
18109         Adjust comparison to drop stdout.  Cope with failure of mv if
18110         the target file exists and is identical to the source, for
18111         parallel builds.
18112         Report from H.J. Lu against binutils in PR binutils/12283.
18113
18114 2011-01-28  Bruce Korb  <bkorb@gnu.org>
18115
18116         * users.txt: Mention sharutils.
18117
18118 2011-01-28  Simon Josefsson  <simon@josefsson.org>
18119
18120         * users.txt: Mention OATH Toolkit.
18121
18122 2011-01-27  Bruno Haible  <bruno@clisp.org>
18123
18124         Prepare for supporting FreeBSD 10.
18125         * build-aux/config.libpath: Remove handling of freebsd1*.
18126
18127 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
18128
18129         Prepare for supporting FreeBSD 10.
18130         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
18131         match FreeBSD 10.0.
18132
18133 2011-01-27  Bruno Haible  <bruno@clisp.org>
18134
18135         vma-iter, get-rusage-as: Add OpenBSD support.
18136         * modules/vma-iter (configure.ac): Test for mquery.
18137         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
18138         * lib/vma-iter.c: Include <sys/mman.h>.
18139         (vma_iterate): Add an implementation based on mquery().
18140         * lib/resource-ext.h (get_rusage_as): Update comments.
18141         * lib/get-rusage-as.c: Likewise.
18142         * lib/get-rusage-data.c: Likewise.
18143
18144 2011-01-26  Karl Berry  <karl@gnu.org>
18145
18146         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
18147         variables to make it easier to override the makeinfo program used.
18148
18149 2011-01-26  Eric Blake  <eblake@redhat.com>
18150
18151         fcntl: work around Haiku F_DUPFD bugs
18152         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18153         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18154         cloexec bit on duplication.
18155         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18156
18157 2011-01-26  Bruno Haible  <bruno@clisp.org>
18158
18159         Enable memory leak tests on AIX.
18160         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18161         * tests/test-fprintf-posix3.c (main): Likewise.
18162
18163 2011-01-26  Bruno Haible  <bruno@clisp.org>
18164
18165         Tests for module 'get-rusage-data'.
18166         * modules/get-rusage-data-tests: New file.
18167         * tests/test-get-rusage-data.c: New file.
18168
18169         New module 'get-rusage-data'.
18170         * lib/resource-ext.h (get_rusage_data): New declaration.
18171         * lib/get-rusage-data.c: New file.
18172         * modules/get-rusage-data: New file.
18173
18174 2011-01-25  Bruno Haible  <bruno@clisp.org>
18175
18176         get-rusage-as: Allow for easier testing.
18177         * lib/resource-ext.h (get_rusage_as): Add comment.
18178         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18179         (main): New function for interactive testing.
18180
18181 2011-01-25  Bruno Haible  <bruno@clisp.org>
18182
18183         vma-iter: Treat Haiku like BeOS.
18184         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18185         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18186
18187 2011-01-25  Eric Blake  <eblake@redhat.com>
18188
18189         c-stack: fix regression on cygwin when libsigsegv is present
18190         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18191
18192 2011-01-24  Bruno Haible  <bruno@clisp.org>
18193
18194         vma-iter: Avoid empty intervals.
18195         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18196         on an empty interval.
18197
18198 2011-01-24  Jim Meyering  <meyering@redhat.com>
18199
18200         u64: remove unnecessary #include
18201         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18202
18203 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18204
18205         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18206         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18207
18208 2011-01-23  Bruno Haible  <bruno@clisp.org>
18209
18210         New module 'vma-iter'.
18211         * lib/vma-iter.h: New file.
18212         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18213         * modules/vma-iter: New file.
18214         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18215         for get_rusage_as_via_iterator.
18216         (vma_iterate_callback): New function.
18217         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18218         * modules/get-rusage-as (Depends-on): Add vma-iter.
18219
18220 2011-01-23  Bruno Haible  <bruno@clisp.org>
18221
18222         uninorm: Tweak includes.
18223         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18224         Reported by Jim Meyering.
18225
18226 2011-01-23  Bruno Haible  <bruno@clisp.org>
18227
18228         get-rusage-as: Improve on NetBSD.
18229         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18230         /proc, like on FreeBSD.
18231
18232 2011-01-23  Jim Meyering  <meyering@redhat.com>
18233
18234         xreadlink.h: remove unnecessary #include
18235         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18236
18237         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18238         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18239
18240 2011-01-23  Bruno Haible  <bruno@clisp.org>
18241
18242         get-rusage-as: Fix bug.
18243         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18244         original limit when aborting the first loop.
18245
18246 2011-01-23  Bruno Haible  <bruno@clisp.org>
18247
18248         wctype: Ensure valid C syntax.
18249         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18250         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18251
18252 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18253
18254         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18256         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18257         as they are needed only for configure's test case.
18258         This removes two unnecessary symbols from config.h.
18259
18260         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18261         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18263         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18264         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18266         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18267         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18269         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18270         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18272         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18273         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18274         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18275         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18276         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18277         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18278
18279 2011-01-21  Eric Blake  <eblake@redhat.com>
18280
18281         maintainer-makefile: work with older git for submodule check
18282         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18283         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18284         Reported by Matthias Bolte.
18285
18286         bootstrap: minor portability fixes
18287         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18288         (usage): Omit leading capital and trailing . on help phrases, per
18289         GNU Coding Standards.
18290         (check_versions, top level): Prefix messages with script name.
18291
18292 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18293
18294         bootstrap: support --no-git option
18295         * build-aux/bootstrap: Add --no-git option, to be used when
18296         --gnulib-srcdir points to the exact desired checkout.
18297
18298 2011-01-21  Eric Blake  <eblake@redhat.com>
18299
18300         strerror_r-posix: work with glibc 2.13
18301         * lib/strerror_r.c (strerror_r): Fix return type.
18302
18303 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18304             Bruno Haible  <bruno@clisp.org>
18305
18306         uN_strstr: New unit tests.
18307         * modules/unistr/u8-strstr-tests: New file.
18308         * modules/unistr/u16-strstr-tests: New file.
18309         * modules/unistr/u32-strstr-tests: New file.
18310         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18311         * tests/unistr/test-u8-strstr.c: New file.
18312         * tests/unistr/test-u16-strstr.c: New file.
18313         * tests/unistr/test-u32-strstr.c: New file.
18314
18315 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18316             Bruno Haible  <bruno@clisp.org>
18317
18318         Make uN_strstr functions O(n) worst-case.
18319         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18320         16-bit and 32-bit unit cases, use the unibyte algorithm from
18321         lib/mbsstr.c.
18322         * lib/unistr/u8-strstr.c: Include <string.h>.
18323         (UNIT_IS_UINT8_T): New macro.
18324         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18325         (U_STRLEN, U_STRNLEN): New macros.
18326         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18327         (U_STRLEN, U_STRNLEN): New macros.
18328         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18329         (configure.ac): Update required libunistring version.
18330         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18331         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18332         malloca.
18333         (configure.ac): Update required libunistring version.
18334         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18335         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18336         malloca.
18337         (configure.ac): Update required libunistring version.
18338
18339 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18340             Bruno Haible  <bruno@clisp.org>
18341
18342         Prepare for faster uN_strstr functions.
18343         * lib/str-kmp.h: Support definable UNITs.
18344         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18345         needle_len argument.
18346         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18347         * lib/mbscasestr.c (mbscasestr): Likewise.
18348
18349 2011-01-21  Pádraig Brady <P@draigBrady.com>
18350
18351         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18352         * tests/test-malloca.c (main): Unset the environment variable
18353         to greatly speed up the test.
18354         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18355         * modules/malloca-tests: Depend on unsetenv.
18356
18357 2011-01-21  Pádraig Brady <P@draigBrady.com>
18358
18359         ignore-value: remove stdint dependency
18360         * lib/ignore-value.h: Remove <stdint.h>
18361         * modules/ignore-value: Remove stdint dependency.
18362
18363 2011-01-21  Jim Meyering  <meyering@redhat.com>
18364
18365         maint.mk: adjust variable name to be consistent with other gl_ vars
18366         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18367         to be lower case.
18368
18369 2011-01-20  Jim Meyering  <meyering@redhat.com>
18370
18371         maint.mk: make "check" depend on public-submodule-commit by default
18372         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18373
18374 2011-01-20  Bruno Haible  <bruno@clisp.org>
18375
18376         mbfile, mbiter: Complete change from 2008-12-21.
18377         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18378         * m4/mbiter.m4 (gl_MBITER): Likewise.
18379
18380 2011-01-20  Jim Meyering  <meyering@redhat.com>
18381
18382         init.sh: insert space between each function name and "()"
18383         * tests/init.sh: Make it a little easier to see that a function's
18384         name is "warn_", and not "warn" when looking at the first part of
18385         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18386
18387 2011-01-20  Jim Meyering  <meyering@redhat.com>
18388
18389         mountlist: clean up code formatting
18390         * lib/mountlist.c (read_file_system_list): Split a long line,
18391         correct bracing style, use NULL in place of "(struct statfs *)0",
18392         don't parenthesize return value, add spaces around "=" and after
18393         ";-in-for-stmt".
18394
18395 2011-01-14  Markus Duft <mduft@gentoo.org>
18396
18397         mountlist: add support for Interix
18398         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18399         Apply statvfs to all entries of /dev/fs.
18400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18401         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18402
18403 2011-01-20  Jim Meyering  <meyering@redhat.com>
18404
18405         maint.mk: improve the public-submodule-commit rule
18406         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18407         to suppress printing of its commands... unless V=1.
18408         Add git submodule's --quiet option to suppress printing of e.g.,
18409         "Entering gnulib" output.
18410         "cd" into $(srcdir) before running git submodule.
18411
18412 2011-01-20  Bruno Haible  <bruno@clisp.org>
18413
18414         include_next: Fix bug introduced on 2011-01-18.
18415         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18416         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18417         ac_cv_header_... variable if the second argument is not 'check'.
18418         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18419         gl_NEXT_HEADERS_INTERNAL.
18420
18421 2011-01-20  Bruno Haible  <bruno@clisp.org>
18422
18423         Allow the user to avoid the GNULIB_TEST_* macros.
18424         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18425         Suggested by Paul Eggert.
18426
18427 2011-01-14  Jim Meyering  <meyering@redhat.com>
18428
18429         bootstrap: avoid failure when there is no .gitmodules file
18430         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18431         has been assigned to, even when its value is the empty string.
18432         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18433         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18434         Reported by John W. Eaton <jwe@gnu.org>.
18435
18436 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18437
18438         assume <ctype.h>, ..., <time.h> exist
18439         For years gnulib has been assuming the existence of the headers
18440         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18441         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18442         them, since they don't appear to be needed.
18443         * README (Portability guidelines): Document this.
18444         * lib/flock.c: Assume <fcntl.h> exists.
18445         * lib/regex_internal.h: Assume <locale.h> exists.
18446         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18447         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18448         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18449         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18450         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18451         * m4/regex.m4 (gl_REGEX): Likewise.
18452         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18453         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18454         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18455         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18456         * tests/test-argp.c: Likewise.
18457         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18458
18459         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18460         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18461         AA_APPLE_UNIVERSAL_BUILD.  See
18462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18463         * NEWS: Document this.
18464
18465 2011-01-19  Eric Blake  <eblake@redhat.com>
18466
18467         c-stack: assume stack overflow if SA_SIGINFO unsupported
18468         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18469         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18470         sigaction will work.
18471         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18472         behavior match Linux.
18473         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18474
18475         stdbool-tests: accomodate Haiku
18476         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18477
18478         binary-io: fix O_TEXT on Haiku
18479         * modules/binary-io (Depends-on): Add fcntl-h.
18480         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18481         than blindly undefining O_TEXT.
18482         Reported by Scott McCreary.
18483
18484 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18485
18486         include_next: do not check for standard headers like stddef.h
18487
18488         I found this problem when modifying Emacs to use gnulib.
18489         I noticed that it added HAVE_STDDEF_H to config.h, even though
18490         gnulib always assumes <stddef.h> exists as per README and this
18491         symbol is unnecessary.
18492         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18493         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18494         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18495         faster for headers like stddef.h that are known to exist.
18496         (gl_CHECK_NEXT_HEADERS): Use it.
18497         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18498         rather than gl_CHECK_NEXT_HEADERS.
18499         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18500         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18501
18502 2011-01-18  Eric Blake  <eblake@redhat.com>
18503
18504         ansi-c++-opt: skip C++ dependency style if C++ is unused
18505         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18506         tests when we know C++ compilation is not desired.
18507         Reported by Scott McCreary.
18508
18509 2011-01-18  Bruno Haible  <bruno@clisp.org>
18510
18511         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18512         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18513         (main): Perform test also when getrlimit and setrlimit don't exist or
18514         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18515         limiting the address space size using setrlimit, compare the address
18516         space size before and after the the test.
18517         * tests/test-dprintf-posix2.c: Likewise.
18518         * tests/test-fprintf-posix3.sh: Update skip messages.
18519         * tests/test-dprintf-posix2.sh: Likewise.
18520         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18521         * modules/dprintf-posix-tests (Depends-on): Likewise.
18522         Reported by Bruce Korb <bkorb@gnu.org> and
18523         Gary V. Vaughan <gary@gnu.org>.
18524
18525 2011-01-18  Bruno Haible  <bruno@clisp.org>
18526
18527         get-rusage-as: Improvement for Cygwin.
18528         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18529         areas that are merely reserved.
18530
18531 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18532
18533         strftime: remove dependencies on multibyte modules
18534
18535         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18536         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18537         only if __osf__ is defined, and I suspect OSF doesn't need these
18538         other modules.  If my guess is wrong, we'll need to come up with a
18539         variant of strftime that doesn't need the multibyte modules.
18540
18541         I discovered this problem when attempting modify Emacs to use the
18542         strftime module.  With the previous gnulib, this caused Emacs to
18543         need 31 new files, ranging from lib/config.charset to
18544         m4/wint_t.m4.  This was overkill and I expect would be offputting
18545         to the Emacs maintainers.  After this change, only 6 new files are
18546         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18547         stdbool.m4, and tm_gmtoff.m4.
18548
18549         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18550         Suggested by Bruno Haible in
18551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18552         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18553         and do not check for wchar.h.
18554         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18555         (Depends-on): Remove mbrlen, mbsinit, wchar.
18556
18557 2011-01-18  Bruno Haible  <bruno@clisp.org>
18558
18559         Tests for module 'get-rusage-as'.
18560         * modules/get-rusage-as-tests: New file.
18561         * tests/test-get-rusage-as.c: New file.
18562
18563         New module 'get-rusage-as'.
18564         * modules/get-rusage-as: New file.
18565         * lib/resource-ext.h: New file.
18566         * lib/get-rusage-as.c: New file.
18567
18568 2011-01-17  Eric Blake  <eblake@redhat.com>
18569
18570         sigaction: relax license from LGPLv3+ to LGPLv2+
18571         * modules/sigaction (License): Relax to LGPLv2+.
18572
18573 2011-01-14  Bruno Haible  <bruno@clisp.org>
18574
18575         filemode: Make function declarations usable in C++ mode.
18576         * lib/filemode.h: Enclose function declarations in extern "C" block.
18577         Reported by John W. Eaton <jwe@gnu.org>.
18578
18579 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18580
18581         save-cwd: no longer include "xgetcwd.h"
18582         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18583         This avoids a compilation failure in projects that use save-cwd
18584         without also using the xgetcwd module.
18585
18586 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18587
18588         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18589         This is so that a program like Emacs, which needs only dtoastr,
18590         does not have to bother with distributing and compiling ftoastr
18591         and ldtoastr.
18592         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18593         * modules/dtoastr, modules/ldtoastr: New files.
18594         * modules/ftoastr: Now works just for 'float'.
18595         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18596         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18597         dtoastr.c, ldtoastr.c.
18598
18599 2011-01-11  Jim Meyering  <meyering@redhat.com>
18600
18601         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18602         There is no need to work around the lack of the fchdir function,
18603         since gnulib can now provide a replacement when required.
18604         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18605         * modules/save-cwd (Depends-on): Add fchdir.
18606
18607 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18608
18609         openat, save-cwd: avoid xmalloc
18610
18611         This removes a direct (but undocumented) dependency of openat on
18612         xalloc, along with an indirect dependency via save-cwd.  It also
18613         removes a dependency of save-cwd on xgetcwd, and thereby
18614         indirectly on xalloc.  This change causes the openat substitute
18615         to fall back on save_cwd when memory is tight, and for save_cwd to
18616         fail instead of dying when memory is tight, but that's good enough.
18617         Problem and initial idea for fix reported by Bastien Roucaries in
18618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18619
18620         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18621         xalloc.h (for xmalloc).
18622         (openat_proc_name): Use malloc, not xmalloc.
18623         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18624         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18625
18626         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18627         This avoids heap allocation for file names whose lengths are in
18628         the range 512..1023, with the upper bound increasing to at most
18629         4031 depending on the platform's PATH_MAX.  (We do not want
18630         pathmax.h here as it might supply a non-constant PATH_MAX.)
18631         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18632         Perhaps they should be moved to malloca.h?
18633         (OPENAT_BUFFER_SIZE): Use them.
18634
18635 2011-01-10  Bruno Haible  <bruno@clisp.org>
18636
18637         doc: Update users.txt.
18638         * users.txt: Add recutils.
18639
18640 2011-01-09  Karl Berry  <karl@gnu.org>
18641
18642         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18643
18644         * doc/configmake.texi: New file.
18645         * doc/gnulib.texi: Include it.
18646         * modules/configmake: Move documentation from here.
18647
18648 2011-01-09  Bruno Haible  <bruno@clisp.org>
18649
18650         Update to Unicode 6.0.0.
18651         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18652         (get_lbp): Update for Unicode 6.0.0.
18653         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18654         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18655         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18656         U+11001, U+11038..U+11046. Remove U+06DE.
18657         (uc_width): Fix bounds of planes.
18658         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18659         lib/uniwidth/width.c.
18660         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18661         trailing whitespace removed.
18662         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18663         without comments, but with the original copyright notice.
18664         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18665         * lib/unicase/ignorable.h: Likewise.
18666         * lib/unicase/tocasefold.h: Likewise.
18667         * lib/unicase/tolower.h: Likewise.
18668         * lib/unicase/totitle.h: Likewise.
18669         * lib/unicase/toupper.h: Likewise.
18670         * lib/unictype/bidi_of.h: Likewise.
18671         * lib/unictype/blocks.h: Likewise.
18672         * lib/unictype/categ_C.h: Likewise.
18673         * lib/unictype/categ_Cn.h: Likewise.
18674         * lib/unictype/categ_L.h: Likewise.
18675         * lib/unictype/categ_Ll.h: Likewise.
18676         * lib/unictype/categ_Lm.h: Likewise.
18677         * lib/unictype/categ_Lo.h: Likewise.
18678         * lib/unictype/categ_Lu.h: Likewise.
18679         * lib/unictype/categ_M.h: Likewise.
18680         * lib/unictype/categ_Mc.h: Likewise.
18681         * lib/unictype/categ_Me.h: Likewise.
18682         * lib/unictype/categ_Mn.h: Likewise.
18683         * lib/unictype/categ_N.h: Likewise.
18684         * lib/unictype/categ_Nd.h: Likewise.
18685         * lib/unictype/categ_No.h: Likewise.
18686         * lib/unictype/categ_P.h: Likewise.
18687         * lib/unictype/categ_Po.h: Likewise.
18688         * lib/unictype/categ_S.h: Likewise.
18689         * lib/unictype/categ_Sc.h: Likewise.
18690         * lib/unictype/categ_Sk.h: Likewise.
18691         * lib/unictype/categ_Sm.h: Likewise.
18692         * lib/unictype/categ_So.h: Likewise.
18693         * lib/unictype/categ_of.h: Likewise.
18694         * lib/unictype/combining.h: Likewise.
18695         * lib/unictype/ctype_alnum.h: Likewise.
18696         * lib/unictype/ctype_alpha.h: Likewise.
18697         * lib/unictype/ctype_graph.h: Likewise.
18698         * lib/unictype/ctype_lower.h: Likewise.
18699         * lib/unictype/ctype_print.h: Likewise.
18700         * lib/unictype/ctype_punct.h: Likewise.
18701         * lib/unictype/ctype_upper.h: Likewise.
18702         * lib/unictype/decdigit.h: Likewise.
18703         * lib/unictype/digit.h: Likewise.
18704         * lib/unictype/numeric.h: Likewise.
18705         * lib/unictype/pr_alphabetic.h: Likewise.
18706         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18707         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18708         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18709         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18710         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18711         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18712         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18713         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18714         * lib/unictype/pr_case_ignorable.h: Likewise.
18715         * lib/unictype/pr_cased.h: Likewise.
18716         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18717         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18718         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18719         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18720         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18721         * lib/unictype/pr_combining.h: Likewise.
18722         * lib/unictype/pr_composite.h: Likewise.
18723         * lib/unictype/pr_currency_symbol.h: Likewise.
18724         * lib/unictype/pr_decimal_digit.h: Likewise.
18725         * lib/unictype/pr_deprecated.h: Likewise.
18726         * lib/unictype/pr_format_control.h: Likewise.
18727         * lib/unictype/pr_grapheme_base.h: Likewise.
18728         * lib/unictype/pr_grapheme_extend.h: Likewise.
18729         * lib/unictype/pr_grapheme_link.h: Likewise.
18730         * lib/unictype/pr_id_continue.h: Likewise.
18731         * lib/unictype/pr_id_start.h: Likewise.
18732         * lib/unictype/pr_ideographic.h: Likewise.
18733         * lib/unictype/pr_lowercase.h: Likewise.
18734         * lib/unictype/pr_math.h: Likewise.
18735         * lib/unictype/pr_numeric.h: Likewise.
18736         * lib/unictype/pr_other_alphabetic.h: Likewise.
18737         * lib/unictype/pr_other_id_continue.h: Likewise.
18738         * lib/unictype/pr_other_math.h: Likewise.
18739         * lib/unictype/pr_punctuation.h: Likewise.
18740         * lib/unictype/pr_sentence_terminal.h: Likewise.
18741         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18742         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18743         * lib/unictype/pr_unified_ideograph.h: Likewise.
18744         * lib/unictype/pr_uppercase.h: Likewise.
18745         * lib/unictype/pr_xid_continue.h: Likewise.
18746         * lib/unictype/pr_xid_start.h: Likewise.
18747         * lib/unictype/scripts.h: Likewise.
18748         * lib/unictype/scripts_byname.gperf: Likewise.
18749         * lib/unictype/sy_java_ident.h: Likewise.
18750         * lib/unigbrk/gbrkprop.h: Likewise.
18751         * lib/unilbrk/lbrkprop1.h: Likewise.
18752         * lib/unilbrk/lbrkprop2.h: Likewise.
18753         * lib/uninorm/decomposition-table2.h: Likewise.
18754         * lib/uniwbrk/wbrkprop.h: Likewise.
18755         * tests/unicase/test-cased.c: Likewise.
18756         * tests/unicase/test-ignorable.c: Likewise.
18757         * tests/unicase/test-uc_tolower.c: Likewise.
18758         * tests/unicase/test-uc_totitle.c: Likewise.
18759         * tests/unicase/test-uc_toupper.c: Likewise.
18760         * tests/unictype/test-categ_C.c: Likewise.
18761         * tests/unictype/test-categ_Cn.c: Likewise.
18762         * tests/unictype/test-categ_L.c: Likewise.
18763         * tests/unictype/test-categ_Ll.c: Likewise.
18764         * tests/unictype/test-categ_Lm.c: Likewise.
18765         * tests/unictype/test-categ_Lo.c: Likewise.
18766         * tests/unictype/test-categ_Lu.c: Likewise.
18767         * tests/unictype/test-categ_M.c: Likewise.
18768         * tests/unictype/test-categ_Mc.c: Likewise.
18769         * tests/unictype/test-categ_Me.c: Likewise.
18770         * tests/unictype/test-categ_Mn.c: Likewise.
18771         * tests/unictype/test-categ_N.c: Likewise.
18772         * tests/unictype/test-categ_Nd.c: Likewise.
18773         * tests/unictype/test-categ_No.c: Likewise.
18774         * tests/unictype/test-categ_P.c: Likewise.
18775         * tests/unictype/test-categ_Po.c: Likewise.
18776         * tests/unictype/test-categ_S.c: Likewise.
18777         * tests/unictype/test-categ_Sc.c: Likewise.
18778         * tests/unictype/test-categ_Sk.c: Likewise.
18779         * tests/unictype/test-categ_Sm.c: Likewise.
18780         * tests/unictype/test-categ_So.c: Likewise.
18781         * tests/unictype/test-ctype_alnum.c: Likewise.
18782         * tests/unictype/test-ctype_alpha.c: Likewise.
18783         * tests/unictype/test-ctype_graph.c: Likewise.
18784         * tests/unictype/test-ctype_lower.c: Likewise.
18785         * tests/unictype/test-ctype_print.c: Likewise.
18786         * tests/unictype/test-ctype_punct.c: Likewise.
18787         * tests/unictype/test-ctype_upper.c: Likewise.
18788         * tests/unictype/test-decdigit.h: Likewise.
18789         * tests/unictype/test-digit.h: Likewise.
18790         * tests/unictype/test-numeric.h: Likewise.
18791         * tests/unictype/test-pr_alphabetic.c: Likewise.
18792         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18793         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18794         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18795         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18796         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18797         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18798         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18799         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18800         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18801         * tests/unictype/test-pr_cased.c: Likewise.
18802         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18803         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18804         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18805         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18806         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18807         * tests/unictype/test-pr_combining.c: Likewise.
18808         * tests/unictype/test-pr_composite.c: Likewise.
18809         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18810         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18811         * tests/unictype/test-pr_deprecated.c: Likewise.
18812         * tests/unictype/test-pr_format_control.c: Likewise.
18813         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18814         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18815         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18816         * tests/unictype/test-pr_id_continue.c: Likewise.
18817         * tests/unictype/test-pr_id_start.c: Likewise.
18818         * tests/unictype/test-pr_ideographic.c: Likewise.
18819         * tests/unictype/test-pr_lowercase.c: Likewise.
18820         * tests/unictype/test-pr_math.c: Likewise.
18821         * tests/unictype/test-pr_numeric.c: Likewise.
18822         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18823         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18824         * tests/unictype/test-pr_other_math.c: Likewise.
18825         * tests/unictype/test-pr_punctuation.c: Likewise.
18826         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18827         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18828         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18829         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18830         * tests/unictype/test-pr_uppercase.c: Likewise.
18831         * tests/unictype/test-pr_xid_continue.c: Likewise.
18832         * tests/unictype/test-pr_xid_start.c: Likewise.
18833         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18834         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18835         changes.
18836         * lib/unictype/categ_Cc.h: Likewise.
18837         * lib/unictype/categ_Cf.h: Likewise.
18838         * lib/unictype/categ_Co.h: Likewise.
18839         * lib/unictype/categ_Cs.h: Likewise.
18840         * lib/unictype/categ_Lt.h: Likewise.
18841         * lib/unictype/categ_Nl.h: Likewise.
18842         * lib/unictype/categ_Pc.h: Likewise.
18843         * lib/unictype/categ_Pd.h: Likewise.
18844         * lib/unictype/categ_Pe.h: Likewise.
18845         * lib/unictype/categ_Pf.h: Likewise.
18846         * lib/unictype/categ_Pi.h: Likewise.
18847         * lib/unictype/categ_Ps.h: Likewise.
18848         * lib/unictype/categ_Z.h: Likewise.
18849         * lib/unictype/categ_Zl.h: Likewise.
18850         * lib/unictype/categ_Zp.h: Likewise.
18851         * lib/unictype/categ_Zs.h: Likewise.
18852         * lib/unictype/ctype_blank.h: Likewise.
18853         * lib/unictype/ctype_cntrl.h: Likewise.
18854         * lib/unictype/ctype_digit.h: Likewise.
18855         * lib/unictype/ctype_space.h: Likewise.
18856         * lib/unictype/ctype_xdigit.h: Likewise.
18857         * lib/unictype/mirror.h: Likewise.
18858         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18859         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18860         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18861         * lib/unictype/pr_bidi_control.h: Likewise.
18862         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18863         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18864         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18865         * lib/unictype/pr_bidi_pdf.h: Likewise.
18866         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18867         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18868         * lib/unictype/pr_dash.h: Likewise.
18869         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18870         * lib/unictype/pr_diacritic.h: Likewise.
18871         * lib/unictype/pr_extender.h: Likewise.
18872         * lib/unictype/pr_hex_digit.h: Likewise.
18873         * lib/unictype/pr_hyphen.h: Likewise.
18874         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18875         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18876         * lib/unictype/pr_ignorable_control.h: Likewise.
18877         * lib/unictype/pr_iso_control.h: Likewise.
18878         * lib/unictype/pr_join_control.h: Likewise.
18879         * lib/unictype/pr_left_of_pair.h: Likewise.
18880         * lib/unictype/pr_line_separator.h: Likewise.
18881         * lib/unictype/pr_logical_order_exception.h: Likewise.
18882         * lib/unictype/pr_non_break.h: Likewise.
18883         * lib/unictype/pr_not_a_character.h: Likewise.
18884         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18885         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18886         * lib/unictype/pr_other_id_start.h: Likewise.
18887         * lib/unictype/pr_other_lowercase.h: Likewise.
18888         * lib/unictype/pr_other_uppercase.h: Likewise.
18889         * lib/unictype/pr_paired_punctuation.h: Likewise.
18890         * lib/unictype/pr_paragraph_separator.h: Likewise.
18891         * lib/unictype/pr_pattern_syntax.h: Likewise.
18892         * lib/unictype/pr_pattern_white_space.h: Likewise.
18893         * lib/unictype/pr_private_use.h: Likewise.
18894         * lib/unictype/pr_quotation_mark.h: Likewise.
18895         * lib/unictype/pr_radical.h: Likewise.
18896         * lib/unictype/pr_soft_dotted.h: Likewise.
18897         * lib/unictype/pr_space.h: Likewise.
18898         * lib/unictype/pr_titlecase.h: Likewise.
18899         * lib/unictype/pr_variation_selector.h: Likewise.
18900         * lib/unictype/pr_white_space.h: Likewise.
18901         * lib/unictype/pr_zero_width.h: Likewise.
18902         * lib/unictype/sy_c_ident.h: Likewise.
18903         * lib/unictype/sy_c_whitespace.h: Likewise.
18904         * lib/unictype/sy_java_whitespace.h: Likewise.
18905         * lib/uninorm/composition-table.gperf: Likewise.
18906         * lib/uninorm/decomposition-table1.h: Likewise.
18907         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18908         LB8.
18909         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18910         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18911         * modules/unictype/*: Bump version number of expected libunistring
18912         version.
18913
18914 2011-01-09  Bruno Haible  <bruno@clisp.org>
18915
18916         Update to Unicode 5.2.0.
18917         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18918         trailing whitespace removed.
18919
18920 2011-01-09  Bruno Haible  <bruno@clisp.org>
18921
18922         New Unicode character properties, from Unicode 5.2.0.
18923         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18924         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18925         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18926         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18927         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18928         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18929         uc_is_property_cased, uc_is_property_case_ignorable,
18930         uc_is_property_changes_when_lowercased,
18931         uc_is_property_changes_when_uppercased,
18932         uc_is_property_changes_when_titlecased,
18933         uc_is_property_changes_when_casefolded,
18934         uc_is_property_changes_when_casemapped): New declarations.
18935         * lib/unictype/pr_byname.gperf: Add the new properties.
18936         * modules/unictype/property-byname (Depends-on): Depend on the new
18937         properties modules.
18938         * modules/unictype/property-all (Depends-on): Likewise.
18939         * MODULES.html.sh (Unicode string functions): Add
18940         unictype/property-case-ignorable, unictype/property-cased,
18941         unictype/property-changes-when-casefolded,
18942         unictype/property-changes-when-casemapped,
18943         unictype/property-changes-when-lowercased,
18944         unictype/property-changes-when-titlecased,
18945         unictype/property-changes-when-uppercased.
18946
18947         New module 'unictype/property-changes-when-casemapped'.
18948         * modules/unictype/property-changes-when-casemapped: New file.
18949         * lib/unictype/pr_changes_when_casemapped.c: New file.
18950         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18951         generated by gen-uni-tables.
18952         * modules/unictype/property-changes-when-casemapped-tests: New file.
18953         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18954         automatically generated by gen-uni-tables.
18955
18956         New module 'unictype/property-changes-when-casefolded'.
18957         * modules/unictype/property-changes-when-casefolded: New file.
18958         * lib/unictype/pr_changes_when_casefolded.c: New file.
18959         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18960         generated by gen-uni-tables.
18961         * modules/unictype/property-changes-when-casefolded-tests: New file.
18962         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18963         automatically generated by gen-uni-tables.
18964
18965         New module 'unictype/property-changes-when-titlecased'.
18966         * modules/unictype/property-changes-when-titlecased: New file.
18967         * lib/unictype/pr_changes_when_titlecased.c: New file.
18968         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18969         generated by gen-uni-tables.
18970         * modules/unictype/property-changes-when-titlecased-tests: New file.
18971         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18972         automatically generated by gen-uni-tables.
18973
18974         New module 'unictype/property-changes-when-uppercased'.
18975         * modules/unictype/property-changes-when-uppercased: New file.
18976         * lib/unictype/pr_changes_when_uppercased.c: New file.
18977         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18978         generated by gen-uni-tables.
18979         * modules/unictype/property-changes-when-uppercased-tests: New file.
18980         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18981         automatically generated by gen-uni-tables.
18982
18983         New module 'unictype/property-changes-when-lowercased'.
18984         * modules/unictype/property-changes-when-lowercased: New file.
18985         * lib/unictype/pr_changes_when_lowercased.c: New file.
18986         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18987         generated by gen-uni-tables.
18988         * modules/unictype/property-changes-when-lowercased-tests: New file.
18989         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18990         automatically generated by gen-uni-tables.
18991
18992         New module 'unictype/property-case-ignorable'.
18993         * modules/unictype/property-case-ignorable: New file.
18994         * lib/unictype/pr_case_ignorable.c: New file.
18995         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18996         by gen-uni-tables.
18997         * modules/unictype/property-case-ignorable-tests: New file.
18998         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18999         generated by gen-uni-tables.
19000
19001         New module 'unictype/property-cased'.
19002         * modules/unictype/property-cased: New file.
19003         * lib/unictype/pr_cased.c: New file.
19004         * lib/unictype/pr_cased.h: New file, automatically generated by
19005         gen-uni-tables.
19006         * modules/unictype/property-cased-tests: New file.
19007         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19008         gen-uni-tables.
19009
19010 2011-01-09  Bruno Haible  <bruno@clisp.org>
19011
19012         Update to Unicode 5.2.0.
19013         * lib/gen-uni-tables.c (output_predicate, output_category,
19014         output_combclass, output_bidi_category, output_decimal_digit_test,
19015         output_decimal_digit, output_digit_test, output_digit,
19016         output_numeric_test, output_numeric, output_mirror, output_scripts,
19017         output_scripts_byname, output_blocks, output_ident_category): Fix
19018         comment header.
19019         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
19020         get_wbp.
19021         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
19022         items.
19023         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
19024         Changes_When_Lowercased, Changes_When_Uppercased,
19025         Changes_When_Titlecased, Changes_When_Casefolded,
19026         Changes_When_Casemapped.
19027         (is_property_alphabetic, is_property_default_ignorable_code_point):
19028         Update for Unicode 5.2.0.
19029         (is_property_cased, is_property_case_ignorable,
19030         is_property_changes_when_lowercased,
19031         is_property_changes_when_uppercased,
19032         is_property_changes_when_titlecased,
19033         is_property_changes_when_casefolded,
19034         is_property_changes_when_casemapped): New functions.
19035         (output_properties): Output also the properties cased, case_ignorable,
19036         changes_when_lowercased, changes_when_uppercased,
19037         changes_when_titlecased, changes_when_casefolded,
19038         changes_when_casemapped.
19039         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
19040         Unicode TR#11 revision 17 -> 19.
19041         (LBP_CP): New enumeration value.
19042         (LBP_*): Adjust values accordingly.
19043         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19044         TR#14 revision 22 -> 24.
19045         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
19046         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
19047         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19048         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
19049         is_WBP_MIDLETTER.
19050         (output_composition_tables): Allow for 24 bits instead of 16 bits in
19051         the code1 and code2 of each composition rule.
19052         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
19053         * lib/unicase/ignorable.h: Likewise.
19054         * lib/unicase/tocasefold.h: Likewise.
19055         * lib/unicase/tolower.h: Likewise.
19056         * lib/unicase/totitle.h: Likewise.
19057         * lib/unicase/toupper.h: Likewise.
19058         * lib/unictype/bidi_of.h: Likewise.
19059         * lib/unictype/blocks.h: Likewise.
19060         * lib/unictype/categ_C.h: Likewise.
19061         * lib/unictype/categ_Cf.h: Likewise.
19062         * lib/unictype/categ_Cn.h: Likewise.
19063         * lib/unictype/categ_L.h: Likewise.
19064         * lib/unictype/categ_Ll.h: Likewise.
19065         * lib/unictype/categ_Lm.h: Likewise.
19066         * lib/unictype/categ_Lo.h: Likewise.
19067         * lib/unictype/categ_Lu.h: Likewise.
19068         * lib/unictype/categ_M.h: Likewise.
19069         * lib/unictype/categ_Mc.h: Likewise.
19070         * lib/unictype/categ_Mn.h: Likewise.
19071         * lib/unictype/categ_N.h: Likewise.
19072         * lib/unictype/categ_Nd.h: Likewise.
19073         * lib/unictype/categ_Nl.h: Likewise.
19074         * lib/unictype/categ_No.h: Likewise.
19075         * lib/unictype/categ_P.h: Likewise.
19076         * lib/unictype/categ_Pd.h: Likewise.
19077         * lib/unictype/categ_Po.h: Likewise.
19078         * lib/unictype/categ_S.h: Likewise.
19079         * lib/unictype/categ_Sc.h: Likewise.
19080         * lib/unictype/categ_So.h: Likewise.
19081         * lib/unictype/categ_of.h: Likewise.
19082         * lib/unictype/combining.h: Likewise.
19083         * lib/unictype/ctype_alnum.h: Likewise.
19084         * lib/unictype/ctype_alpha.h: Likewise.
19085         * lib/unictype/ctype_graph.h: Likewise.
19086         * lib/unictype/ctype_lower.h: Likewise.
19087         * lib/unictype/ctype_print.h: Likewise.
19088         * lib/unictype/ctype_punct.h: Likewise.
19089         * lib/unictype/ctype_upper.h: Likewise.
19090         * lib/unictype/decdigit.h: Likewise.
19091         * lib/unictype/digit.h: Likewise.
19092         * lib/unictype/numeric.h: Likewise.
19093         * lib/unictype/pr_alphabetic.h: Likewise.
19094         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19095         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19096         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19097         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19098         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19099         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19100         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19101         * lib/unictype/pr_combining.h: Likewise.
19102         * lib/unictype/pr_composite.h: Likewise.
19103         * lib/unictype/pr_currency_symbol.h: Likewise.
19104         * lib/unictype/pr_dash.h: Likewise.
19105         * lib/unictype/pr_decimal_digit.h: Likewise.
19106         * lib/unictype/pr_deprecated.h: Likewise.
19107         * lib/unictype/pr_diacritic.h: Likewise.
19108         * lib/unictype/pr_extender.h: Likewise.
19109         * lib/unictype/pr_grapheme_base.h: Likewise.
19110         * lib/unictype/pr_grapheme_extend.h: Likewise.
19111         * lib/unictype/pr_grapheme_link.h: Likewise.
19112         * lib/unictype/pr_id_continue.h: Likewise.
19113         * lib/unictype/pr_id_start.h: Likewise.
19114         * lib/unictype/pr_ideographic.h: Likewise.
19115         * lib/unictype/pr_ignorable_control.h: Likewise.
19116         * lib/unictype/pr_logical_order_exception.h: Likewise.
19117         * lib/unictype/pr_lowercase.h: Likewise.
19118         * lib/unictype/pr_numeric.h: Likewise.
19119         * lib/unictype/pr_other_alphabetic.h: Likewise.
19120         * lib/unictype/pr_punctuation.h: Likewise.
19121         * lib/unictype/pr_sentence_terminal.h: Likewise.
19122         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19123         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19124         * lib/unictype/pr_unified_ideograph.h: Likewise.
19125         * lib/unictype/pr_uppercase.h: Likewise.
19126         * lib/unictype/pr_xid_continue.h: Likewise.
19127         * lib/unictype/pr_xid_start.h: Likewise.
19128         * lib/unictype/pr_zero_width.h: Likewise.
19129         * lib/unictype/scripts.h: Likewise.
19130         * lib/unictype/scripts_byname.gperf: Likewise.
19131         * lib/unictype/sy_java_ident.h: Likewise.
19132         * lib/unigbrk/gbrkprop.h: Likewise.
19133         * lib/unilbrk/lbrkprop1.h: Likewise.
19134         * lib/unilbrk/lbrkprop2.h: Likewise.
19135         * lib/unilbrk/lbrktables.h: Likewise.
19136         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
19137         LBP_CP. Implement rule LB30.
19138         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
19139         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
19140         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
19141         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
19142         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
19143         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
19144         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
19145         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
19146         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
19147         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
19148         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19149         bits instead of 16 bits in the code1 and code2 of each composition
19150         rule.
19151         (uc_composition): Update for Unicode 5.2.0.
19152         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19153         * lib/uninorm/decomposition-table2.h: Likewise.
19154         * lib/uniwbrk/wbrkprop.h: Likewise.
19155         * tests/unicase/test-cased.c: Likewise.
19156         * tests/unicase/test-ignorable.c: Likewise.
19157         * tests/unicase/test-uc_tolower.c: Likewise.
19158         * tests/unicase/test-uc_totitle.c: Likewise.
19159         * tests/unicase/test-uc_toupper.c: Likewise.
19160         * tests/unictype/test-categ_C.c: Likewise.
19161         * tests/unictype/test-categ_Cf.c: Likewise.
19162         * tests/unictype/test-categ_Cn.c: Likewise.
19163         * tests/unictype/test-categ_L.c: Likewise.
19164         * tests/unictype/test-categ_Ll.c: Likewise.
19165         * tests/unictype/test-categ_Lm.c: Likewise.
19166         * tests/unictype/test-categ_Lo.c: Likewise.
19167         * tests/unictype/test-categ_Lu.c: Likewise.
19168         * tests/unictype/test-categ_M.c: Likewise.
19169         * tests/unictype/test-categ_Mc.c: Likewise.
19170         * tests/unictype/test-categ_Mn.c: Likewise.
19171         * tests/unictype/test-categ_N.c: Likewise.
19172         * tests/unictype/test-categ_Nd.c: Likewise.
19173         * tests/unictype/test-categ_Nl.c: Likewise.
19174         * tests/unictype/test-categ_No.c: Likewise.
19175         * tests/unictype/test-categ_P.c: Likewise.
19176         * tests/unictype/test-categ_Pd.c: Likewise.
19177         * tests/unictype/test-categ_Po.c: Likewise.
19178         * tests/unictype/test-categ_S.c: Likewise.
19179         * tests/unictype/test-categ_Sc.c: Likewise.
19180         * tests/unictype/test-categ_So.c: Likewise.
19181         * tests/unictype/test-ctype_alnum.c: Likewise.
19182         * tests/unictype/test-ctype_alpha.c: Likewise.
19183         * tests/unictype/test-ctype_graph.c: Likewise.
19184         * tests/unictype/test-ctype_lower.c: Likewise.
19185         * tests/unictype/test-ctype_print.c: Likewise.
19186         * tests/unictype/test-ctype_punct.c: Likewise.
19187         * tests/unictype/test-ctype_upper.c: Likewise.
19188         * tests/unictype/test-decdigit.h: Likewise.
19189         * tests/unictype/test-digit.h: Likewise.
19190         * tests/unictype/test-numeric.h: Likewise.
19191         * tests/unictype/test-pr_alphabetic.c: Likewise.
19192         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19193         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19194         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19195         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19196         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19197         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19198         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19199         * tests/unictype/test-pr_combining.c: Likewise.
19200         * tests/unictype/test-pr_composite.c: Likewise.
19201         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19202         * tests/unictype/test-pr_dash.c: Likewise.
19203         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19204         * tests/unictype/test-pr_deprecated.c: Likewise.
19205         * tests/unictype/test-pr_diacritic.c: Likewise.
19206         * tests/unictype/test-pr_extender.c: Likewise.
19207         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19208         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19209         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19210         * tests/unictype/test-pr_id_continue.c: Likewise.
19211         * tests/unictype/test-pr_id_start.c: Likewise.
19212         * tests/unictype/test-pr_ideographic.c: Likewise.
19213         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19214         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19215         * tests/unictype/test-pr_lowercase.c: Likewise.
19216         * tests/unictype/test-pr_numeric.c: Likewise.
19217         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19218         * tests/unictype/test-pr_punctuation.c: Likewise.
19219         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19220         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19221         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19222         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19223         * tests/unictype/test-pr_uppercase.c: Likewise.
19224         * tests/unictype/test-pr_xid_continue.c: Likewise.
19225         * tests/unictype/test-pr_xid_start.c: Likewise.
19226         * tests/unictype/test-pr_zero_width.c: Likewise.
19227         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19228         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19229         changed behaviour: line breaking is now disallowed between a letter
19230         or '=' and '('.
19231         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19232         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19233         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19234         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19235         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19236         lib/uniwidth/width.c.
19237         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19238         without comments, but with the original copyright notice.
19239         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19240         changes.
19241         * lib/unictype/categ_Cc.h: Likewise.
19242         * lib/unictype/categ_Co.h: Likewise.
19243         * lib/unictype/categ_Cs.h: Likewise.
19244         * lib/unictype/categ_Lt.h: Likewise.
19245         * lib/unictype/categ_Me.h: Likewise.
19246         * lib/unictype/categ_Pc.h: Likewise.
19247         * lib/unictype/categ_Pe.h: Likewise.
19248         * lib/unictype/categ_Pf.h: Likewise.
19249         * lib/unictype/categ_Pi.h: Likewise.
19250         * lib/unictype/categ_Ps.h: Likewise.
19251         * lib/unictype/categ_Sk.h: Likewise.
19252         * lib/unictype/categ_Sm.h: Likewise.
19253         * lib/unictype/categ_Z.h: Likewise.
19254         * lib/unictype/categ_Zl.h: Likewise.
19255         * lib/unictype/categ_Zp.h: Likewise.
19256         * lib/unictype/categ_Zs.h: Likewise.
19257         * lib/unictype/ctype_blank.h: Likewise.
19258         * lib/unictype/ctype_cntrl.h: Likewise.
19259         * lib/unictype/ctype_digit.h: Likewise.
19260         * lib/unictype/ctype_space.h: Likewise.
19261         * lib/unictype/ctype_xdigit.h: Likewise.
19262         * lib/unictype/mirror.h: Likewise.
19263         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19264         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19265         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19266         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19267         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19268         * lib/unictype/pr_bidi_control.h: Likewise.
19269         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19270         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19271         * lib/unictype/pr_bidi_pdf.h: Likewise.
19272         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19273         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19274         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19275         * lib/unictype/pr_format_control.h: Likewise.
19276         * lib/unictype/pr_hex_digit.h: Likewise.
19277         * lib/unictype/pr_hyphen.h: Likewise.
19278         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19279         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19280         * lib/unictype/pr_iso_control.h: Likewise.
19281         * lib/unictype/pr_join_control.h: Likewise.
19282         * lib/unictype/pr_left_of_pair.h: Likewise.
19283         * lib/unictype/pr_line_separator.h: Likewise.
19284         * lib/unictype/pr_math.h: Likewise.
19285         * lib/unictype/pr_non_break.h: Likewise.
19286         * lib/unictype/pr_not_a_character.h: Likewise.
19287         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19288         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19289         * lib/unictype/pr_other_id_continue.h: Likewise.
19290         * lib/unictype/pr_other_id_start.h: Likewise.
19291         * lib/unictype/pr_other_lowercase.h: Likewise.
19292         * lib/unictype/pr_other_math.h: Likewise.
19293         * lib/unictype/pr_other_uppercase.h: Likewise.
19294         * lib/unictype/pr_paired_punctuation.h: Likewise.
19295         * lib/unictype/pr_paragraph_separator.h: Likewise.
19296         * lib/unictype/pr_pattern_syntax.h: Likewise.
19297         * lib/unictype/pr_pattern_white_space.h: Likewise.
19298         * lib/unictype/pr_private_use.h: Likewise.
19299         * lib/unictype/pr_quotation_mark.h: Likewise.
19300         * lib/unictype/pr_radical.h: Likewise.
19301         * lib/unictype/pr_soft_dotted.h: Likewise.
19302         * lib/unictype/pr_space.h: Likewise.
19303         * lib/unictype/pr_titlecase.h: Likewise.
19304         * lib/unictype/pr_variation_selector.h: Likewise.
19305         * lib/unictype/pr_white_space.h: Likewise.
19306         * lib/unictype/sy_c_ident.h: Likewise.
19307         * lib/unictype/sy_c_whitespace.h: Likewise.
19308         * lib/unictype/sy_java_whitespace.h: Likewise.
19309         * modules/uni*/*: Bump version number of expected libunistring version.
19310         Reported by Simon Josefsson.
19311
19312 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19313
19314         useless-if-before-free: fix typo in --help and make the internal,
19315         automatic version date update process work once again.
19316         --help output contained a NUL character instead of the
19317         backslash-zero that was intended.  Also, the "must lie within
19318         the first 8 lines" line is on line 9, and hence not getting
19319         automatically updated.
19320         * build-aux/useless-if-before-free: Fix the former by adding a
19321         backslash, and the latter by condensing the three lines of what-it-does
19322         to a single line, leaving one line of slack for the future.
19323
19324 2011-01-09  Bruno Haible  <bruno@clisp.org>
19325
19326         uniwidth/width: Fix width of U+1D173..U+1D17A.
19327         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19328         symbolic_width, output_width_property_test): New functions.
19329         (main): Invoke output_nonspacing_property, output_width_property_test.
19330         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19331         U+1D173..U+1D17A.
19332         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19333         1.
19334         * modules/uniwidth/*: Bump version number of expected libunistring
19335         version.
19336         * modules/unilbrk/*: Likewise.
19337
19338 2011-01-08  Bruno Haible  <bruno@clisp.org>
19339
19340         uninorm tests: Preserve copyright of Unicode data file.
19341         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19342         Mention modifications.
19343
19344 2011-01-08  Bruno Haible  <bruno@clisp.org>
19345
19346         gen-uni-tables: Prepare for Unicode 5.2.0.
19347         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19348         (debug_output_lbp, output_lbp): Update.
19349
19350 2011-01-08  Bruno Haible  <bruno@clisp.org>
19351
19352         unilbrk: Clarify gen-uni-tables.c code.
19353         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19354         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19355         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19356
19357 2011-01-07  Bruno Haible  <bruno@clisp.org>
19358
19359         strtod: Restore errno when successfully parsing Infinity or NaN.
19360         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19361         restore the original errno.
19362
19363 2011-01-07  Bruno Haible  <bruno@clisp.org>
19364
19365         remove test: Avoid failure on HP-UX 11.
19366         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19367
19368 2011-01-07  Bruno Haible  <bruno@clisp.org>
19369
19370         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19371         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19372         error code.
19373
19374 2011-01-07  Pádraig Brady <P@draigBrady.com>
19375
19376         ignore-value: fixup comments, and add Eric Blake
19377         as an author since he rewrote the macros.
19378         * lib/ignore-value.h (ignore_value):  State that
19379         we now support aggregates.  Also specify exactly
19380         when the GCC warn_unused_result feature was added.
19381
19382 2011-01-06  Eric Blake  <eblake@redhat.com>
19383
19384         ignore-value: support aggregate types
19385         * lib/ignore-value.h (ignore_value): Provide separate gcc
19386         definition.
19387         * modules/ignore-value-tests: New test module.
19388         * tests/test-ignore-value.c: New test.
19389
19390         maint.mk: improve sc_prohibit_strcmp regex
19391         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19392         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19393         definition of STRNEQ.
19394
19395         signal: work around Haiku issue with SIGBUS
19396         * lib/siglist.h: Add comment.
19397         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19398         strsignal's favoring of SIGSEGV.
19399         * tests/test-signal.c (main): Avoid test failure.
19400         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19401         Reported by Scott McCreary.
19402
19403         maint.mk: add pre-release check to ensure submodule commits are public
19404         * top/maint.mk (public-submodule-commit): New rule.
19405         (submodule-checks): New variable.
19406         (alpha beta stable): Depend on the variable.
19407
19408 2011-01-05  Pádraig Brady <P@draigBrady.com>
19409         and Jim Meyering  <meyering@redhat.com>
19410
19411         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19412         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19413         (ATTRIBUTE_DEPRECATED): Define.
19414         (_ignore_case): New function.
19415         (ignore_value): New macro, to replace the old function.
19416         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19417         * modules/ignore-value (Depends-on): Add stdint.
19418
19419 2011-01-04  Eric Blake  <eblake@redhat.com>
19420
19421         doc: regenerate INSTALL
19422         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19423         @firstparagraphindent support, now that autoconf dropped it.
19424         (INSTALL_PRELUDE): Reinstate old macro.
19425         * doc/install.texi: Resync from autoconf.
19426         * doc/INSTALL: Reflect recent autoconf update.
19427         * doc/INSTALL.ISO: Likewise.
19428         * doc/INSTALL.UTF-8: Likewise.
19429         Reported by Karl Berry.
19430
19431 2011-01-04  Bruce Korb  <address@hidden>
19432
19433         git-version-gen: avoid a sub-shell
19434         * build-aux/git-version-gen: Redirect stderr in `...` via
19435         "exec 2>...", rather than via an added sub-shell.
19436
19437 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19438
19439         git-version-gen: use (...) rather than sh -c '...'
19440         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19441         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19442
19443 2011-01-03  Jim Meyering  <meyering@redhat.com>
19444
19445         git-version-gen: convert leading TABs to spaces
19446         * build-aux/git-version-gen: Expand leading TABs.
19447
19448         git-version-gen: handle failed "git rev-list"
19449         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19450         from git and proceeding as if it had succeeded but printed no SHA1
19451         checksums, suppress the diagnostic and handle the failure.
19452         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19453
19454         git-version-gen: include command name in one more diagnostic
19455         * build-aux/git-version-gen: When the required .tarball-version file
19456         was missing or unreadable, you might see the diagnostic from "cat",
19457         but no trace of the name of the invoking script.  Now, you still see
19458         the diagnostic from cat, but also get one from "git-version-gen: ".
19459         Inspired by a patch from Bruce Korb.
19460
19461         update-copyright: adjust test to match changed code
19462         * tests/test-update-copyright.sh: Change test's expected output
19463         to match new actual output.
19464
19465 2011-01-02  Bruno Haible  <bruno@clisp.org>
19466
19467         getlogin_r: Avoid test failure on HP-UX 11.
19468         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19469         ERANGE when the second argument is zero.
19470         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19471         portability problem.
19472
19473 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19474
19475         * build-aux/update-copyright: doc Simon's changes
19476
19477 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19478
19479         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19480         environment variable.
19481
19482 2011-01-02  Bruno Haible  <bruno@clisp.org>
19483
19484         unigbrk: Avoid gcc warnings.
19485         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19486         unused variable.
19487         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19488         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19489         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19490         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19491         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19492         Change type of first argument to 'const char *'.
19493         (main): Remove unused variable.
19494         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19495         type of first argument to 'const char *'.
19496         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19497         Likewise.
19498         (main): Change type of variable 's'.
19499         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19500         to 'int'.
19501
19502 2011-01-02  Bruno Haible  <bruno@clisp.org>
19503
19504         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19505         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19506         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19507         bug.
19508         * lib/pwrite.c: Undo 2010-12-31 patch.
19509         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19510
19511 2011-01-02  Bruno Haible  <bruno@clisp.org>
19512
19513         pread: Fix test whether it works.
19514         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19515
19516 2011-01-02  Bruno Haible  <bruno@clisp.org>
19517
19518         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19519         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19520         ends in "6". Don't require a specific month name. Try also the locale
19521         names found on HP-UX 11 and Solaris 7.
19522
19523 2011-01-02  Bruno Haible  <bruno@clisp.org>
19524
19525         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19526         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19527         C linkage.
19528         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19529
19530 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19531
19532         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19533         for consistency, since the "cluster" term is not used elsewhere.
19534         * lib/unigbrk.in.h: Update name.
19535         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19536         * lib/unigbrk/u16-grapheme-next.c: Update name.
19537         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19538         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19539         * lib/unigbrk/u32-grapheme-next.c: Update name.
19540         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19541         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19542         * lib/unigbrk/u8-grapheme-next.c: Update name.
19543         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19544         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19545         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19546         Suggested by Bruno Haible.
19547
19548 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19549
19550         Remove module 'u8-grapheme-len' as too redundant with
19551         'u8-grapheme-next'.
19552         * modules/unigbrk/u8-grapheme-len: Delete file.
19553         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19554         * lib/unigbrk.in.h: Remove prototype for deleted function.
19555         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19556         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19557
19558         Remove module 'u16-grapheme-len' as too redundant with
19559         'u16-grapheme-next'.
19560         * modules/unigbrk/u16-grapheme-len: Delete file.
19561         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19562         * lib/unigbrk.in.h: Remove prototype for deleted function.
19563         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19564         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19565
19566         Remove module 'u32-grapheme-len' as too redundant with
19567         'u32-grapheme-next'.
19568         * modules/unigbrk/u32-grapheme-len: Delete file.
19569         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19570         * lib/unigbrk.in.h: Remove prototype for deleted function.
19571         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19572         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19573
19574         Suggested by Bruno Haible.
19575
19576 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19577
19578         * unigbrk.in.h: Fix typo: "ben" => "been".
19579         Reported by Bruno Haible.
19580
19581 2011-01-01  Jim Meyering  <meyering@redhat.com>
19582
19583         maint: update almost all copyright ranges to include 2011
19584         Run the new "make update-copyright" rule.
19585
19586 2011-01-01  Jim Meyering  <meyering@redhat.com>
19587
19588         maint: update-copyright: exempt doc/INSTALL*
19589         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19590         since they are generated.  Suggested by Bruno Haible.
19591
19592 2011-01-01  Jim Meyering  <meyering@redhat.com>
19593
19594         maint: refine the update-copyright rule
19595         * Makefile (update-copyright): Also exclude any file that includes
19596         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19597         code that merely generates the comment.
19598
19599 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19600
19601         New module 'u8-grapheme-len'.
19602         * modules/unigbrk/u8-grapheme-len: New file.
19603         * modules/unigbrk/u8-grapheme-len-tests: New file.
19604         * lib/unigbrk.in.h: Add prototype for new function.
19605         * lib/unigbrk/u8-grapheme-len.c: New file.
19606         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19607
19608         New module 'u16-grapheme-len'.
19609         * modules/unigbrk/u16-grapheme-len: New file.
19610         * modules/unigbrk/u16-grapheme-len-tests: New file.
19611         * lib/unigbrk.in.h: Add prototype for new function.
19612         * lib/unigbrk/u16-grapheme-len.c: New file.
19613         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19614
19615         New module 'u32-grapheme-len'.
19616         * modules/unigbrk/u32-grapheme-len: New file.
19617         * modules/unigbrk/u32-grapheme-len-tests: New file.
19618         * lib/unigbrk.in.h: Add prototype for new function.
19619         * lib/unigbrk/u32-grapheme-len.c: New file.
19620         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19621
19622         New module 'u8-grapheme-next'.
19623         * modules/unigbrk/u8-grapheme-next: New file.
19624         * modules/unigbrk/u8-grapheme-next-tests: New file.
19625         * lib/unigbrk.in.h: Add prototype for new function.
19626         * lib/unigbrk/u8-grapheme-next.c: New file.
19627         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19628
19629         New module 'u16-grapheme-next'.
19630         * modules/unigbrk/u16-grapheme-next: New file.
19631         * modules/unigbrk/u16-grapheme-next-tests: New file.
19632         * lib/unigbrk.in.h: Add prototype for new function.
19633         * lib/unigbrk/u16-grapheme-next.c: New file.
19634         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19635
19636         New module 'u32-grapheme-next'.
19637         * modules/unigbrk/u32-grapheme-next: New file.
19638         * modules/unigbrk/u32-grapheme-next-tests: New file.
19639         * lib/unigbrk.in.h: Add prototype for new function.
19640         * lib/unigbrk/u32-grapheme-next.c: New file.
19641         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19642
19643         New module 'u8-grapheme-prev'.
19644         * modules/unigbrk/u8-grapheme-prev: New file.
19645         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19646         * lib/unigbrk.in.h: Add prototype for new function.
19647         * lib/unigbrk/u8-grapheme-prev.c: New file.
19648         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19649
19650         New module 'u16-grapheme-prev'.
19651         * modules/unigbrk/u16-grapheme-prev: New file.
19652         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19653         * lib/unigbrk.in.h: Add prototype for new function.
19654         * lib/unigbrk/u16-grapheme-prev.c: New file.
19655         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19656
19657         New module 'u32-grapheme-prev'.
19658         * modules/unigbrk/u32-grapheme-prev: New file.
19659         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19660         * lib/unigbrk.in.h: Add prototype for new function.
19661         * lib/unigbrk/u32-grapheme-prev.c: New file.
19662         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19663
19664         New module 'u8-grapheme-breaks'.
19665         * modules/unigbrk/u8-grapheme-breaks: New file.
19666         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19667         * lib/unigbrk.in.h: Add prototype for new function.
19668         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19669         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19670
19671         New module 'u16-grapheme-breaks'.
19672         * modules/unigbrk/u16-grapheme-breaks: New file.
19673         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19674         * lib/unigbrk.in.h: Add prototype for new function.
19675         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19676         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19677
19678         New module 'u32-grapheme-breaks'.
19679         * modules/unigbrk/u32-grapheme-breaks: New file.
19680         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19681         * lib/unigbrk.in.h: Add prototype for new function.
19682         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19683         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19684
19685         New module 'ulc-grapheme-breaks'.
19686         * modules/unigbrk/ulc-grapheme-breaks: New file.
19687         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19688         * m4/locale-ar.m4: New file.
19689         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19690         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19691         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19692
19693 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19694
19695         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19696         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19697         modified how this file was generated before I initially submitted
19698         the module, but failed to regenerate it.  This meant that several
19699         of the level2 entries were wrong.
19700         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19701         Remove the division-by-2 that is folded into the table now that
19702         gbrkprop.h has been regenerated properly.  Now -1 entries are
19703         handled correctly.
19704
19705         New module 'unigbrk/uc-gbrk-prop-tests'.
19706         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19707         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19708         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19709         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19710
19711 2011-01-01  Bruno Haible  <bruno@clisp.org>
19712
19713         Avoid use of hexadecimal escapes.
19714         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19715         instead of hexadecimal escapes.
19716
19717 2011-01-01  Jim Meyering  <meyering@redhat.com>
19718
19719         maint: new rule to update copyright year ranges
19720         * Makefile (update-copyright): New rule.
19721
19722         maint: indent with TABs in Makefile
19723         * Makefile: Expand leading sequences of spaces to TABs
19724
19725         version-etc: update the copyright year it reports
19726         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19727
19728 2010-12-31  Bruno Haible  <bruno@clisp.org>
19729
19730         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19731         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19732         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19733         zero.
19734
19735 2010-12-31  Bruno Haible  <bruno@clisp.org>
19736
19737         pwrite: Work around HP-UX 11.11 bug.
19738         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19739         works and set REPLACE_PWRITE if not.
19740         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19741         function.
19742         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19743
19744 2010-12-31  Bruno Haible  <bruno@clisp.org>
19745
19746         pread: Work around HP-UX 11 bugs.
19747         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19748         and set REPLACE_PREAD if not.
19749         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19750
19751 2010-12-31  Eric Blake  <eblake@redhat.com>
19752
19753         nl_langinfo: fix YESEXPR on Irix 6.5
19754         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19755         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19756         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19757         it.
19758
19759 2010-12-31  Bruno Haible  <bruno@clisp.org>
19760
19761         iconv: Document HP-UX 11 bug.
19762         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19763
19764 2010-12-31  Bruno Haible  <bruno@clisp.org>
19765
19766         ldexpl: Fix link error on HP-UX 11.
19767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19768         LDEXPL_LIBM, using $ISNANL_LIBM.
19769
19770 2010-12-31  Eric Blake  <eblake@redhat.com>
19771
19772         ftello: avoid compilation failure with SunStudio c89
19773         * lib/ftello.c (ftello): Use lseek, not llseek.
19774
19775         tests: avoid failing coreutils tests on cygwin
19776         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19777         (create_exe_shims_): Return 0 when skipping.
19778
19779 2010-12-31  Bruno Haible  <bruno@clisp.org>
19780
19781         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19782         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19783
19784 2010-12-31  Bruno Haible  <bruno@clisp.org>
19785
19786         waitpid: Fix link error in C++ mode.
19787         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19788
19789 2010-12-31  Bruno Haible  <bruno@clisp.org>
19790
19791         isnan: Use GCC built-ins when possible.
19792         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19793         __builtin_isnan.
19794         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19795         (isnan): Define using GCC built-ins for GCC >= 4.0.
19796
19797 2010-12-31  Bruno Haible  <bruno@clisp.org>
19798
19799         isnand: Fix mistake.
19800         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19801         __builtin_isnand.
19802
19803 2010-12-31  Bruno Haible  <bruno@clisp.org>
19804
19805         open: Avoid C++ error on HP-UX 11.
19806         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19807
19808 2010-12-31  Bruno Haible  <bruno@clisp.org>
19809
19810         time_r: Add missing declarations on HP-UX 11.
19811         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19812         instead of HAVE_LOCALTIME_R.
19813         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19814         HAVE_LOCALTIME_R always.
19815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19816         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19817         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19818         HAVE_LOCALTIME_R.
19819         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19820         * doc/posix-functions/localtime_r.texi: Likewise.
19821
19822 2010-12-29  Eric Blake  <eblake@redhat.com>
19823
19824         mountlist: tweak previous commit
19825         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19826         Reported by Paul Eggert.
19827
19828         mountlist: fix local drive detection on cygwin
19829         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19830         that works for cygwin.
19831
19832 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19833
19834         ftoastr, snprintf: ftoastr + snprintf module
19835         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19836         since the snprintf module now should be good enough here.
19837         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19838         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19839         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19840         GNULIB_SNPRINTF only for the test directory, and the latter
19841         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19842         seems to suffice by itself.
19843
19844 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         alloca: one step towards thread-safety
19847         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19848         need for a static variable.  All callers changed.  This does not
19849         make the alloca replacement thread-safe, but it's one step.
19850
19851         tests: minor indenting change
19852         * tests/init.sh: Sync from coreutils housekeeping patch
19853         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19854         to keep lines within 80 columns.
19855
19856 2010-12-28  Jim Meyering  <meyering@redhat.com>
19857
19858         regex: don't infloop on persistent failing calloc
19859         * lib/regexec.c (build_trtable): Return failure indication upon
19860         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19861         In glibc, this was fixed for version 2.13:
19862         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19863
19864 2010-12-28  Bruno Haible  <bruno@clisp.org>
19865             Paul Eggert <eggert@cs.ucla.edu>
19866
19867         linkat: Make implementation robust against system behaviour variations.
19868         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19869         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19870         way, and to -2 if it needs a generic runtime test.
19871         * lib/linkat.c (solaris_optimized_link_immediate,
19872         solaris_optimized_link_follow): New functions.
19873         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19874         (check_same_link): Use it.
19875
19876 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19877
19878         New module 'unigbrk/base'.
19879         * modules/unigbrk/base: New file.
19880         * lib/unigbrk.in.h: New file.
19881
19882         New module 'unigbrk/uc-gbrk-prop'.
19883         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19884         * modules/unigbrk/uc-gbrk-prop: New file.
19885         * lib/unigbrk/gbrkprop.h: New file.
19886         * lib/unigbrk/uc-gbrk-prop.c: New file.
19887
19888         New module 'unigbrk/uc-is-grapheme-break'.
19889         * modules/unigbrk/uc-is-grapheme-break: New file.
19890         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19891         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19892         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19893         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19894         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19895
19896         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19897
19898 2010-12-27  Bruno Haible  <bruno@clisp.org>
19899
19900         linkat test: Avoid failure on Solaris 11 2010-11.
19901         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19902
19903 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19904
19905         utimens: work around glibc rounding bug on more platforms
19906         * lib/utimens.c (fdutimens): Work around rounding bug even if
19907         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19908         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19909
19910 2010-12-27  Bruno Haible  <bruno@clisp.org>
19911
19912         select tests: Improve comments.
19913         * tests/test-select.c (do_select): Add comments.
19914
19915 2010-12-27  Bruno Haible  <bruno@clisp.org>
19916
19917         select tests: Safer way of handling timeout.
19918         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19919         at every invocation.
19920
19921 2010-12-27  Bruno Haible  <bruno@clisp.org>
19922
19923         select tests: Use 'bool' where appropriate.
19924         * tests/test-select.c (connect_to_socket): Change argument type to
19925         'bool'.
19926
19927 2010-12-27  Bruno Haible  <bruno@clisp.org>
19928
19929         select tests: Use existing modules.
19930         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19931         (configure.ac): Don't test for unistd.h.
19932         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19933         declared in <unistd.h>.
19934
19935 2010-12-27  Bruno Haible  <bruno@clisp.org>
19936
19937         mbrtowc: Work around a Solaris 7 bug.
19938         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19939         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19940         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19941         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19942         MBRTOWC_NULL_ARG1_BUG.
19943         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19944         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19945         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19946         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19947
19948 2010-12-27  Jim Meyering  <meyering@redhat.com>
19949
19950         read-file.c: tweak syntax
19951         * lib/read-file.c (fread_file): Remove space after "*" in function
19952         definitions.
19953
19954 2010-12-27  Bruno Haible  <bruno@clisp.org>
19955
19956         times test: Avoid gcc warnings on OSF/1.
19957         * tests/test-times.c (main): Cast printf arguments from clock_t to
19958         'long int'.
19959
19960 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19961
19962         utimens: work around glibc rounding bug on older Linux kernels
19963         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19964         on Linux with a glibc whose utimes might not work, then work
19965         around a longstanding glibc bug involving rounding rather than
19966         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19968
19969 2010-12-26  Bruno Haible  <bruno@clisp.org>
19970
19971         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19972         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19973         _GL_CXXALIAS_SYS.
19974         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19975
19976 2010-12-26  Bruno Haible  <bruno@clisp.org>
19977
19978         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19979         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19980         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19981         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19982         looking for the declaration.
19983         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19984         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19985         problem.
19986         * doc/posix-functions/inet_pton.texi: Likewise.
19987
19988 2010-12-26  Bruno Haible  <bruno@clisp.org>
19989
19990         arpa_inet: Use the common idioms with C++ support.
19991         * lib/arpa_inet.in.h: Include c++defs.h.
19992         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19993         support.
19994         * modules/arpa_inet (Depends-on): Add c++defs.
19995         (Makefile.am): Substitute the contents of c++defs.h.
19996         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19997         * modules/arpa_inet-c++-tests: New file.
19998         * tests/test-arpa_inet-c++.cc: New file.
19999
20000 2010-12-25  Bruno Haible  <bruno@clisp.org>
20001
20002         Fix more C++ link errors on Solaris 8.
20003         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
20004         $(LIB_EACCESS).
20005         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
20006         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
20007         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
20008         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
20009         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
20010
20011 2010-12-25  Bruno Haible  <bruno@clisp.org>
20012
20013         printf-posix: Fix link error when a non-GCC compiler is used.
20014         * lib/stdio.in.h (printf): When not using GCC, override printf
20015         correctly.
20016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20017
20018 2010-12-25  Bruno Haible  <bruno@clisp.org>
20019
20020         strerror_r-posix: Update doc.
20021         * doc/posix-functions/strerror_r.texi: Update doc about the return
20022         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
20023
20024 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20025
20026         utimens: simplify the logic of the previous change
20027         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
20028         This should not affect whether the test succeeds or fails.
20029
20030         utimens: configure better on hosts with NFS clock skew
20031         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
20032         uses the clock of the local host.  It might use the clock of the
20033         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
20034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20035
20036 2010-12-25  Bruno Haible  <bruno@clisp.org>
20037
20038         ptsname test: Avoid failure on Solaris.
20039         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
20040         open a pseudo-terminal; don't use BSD-style ptys.
20041         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
20042
20043 2010-12-25  Bruno Haible  <bruno@clisp.org>
20044
20045         ptsname: Avoid ERANGE failure on some systems.
20046         * lib/ptsname.c (buffer): Increase size.
20047
20048 2010-12-25  Bruno Haible  <bruno@clisp.org>
20049
20050         rename, renameat: Avoid test failures at NFS mounted locations.
20051         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
20052         so that subsequent mkdir calls succeed.
20053
20054 2010-12-25  Bruno Haible  <bruno@clisp.org>
20055
20056         iswblank: Fix C++ link error on Solaris 8.
20057         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
20058         _GL_FUNCDECL_SYS.
20059
20060 2010-12-25  Bruno Haible  <bruno@clisp.org>
20061
20062         unistd: Fix C++ link error on Solaris 8.
20063         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
20064
20065 2010-12-25  Bruno Haible  <bruno@clisp.org>
20066
20067         readlink doc: Mention an old glibc bug.
20068         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
20069
20070 2010-12-25  Bruno Haible  <bruno@clisp.org>
20071
20072         fcntl-h: Fix for use of C++ on glibc systems.
20073         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20074         also on glibc systems in C++ mode.
20075         Reported by Gary V. Vaughan <gary@gnu.org>.
20076
20077 2010-12-25  Bruno Haible  <bruno@clisp.org>
20078
20079         roundl-ieee: Make it work on OSF/1 5.1 with cc.
20080         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
20081
20082 2010-12-25  Bruno Haible  <bruno@clisp.org>
20083
20084         truncl-ieee: Make it work on OSF/1 5.1 with cc.
20085         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
20086         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
20087         test whether truncl works according to ISO C 99 with IEC 60559.
20088         * m4/truncl-ieee.m4: New file.
20089         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
20090         m4/signbit.m4.
20091         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
20092
20093 2010-12-25  Bruno Haible  <bruno@clisp.org>
20094
20095         ceill-ieee: Make it work on OSF/1 5.1 with cc.
20096         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
20097         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
20098         test whether ceill works according to ISO C 99 with IEC 60559.
20099         * m4/ceill-ieee.m4: New file.
20100         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
20101         m4/signbit.m4.
20102         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
20103
20104 2010-12-25  Bruno Haible  <bruno@clisp.org>
20105
20106         Ensure all prerequisites of <wchar.h> are included.
20107         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
20108         before <wchar.h>.
20109         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20110         gl_MBRLEN_NUL_RETVAL): Likewise.
20111         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20112         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
20113         AC_FUNC_MBRTOWC): Likewise.
20114         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20115         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20117         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20118         Likewise.
20119         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20120         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
20121         (gl_WCHAR_H): Improve comments.
20122         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20123
20124 2010-12-25  Bruno Haible  <bruno@clisp.org>
20125
20126         strtok_r: Fix C syntax error in autoconf macro.
20127         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
20128         characters in test program.
20129
20130 2010-12-24  Bruno Haible  <bruno@clisp.org>
20131
20132         ceil, trunc, round: Fix gcc warnings.
20133         * lib/ceil.c (MIN): Undefine before redefining.
20134         * lib/trunc.c (MIN): Likewise.
20135         * lib/round.c (MIN): Likewise.
20136         Include <math.h> first.
20137
20138 2010-12-24  Bruno Haible  <bruno@clisp.org>
20139
20140         select tests: Avoid failures on OSF/1 5.1.
20141         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
20142         failure of closing the last socket; it may fail with ECONNRESET.
20143
20144 2010-12-24  Eric Blake  <eblake@redhat.com>
20145
20146         stdint: avoid HP-UX 10.20 preprocessor bug
20147         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
20148         than #if.
20149         * tests/test-floor2.c (main): Likewise.
20150         Reported by Peter O'Gorman.
20151
20152         pipe: make obsoletion transition easier
20153         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20154         * modules/pipe (Files): Include revived file.
20155         (Include): Drop reference, to mirror getdate's behavior.
20156
20157 2010-12-24  Bruno Haible  <bruno@clisp.org>
20158
20159         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20160         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20161         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20163
20164 2010-12-24  Bruno Haible  <bruno@clisp.org>
20165
20166         gethostname: Ensure declaration on NonStop Kernel.
20167         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20169
20170 2010-12-24  Bruno Haible  <bruno@clisp.org>
20171
20172         sys_select: Ensure all necessary types on NonStop Kernel.
20173         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20174         include <sys/time.h>.
20175         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20176         NonStop Kernel.
20177         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20178
20179 2010-12-24  Bruno Haible  <bruno@clisp.org>
20180
20181         sys_select: Remove unneeded include.
20182         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20183         have <sys/select.h>.
20184
20185 2010-12-24  Bruno Haible  <bruno@clisp.org>
20186
20187         gethostname: Provide a fallback for HOST_NAME_MAX.
20188         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20189         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20190         instead.
20191         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20192
20193 2010-12-24  Bruno Haible  <bruno@clisp.org>
20194
20195         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20196         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20197         (SA_RESTART): Likewise.
20198         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20199
20200 2010-12-24  Bruno Haible  <bruno@clisp.org>
20201
20202         signal: Define NSIG.
20203         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20204         * tests/test-signal.c (nsig): New variable.
20205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20206
20207 2010-12-24  Bruno Haible  <bruno@clisp.org>
20208
20209         rename, renameat: Avoid test failures on OSF/1 5.1.
20210         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20211         alternative error codes.
20212         * tests/test-renameat.c (main): Likewise.
20213
20214 2010-12-24  Bruno Haible  <bruno@clisp.org>
20215
20216         *printf: Detect large precisions bug on Solaris 10/SPARC.
20217         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20218         by Paul Eggert.
20219         * tests/test-snprintf-posix.h (test_function): Add this test code here
20220         too.
20221         * tests/test-sprintf-posix.h (test_function): Likewise.
20222         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20223         * tests/test-vasprintf-posix.c (test_function): Likewise.
20224         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20225         around by gnulib.
20226         * doc/posix-functions/printf.texi: Likewise.
20227         * doc/posix-functions/snprintf.texi: Likewise.
20228         * doc/posix-functions/sprintf.texi: Likewise.
20229         * doc/posix-functions/vfprintf.texi: Likewise.
20230         * doc/posix-functions/vprintf.texi: Likewise.
20231         * doc/posix-functions/vsnprintf.texi: Likewise.
20232         * doc/posix-functions/vsprintf.texi: Likewise.
20233         * doc/posix-functions/dprintf.texi: Undo last commit.
20234         * doc/posix-functions/vdprintf.texi: Likewise.
20235
20236 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20237
20238         tests: port test-fdutimensat.c to Solaris 8
20239         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20240         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20241         On Solaris 8, it fails with errno == ENOSYS, because there is no
20242         futimens (so it can't use the fd), and there is no lutimens (so it
20243         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20244
20245         vsnprintf: make more consistent with snprintf; doc fixes
20246
20247         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20248         the byte count return problem was promoted from the snprintf-posix
20249         to the snprintf module.
20250         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20251         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20252         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20253         * tests/test-snprintf.c (main): Check the byte count returned.
20254         * tests/test-vsnprintf.c (main): Likewise.
20255
20256 2010-12-23  Eric Blake  <eblake@redhat.com>
20257
20258         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20259         * modules/sigpipe (License): Relax license.
20260
20261 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         doc: document Solaris printf bug with large float precisions
20264         * doc/posix-functions/dprintf.texi (dprintf):
20265         * doc/posix-functions/fprintf.texi (fprintf):
20266         * doc/posix-functions/printf.texi (printf):
20267         * doc/posix-functions/snprintf.texi (snprintf):
20268         * doc/posix-functions/sprintf.texi (sprintf):
20269         * doc/posix-functions/vdprintf.texi (vdprintf):
20270         * doc/posix-functions/vfprintf.texi (vfprintf):
20271         * doc/posix-functions/vprintf.texi (vprintf):
20272         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20273         * doc/posix-functions/vsprintf.texi (vsprintf):
20274         Mention that these functions mishandle large floating point
20275         precisions on Solaris 10.  The same bug is also present in Solaris
20276         8, and I assume earlier.  This causes "cd gnulib-tests; make
20277         check" to fail on Solaris 8 (and I assume, later) when building
20278         the latest coreutils, in test-vasprintf-posix's call to
20279         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20280         the wide flavors (e.g., wprintf) so this patch just updates the
20281         documentation for the narrow ones.
20282
20283         test-posixtm.c: add two tests
20284         * tests/test-posixtm.c: Add two tests, to highlight the
20285         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20286         around this bug; this is merely to document it.
20287
20288 2010-12-22  Bruno Haible  <bruno@clisp.org>
20289
20290         getlogin_r: Work around portability problem on OSF/1.
20291         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20292         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20293         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20294         test for a truncated result.
20295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20296         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20297         * modules/getlogin_r (Depends-on): Add memchr.
20298         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20299
20300 2010-12-22  Bruno Haible  <bruno@clisp.org>
20301
20302         ptsname: Avoid test failure on OSF/1 5.1.
20303         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20304         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20305         (same_slave): New function.
20306         (main): Use it to compare ptsname's result with the expected file name.
20307
20308 2010-12-22  Bruno Haible  <bruno@clisp.org>
20309
20310         Port extended stdio modules to HP NonStop Kernel.
20311         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20312         macros.
20313         * lib/fbufmode.c: Update comments.
20314         * lib/fflush.c: Likewise.
20315         * lib/fpurge.c: Likewise.
20316         * lib/freadable.c: Likewise.
20317         * lib/freadahead.c: Likewise.
20318         * lib/freading.c: Likewise.
20319         * lib/freadptr.c: Likewise.
20320         * lib/freadseek.c: Likewise.
20321         * lib/fseeko.c: Likewise.
20322         * lib/fseterr.c: Likewise.
20323         * lib/fwritable.c: Likewise.
20324         * lib/fwriting.c: Likewise.
20325         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20326
20327 2010-12-22  Bruno Haible  <bruno@clisp.org>
20328
20329         ttyname_r: Work around bug on OSF/1 5.1.
20330         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20331         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20332         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20333         present.
20334         * lib/ttyname_r.c (ttyname_r): Update comments.
20335
20336 2010-12-22  Bruno Haible  <bruno@clisp.org>
20337
20338         round: Implement result sign according to IEEE 754.
20339         * lib/round.c (MIN, MINUS_ZERO): New macros.
20340         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20341         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20342         * tests/test-round-ieee.c (main): Likewise.
20343         * tests/test-roundl-ieee.c (main): Likewise.
20344
20345         trunc: Implement result sign according to IEEE 754.
20346         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20347         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20348         * tests/test-trunc2.c: Include minus-zero.h.
20349         (MINUS_ZERO): New macro.
20350         (trunc_reference): Keep in sync with lib/trunc.c.
20351         * tests/test-truncf2.c: Include minus-zero.h.
20352         (MINUS_ZERO): New macro.
20353         (truncf_reference): Keep in sync with lib/trunc.c.
20354         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20355         * tests/test-trunc-ieee.c (main): Likewise.
20356         * tests/test-truncl-ieee.c (main): Likewise.
20357
20358         ceil: Implement result sign according to IEEE 754.
20359         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20360         (FUNC): Return -0.0 for -1 < x < 0.
20361         * tests/test-ceil2.c: Include minus-zero.h.
20362         (MINUS_ZERO): New macro.
20363         (ceil_reference): Keep in sync with lib/ceil.c.
20364         * tests/test-ceilf2.c: Include minus-zero.h.
20365         (MINUS_ZERO): New macro.
20366         (ceilf_reference): Keep in sync with lib/ceil.c.
20367         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20368         * tests/test-ceil-ieee.c (main): Likewise.
20369         * tests/test-ceill-ieee.c (main): Likewise.
20370
20371         floor: Implement result sign according to IEEE 754.
20372         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20373         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20374         * tests/test-floorf2.c (floorf_reference): Likewise.
20375         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20376         * tests/test-floor-ieee.c (main): Likewise.
20377         * tests/test-floorl-ieee.c (main): Likewise.
20378
20379 2010-12-22  Bruno Haible  <bruno@clisp.org>
20380
20381         getaddrinfo: Update doc.
20382         * doc/posix-functions/gai_strerror.texi: Return type is also different
20383         on AIX and HP-UX.
20384
20385 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20386
20387         getaddrinfo, inet_ntop: Update doc for Solaris.
20388         * doc/posix-functions/gai_strerror.texi: Return type is also an
20389         issue on Solaris 9 and earlier.
20390         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20391         on Solaris 10 and earlier.
20392
20393 2010-12-21  Bruno Haible  <bruno@clisp.org>
20394
20395         New module 'roundl-ieee'.
20396         * modules/roundl-ieee: New file.
20397         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20398         test whether roundl works according to ISO C 99 with IEC 60559.
20399         * m4/roundl-ieee.m4: New file.
20400         * modules/roundl-ieee-tests: New file.
20401         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20402         * tests/test-roundl.c (main): Remove signbit tests.
20403         * modules/roundl-tests (Depends-on): Remove signbit.
20404         * doc/posix-functions/roundl.texi: Mention the new module.
20405
20406 2010-12-21  Bruno Haible  <bruno@clisp.org>
20407
20408         New module 'truncl-ieee'.
20409         * modules/truncl-ieee: New file.
20410         * modules/truncl-ieee-tests: New file.
20411         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20412         * tests/test-truncl.c (main): Remove signbit tests.
20413         * modules/truncl-tests (Depends-on): Remove signbit.
20414         * doc/posix-functions/truncl.texi: Mention the new module.
20415
20416 2010-12-21  Bruno Haible  <bruno@clisp.org>
20417
20418         New module 'ceill-ieee'.
20419         * modules/ceill-ieee: New file.
20420         * modules/ceill-ieee-tests: New file.
20421         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20422         * tests/test-ceill.c (main): Remove signbit tests.
20423         * modules/ceill-tests (Depends-on): Remove signbit.
20424         * doc/posix-functions/ceill.texi: Mention the new module.
20425
20426 2010-12-21  Bruno Haible  <bruno@clisp.org>
20427
20428         New module 'floorl-ieee'.
20429         * modules/floorl-ieee: New file.
20430         * modules/floorl-ieee-tests: New file.
20431         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20432         * tests/test-floorl.c (main): Remove signbit tests.
20433         * modules/floorl-tests (Depends-on): Remove signbit.
20434         * doc/posix-functions/floorl.texi: Mention the new module.
20435
20436 2010-12-21  Bruno Haible  <bruno@clisp.org>
20437
20438         New module 'round-ieee'.
20439         * modules/round-ieee: New file.
20440         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20441         whether round works according to ISO C 99 with IEC 60559.
20442         * m4/round-ieee.m4: New file.
20443         * modules/round-ieee-tests: New file.
20444         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20445         * tests/test-round1.c (main): Remove signbit tests.
20446         * modules/round-tests (Depends-on): Remove 'signbit'.
20447         * doc/posix-functions/round.texi: Mention the new module.
20448
20449 2010-12-21  Bruno Haible  <bruno@clisp.org>
20450
20451         New module 'trunc-ieee'.
20452         * modules/trunc-ieee: New file.
20453         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20454         whether trunc works according to ISO C 99 with IEC 60559.
20455         * m4/trunc-ieee.m4: New file.
20456         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20458         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20459         * modules/trunc-ieee-tests: New file.
20460         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20461         * tests/test-trunc1.c (main): Remove signbit tests.
20462         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20463         * doc/posix-functions/trunc.texi: Mention the new module.
20464
20465 2010-12-21  Bruno Haible  <bruno@clisp.org>
20466
20467         New module 'ceil-ieee'.
20468         * modules/ceil-ieee: New file.
20469         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20470         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20471         ISO C 99 with IEC 60559.
20472         * m4/ceil-ieee.m4: New file.
20473         * modules/ceil (Files): Add lib/ceil.c.
20474         (Depends-on): Add 'float'.
20475         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20476         * lib/math.in.h (ceil): New declaration.
20477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20478         REPLACE_CEIL.
20479         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20480         * modules/ceil-ieee-tests: New file.
20481         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20482         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20483         * doc/posix-functions/ceil.texi: Mention the new module.
20484
20485 2010-12-21  Bruno Haible  <bruno@clisp.org>
20486
20487         New module 'floor-ieee'.
20488         * modules/floor-ieee: New file.
20489         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20490         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20491         ISO C 99 with IEC 60559.
20492         * m4/floor-ieee.m4: New file.
20493         * modules/floor (Files): Add lib/floor.c.
20494         (Depends-on): Add 'float'.
20495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20496         * lib/math.in.h (floor): New declaration.
20497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20498         REPLACE_FLOOR.
20499         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20500         * modules/floor-ieee-tests: New file.
20501         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20502         * tests/test-math-c++.cc: Check the signature of 'floor'.
20503         * doc/posix-functions/floor.texi: Mention the new module.
20504
20505 2010-12-21  Bruno Haible  <bruno@clisp.org>
20506
20507         New module 'roundf-ieee'.
20508         * modules/roundf-ieee: New file.
20509         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20510         test whether roundf works according to ISO C 99 with IEC 60559.
20511         * m4/roundf-ieee.m4: New file.
20512         * modules/roundf-ieee-tests: New file.
20513         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20514         * tests/test-roundf1.c (main): Remove signbit tests.
20515         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20516         * doc/posix-functions/roundf.texi: Mention the new module.
20517
20518 2010-12-21  Bruno Haible  <bruno@clisp.org>
20519
20520         New module 'truncf-ieee'.
20521         * modules/truncf-ieee: New file.
20522         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20523         test whether truncf works according to ISO C 99 with IEC 60559.
20524         * m4/truncf-ieee.m4: New file.
20525         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20527         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20528         * modules/truncf-ieee-tests: New file.
20529         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20530         * tests/test-truncf1.c (main): Remove signbit tests.
20531         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20532         * doc/posix-functions/truncf.texi: Mention the new module.
20533
20534 2010-12-21  Bruno Haible  <bruno@clisp.org>
20535
20536         New module 'ceilf-ieee'.
20537         * modules/ceilf-ieee: New file.
20538         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20539         test whether ceilf works according to ISO C 99 with IEC 60559.
20540         * m4/ceilf-ieee.m4: New file.
20541         * modules/ceilf-ieee-tests: New file.
20542         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20543         * tests/test-ceilf1.c (main): Remove signbit tests.
20544         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20545         * doc/posix-functions/ceilf.texi: Mention the new module.
20546
20547 2010-12-21  Bruno Haible  <bruno@clisp.org>
20548
20549         New module 'floorf-ieee'.
20550         * modules/floorf-ieee: New file.
20551         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20552         test whether floorf works according to ISO C 99 with IEC 60559.
20553         * m4/floorf-ieee.m4: New file.
20554         * modules/floorf-ieee-tests: New file.
20555         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20556         * tests/test-floorf1.c (main): Remove signbit tests.
20557         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20558         * doc/posix-functions/floorf.texi: Mention the new module.
20559
20560 2010-12-21  Bruno Haible  <bruno@clisp.org>
20561
20562         Support for minus zero in autoconf macros.
20563         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20564         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20565         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20566         * tests/minus-zero.h: Update comments.
20567
20568 2010-12-21  Bruno Haible  <bruno@clisp.org>
20569
20570         Tests for module 'ceil'.
20571         * modules/ceil-tests: New file.
20572         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20573         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20574
20575 2010-12-21  Bruno Haible  <bruno@clisp.org>
20576
20577         Tests for module 'floor'.
20578         * modules/floor-tests: New file.
20579         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20580         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20581
20582 2010-12-21  Bruno Haible  <bruno@clisp.org>
20583
20584         math: Fix indentation.
20585         * lib/math.in.h (floorf): Fix indentation.
20586
20587 2010-12-21  Bruno Haible  <bruno@clisp.org>
20588
20589         Fix cross-compilation guesses on Solaris.
20590         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20591         not match "solaris2.10".
20592         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20593         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20594         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20595
20596 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20597
20598         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20599         This fixes a problem observed with the latest coreutils snapshot
20600         that caused a test to fail on Solaris 8.  src/csplit.c's call
20601         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20602         earlier, instead of returning the number of bytes that would have
20603         been generated; this causes csplit to incorrectly report memory
20604         exhaustion.
20605         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20606         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20607         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20608         comments to match.
20609         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20610         Fix typo in matching older versions of Solaris: "solaris2.10"
20611         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20612         only for guessing while cross-compiling.
20613         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20614
20615 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20616
20617         ftoastr: fix comment again
20618         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20620         Also, simplify example a bit by using flags = 0.
20621
20622 2010-12-20  Bruno Haible  <bruno@clisp.org>
20623
20624         round*, trunc*: Update documentation regarding glibc.
20625         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20626         * doc/posix-functions/round.texi: Likewise.
20627         * doc/posix-functions/roundl.texi: Likewise.
20628         * doc/posix-functions/truncf.texi: Likewise.
20629         * doc/posix-functions/trunc.texi: Likewise.
20630         * doc/posix-functions/truncl.texi: Likewise.
20631
20632 2010-12-20  Bruno Haible  <bruno@clisp.org>
20633
20634         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20635         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20636         * doc/posix-functions/round.texi: Likewise.
20637         * doc/posix-functions/roundl.texi: Likewise.
20638
20639 2010-12-20  Bruno Haible  <bruno@clisp.org>
20640
20641         ttyname_r: Add missing declaration on HP-UX 11.
20642         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20643         HAVE_TTYNAME_R.
20644         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20645         declared. Set HAVE_TTYNAME_R always.
20646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20647         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20648         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20649         HAVE_TTYNAME_R.
20650         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20651
20652 2010-12-20  Bruno Haible  <bruno@clisp.org>
20653
20654         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20655         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20656         * doc/posix-functions/getlogin_r.texi: Likewise.
20657         * tests/test-getlogin.c: Include <errno.h>.
20658         (main): Avoid test failure on HP-UX 11.11.
20659         * tests/test-getlogin_r.c (main): Likewise.
20660
20661 2010-12-20  Bruno Haible  <bruno@clisp.org>
20662
20663         getlogin_r: Add missing declaration on HP-UX 11.
20664         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20665         declared also when it exists as a function.
20666         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20667
20668 2010-12-20  Bruno Haible  <bruno@clisp.org>
20669
20670         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20671         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20672         through wcrtomb.
20673
20674 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20675
20676         ftoastr: fix comment
20677         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20679
20680 2010-12-19  Bruno Haible  <bruno@clisp.org>
20681
20682         isnan: Ensure it is a macro.
20683         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20684         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20685         Solaris.
20686
20687 2010-12-19  Bruno Haible  <bruno@clisp.org>
20688
20689         ldexpl test: Fix link error on OSF/1 5.1.
20690         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20691
20692 2010-12-19  Bruno Haible  <bruno@clisp.org>
20693
20694         wctype: Make it work in C++ mode on OSF/1 5.1.
20695         * lib/wctype.in.h (iswblank): Declare but not define here.
20696         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20697         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20698         * modules/wctype (Files): Add lib/iswblank.c.
20699
20700 2010-12-19  Bruno Haible  <bruno@clisp.org>
20701
20702         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20703         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20704         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20705
20706 2010-12-19  Bruno Haible  <bruno@clisp.org>
20707
20708         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20710         _POSIX_PII_SOCKET.
20711         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20712         * doc/posix-functions/recvfrom.texi: Likewise.
20713         * doc/posix-functions/send.texi: Likewise.
20714         * doc/posix-functions/sendto.texi: Likewise.
20715
20716 2010-12-19  Bruno Haible  <bruno@clisp.org>
20717
20718         tcgetsid: Add missing declaration on OSF/1 5.1.
20719         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20720         HAVE_TCGETSID.
20721         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20722         Don't set HAVE_TCGETSID.
20723         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20724         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20725         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20726         HAVE_TCGETSID.
20727         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20728
20729 2010-12-19  Bruno Haible  <bruno@clisp.org>
20730
20731         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20732         * lib/stdio.in.h: During the include_next statement, let recursive
20733         includes of this file include only the system header file.
20734
20735 2010-12-19  Bruno Haible  <bruno@clisp.org>
20736
20737         iconv_open: Fix regression from 2010-12-04.
20738         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20739         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20740
20741 2010-12-19  Bruno Haible  <bruno@clisp.org>
20742
20743         stdbool test: Avoid a gcc warning.
20744         * tests/test-stdbool.c (main): Fail if e1 is false.
20745         Reported by Jim Meyering.
20746
20747 2010-12-19  Jim Meyering  <meyering@redhat.com>
20748
20749         setenv: restore to working order
20750         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20751         mistakenly removed.
20752         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20753         HAVE_SETENV.
20754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20755         HAVE_SETENV.
20756
20757 2010-12-19  Bruno Haible  <bruno@clisp.org>
20758
20759         Document some different function declarations on OSF/1 5.1.
20760         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20761         * doc/posix-functions/inet_ntop.texi: Likewise.
20762         * doc/posix-functions/gethostname.texi: Likewise.
20763         * lib/unistd.in.h (gethostname): Update comment.
20764
20765 2010-12-19  Bruno Haible  <bruno@clisp.org>
20766
20767         doc: Mention vasprintf-posix module.
20768         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20769         the 'vasprintf-posix' module.
20770         * doc/glibc-functions/vasprintf.texi: Likewise.
20771
20772 2010-12-19  Bruno Haible  <bruno@clisp.org>
20773
20774         unsetenv: Add missing declaration on OSF/1 5.1.
20775         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20777         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20779         not HAVE_UNSETENV.
20780         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20781         HAVE_UNSETENV.
20782         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20783
20784 2010-12-19  Bruno Haible  <bruno@clisp.org>
20785
20786         setenv: Add missing declaration on OSF/1 5.1.
20787         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20788         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20789         declared. Don't set HAVE_SETENV.
20790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20791         not HAVE_SETENV.
20792         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20793         HAVE_SETENV.
20794         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20795
20796 2010-12-19  Bruno Haible  <bruno@clisp.org>
20797
20798         nl_langinfo tests: Avoid gcc warning.
20799         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20800
20801 2010-12-19  Bruno Haible  <bruno@clisp.org>
20802
20803         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20804         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20805         _GL_CXXALIAS_SYS.
20806
20807 2010-12-19  Bruno Haible  <bruno@clisp.org>
20808
20809         stdbool: Relax test.
20810         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20811         address to 'bool' work in static initializer, for compilers other than
20812         GCC.
20813
20814 2010-12-19  Bruno Haible  <bruno@clisp.org>
20815
20816         ftello: Add missing declaration on OSF/1 5.1.
20817         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20818         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20820         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20821         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20822
20823 2010-12-19  Bruno Haible  <bruno@clisp.org>
20824
20825         fseeko: Add missing declaration on OSF/1 5.1.
20826         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20829         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20830         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20831
20832 2010-12-19  Bruno Haible  <bruno@clisp.org>
20833
20834         fchdir: Add missing declaration on OSF/1 5.1.
20835         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20838         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20839         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20840
20841 2010-12-19  Bruno Haible  <bruno@clisp.org>
20842
20843         relocatable-prog-wrapper: Separate from relocatable-prog.
20844         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20845         uninstall-relocwrapper rule here.
20846         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20847         Reported by Ian Beckwith <ianb@erislabs.net>.
20848
20849 2010-12-19  Bruno Haible  <bruno@clisp.org>
20850
20851         unistr/u8-mbsnlen: Add missing dependency.
20852         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20853         Reported by Ian Beckwith <ianb@erislabs.net>.
20854
20855 2010-12-19  Bruno Haible  <bruno@clisp.org>
20856
20857         iconv: Make it possible again to use this module without 'iconv-h'.
20858         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20859         if it is not defined.
20860         Reported by Ian Beckwith <ianb@erislabs.net>.
20861
20862 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20863
20864         acl: port to Solaris 8 when copying from tmpfs to ufs
20865         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20866         error number.  Problem observed on Solaris 8 with latest
20867         coreutils, with "mv A B", where A is on a tmpfs file system and B
20868         is on a ufs file system.  This caused coreutils' mv/part-symlink
20869         test to fail.
20870
20871         tests: set fail=0 at start
20872         * tests/init.sh (setup_): Move fail=0 initialization here ...
20873         (mktempd_): ... from here, so that tests can rely on fail being
20874         set to 0 initially.  This fixes a problem in coreutils; see:
20875         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20876
20877 2010-12-18  Bruno Haible  <bruno@clisp.org>
20878
20879         memmem-simple: Stylistic changes.
20880         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20881         Fix preprocessor directive indentation.
20882
20883 2010-12-15  Pádraig Brady <P@draigBrady.com>
20884
20885         memmem, memmem-simple: reorganize and expand empty needle check
20886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20887         functional checks to memmem-simple so that one has a fully functional
20888         memmem by using just this module.
20889         Restrict the performance only check to the memmem module.
20890         Also expand the empty needle check to ensure the correct
20891         pointer is returned, not just a non NULL pointer.
20892         * doc/glibc-functions/memmem.texi: Rearrange the portability
20893         documentation to correlate with the rearranged checks.
20894         Clarify exactly how the memmem and memmem-simple modules
20895         relate to each other.
20896
20897 2010-12-15  Pádraig Brady <P@draigBrady.com>
20898             Bruno Haible  <bruno@clisp.org>
20899
20900         Improve cross-compilation guesses for uClibc.
20901         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20902         that uClibc does not have the glibc bug.
20903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20904         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20905
20906 2010-12-14  Eric Blake  <eblake@redhat.com>
20907
20908         configmake: provide fallbacks for oldest supported autotools
20909         * m4/configmake.m4: New file.
20910         * modules/configmake (Files): Ship it.
20911         (configure.ac): Use it to guarantee fallbacks.
20912
20913 2010-12-13  Pádraig Brady <P@draigBrady.com>
20914
20915         read-file: Improve handling of large files
20916         * lib/read-file.c (fread_file): Minimize realloc()s
20917         for regular files, and better manage sizes around SIZE_MAX.
20918
20919 2010-12-13  Eric Blake  <eblake@redhat.com>
20920
20921         cloexec, fcntl: relax license
20922         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20923         consent from all contributors.
20924         * modules/fcntl (License): Likewise.
20925
20926 2010-12-10  Bruno Haible  <bruno@clisp.org>
20927
20928         Tests for module 'pipe-posix'.
20929         * modules/pipe-posix-tests: New file.
20930         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20931
20932 2010-12-10  Bruno Haible  <bruno@clisp.org>
20933
20934         pipe-posix: Make it work in C++ mode.
20935         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20936         (pipe): Use common idiom, not a macro definition.
20937         * lib/pipe.c: New file.
20938         * m4/pipe.m4: New file.
20939         * modules/pipe-posix (Description): Enhance.
20940         (Files): Add lib/pipe.c, m4/pipe.m4.
20941         (configure.ac): Invoke gl_FUNC_PIPE.
20942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20943         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20944         * tests/test-unistd-c++.cc: Check the signature of pipe.
20945
20946 2010-12-10  Bruno Haible  <bruno@clisp.org>
20947
20948         Rename module 'pipe' to 'spawn-pipe'.
20949         * modules/spawn-pipe: New file, renamed from modules/pipe.
20950         (Files, configure.ac, Makefile.am): Update.
20951         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20952         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20953         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20954         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20955         "spawn-pipe.h" instead of "pipe.h".
20956         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20957         to gl_SPAWN_PIPE.
20958         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20959         (Files, Makefile.am): Update.
20960         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20961         Update.
20962         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20963         Include "spawn-pipe.h" instead of "pipe.h".
20964         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20965         * lib/javacomp.c: Likewise.
20966         * lib/javaversion.c: Likewise.
20967         * lib/pipe-filter-gi.c: Likewise.
20968         * lib/pipe-filter-ii.c: Likewise.
20969         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20970         * modules/javacomp (Depends-on): Likewise.
20971         * modules/javaversion (Depends-on): Likewise.
20972         * modules/pipe-filter-gi (Depends-on): Likewise.
20973         * modules/pipe-filter-ii (Depends-on): Likewise.
20974         * MODULES.html.sh (Executing programs): Update.
20975         * NEWS: Mention the change.
20976
20977 2010-12-10  Eric Blake  <eblake@redhat.com>
20978
20979         pipe-posix: new module
20980         * modules/pipe-posix: New file.
20981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20982         (gl_UNISTD_H): Check for declaration.
20983         * modules/unistd (Makefile.am): Substitute it.
20984         * lib/unistd.in.h (pipe): Provide it for mingw.
20985         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20986         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20987
20988 2010-12-07  Bruno Haible  <bruno@clisp.org>
20989
20990         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20991         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20992         u8_strcmp_gnu.
20993         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20994
20995 2010-12-06  Bruno Haible  <bruno@clisp.org>
20996
20997         Update internal documentation.
20998         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20999
21000 2010-12-04  Bruno Haible  <bruno@clisp.org>
21001
21002         Put more information about failed tests into the test return codes.
21003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
21004         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
21005         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21006         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21007         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21008         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21009         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21010         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21011         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
21012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21013         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
21014         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21015         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21016         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21017         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
21018         returns a bit mask.
21019         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21020         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
21021         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
21022         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21024         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21027         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21029         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21030         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21031         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21033         * m4/link.m4 (gl_FUNC_LINK): Likewise.
21034         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21035         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
21036         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
21037         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21038         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
21039         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21040         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21041         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21042         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21043         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21044         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21045         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21046         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21047         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21048         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
21049         gl_PRINTF_PRECISION): Likewise.
21050         * m4/regex.m4 (gl_REGEX): Likewise.
21051         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21053         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
21054         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21057         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21058         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
21059         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21060         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21061         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21062         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21063         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21064         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21065         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21066         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21067         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21068         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21070         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
21071         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
21072         enumerated value.
21073         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
21074
21075 2010-12-04  Bruno Haible  <bruno@clisp.org>
21076
21077         Update for Solaris 11 2010-11.
21078         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
21079         Express, released in November 2010.
21080
21081 2010-12-04  Bruno Haible  <bruno@clisp.org>
21082
21083         nproc: Relax license.
21084         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
21085         and Paul Eggert.
21086         Requested by Ludovic Courtès <ludo@gnu.org>.
21087
21088 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21089
21090         utimecmp: fine-grained src to nearby coarse-grained dest
21091
21092         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
21093         and the source is on a file system with higher-resolution time
21094         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21095         not work, and the time stamps are close together, the algorithm to
21096         determine the exact resolution from the read-back mtime was buggy:
21097         it had a "!=" where it should have had an "==".  This bug has been
21098         in the code ever since it was introduced to gnulib.
21099         Problem reported by Dan Jacobson in
21100         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21101
21102 2010-11-30  Bruno Haible  <bruno@clisp.org>
21103
21104         strerror_r-posix: Fix autoconf test.
21105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
21106
21107 2010-11-28  Bruno Haible  <bruno@clisp.org>
21108             Paul Eggert  <eggert@cs.ucla.edu>
21109
21110         Tests for module 'getdomainname'.
21111         * modules/getdomainname-tests: New file.
21112         * tests/test-getdomainname.c: New file, based on
21113         tests/test-gethostname.c.
21114
21115 2010-11-28  Bruno Haible  <bruno@clisp.org>
21116             Paul Eggert  <eggert@cs.ucla.edu>
21117
21118         getdomainname: Use the system function when possible.
21119         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
21120         (getdomainname): Replace if needed. Provide the declaration if it is
21121         missing. Don't use _GL_CXXALIAS_SYS_CAST.
21122         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
21123         (getdomainname): When the system has getdomainname, call the system
21124         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
21125         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21126         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
21127         found in libnsl. Look for the declaration also in <netdb.h>. Replace
21128         the function if its second argument is of type 'int' or if it is found
21129         in libnsl.
21130         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
21131         <sys/systeminfo.h> and sysinfo().
21132         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
21133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21134         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
21135         HAVE_GETDOMAINNAME.
21136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
21137         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
21138         * doc/glibc-functions/getdomainname.texi: Document the problems with
21139         the getdomainname declaration.
21140
21141 2010-11-28  Bruno Haible  <bruno@clisp.org>
21142
21143         sys_socket: Ensure ss_family field on AIX.
21144         * lib/sys_socket.in.h (ss_family): New macro definition.
21145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
21146         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
21147         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21148         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21149         * modules/sys_socket (Makefile.am): Substitute
21150         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21151         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21152
21153 2010-11-27  Bruno Haible  <bruno@clisp.org>
21154
21155         readline: Improve configure output.
21156         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21157         "checking for readline..." result understandable.
21158
21159 2010-11-27  Bruno Haible  <bruno@clisp.org>
21160
21161         *printf-posix: Detect a bug on Solaris 10/x86.
21162         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21163         for floating-point output.
21164         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21165         directive.
21166         * tests/test-snprintf-posix.h (test_function): Likewise.
21167         * tests/test-sprintf-posix.h (test_function): Likewise.
21168         * tests/test-vasprintf-posix.c (test_function): Likewise.
21169         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21170         * doc/posix-functions/printf.texi: Likewise.
21171         * doc/posix-functions/snprintf.texi: Likewise.
21172         * doc/posix-functions/sprintf.texi: Likewise.
21173         * doc/posix-functions/vfprintf.texi: Likewise.
21174         * doc/posix-functions/vprintf.texi: Likewise.
21175         * doc/posix-functions/vsnprintf.texi: Likewise.
21176         * doc/posix-functions/vsprintf.texi: Likewise.
21177         * doc/glibc-functions/obstack_printf.texi: Likewise.
21178         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21179
21180 2010-11-27  Bruno Haible  <bruno@clisp.org>
21181
21182         Fix link error when module libunistring-optional is in use.
21183         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21184         * modules/striconveha-tests (Makefile.am): Likewise.
21185
21186 2010-11-27  Bruno Haible  <bruno@clisp.org>
21187
21188         regex: Mention link dependencies.
21189         * modules/regex (Link): New section.
21190         * modules/rpmatch (Link): Likewise.
21191         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21192
21193 2010-11-27  Bruno Haible  <bruno@clisp.org>
21194
21195         ftoastr: Fix compilation error on Solaris.
21196         * lib/ftoastr.c: Include <config.h>.
21197
21198 2010-11-27  Bruno Haible  <bruno@clisp.org>
21199
21200         getloadavg: Update documentation.
21201         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21202
21203 2010-11-27  Bruno Haible  <bruno@clisp.org>
21204
21205         sys_socket: Fix test whether the functions are declared.
21206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21207         not <sys/select.h>.
21208
21209 2010-11-27  Bruno Haible  <bruno@clisp.org>
21210
21211         getpass: Make sure to get system declaration on some platforms.
21212         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21213         gl_USE_SYSTEM_EXTENSIONS.
21214         * modules/getpass (Depends-on): Add extensions.
21215
21216 2010-11-26  Bruno Haible  <bruno@clisp.org>
21217
21218         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21219         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21220         'iconv' module is present.
21221         (ICONV_CONST): New macro.
21222         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21223         ICONV_CONST.
21224         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21225         set ICONV_CONST.
21226         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21227         here.
21228         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21229         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21230         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21231         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21232         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21233         present.
21234
21235 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         ftoastr: comment fix
21238         * lib/ftoastr.c: "little" -> "little or no" in comment
21239
21240 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21241
21242         stdint: port to GCC 4.3 + OSX + Octave
21243         On this platform, stdint.h is buggy and defines int64_t to long
21244         long int.  The replacement defined it to long int, causing
21245         problems with C++ style name mangling.  Instead, trust the system
21246         definition if INT64_MAX is defined, and likewise for the unsigned
21247         variant.   Problem reported by Jarno Rajahalme in
21248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21249         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21250         and don't mess with int64_t and INT64_MAX in this case.
21251         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21252
21253 2010-11-24  Bruno Haible  <bruno@clisp.org>
21254
21255         doc: Corrections regarding MacOS X 10.4 and 10.5.
21256         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21257         MacOS X.
21258         Reported by Simon Josefsson.
21259
21260 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21261
21262         Uninstall ".bin" files installed by relocwrapper.
21263         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21264         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21265         unless it is already there.
21266
21267 2010-11-21  Bruno Haible  <bruno@clisp.org>
21268
21269         Update for NetBSD 5.0.
21270         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21271         NetBSD; the test fails on NetBSD 5.0.
21272         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21273         about NetBSD.
21274
21275 2010-11-21  Bruno Haible  <bruno@clisp.org>
21276
21277         Update for HP-UX 11.23 and HP-UX 11.31.
21278         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21279         HP-UX.
21280
21281 2010-11-21  Bruno Haible  <bruno@clisp.org>
21282
21283         Update for MacOS X 10.5.
21284         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21285         MacOS X; the test fails on MacOS X 10.5.8.
21286         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21287         about MacOS X.
21288
21289 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21290
21291         bootstrap: add bootstrap_sync option.
21292         See discussion at
21293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21295         * build-aux/bootstrap: Accept --bootstrap-sync to update
21296         bootstrap if it is not identical to the local gnulib's
21297         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21298         enable this by default.  Accept --no-bootstrap-sync to disable
21299         it.
21300
21301 2010-11-20  Bruno Haible  <bruno@clisp.org>
21302
21303         Ensure that <features.h> is included before __GLIBC__ is tested.
21304         * lib/printf-parse.h: Include <features.h>.
21305         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21306         Reported by Mike Frysinger <vapier@gentoo.org>.
21307
21308         Ensure that <features.h> is included before __GLIBC__ is tested.
21309         * lib/wchar.in.h: Include <features.h>.
21310         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21311         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21312         Reported by Mike Frysinger <vapier@gentoo.org>.
21313
21314         Ensure that <features.h> is included before __GLIBC__ is tested.
21315         * lib/arpa_inet.in.h: Include <features.h>.
21316         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21317         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21318         Reported by Mike Frysinger <vapier@gentoo.org>.
21319
21320         Ensure that <features.h> is included before __GLIBC__ is tested.
21321         * build-aux/link-warning.h: Include <features.h>.
21322         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21323         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21324         Reported by Mike Frysinger <vapier@gentoo.org>.
21325
21326         Ensure that <features.h> is included before __GLIBC__ is tested.
21327         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21328         Reported by Mike Frysinger <vapier@gentoo.org>.
21329
21330 2010-11-20  Bruno Haible  <bruno@clisp.org>
21331
21332         memmem: Fix autoconf test.
21333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21334
21335 2010-11-20  Bruno Haible  <bruno@clisp.org>
21336
21337         Port to uClibc.
21338         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21339         * lib/fcntl.in.h: Likewise.
21340         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21341         * lib/mbrtowc.c (mbrtowc): Likewise.
21342         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21343         * lib/strerror_r.c: Likewise.
21344         * lib/unistr/u8-strnlen.c: Likewise.
21345         * lib/vasnprintf.c (decimal_point_char): Likewise.
21346         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21347         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21348         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21349         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21350         * tests/test-sigaction.c (handler, main): Likewise.
21351         * lib/freading.h: Treat uClibc like a non-glibc platform.
21352         * lib/freading.c: Likewise.
21353         * lib/gettext.h: Likewise.
21354         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21355         Likewise.
21356         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21357         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21358         * lib/propername.c (proper_name_utf8): Likewise.
21359         * lib/spawn.in.h: Likewise.
21360         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21361         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21362         mem_cd_iconveh_internal): Likewise.
21363         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21364         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21365         strstr, strcasestr): Likewise.
21366         * lib/unicodeio.c (unicode_to_mb): Likewise.
21367         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21368         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21369         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21370         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21371         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21372         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21373         * lib/unistr/u8-stpncpy.c: Likewise.
21374         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21375         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21377         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21378         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21379         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21383         Likewise.
21384         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21385         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21389         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21390         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21391         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21392         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21393         * tests/test-striconveha.c (main): Likewise.
21394         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21395         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21396         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21397         * doc/posix-functions/getline.texi: Likewise.
21398         Reported by Mike Frysinger <vapier@gentoo.org>.
21399
21400 2010-11-20  Bruno Haible  <bruno@clisp.org>
21401
21402         nproc: Fix condition.
21403         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21404         HAVE_PTHREAD_AFFINITY_NP.
21405
21406 2010-11-20  Bruno Haible  <bruno@clisp.org>
21407
21408         Fix a comment.
21409         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21410
21411 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21412
21413         ftoastr: don't assume snprintf
21414         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21415         Implement a subset of snprintf here, by using sprintf safely.
21416         * modules/ftoastr (Depends-on): Remove snprintf.
21417
21418 2010-11-19  Jim Meyering  <meyering@redhat.com>
21419
21420         test-rename.h: fix compilation failure
21421         * tests/test-rename.h (test_rename): Add omitted "}".
21422
21423 2010-11-17  Jim Meyering  <meyering@redhat.com>
21424
21425         maint.mk: add a URL discussing the no-@acronym policy
21426         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21427
21428 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21429
21430         ftoastr: depend on snprintf, improve comments
21431         * lib/ftoastr.c: Also mention Loitsch's draft.
21432         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21433         needed in the current implementation, but it might simplify
21434         speeding up the code later.
21435         * modules/ftoastr: Depend on snprintf; this improves portability.
21436         Suggested by Bruno Haible in the same email.
21437
21438         ftoastr: port to hosts lacking strtof and strtold
21439         Problem reported by Bruno Haible in
21440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21441         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21442         environment and strtold (and presumably strtof) are not available.
21443         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21444         (configure.ac): Require gl_C99_STRTOLD.
21445
21446 2010-11-18  Bruno Haible  <bruno@clisp.org>
21447
21448         c-strtold: Avoid link error on AIX 7.
21449         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21450         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21451         (gl_C_STRTOLD): Test whether strtold_l exists.
21452         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21453
21454 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21455
21456         intprops: new macro INT_BITS_STRLEN_BOUND
21457         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21458         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21459         not exposed.  Also, it uses a slightly tighter bound than before;
21460         though this makes no practical difference, we might as well be as
21461         tight as we easily can.
21462
21463         ftoastr: new module, for lossless conversion of floats to short strings
21464         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21465         * modules/ftoastr: New files.
21466
21467 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21468
21469         bootstrap: port to Solaris sed
21470         * build-aux/bootstrap (get_version): Port to Solaris sed.
21471         See Ralf Wildenhues's note in
21472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21473
21474 2010-11-14  Jim Meyering  <meyering@redhat.com>
21475
21476         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21477         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21478         and move definition closer to sole use.
21479
21480 2010-11-13  Jim Meyering  <meyering@redhat.com>
21481
21482         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21483         Now we require at least autoconf-2.59, which means the work-around
21484         is no longer needed.
21485         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21486         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21488         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21489         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21490
21491 2010-11-13  Bruno Haible  <bruno@clisp.org>
21492
21493         rename, renameat: Avoid test failures at NFS mounted locations.
21494         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21495         functions.
21496         (test_rename): Use assert_nonexistent.
21497         * tests/test-rename.c: Include <dirent.h>.
21498         * tests/test-renameat.c: Likewise.
21499         Reported by Gary V. Vaughan <gary@gnu.org>.
21500
21501         rename, renameat: Document Linux bug with NFS
21502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21503         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21504         * doc/posix-functions/renameat.texi: Likewise.
21505         Suggested by Eric Blake.
21506
21507 2010-11-13  Bruno Haible  <bruno@clisp.org>
21508
21509         rename test: Add comments.
21510         * tests/test-rename.h (test_rename): Add structure and comments.
21511
21512 2010-11-13  Eric Blake  <eblake@redhat.com>
21513
21514         maintainer-makefile: cover a few more files
21515         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21516         scripts generated within C files, for libvirt.
21517
21518 2010-11-13  Bruno Haible  <bruno@clisp.org>
21519
21520         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21521         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21522         character, return the number of bytes that belong together, not always
21523         1.
21524         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21525         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21526         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21527         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21528         number of bytes of an invalid character.
21529         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21530         (main): Invoke it.
21531         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21532         results.
21533         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21534         malformed byte sequences.
21535         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21536         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21537         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21538         Reported by Ben Pfaff and Paolo Bonzini.
21539
21540 2010-11-13  Bruno Haible  <bruno@clisp.org>
21541
21542         openat: Work around glibc bug with fchownat() and empty file names.
21543         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21544         (gl_FUNC_FCHOWNAT): Invoke it.
21545         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21546         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21547         Reported by Gary V. Vaughan <gary@gnu.org>.
21548
21549 2010-11-13  Bruno Haible  <bruno@clisp.org>
21550
21551         openat: Ensure autoconf macro ordering.
21552         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21553         gl_USE_SYSTEM_EXTENSIONS.
21554         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21555
21556 2010-11-13  Bruno Haible  <bruno@clisp.org>
21557
21558         Update comments.
21559         * lib/unistr/u8-check.c: Update file name in comments.
21560         * lib/unistr/u8-mblen.c: Likewise.
21561         * lib/unistr/u8-prev.c: Likewise.
21562         * lib/unistr/u8-strmblen.c: Likewise.
21563         * lib/unistr/u8-strmbtouc.c: Likewise.
21564
21565 2010-11-13  Jim Meyering  <meyering@redhat.com>
21566
21567         tests: avoid test failure on Solaris 10 due to lack of PATH export
21568         * tests/test-update-copyright.sh: Don't forget to export PATH.
21569
21570         init.sh: ensure that IFS is defined, just in case...
21571         * tests/init.sh (setup_): Ensure that IFS is defined,
21572         so that saving and restoring it works as expected.  This
21573         appears to be useful at least for an old version of dash
21574         from a long time ago (RH 6).  See here for details:
21575         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21576
21577         maint.mk: tighten "test a == b" check
21578         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21579         test to files that contain something like #!/bin/sh.
21580         Without this, coreutils would get two false positives in
21581         the comments of C source files.
21582
21583 2010-11-12  Eric Blake  <eblake@redhat.com>
21584
21585         bootstrap: fix typo in previous attempt
21586         * build-aux/bootstrap (buildreq): Correct the grouping.
21587         Reported by Paul Eggert.
21588
21589         maintainer-makefile: prohibit test x == x
21590         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21591         Based on a report by Matthias Bolte.
21592
21593         bootstrap: allow FreeBSD gzip
21594         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21595         which has no '.' and goes to stderr.
21596         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21597         Reported by Matthias Bolte.
21598
21599         maintainer-makefile: check for i18n setup
21600         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21601         will likely work.
21602
21603 2010-11-12  Bruno Haible  <bruno@clisp.org>
21604
21605         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21606         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21607         * lib/nanosleep.c (nanosleep): Likewise.
21608
21609 2010-11-11  Bruno Haible  <bruno@clisp.org>
21610
21611         fcntl-h: Fix for use of C++ on glibc systems.
21612         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21613         also on glibc systems in C++ mode.
21614         Reported by Gary V. Vaughan <gary@gnu.org>.
21615
21616 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21617
21618         mknod: avoid false failure with dash
21619         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21620
21621 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21622
21623         unlink: Fix "is it should" typo in diagnostic.
21624         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21626
21627 2010-11-11  Bruno Haible  <bruno@clisp.org>
21628
21629         Tests for module 'strerror_r-posix'.
21630         * modules/strerror_r-posix-tests: New file.
21631         * tests/test-strerror_r.c: New file.
21632         * tests/test-string-c++.cc: Check the signature of strerror_r.
21633
21634         New module 'strerror_r-posix'.
21635         * lib/string.in.h (strerror_r): New declaration.
21636         * lib/strerror_r.c: New file.
21637         * m4/strerror_r.m4: New file.
21638         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21639         of strerror_r.
21640         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21641         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21642         * modules/strerror_r-posix: New file.
21643         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21644         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21645         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21646         portability problems.
21647
21648 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21649
21650         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21651         line is also considered for output. Quoted function name in shell
21652         command, so temporary files for functions like MyClass::operator()
21653         are removed correctly without errors.
21654
21655 2010-11-09  Bruno Haible  <bruno@clisp.org>
21656
21657         * doc/posix-functions/strerror.texi: List more failing platforms.
21658
21659         * doc/posix-functions/strerror.texi: Add a comment.
21660
21661 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21662
21663         fdopendir: fix bug on MacOS X when low on file descriptors
21664
21665         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21666         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21667         All callers changed.
21668         (fdopendir): Invoke save_cwd at the top level, not after using
21669         multiple dup() calls to use up file descriptors.  Then retry
21670         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21671         less than the maximum number of open file descriptors, because
21672         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21673         on Mac OS X 10.6.4 for tar 1.24
21674         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21675         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21676         and for tar 1.25
21677         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21678
21679 2010-11-07  Bruno Haible  <bruno@clisp.org>
21680
21681         vasnprintf: Support I flag on glibc systems.
21682         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21683         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21684         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21685         snprintf function.
21686         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21687         glibc systems.
21688         * tests/test-vasnprintf-posix3.c: New file.
21689         * modules/vasnprintf-posix-tests (Files): Add it.
21690         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21691
21692 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21693
21694         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21695         * MODULES.html.sh: For compiler warnings, use name
21696         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21697
21698 2010-11-05  Eric Blake  <eblake@redhat.com>
21699
21700         ceil, floor: avoid spurious failure with icc
21701         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21702         [denormals-as-zero] when optimizing without -mieee-fp option.
21703         * tests/test-floorf2.c (floorf_reference): Likewise.
21704         * tests/test-ceilf1.c (dummy): New function.
21705         (main): Use it to outsmart icc's optimization.
21706         * tests/test-floorf1.c (dummy, main): Likewise.
21707
21708         tests: require working signbit
21709         * modules/ceilf-tests (Depends-on): Add signbit.
21710         * modules/ceill-tests (Depends-on): Likewise.
21711         * modules/floorf-tests (Depends-on): Likewise.
21712         * modules/floorl-tests (Depends-on): Likewise.
21713         * modules/round-tests (Depends-on): Likewise.
21714         * modules/roundf-tests (Depends-on): Likewise.
21715         * modules/roundl-tests (Depends-on): Likewise.
21716         * modules/trunc-tests (Depends-on): Likewise.
21717         * modules/truncf-tests (Depends-on): Likewise.
21718         * modules/truncl-tests (Depends-on): Likewise.
21719
21720         strtod: work around icc bug
21721         * lib/strtod.c (minus_zero): Define to working value.
21722         (strtod): Use it to avoid icc bug.
21723
21724         copysign: enhance tests
21725         * modules/copysign-tests (Files): Add minus-zero.h.
21726         * tests/test-copysign.c (main): Also test zeros.
21727
21728 2010-11-04  Eric Blake  <eblake@redhat.com>
21729
21730         ceil, floor, round, trunc: enhance tests of -0
21731         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21732         * tests/test-ceill.c (main): Likewise.
21733         * tests/test-floorf1.c (main): Likewise.
21734         * tests/test-floorl.c (main): Likewise.
21735         * tests/test-round1.c (main): Likewise.
21736         * tests/test-roundf1.c (main): Likewise.
21737         * tests/test-roundl.c (main): Likewise.
21738         * tests/test-trunc1.c (main): Likewise.
21739         * tests/test-truncf1.c (main): Likewise.
21740         * tests/test-truncl.c (main): Likewise.
21741
21742 2010-11-04  Eric Blake  <eblake@redhat.com>
21743
21744         frexp, tests: work around ICC bug with -zero
21745         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21746         works with more compilers.
21747         * tests/minus-zero.h: New file.
21748         * modules/ceilf-tests (Files): Include it.
21749         * modules/ceill-tests (Files): Likewise.
21750         * modules/floorf-tests (Files): Likewise.
21751         * modules/floorl-tests (Files): Likewise.
21752         * modules/frexp-nolibm-tests (Files): Likewise.
21753         * modules/frexp-tests (Files): Likewise.
21754         * modules/frexpl-nolibm-tests (Files): Likewise.
21755         * modules/frexpl-tests (Files): Likewise.
21756         * modules/isnan-tests (Files): Likewise.
21757         * modules/isnand-nolibm-tests (Files): Likewise.
21758         * modules/isnand-tests (Files): Likewise.
21759         * modules/isnanf-nolibm-tests (Files): Likewise.
21760         * modules/isnanf-tests (Files): Likewise.
21761         * modules/isnanl-nolibm-tests (Files): Likewise.
21762         * modules/isnanl-tests (Files): Likewise.
21763         * modules/round-tests (Files): Likewise.
21764         * modules/roundf-tests (Files): Likewise.
21765         * modules/roundl-tests (Files): Likewise.
21766         * modules/ldexpl-tests (Files): Likewise.
21767         * modules/signbit-tests (Files): Likewise.
21768         * modules/snprintf-posix-tests (Files): Likewise.
21769         * modules/sprintf-posix-tests (Files): Likewise.
21770         * modules/strtod-tests (Files): Likewise.
21771         * modules/trunc-tests (Files): Likewise.
21772         * modules/truncf-tests (Files): Likewise.
21773         * modules/truncl-tests (Files): Likewise.
21774         * modules/vsnprintf-posix-tests (Files): Likewise.
21775         * modules/vsprintf-posix-tests (Files): Likewise.
21776         * modules/vasnprintf-posix-tests (Files): Likewise.
21777         * modules/vasprintf-posix-tests (Files): Likewise.
21778         * tests/test-ceilf1.c (main): Use it.
21779         * tests/test-ceill.c (main): Likewise.
21780         * tests/test-floorf1.c (main): Likewise.
21781         * tests/test-floorl.c (main): Likewise.
21782         * tests/test-frexp.c (main): Likewise.
21783         * tests/test-frexpl.c (main): Likewise.
21784         * tests/test-isnan.c (main): Likewise.
21785         * tests/test-isnand.h (main): Likewise.
21786         * tests/test-isnanf.h (main): Likewise.
21787         * tests/test-isnanl.h (main): Likewise.
21788         * tests/test-ldexpl.c (main): Likewise.
21789         * tests/test-round.c (main): Likewise.
21790         * tests/test-roundf.c (main): Likewise.
21791         * tests/test-roundl.c (main): Likewise.
21792         * tests/test-signbit.c (test_signbitf, test_signbitd)
21793         (test_signbitl): Likewise.
21794         * tests/test-snprintf-posix.h (test_function): Likewise.
21795         * tests/test-sprintf-posix.h (test_function): Likewise.
21796         * tests/test-strtod.c (main): Likewise.
21797         * tests/test-trunc1.c (main): Likewise.
21798         * tests/test-truncf1.c (main): Likewise.
21799         * tests/test-truncl.c (main): Likewise.
21800
21801         isnanl: work around icc bug
21802         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21803
21804 2010-11-03  Eric Blake  <eblake@redhat.com>
21805
21806         tests: fix compiler warnings
21807         * tests/test-getopt.h (test_getopt): Fix condition.
21808         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21809         * tests/test-pipe2.c (main): Likewise.
21810         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21811
21812         utimens: fix broken m4 test
21813         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21814
21815 2010-10-28  Bruno Haible  <bruno@clisp.org>
21816
21817         posix_spawn*, getdtablesize: Relax license.
21818         * modules/posix_spawn (License): Change to LGPLv2+.
21819         * modules/posix_spawnp (License): Likewise.
21820         * modules/posix_spawn-internal (License): Likewise.
21821         * modules/posix_spawnattr_init (License): Likewise.
21822         * modules/posix_spawnattr_getflags (License): Likewise.
21823         * modules/posix_spawnattr_setflags (License): Likewise.
21824         * modules/posix_spawnattr_getpgroup (License): Likewise.
21825         * modules/posix_spawnattr_setpgroup (License): Likewise.
21826         * modules/posix_spawnattr_getschedparam (License): Likewise.
21827         * modules/posix_spawnattr_setschedparam (License): Likewise.
21828         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21829         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21830         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21831         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21832         * modules/posix_spawnattr_getsigmask (License): Likewise.
21833         * modules/posix_spawnattr_setsigmask (License): Likewise.
21834         * modules/posix_spawnattr_destroy (License): Likewise.
21835         * modules/posix_spawn_file_actions_init (License): Likewise.
21836         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21837         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21838         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21839         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21840         * modules/getdtablesize (License): Likewise.
21841         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21842
21843 2010-10-26  Bruno Haible  <bruno@clisp.org>
21844
21845         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21846         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21847         Cygwin and mingw.
21848         Suggested by Eric Blake.
21849
21850 2010-10-26  Bruno Haible  <bruno@clisp.org>
21851
21852         stdio: Work around compilation error due to renameat() on Solaris 10.
21853         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21854         * lib/renameat.c: Don't include <unistd.h> here.
21855         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21856         Reported by Paul Eggert and Eric Blake.
21857
21858 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21859
21860         renameat: port to Solaris 10, which declares renameat in unistd.h
21861
21862         * lib/renameat.c: Include unistd.h before stdio.h, because
21863         Solaris 10 declares renameat in unistd.h.  Problem encountered
21864         when building GNU tar 1.24 on Solaris 10.
21865
21866 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21867
21868         fdopendir: fix C89 compilation
21869         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21870         compilers.
21871
21872 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         inttostr: simplify by removing unnecessary redundancy
21875         * lib/anytostr.c: Don't include verify.h.
21876         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21877         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21878         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21879         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21880         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21881         Likewise.
21882         * modules/inttostr (Depends-on): Remove 'verify'.
21883
21884 2010-10-23  Bruno Haible  <bruno@clisp.org>
21885
21886         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21887         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21888         Reported by Eric Blake.
21889
21890 2010-10-23  Bruno Haible  <bruno@clisp.org>
21891
21892         Tests: Fix LOCALE_JA on MirBSD 10.
21893         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21894         to an UTF-8 locale.
21895         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21896         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21897         Reported by Eric Blake.
21898
21899 2010-10-21  Bruno Haible  <bruno@clisp.org>
21900
21901         nl_langinfo test: Avoid test failure on NetBSD 5.
21902         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21903         Reported by Eric Blake.
21904
21905 2010-10-21  Eric Blake  <eblake@redhat.com>
21906
21907         c-stack: work around libsigsegv 2.8 bug
21908         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21909         overflow on at least PowerPC64.
21910
21911 2010-10-17  Bruno Haible  <bruno@clisp.org>
21912
21913         userspec: Drop redundant file.
21914         * modules/userspec (Files): Remove lib/inttostr.h.
21915
21916 2010-10-17  Bruno Haible  <bruno@clisp.org>
21917
21918         nl_langinfo tests: Silence some warnings.
21919         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21920         Reported by Jim Meyering.
21921
21922 2010-10-17  Bruno Haible  <bruno@clisp.org>
21923
21924         Make use of GCC's attribute __alloc_size__.
21925         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21926         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21927         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21928         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21929         __alloc_size__.
21930         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21931         Suggested by Jim Meyering.
21932
21933 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21934
21935         bootstrap: anchor .gitignore entries.
21936         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21937         with...
21938         (insert_vc_ignore): ... this new function, which prepends `/' to
21939         all .gitignore entries before passing them to
21940         insert_sorted_if_absent.
21941
21942 2010-10-16  Bruno Haible  <bruno@clisp.org>
21943
21944         nextafter: Fix configure check.
21945         * modules/nextafter (configure.ac): Correct expected prototype.
21946
21947 2010-10-16  Bruno Haible  <bruno@clisp.org>
21948
21949         termios: Update documentation.
21950         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21951
21952 2010-10-16  Bruno Haible  <bruno@clisp.org>
21953
21954         tests: Make them compile with TinyCC.
21955         * tests/test-strstr.c (main): Remove parentheses around array
21956         initializer.
21957
21958 2010-10-15  Eric Blake  <eblake@redhat.com>
21959
21960         ignore-value: make header idempotent
21961         * lib/ignore-value.h: Add double-inclusion guards.
21962         Reported by Stefan Berger.
21963
21964 2010-10-15  Jim Meyering  <meyering@redhat.com>
21965
21966         GNUmakefile: handle "stable" target, not "major"
21967         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21968         lists in maint.mk and announce-gen.  Without this, "make stable"
21969         would fail to ensure that $(VERSION) is up to date.
21970
21971 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21972
21973         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21974         & co.
21975
21976 2010-10-14  Bruno Haible  <bruno@clisp.org>
21977
21978         vasnprintf: Don't set errno to 0.
21979         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21980         block that sets it to 0.
21981         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21982
21983 2010-10-14  Bruno Haible  <bruno@clisp.org>
21984
21985         socketlib: Fix.
21986         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21987         gl_PREREQ_SYS_H_WINSOCK2.
21988         Reported by Ian Beckwith <ianb@erislabs.net>.
21989
21990 2010-10-13  Jim Meyering  <meyering@redhat.com>
21991
21992         test-select-stdin.c: avoid warn_unused_result warnings
21993         * tests/test-select-stdin.c: Include "macros.h".
21994         ASSERT that read and fflush succeed.
21995
21996 2010-10-13  Jim Meyering  <meyering@redhat.com>
21997
21998         git-version-gen: do require git-VC'd files in cwd
21999         * build-aux/git-version-gen: Reject a git version string
22000         if there are no commits associated with the current directory.
22001         This avoids an unlikely false-positive (unrelated dir whose parent
22002         repository also contains a tag matching v*), as pointed out
22003         by Giuseppe Scrivano in
22004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
22005
22006 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22007
22008         argv-iter: omit nonconforming declaration
22009         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
22010         enum arg_iter_err declaration, which doesn't conform to C99.
22011         Solaris 10 cc warns about this.
22012
22013 2010-10-13  Eric Blake  <eblake@redhat.com>
22014
22015         termios: fix compilation on mingw
22016         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
22017         (gl_TERMIOS_H): Adjust it on mingw.
22018         * modules/termios (Makefile.am): Substitute new key.
22019         * lib/termios.in.h (includes): Make include_next conditional.
22020         * doc/posix-headers/termios.texi (termios.h): Update
22021         documentation.
22022         Reported by Daniel P. Berrange.
22023
22024 2010-10-13  Jim Meyering  <meyering@redhat.com>
22025
22026         git-version-gen: don't require that .git/ be in the current dir
22027         * build-aux/git-version-gen: Adjust this script so that it works
22028         when run from any working directory beneath the top-level .git/-
22029         containing directory.  Inspired by a patch from Giuseppe Scrivano,
22030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
22031
22032         test-select: avoid warn_unused_result warnings
22033         * tests/test-select.c: Include "macros.h".
22034         ASSERT that each call to read, write, and pipe succeeds.
22035         While not technically required, also check each "close".
22036         * modules/select-tests (Files): Add tests/macros.h.
22037
22038         test-symlinkat: remove declaration of unused local
22039         * tests/test-symlinkat.c (main): Remove unused local, "buf".
22040
22041         test-inttostr: avoid shadowing warnings
22042         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
22043         and use malloc rather than the stack for the same reason as
22044         mentioned in the comment justifying the other allocation.
22045
22046 2010-10-11  Bruno Haible  <bruno@clisp.org>
22047
22048         stdlib: Allow multiple gnulib generated replacements to coexist.
22049         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
22050         Reported by Sam Steingold <sds@gnu.org>.
22051
22052 2010-10-11  Jim Meyering  <meyering@redhat.com>
22053
22054         fix a documentation typo
22055         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
22056
22057 2010-10-11  Eric Blake  <eblake@redhat.com>
22058
22059         futimens: work around Solaris 11 bug
22060         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
22061         * tests/test-futimens.h (test_futimens): Enhance, rather than
22062         weaken test.
22063         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22064
22065 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22066
22067         Indentation.
22068         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
22069         higher-level operators more to the left.
22070
22071 2010-10-11  Jim Meyering  <meyering@redhat.com>
22072
22073         test-futimens: avoid unwarranted test failure on Solaris 5.11
22074         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
22075         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
22076         because it tries to dereference the NULL name argument.
22077
22078 2010-10-11  Bruno Haible  <bruno@clisp.org>
22079
22080         Indentation.
22081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
22082         indentation.
22083
22084 2010-10-11  Jim Meyering  <meyering@redhat.com>
22085
22086         spawn.in.h: make indentation consistent with parentheses
22087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
22088         Make indentation consistent with parentheses.
22089
22090 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
22091
22092         Fix mismatched parens in previous commit
22093         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
22094         parens.
22095
22096 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22097
22098         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
22099
22100         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
22101         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
22102         * lib/malloca.c: Include "verify.h".
22103         (verify1): Remove, replacing with a verify call.
22104         * lib/relocwrapper.c (verify1): Likewise.
22105         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
22106         Likewise.
22107         * modules/malloca (Depends-on): Add 'verify'.
22108         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
22109         * modules/vasnprintf (Depends-on): Add 'verify'.
22110         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22111         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22112         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22113         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22114         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22115         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22116         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22117
22118         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
22119
22120         Formerly the style was sometimes 2*X - 1, because the C standard
22121         was wrongly thought to disallow ?: in integral constant expressions.
22122         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
22123         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
22124         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22125         * lib/stdint.in.h (_verify_intmax_size): Likewise.
22126         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
22127         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
22128         verify that time_t cannot be floating.
22129
22130 2010-10-08  Eric Blake  <eblake@redhat.com>
22131
22132         time: enforce recent POSIX ruling that time_t is integral
22133         * lib/time.in.h (__time_t_must_be_integral): Detect any
22134         problematic systems, allowing the rest of gnulib to assume POSIX.
22135
22136 2010-10-08  Jim Meyering  <meyering@redhat.com>
22137
22138         fdopendir: fix a bug on systems lacking openat and /proc support
22139         OpenBSD 4.7 is one such system.  The most noticeable effect was
22140         failure of any application making nontrivial use of fts: rm, du,
22141         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
22142           ./rm: traversal failed: `a': Bad file descriptor
22143         Debugging that, you see that even though FD 6 was closed just
22144         prior to the opendir call in fd_clone_opendir, its resulting
22145         dir->dd_fd was 8, rather than the expected value of 6:
22146
22147         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
22148         93                close (fd);
22149         (gdb) n
22150         94                dir = fd_clone_opendir (dupfd);
22151         (gdb) n
22152         95                saved_errno = errno;
22153         (gdb) p dir->dd_fd
22154         $11 = 8
22155
22156         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22157         The problem is that on OpenBSD, fd_clone_opendir has to resort
22158         to using the old-style save/restore CWD mechanism, due to its
22159         lack of openat/proc support, and *that* would steal the FD (6)
22160         that opendir was supposed to use.
22161
22162         The fix is to squirrel away the desired FD so that save_cwd uses a
22163         different one, and then free the dest FD right before calling opendir.
22164         That guarantees opendir will use the required file descriptor.
22165
22166         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22167
22168 2010-10-08  Bruno Haible  <bruno@clisp.org>
22169
22170         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22171         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22172
22173 2010-10-08  Bruno Haible  <bruno@clisp.org>
22174
22175         nanosleep: Make replacement POSIX compliant.
22176         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22177         is out of range.
22178         Reported by Jim Meyering.
22179
22180 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22181
22182         bootstrap: add hook for altering gnulib.mk, for Bison
22183         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22184         the Bison bootstrapping process can rewrite file names and variables
22185         in this file before later parts of 'bootstrap' use the file.
22186         Bison wants to include lib/gnulib.mk from the top-level makefile,
22187         so it needs the file names in this file to be relative to the top
22188         level, not relative to lib; plus it needs variable names to be
22189         rewritten.
22190         (slurp): Use the new function.
22191
22192         bootstrap: reformat for readability
22193         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22194
22195 2010-10-08  Eric Blake  <eblake@redhat.com>
22196
22197         docs: update cygwin progress
22198         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22199         1.7.7.
22200         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22201         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22202         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22203         * doc/posix-functions/carg.texi (carg): Likewise.
22204         * doc/posix-functions/cargf.texi (cargf): Likewise.
22205         * doc/posix-functions/casin.texi (casin): Likewise.
22206         * doc/posix-functions/casinf.texi (casinf): Likewise.
22207         * doc/posix-functions/casinh.texi (casinh): Likewise.
22208         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22209         * doc/posix-functions/catan.texi (catan): Likewise.
22210         * doc/posix-functions/catanf.texi (catanf): Likewise.
22211         * doc/posix-functions/catanh.texi (catanh): Likewise.
22212         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22213         * doc/posix-functions/ccos.texi (ccos): Likewise.
22214         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22215         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22216         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22217         * doc/posix-functions/cexp.texi (cexp): Likewise.
22218         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22219         * doc/posix-functions/cimag.texi (cimag): Likewise.
22220         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22221         * doc/posix-functions/clog.texi (clog): Likewise.
22222         * doc/posix-functions/clogf.texi (clogf): Likewise.
22223         * doc/posix-functions/conj.texi (conj): Likewise.
22224         * doc/posix-functions/conjf.texi (conjf): Likewise.
22225         * doc/posix-functions/cpow.texi (cpow): Likewise.
22226         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22227         * doc/posix-functions/cproj.texi (cproj): Likewise.
22228         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22229         * doc/posix-functions/creal.texi (creal): Likewise.
22230         * doc/posix-functions/crealf.texi (crealf): Likewise.
22231         * doc/posix-functions/csin.texi (csin): Likewise.
22232         * doc/posix-functions/csinf.texi (csinf): Likewise.
22233         * doc/posix-functions/csinh.texi (csinh): Likewise.
22234         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22235         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22236         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22237         * doc/posix-functions/ctan.texi (ctan): Likewise.
22238         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22239         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22240         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22241         * doc/posix-headers/complex.texi (complex.h): Likewise.
22242
22243 2010-10-07  Jim Meyering  <meyering@redhat.com>
22244
22245         parse-datetime: avoid compilation failure on OpenBSD 4.7
22246         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22247         This works around a compilation failure on OpenBSD 4.7:
22248         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22249
22250 2010-10-07  Eric Blake  <eblake@redhat.com>
22251
22252         docs: update cygwin progress
22253         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22254         1.7.6.
22255         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22256         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22257         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22258         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22259         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22260         Likewise.
22261         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22262         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22263         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22264         Likewise.
22265         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22266         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22267         Likewise.
22268         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22269         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22270         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22271         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22272         Likewise.
22273         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22274         Likewise.
22275         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22276
22277         docs: update parse-datetime history
22278         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22279         documentation of this function's history and alternatives.
22280
22281         cygwin: use more robust version check
22282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22283         exclude an eventual cygwin 1.9.1.
22284         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22286         (gl_FUNC_STRCASESTR): Likewise.
22287         Reported by Bruno Haible.
22288
22289 2010-10-06  Bruno Haible  <bruno@clisp.org>
22290
22291         string, sys_select: Avoid #including large headers unless necessary.
22292         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22293         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22294         OSF/1, BeOS, Haiku.
22295         Reported by Jim Meyering.
22296
22297 2010-10-05  Eric Blake  <eblake@redhat.com>
22298
22299         memmem, strstr, strcasestr: fix bug with long periodic needle
22300         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22301         periodic needle having false positive.
22302         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22303         and cygwin 1.7.7.
22304         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22306         (gl_FUNC_STRCASESTR): Likewise.
22307         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22308         * tests/test-memmem.c (main): Expose the bug.
22309         * tests/test-strcasestr.c (main): Likewise.
22310         * tests/test-strstr.c (main): Likewise.
22311         * tests/test-c-strcasestr.c (main): Likewise.
22312         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22313         * doc/posix-functions/strstr.texi (strstr): Likewise.
22314         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22315         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22316
22317 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22318
22319         parse-datetime: do some more renaming
22320         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22321         parse_datetime, not get_date.  Mention the renaming.
22322         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22323         in comments.
22324         * m4/bison.m4: Likewise.
22325
22326 2010-10-05  Eric Blake  <eblake@redhat.com>
22327
22328         parse-datetime: better name than get_date
22329         * NEWS: Reword the deprecation notice.
22330         * modules/get_date: Rename to modules/parse-datetime.
22331         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22332         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22333         * lib/get_date.y: Rename to lib/parse-datetime.y.
22334         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22335         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22336         * doc/getdate.texi: Provide fallback wrapper.
22337         * lib/getdate.h: Move guts, and wrap...
22338         * lib/parse-datetime.h: ...new file.
22339         * lib/parse-datetime.y (get_date): Rename...
22340         (parse_datetime): ...to this.
22341         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22342         (gl_PARSE_DATETIME): ...to this.
22343         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22344         documentation.
22345         * modules/getdate (Files): Provide fallback docs and header.
22346         (Notice, Depends-on): Update references.
22347         * tests/test-parse-datetime.c: Likewise.
22348         * DEPENDENCIES: Likewise.
22349         * MODULES.html.sh (Date and time <time.h>): Likewise.
22350         * doc/parse-datetime.texi (Date input formats)
22351         (Authors of parse_datetime): Likewise.
22352         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22353         (Include): Likewise.
22354         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22355         * gnulib-tool: Likewise.
22356         * m4/bison.m4 (gl_BISON): Likewise.
22357         Suggested by Bruno Haible.
22358
22359 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22360
22361         more ports to Solaris tr, which needs [] around ranges
22362         * gnulib-tool: Solaris tr needs [] around ranges.
22363         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22364         * tests/test-pipe-filter-gi1.c (main): Likewise.
22365         * tests/test-pipe-filter-ii1.c (main): Likewise.
22366
22367 2010-10-05  Eric Blake  <eblake@redhat.com>
22368
22369         bootstrap: fix Solaris regression
22370         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22371         around ranges.
22372         Reported by Pádraig Brady.
22373
22374         bootstrap: work with pkg-config
22375         * build-aux/bootstrap (check_versions): Also transliterate - in
22376         prerequisite name.
22377         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22378         prerequisites that were already found, to avoid confusion.
22379         Reported by Justin Clift.
22380
22381         faccessat: remove unused wrappers
22382         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22383         presence of these wrappers dragged in -lgen on Solaris.
22384         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22385
22386 2010-10-05  Jim Meyering  <meyering@redhat.com>
22387
22388         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22389         * Makefile (sc_pragma_columns): New syntax-check rule.
22390
22391 2010-10-04  Bruno Haible  <bruno@clisp.org>
22392
22393         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22394         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22395         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22396         Reported by Bruce Korb and Eric Blake.
22397
22398 2010-10-04  Bruno Haible  <bruno@clisp.org>
22399
22400         threadlib: Make option --with-libpth-prefix work.
22401         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22402         use $LIBPTH, not just -lpth.
22403
22404 2010-10-04  Bruno Haible  <bruno@clisp.org>
22405
22406         Avoid line length limitation from HP NonStop system header files.
22407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22408         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22409         * lib/ctype.in.h: Likewise.
22410         * lib/dirent.in.h: Likewise.
22411         * lib/errno.in.h: Likewise.
22412         * lib/fcntl.in.h: Likewise.
22413         * lib/float.in.h: Likewise.
22414         * lib/getopt.in.h: Likewise.
22415         * lib/iconv.in.h: Likewise.
22416         * lib/inttypes.in.h: Likewise.
22417         * lib/langinfo.in.h: Likewise.
22418         * lib/locale.in.h: Likewise.
22419         * lib/math.in.h: Likewise.
22420         * lib/netdb.in.h: Likewise.
22421         * lib/netinet_in.in.h: Likewise.
22422         * lib/poll.in.h: Likewise.
22423         * lib/pthread.in.h: Likewise.
22424         * lib/pty.in.h: Likewise.
22425         * lib/sched.in.h: Likewise.
22426         * lib/se-selinux.in.h: Likewise.
22427         * lib/search.in.h: Likewise.
22428         * lib/signal.in.h: Likewise.
22429         * lib/spawn.in.h: Likewise.
22430         * lib/stdarg.in.h: Likewise.
22431         * lib/stddef.in.h: Likewise.
22432         * lib/stdint.in.h: Likewise.
22433         * lib/stdio.in.h: Likewise.
22434         * lib/stdlib.in.h: Likewise.
22435         * lib/string.in.h: Likewise.
22436         * lib/strings.in.h: Likewise.
22437         * lib/sys_file.in.h: Likewise.
22438         * lib/sys_ioctl.in.h: Likewise.
22439         * lib/sys_select.in.h: Likewise.
22440         * lib/sys_socket.in.h: Likewise.
22441         * lib/sys_stat.in.h: Likewise.
22442         * lib/sys_time.in.h: Likewise.
22443         * lib/sys_times.in.h: Likewise.
22444         * lib/sys_utsname.in.h: Likewise.
22445         * lib/sys_wait.in.h: Likewise.
22446         * lib/sysexits.in.h: Likewise.
22447         * lib/termios.in.h: Likewise.
22448         * lib/time.in.h: Likewise.
22449         * lib/unistd.in.h: Likewise.
22450         * lib/wchar.in.h: Likewise.
22451         * lib/wctype.in.h: Likewise.
22452         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22453         * modules/ctype (Makefile.am): Likewise.
22454         * modules/dirent (Makefile.am): Likewise.
22455         * modules/errno (Makefile.am): Likewise.
22456         * modules/fcntl-h (Makefile.am): Likewise.
22457         * modules/float (Makefile.am): Likewise.
22458         * modules/getopt-posix (Makefile.am): Likewise.
22459         * modules/iconv-h (Makefile.am): Likewise.
22460         * modules/inttypes (Makefile.am): Likewise.
22461         * modules/langinfo (Makefile.am): Likewise.
22462         * modules/locale (Makefile.am): Likewise.
22463         * modules/math (Makefile.am): Likewise.
22464         * modules/netdb (Makefile.am): Likewise.
22465         * modules/netinet_in (Makefile.am): Likewise.
22466         * modules/poll-h (Makefile.am): Likewise.
22467         * modules/pthread (Makefile.am): Likewise.
22468         * modules/pty (Makefile.am): Likewise.
22469         * modules/sched (Makefile.am): Likewise.
22470         * modules/search (Makefile.am): Likewise.
22471         * modules/selinux-h (Makefile.am): Likewise.
22472         * modules/signal (Makefile.am): Likewise.
22473         * modules/spawn (Makefile.am): Likewise.
22474         * modules/stdarg (Makefile.am): Likewise.
22475         * modules/stddef (Makefile.am): Likewise.
22476         * modules/stdint (Makefile.am): Likewise.
22477         * modules/stdio (Makefile.am): Likewise.
22478         * modules/stdlib (Makefile.am): Likewise.
22479         * modules/string (Makefile.am): Likewise.
22480         * modules/strings (Makefile.am): Likewise.
22481         * modules/sys_file (Makefile.am): Likewise.
22482         * modules/sys_ioctl (Makefile.am): Likewise.
22483         * modules/sys_select (Makefile.am): Likewise.
22484         * modules/sys_socket (Makefile.am): Likewise.
22485         * modules/sys_stat (Makefile.am): Likewise.
22486         * modules/sys_time (Makefile.am): Likewise.
22487         * modules/sys_times (Makefile.am): Likewise.
22488         * modules/sys_utsname (Makefile.am): Likewise.
22489         * modules/sys_wait (Makefile.am): Likewise.
22490         * modules/sysexits (Makefile.am): Likewise.
22491         * modules/termios (Makefile.am): Likewise.
22492         * modules/time (Makefile.am): Likewise.
22493         * modules/unistd (Makefile.am): Likewise.
22494         * modules/wchar (Makefile.am): Likewise.
22495         * modules/wctype (Makefile.am): Likewise.
22496
22497 2010-10-04  Bruno Haible  <bruno@clisp.org>
22498
22499         read-file tests: Avoid a test failure on NonStop Kernel.
22500         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22501         a regular file.
22502         Reported by Joachim Schmitz <schmitz@hp.com>.
22503
22504 2010-10-03  Bruno Haible  <bruno@clisp.org>
22505
22506         gnulib-tool: Fixes for --create-testdir with --libtool.
22507         * gnulib-tool (func_get_automake_snippet): Don't augment
22508         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22509         an executable.
22510         (func_create_testdir): Handle module 'alloca' like func_import.
22511         Reported by Bruce Korb <bruce.korb@gmail.com>.
22512
22513 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22514
22515         Avoid some lines longer than 80 characters.
22516         * lib/stdint.in.h: Break long comment lines.
22517         * lib/math.in.h: Likewise.
22518         (_GL_NUM_UINT_WORDS): New macro, for readability.
22519         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22520         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22521         * lib/stdlib.in.h: Likewise.
22522         * lib/spawn.in.h: Likewise.
22523         * lib/sys_socket.in.h: Update an URL.
22524         * lib/sys_stat.in.h: Break long line.
22525
22526 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22527
22528         Improve pmccabe2html.
22529         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22530         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22531         when the sources change. Remove the line in the HTML about "Used
22532         ranges" (which implied that there might be other unused ranges),
22533         rename "Resume" to "Summary" (easier to understand for more users).
22534         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22535         styles, and some unnecessary blank lines.
22536
22537 2010-10-03  Bruno Haible  <bruno@clisp.org>
22538             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22539
22540         acl: Add support for ACLs on NonStop Kernel.
22541         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22542         Check whether the function aclsort() exists.
22543         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22544         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22545         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22546         (acl_nontrivial [HAVE_ACLSORT]: New function.
22547         (file_has_acl): Implement for NonStop Kernel.
22548         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22549         (qset_acl): Implement for NonStop Kernel.
22550         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22551         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22552         (main): Implement for NonStop Kernel.
22553         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22554         Kernel. Handle this flavor.
22555         * tests/test-set-mode-acl.sh: Likewise.
22556         * tests/test-copy-acl.sh: Likewise.
22557         * tests/test-copy-file.sh: Likewise.
22558
22559 2010-10-03  Bruno Haible  <bruno@clisp.org>
22560
22561         Info about ACLs on NonStop Kernel.
22562         * doc/acl-resources.txt: Add info about NonStop Kernel.
22563         References by Joachim Schmitz <schmitz@hp.com>.
22564
22565 2010-10-02  Bruno Haible  <bruno@clisp.org>
22566
22567         Define missing EDQUOT on NonStop Kernel.
22568         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22569         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22570         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22571         missing.
22572         * doc/posix-headers/errno.texi: Mention the NSK bug.
22573         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22574         Reported by Joachim Schmitz <schmitz@hp.com>.
22575
22576 2010-10-02  Bruno Haible  <bruno@clisp.org>
22577
22578         Update doc for POSIX:2008.
22579         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22580         Update URL of POSIX specification.
22581
22582 2010-10-02  Bruno Haible  <bruno@clisp.org>
22583
22584         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22585         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22586         from gnulib, not from Automake.
22587
22588 2010-10-02  Bruno Haible  <bruno@clisp.org>
22589
22590         New module 'system-posix'.
22591         * modules/system-posix: New file.
22592         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22593         module is present.
22594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22595         GNULIB_SYSTEM_POSIX.
22596         * modules/stdlib (Depends-on): Remove sys_wait.
22597         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22598         * doc/posix-functions/system.texi: Mention the new module.
22599         * doc/posix-headers/stdlib.texi: Likewise.
22600         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22601         define test_sys_wait_macros to a no-op.
22602         Reported by Sam Steingold <sds@gnu.org>.
22603
22604 2010-09-30  Bruno Haible  <bruno@clisp.org>
22605
22606         More renaming from 'getdate' to 'get_date'.
22607         * doc/get_date.texi: Renamed from doc/getdate.texi.
22608         * modules/get_date (Files): Update.
22609         * MODULES.html.sh (Date and time <time.h>): Update.
22610         * DEPENDENCIES: Update.
22611         * gnulib-tool: Update comment.
22612         * m4/bison.m4 (gl_BISON): Likewise.
22613         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22614
22615 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22616
22617         bootstrap: support ACLOCAL_FLAGS during aclocal
22618         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22619         can add additional -I dir for third-party .m4 files.
22620
22621 2010-09-30  Eric Blake  <eblake@redhat.com>
22622
22623         bootstrap: use glibtoolize on MacOS
22624         * build-aux/bootstrap (check_versions): Convert libtool into
22625         libtoolize.
22626         (tool search): Move libtool check earlier, and look for
22627         glibtoolize for MacOS.
22628         (gnulib_tool_options): Auto-add --libtool when appropriate.
22629         Reported by Justin Clift.
22630
22631         poll: fix typo that broke test on MacOS
22632         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22633         Reported by Justin Clift.
22634
22635         getdate: rename to get_date
22636         Note: getdate.h is not renamed, to minimize client impact.
22637         * modules/getdate: Mark obsolete.  Move old contents...
22638         * modules/get_date: ...to new module name.
22639         * modules/getdate-tests: Move...
22640         * modules/get_date-tests: ...here.
22641         * m4/getdate.m4: Move...
22642         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22643         * lib/getdate.y: Move...
22644         * lib/get_date.y: ...here.
22645         * tests/test-getdate.c: Move...
22646         * tests/test-get_date.c: ...here.
22647         * doc/posix-functions/getdate.texi (getdate): Update name.
22648         * NEWS: Mention the change.
22649
22650 2010-09-29  Bruno Haible  <bruno@clisp.org>
22651
22652         Separate the module 'waitpid' from the module 'sys_wait'.
22653         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22654         present.
22655         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22656         gl_MODULE_INDICATOR_FOR_TESTS.
22657         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22658         * modules/sys_wait (Depends-on): Remove waitpid.
22659         (Makefile.am): Substitute GNULIB_WAITPID.
22660         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22661         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22662         signature only if the 'waitpid' module is present.
22663         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22664         * NEWS: Mention the change.
22665         * modules/grantpt (Depends-on): Add waitpid.
22666         * modules/wait-process (Depends-on): Likewise.
22667
22668 2010-09-29  Bruno Haible  <bruno@clisp.org>
22669
22670         More tests for module 'sys_wait'.
22671         * modules/sys_wait-c++-tests: New file.
22672         * tests/test-sys_wait-c++.cc: New file.
22673         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22674         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22675
22676 2010-09-29  Bruno Haible  <bruno@clisp.org>
22677
22678         New module 'waitpid'.
22679         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22680         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22681         Don't include <process.h>.
22682         (waitpid): Declare only, using modern idiom.
22683         * m4/waitpid.m4: New file.
22684         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22685         * modules/waitpid: New file.
22686         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22687         (Makefile.am): Update.
22688         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22689
22690 2010-09-28  Bruno Haible  <bruno@clisp.org>
22691
22692         poll: Assume ANSI C.
22693         * lib/poll.c (poll): Use an ANSI C declaration.
22694
22695 2010-09-28  Bruno Haible  <bruno@clisp.org>
22696
22697         poll-h: Create poll.h on all platforms.
22698         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22699         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22700         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22701         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22702         (gl_REPLACE_POLL_H): Don't set POLL_H.
22703         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22704         * modules/poll-h (Depends-on): Add include_next.
22705         (Makefile.am): Create poll.h unconditionally. Substitute also
22706         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22707
22708 2010-09-28  Bruno Haible  <bruno@clisp.org>
22709
22710         Tests for module 'poll-h'.
22711         * modules/poll-h-c++-tests: New file.
22712         * tests/test-poll-h-c++.cc: New file.
22713
22714         Tests for module 'poll-h'.
22715         * modules/poll-h-tests: New file.
22716         * tests/test-poll-h.c: New file.
22717
22718 2010-09-28  Bruno Haible  <bruno@clisp.org>
22719
22720         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22721         * modules/poll-h (Depends-on): Add 'extensions'.
22722
22723 2010-09-28  Bruno Haible  <bruno@clisp.org>
22724
22725         New module 'poll-h'.
22726         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22727         (poll): Use modern idiom.
22728         * modules/poll-h: New file.
22729         * modules/poll (Files): Remove lib/poll.in.h.
22730         (Depends-on): Add poll-h.
22731         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22732         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22733         * m4/poll_h.m4: New file.
22734         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22735         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22736         and invoke gl_REPLACE_POLL_H.
22737         * lib/poll.c: Use common idiom.
22738         * tests/test-poll.c: Likewise.
22739         * doc/posix-headers/poll.texi: Mention the poll-h module.
22740         Suggested by Eric Blake.
22741
22742 2010-09-26  Bruno Haible  <bruno@clisp.org>
22743
22744         sys_wait: Implement WSTOPSIG.
22745         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22746         Reported by Simon Josefsson.
22747
22748 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22749
22750         stdlib, sys_wait: Avoid compilation error on mingw.
22751         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22752
22753 2010-09-26  Bruno Haible  <bruno@clisp.org>
22754
22755         stdlib tests: Avoid code duplication.
22756         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22757         * modules/sys_wait-tests (Files): Likewise.
22758         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22759         * tests/test-stdlib.c: Include test-sys_wait.h.
22760         (main): Invoke test_sys_wait_macros.
22761         * tests/test-sys_wait.c: Include test-sys_wait.h.
22762         (main): Invoke test_sys_wait_macros.
22763
22764 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22765
22766         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22767         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22768         sure Windows sockets are working before calling getaddrinfo.
22769         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22770         * doc/gnulib.texi (Windows sockets): Fix typo.
22771
22772 2010-09-25  Bruno Haible  <bruno@clisp.org>
22773
22774         Tests for module 'regex-quote'.
22775         * modules/regex-quote-tests: New file.
22776         * tests/test-regex-quote.c: New file.
22777
22778         New module 'regex-quote'.
22779         * lib/regex-quote.h: New file.
22780         * lib/regex-quote.c: New file.
22781         * modules/regex-quote: New file.
22782         Suggested by Reuben Thomas <rrt@sc3d.org>.
22783
22784 2010-09-24  Bruno Haible  <bruno@clisp.org>
22785
22786         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22787         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22788
22789 2010-09-23  Bruno Haible  <bruno@clisp.org>
22790
22791         setenv: Relax license.
22792         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22793         Blake.
22794         Requested by Eric Blake.
22795
22796 2010-09-22  Bruno Haible  <bruno@clisp.org>
22797
22798         termios: Relax license.
22799         * modules/termios (License): Change to LGPLv2+.
22800         Requested by Eric Blake.
22801
22802 2010-09-22  Bruno Haible  <bruno@clisp.org>
22803
22804         threadlib: Allow the package to change the default to 'no'.
22805         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22806         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22807         Reported by Paul Eggert.
22808
22809 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22810             Bruno Haible  <bruno@clisp.org>
22811
22812         Fix endless loop in mbmemcasecoll.
22813         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22814         byte.
22815         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22816
22817 2010-09-22  Bruno Haible  <bruno@clisp.org>
22818
22819         Tests for module 'memcoll'.
22820         * modules/memcoll-tests: New file.
22821         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22822
22823         memcoll, xmemcoll: Clarify size vs. length.
22824         * modules/memcoll.c (memcoll0): Clarify specification.
22825         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22826         passed to collate_error.
22827
22828 2010-09-22  Bruno Haible  <bruno@clisp.org>
22829
22830         Tests for module 'memcasecmp'.
22831         * modules/memcasecmp-tests: New file.
22832         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22833
22834 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22835
22836         * lib/pthread.in.h: Add split double-inclusion guard, and include
22837         system <pthread.h> if there is one.  Use @@-style as in other
22838         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22839         pthread.h doesn't.
22840         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22841         (pthread_mutexattr_settype, pthread_mutex_trylock):
22842         New static inline functions, if there's no system <pthread.h>.
22843         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22844         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22845         Approximate with mutexes if the system lacks spinlocks, as in
22846         MacOS.
22847         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22848         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22849         @@-style.  Check for spinlocks separately.
22850         (gl_PTHREAD_DEFAULTS): New macro.
22851         * modules/pthread: Redo to use a more typical style for in.h files.
22852
22853 2010-09-21  Eric Blake  <eblake@redhat.com>
22854
22855         net_if: enhance tests
22856         * tests/test-net_if.c (main): Move signature checks earlier.
22857         Print failures to stderr.
22858         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22859         Document the bug that we do not yet fix.
22860
22861 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22862
22863         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22864         about gnulib, not GSS.
22865
22866 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22867
22868         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22869         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22870         for Emacs.
22871         * build-aux/pmccabe2html: Make Makefile.am example code more
22872         cut-and-paste friendly.
22873
22874 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22875
22876         * tests/test-net_if.c: New file.
22877         * modules/net_if-tests: New file.
22878
22879 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22880
22881         pthread: add pthread_spin_destroy
22882         * lib/pthread.in.h (pthread_spin_destroy): New function.
22883
22884 2010-09-19  Bruno Haible  <bruno@clisp.org>
22885
22886         gnulib-tool: Fix --help output.
22887         * gnulib-tool (func_usage): Fix help message.
22888         Reported by Reuben Thomas <rrt@sc3d.org>.
22889
22890 2010-09-18  Jim Meyering  <meyering@redhat.com>
22891
22892         maint.mk: avoid unexpanded \n in two diagnostics
22893         * top/maint.mk (sc_prohibit_always_true_header_tests):
22894         Don't use a literal \n in a halt=... assignment.  It would not be
22895         expanded, and the two \n bytes would appear in the diagnostic output
22896         rather than the desired newline.  Use halt=$$(printf ... instead.
22897         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22898
22899 2010-09-18  Bruno Haible  <bruno@clisp.org>
22900
22901         netinet_in: Doc tweak.
22902         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22903         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22904
22905 2010-09-18  Jim Meyering  <meyering@redhat.com>
22906
22907         init.sh: correct an outdated comment
22908         * tests/init.sh (create_exe_shims_):  s/function/alias/
22909
22910         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22911         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22912         a file named "*.exe" is removed between the glob expansion and the
22913         processing of that oddly named file.
22914
22915 2010-09-17  Eric Blake  <eblake@redhat.com>
22916
22917         mirbsd: add some more support
22918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22919         in BSD family.
22920         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22921         devices as OpenBSD.
22922         * m4/host-os.m4 (mirbsd): Add MirBSD.
22923
22924         tests: fix unportable assumption on sys/wait.h
22925         * tests/test-sys_wait.c (main): Relax test.
22926         * tests/test-stdlib.c (main): Likewise.
22927
22928         init.sh: accomodate directory with no .exes
22929         * tests/init.sh: Accomodate directory containing only scripts.
22930
22931         tests: avoid compiler warning
22932         * tests/test-stdlib.c (main): Use the variable.
22933
22934         fdutimens, fdutimensat: update signature, again
22935         * lib/utimens.h (gl_futimens): Delete, and move signature...
22936         (fdutimens): ...here.
22937         (fdutimensat): Rearrange signature.
22938         (lutimensat): Rename variable for clarity.
22939         * lib/fdutimensat.c (fdutimensat): Update signature.
22940         * lib/utimens.c (fdutimens): Likewise.
22941         (gl_futimens): Delete.
22942         (utimens, lutimens): Update callers.
22943         * lib/futimens.c (futimens): Likewise.
22944         * tests/test-fdutimensat.c: Likewise.
22945         * tests/test-utimens.c: Likewise.
22946         * tests/test-futimens.h: Update comment.
22947         * NEWS: Mention this.
22948         Suggested by Paul Eggert.
22949
22950 2010-09-17  Bruno Haible  <bruno@clisp.org>
22951
22952         Take over the maintenance of some older macros from Autoconf.
22953         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22954         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22955         GNU Autoconf.
22956         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22957         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22958
22959 2010-09-17  Eric Blake  <eblake@redhat.com>
22960
22961         fdutimensat: drop atflag validation
22962         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22963         with valid fd, to close a race scenario where futimens is
22964         unsupported and FILE was replaced by a symlink.
22965         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22966         accordingly.
22967         Suggested by Paul Eggert.
22968
22969 2010-09-16  Bruno Haible  <bruno@clisp.org>
22970
22971         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22972         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22973
22974 2010-09-16  Bruno Haible  <bruno@clisp.org>
22975
22976         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22977         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22978         login_tty exists.
22979         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22980
22981 2010-09-16  Bruno Haible  <bruno@clisp.org>
22982
22983         login_tty: Make the replacement code work on BSD systems.
22984         * lib/login_tty.c: Include <sys/ioctl.h>.
22985         (login_tty): Use ioctl TIOCSCTTY when available.
22986         * modules/login_tty (Depends-on): Add sys_ioctl.
22987         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22988
22989 2010-09-16  Bruno Haible  <bruno@clisp.org>
22990
22991         login_tty: Stricter unit test.
22992         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22993         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22994         and tcgetsid() after login_tty.
22995         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22996
22997 2010-09-16  Bruno Haible  <bruno@clisp.org>
22998
22999         New module 'tcgetsid'.
23000         * lib/tcgetsid.c: New file.
23001         * m4/tcgetsid.m4: New file.
23002         * modules/tcgetsid: New file.
23003         * modules/termios (Depends-on): Add c++defs, warn-on-use.
23004         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
23005         GNULIB_TCGETSID, HAVE_TCGETSID.
23006         * lib/termios.in.h: Include <sys/types.h>.
23007         (tcgetsid): New declaration.
23008         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
23009         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
23010         * doc/posix-functions/tcgetsid.texi: Mention the new module.
23011         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
23012
23013 2010-09-16  Bruno Haible  <bruno@clisp.org>
23014
23015         Tests for module 'termios'.
23016         * modules/termios-c++-tests: New file.
23017         * modules/termios-tests: New file.
23018         * tests/test-termios-c++.cc: New file.
23019         * tests/test-termios.c: New file.
23020
23021         New module 'termios'.
23022         * modules/termios: New file.
23023         * lib/termios.in.h: New file.
23024         * m4/termios_h.m4: New file.
23025         * doc/posix-headers/termios.texi: Mention the new module.
23026
23027 2010-09-16  Eric Blake  <eblake@redhat.com>
23028
23029         fdutimensat: add an atflag parameter
23030         * lib/fdutimensat.c (fdutimensat): Add new parameter.
23031         * lib/utimens.h (fdutimensat): Update prototype.
23032         * tests/test-fdutimensat.c: Adjust test to match.
23033         * NEWS: Document the change.
23034         Suggested by Paul Eggert.
23035
23036 2010-09-16  Bruno Haible  <bruno@clisp.org>
23037
23038         Fix typos in comments.
23039         * lib/striconveh.h: Fix typo in comment.
23040         * lib/login_tty.c (login_tty): Likewise.
23041
23042 2010-09-15  Bruno Haible  <bruno@clisp.org>
23043
23044         stdlib: clarify MirBSD WEXITSTATUS bug
23045         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
23046         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23047
23048 2010-09-15  Eric Blake  <eblake@redhat.com>
23049
23050         stdlib: work around MirBSD WEXITSTATUS bug
23051         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
23052         * modules/stdlib (Depends-on): Add sys_wait.
23053         * tests/test-sys_wait.c (main): Enhance test.
23054         * tests/test-stdlib.c (main): Likewise.
23055         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
23056
23057         docs: mention MacOS issue with WEXITSTATUS(constant)
23058         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
23059         issue.
23060         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23061
23062         strnlen: add tests
23063         * modules/strnlen-tests: New file.
23064         * tests/test-strnlen.c: Likewise.
23065
23066 2010-09-14  Bruno Haible  <bruno@clisp.org>
23067
23068         unistr/base: Avoid link errors when module 'libunistring' is also used.
23069         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
23070         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
23071         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
23072         Declare also when HAVE_LIBUNISTRING is set.
23073         Reported by Pádraig Brady <P@draigbrady.com>.
23074
23075 2010-09-14  Eric Blake  <eblake@redhat.com>
23076
23077         test-rawmemchr: make more robust
23078         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
23079         (Depends-on, configure.ac): Add needed prerequisites to use it.
23080         * modules/memchr-tests (Files, Depends-on, configure.ac):
23081         Likewise, to avoid implicit reliance on memchr module prereqs.
23082         * tests/test-memchr.c (main): Ensure proper masking.
23083         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
23084         reads.
23085
23086         memchr: detect glibc Alpha bug
23087         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
23088         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
23089         Alpha.
23090         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
23091         * tests/test-memchr.c (main): Enhance test.
23092         Reported by Nelson H. F. Beebe.
23093
23094 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23095
23096         fts, getcwd, glob: audit for dirfd returning -1
23097         * lib/fts.c (opendir): Remove #define; no longer used.
23098         (opendirat): New arg PDIR_FD.  All callers changed.
23099         (fts_build, _opendir2): Use new opendirat to avoid the need for
23100         dirfd, or for checking whether dirfd returns a negative value.
23101         Don't use opendir; always use openat followed by fdopendir.
23102         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
23103         it.
23104         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
23105         returns -1 here.
23106         * modules/fts (Depends-on): Remove dirfd.
23107         * modules/getcwd (Depends-on): Likewise.
23108
23109 2010-09-13  Eric Blake  <eblake@redhat.com>
23110
23111         float: fix broken MirBSD header
23112         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
23113         * doc/posix-headers/float.texi (float.h): Document it.
23114
23115 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23116
23117         fts: use O_NOFOLLOW to avoid race condition when opening a directory
23118         * lib/fts.c (opendirat): New arg extra_flags.
23119         (__opendir2): Use it to avoid following symlinks when opening
23120         a directory, if symlinks are not supposed to be followed.  See
23121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
23122
23123         fdopendir: preserve argument fd before returning
23124         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
23125         (fdopendir_with_dup, fd_clone_opendir): New static functions.
23126         (fdopendir): Use them, arranging for FD to be open to the same
23127         directory that it was when it started.  (It might be temporarily
23128         closed while fdopendir is running, so this not thread- or
23129         signal-safe.)  Be careful to do the right thing even when file
23130         descriptors are scarce and dup fails with errno == EMFILE.  See
23131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
23132
23133 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
23134
23135         regex: Pass the system regex if its only problem is 32-bit regoff_t.
23136         * NEWS: Document change.
23137         * m4/regex.m4: Disable test for regoff_t size.
23138
23139 2010-09-13  Jim Meyering  <meyering@redhat.com>
23140
23141         fts: don't operate on an invalid file descriptor after failed dup
23142         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
23143         negative file descriptor.
23144
23145 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23146
23147         savedir: add streamsavedir, deprecate fdsavedir
23148         * NEWS: Mention deprecation of fdsavedir.
23149         * lib/savedir.c (streamsavedir): New extern function, whose name
23150         ends in "savedir" to be consistent with the others.  This differs
23151         from savedirstream in that it doesn't close its argument.  The
23152         next version of GNU tar will use this instead of fdsavedir, to
23153         avoid some race conditions and conserve file descriptors.
23154         (savedirstream): Reimplement as a wrapper around streamsavedir.
23155         (fdsavedir): Add a comment deprecating this function.  As far as
23156         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23157         * lib/savedir.h (streamsavedir): New decl.
23158         (fdsavedir): Add a comment deprecating this.
23159
23160 2010-09-10  Bruno Haible  <bruno@clisp.org>
23161
23162         langinfo: Fix last commit.
23163         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23164         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23166
23167 2010-09-10  Bruno Haible  <bruno@clisp.org>
23168
23169         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23170         * lib/progreloc.c (O_EXEC): Define fallback.
23171
23172 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23175         * NEWS: Document recent changes to fcntl-h.
23176         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23177         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23178         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23179         Similarly for O_SEARCH; this last was already true, but not documented.
23180         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23181         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23182         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23183         Likewise.
23184         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23185         is zero, not whether it is defined.
23186         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23187         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23188         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23189
23190 2010-09-10  Bruno Haible  <bruno@clisp.org>
23191
23192         langinfo, nl_langinfo: Fix for IRIX 5.3.
23193         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23194         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23195         HAVE_LANGINFO_YESEXPR.
23196         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23197         HAVE_LANGINFO_YESEXPR.
23198         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23199         HAVE_LANGINFO_T_FMT_AMPM is 0.
23200         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23201         HAVE_LANGINFO_YESEXPR is 0.
23202         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23203         NOEXPR.
23204         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23205         * doc/posix-functions/nl_langinfo.texi: Likewise.
23206         Reported by Eric Blake.
23207
23208 2010-09-10  Bruno Haible  <bruno@clisp.org>
23209
23210         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23211         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23212         on FreeBSD 8.0 and OpenBSD 4.6.
23213         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23214         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23215         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23216         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23217         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23218         ac_includes_default.
23219         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23220
23221 2010-09-09  Eric Blake  <eblake@redhat.com>
23222
23223         strsignal: work around NetBSD bug
23224         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23225         * lib/string.in.h (includes): Likewise.
23226         * doc/posix-functions/strsignal.texi (strsignal): Document the
23227         bug.
23228         Reported by Nelson H. F. Beebe.
23229
23230         gnulib-tool: work with NetBSD /bin/sh
23231         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23232         (func_get_description, func_get_comment, func_get_status)
23233         (func_get_notice, func_get_applicability, func_get_filelist)
23234         (func_get_dependencies, func_get_autoconf_early_snippet)
23235         (func_get_autoconf_snippet, func_get_automake_snippet)
23236         (func_get_include_directive, func_get_link_directive)
23237         (func_get_license, func_get_maintainer, func_import): Avoid
23238         shell syntax errors from parsing syntax extensions.
23239
23240 2010-09-09  Bruno Haible  <bruno@clisp.org>
23241
23242         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23243         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23244         a reliable way to determine whether the 'alias' command works.
23245
23246 2010-09-08  Jim Meyering  <meyering@redhat.com>
23247
23248         init.sh: penalize a set-x-impaired shell; don't disqualify it
23249         * tests/init.sh: Too many shells corrupt application stderr when
23250         you set -x, so we can't afford to disqualify them, since at least
23251         on Irix-6.5, that would disqualify all bourne shells.
23252         Instead, use a two-pass approach.
23253         On the first pass, try to find a shell that meets the stricter
23254         condition that set -x does not corrupt stderr.
23255         If no shell meets the stricter condition, retest each candidate
23256         shell, but without that extra condition.  Finally, when
23257         VERBOSE=yes is requested and set -x might cause trouble, simply
23258         issue a warning and refrain from enabling debug output.
23259
23260 2010-09-08  Eric Blake  <eblake@redhat.com>
23261
23262         unsetenv: fix OpenBSD bug
23263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23264         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23265         documentation.
23266         Reported by Jim Meyering.
23267
23268         strtod: work around IRIX 6.5 bug
23269         * lib/strtod.c (strtod): Reparse number on shorter string if
23270         exponent parse was invalid.
23271         * tests/test-strtod.c (main): Add check for "0x1p 2".
23272         Reported by Tom G. Christensen.
23273
23274         getopt: optimize previous patch
23275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23276         empty variable.  Speed up awk script.
23277         Reported by Paolo Bonzini.
23278
23279 2010-09-08  Jim Meyering  <meyering@redhat.com>
23280
23281         test.sh: disqualify shells for which set -x corrupts stderr
23282         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23283         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23284         appear in stderr output.  For example, this command:
23285             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23286         prints "P=1" on those two systems:
23287
23288 2010-09-08  Bruno Haible  <bruno@clisp.org>
23289
23290         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23291         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23292         commands, because some shells ignore redirections when there is an
23293         error in the command lookup.
23294         Reported by Eric Blake.
23295
23296 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23297
23298         * lib/regex.h: Fix a mention of `regex_compile' (should be
23299         `re_compile_pattern').
23300         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23301         (re_set_registers): Correct name of parameter in comment.
23302
23303         * doc/regex.texi: Add documentation for missing syntax flags.
23304         Remove commented-out documentation of defunct syntax option
23305         RE_NO_EMPTY_ALTS.
23306         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23307         Add documentation of re_set_registers.
23308         Document trick to re-use a pattern buffer by setting fastmap manually.
23309         Update documentation of struct re_pattern_buffer per public members.
23310         Uncomment documentation of equivalence class operators and
23311         collating symbol operators, since they are now implemented,
23312         Explain leftmost-longest matching in relation to alternatives.
23313         Tidy documentation of substring matching.
23314         Remove POSIX documentation, which is done better in
23315         glibc, and refer the reader there. Keep BSD API documentation, as
23316         that is not readily available elsewhere.
23317
23318 2010-09-07  Eric Blake  <eblake@redhat.com>
23319
23320         getopt: handle POSIXLY_CORRECT set but not exported
23321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23322         export state of POSIXLY_CORRECT, due to bash set -o posix.
23323         Reported by Dustin J. Mitchell.
23324
23325 2010-09-05  Bruno Haible  <bruno@clisp.org>
23326
23327         gnulib-tool: Highlight the changed options.
23328         * gnulib-tool (func_usage): Display the --import, --add-import,
23329         --remove-import explanations in bold font.
23330
23331 2010-09-06  Karl Berry  <karl@gnu.org>
23332
23333         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23334
23335 2010-09-05  Bruno Haible  <bruno@clisp.org>
23336
23337         uniwidth/width: Update comment.
23338         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23339         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23340
23341 2010-09-05  Bruno Haible  <bruno@clisp.org>
23342
23343         isinf, isnan: Relax license.
23344         * modules/isinf (License): Change from GPL to LGPL, with consent from
23345         Ben Pfaff.
23346         * modules/isnan (License): Likewise.
23347         Requested by Ludovic Courtès.
23348
23349 2010-09-04  Bruno Haible  <bruno@clisp.org>
23350
23351         gnulib-tool: Help migration from --import to --add-import or --update.
23352         * gnulib-tool: Emit a verbose error message when --import is used
23353         without any module name.
23354
23355 2010-09-04  Bruno Haible  <bruno@clisp.org>
23356
23357         Update doc about gnulib-tool.
23358         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23359         'gnulib-tool --update' in more detail.
23360         Reported by Eric Blake.
23361
23362 2010-09-04  Bruno Haible  <bruno@clisp.org>
23363
23364         gnulib-tool: Change --import. New options --add/remove-import.
23365         * gnulib-tool: New options --add-import, --remove-import.
23366         (func_usage): Document them.
23367         (have_associative): Define always.
23368         (func_import): In import mode, don't merge the specified settings with
23369         the cached settings. Implement remove-import mode.
23370         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23371         Explain when to use them versus --import.
23372         (Simple update): Use --add-import instead of --import.
23373         * NEWS: Mention the change.
23374
23375 2010-09-04  Bruno Haible  <bruno@clisp.org>
23376
23377         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23378         separate gnulib.mk.
23379
23380 2010-09-04  Bruno Haible  <bruno@clisp.org>
23381
23382         gnulib-tool: Don't talk about CVS any more.
23383         * gnulib-tool (func_usage, func_import): Write "version control"
23384         instead of CVS.
23385
23386 2010-09-04  Jim Meyering  <meyering@redhat.com>
23387
23388         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23389         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23390         false positives (whose names may be ill-chosen) when searching
23391         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23392         would cause a false-positive.
23393
23394         avoid coreutils "make distcheck" failure
23395         Coreutils tests with an absolute build directory name that contains
23396         a space.  Not quoting this directory name caused a failure.
23397         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23398         * tests/test-vc-list-files-cvs.sh: Likewise.
23399
23400 2010-09-04  Bruno Haible  <bruno@clisp.org>
23401
23402         gnulib-tool: Avoid error when run in a package without Makefile.am.
23403         * gnulib-tool: When collecting the m4dirs in a package that does not
23404         have a Makefile.am, eliminate those directories that contain no
23405         gnulib-cache.m4. Fix expression that counts these directories.
23406
23407 2010-09-04  Bruno Haible  <bruno@clisp.org>
23408
23409         update-copyright test: Improve output when perl is missing or too old.
23410         * tests/test-update-copyright.sh: Move test of Perl version down after
23411         the test whether Perl exists. Provide an explanation relating Perl's
23412         error message to Automake's SKIP: message.
23413
23414 2010-09-04  Bruno Haible  <bruno@clisp.org>
23415
23416         Don't augment PATH in TESTS_ENVIRONMENT.
23417         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23418         set abs_aux_dir instead of augmenting PATH.
23419         * modules/vc-list-files-tests (Makefile.am): Likewise.
23420         * tests/test-update-copyright.sh: Augment PATH here.
23421         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23422         path_prepend_.
23423         * tests/test-vc-list-files-git.sh: Likewise.
23424
23425 2010-09-04  Jim Meyering  <meyering@redhat.com>
23426
23427         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23428         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23429
23430 2010-09-04  Bruno Haible  <bruno@clisp.org>
23431
23432         strdup: Fix compilation error in C++ mode.
23433         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23434         the macro.
23435
23436 2010-09-04  Bruno Haible  <bruno@clisp.org>
23437
23438         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23439         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23440         macro into a function.
23441         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23442
23443 2010-09-04  Bruno Haible  <bruno@clisp.org>
23444
23445         Set PATH_SEPARATOR the same way autoconf does.
23446         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23447         the value of PATH_SEPARATOR the same way autoconf-generated configure
23448         scripts do.
23449         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23450         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23451
23452 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23453
23454         Set PATH_SEPARATOR the same way autoconf does.
23455         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23456         the same way autoconf-generated configure scripts do.
23457         * posix-modules: Likewise.
23458
23459 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23460
23461         hash: fix safe_hasher const typo
23462         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23463         const; otherwise, there is a type error later.
23464
23465 2010-09-02  Jim Meyering  <meyering@redhat.com>
23466
23467         test-update-copyright.sh: require perl 5.8.0
23468         * tests/test-update-copyright.sh: Require 5.8.0,
23469         which Tom G. Christensen has confirmed is adequate,
23470         while 5.6.1 is not.
23471
23472 2010-09-02  Eric Blake  <eblake@redhat.com>
23473
23474         tests: init.sh improvements for re-exec'ing with zsh
23475         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23476         -vx through shell re-exec.
23477         Reported by Tom G. Christensen.
23478
23479         wctype: fix typo in previous commit
23480         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23481         Reported by Ludovic Courtès.
23482
23483 2010-09-02  Jim Meyering  <meyering@redhat.com>
23484
23485         test-update-copyright.sh: skip test if Perl is too old
23486         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23487         Reported by Tom G. Christensen.
23488
23489 2010-09-02  Bruno Haible  <bruno@clisp.org>
23490
23491         wctype: Avoid compilation error on IRIX 6.5.30.
23492         * lib/wctype.in.h (iswblank): Declare with a replacement if
23493         REPLACE_ISWBLANK is set.
23494         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23495         declared. Set REPLACE_ISWBLANK.
23496         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23497         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23498         * doc/posix-headers/wctype.texi: Likewise.
23499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23500
23501 2010-09-01  Bruno Haible  <bruno@clisp.org>
23502
23503         New module 'socketlib'.
23504         * modules/socketlib: New file.
23505         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23506         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23507         * modules/sockets (Depends-on): Add socketlib.
23508         Suggested by Sam Steingold <sds@gnu.org>.
23509
23510 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23513
23514         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23515         when one needs search access to a directory but not read access.
23516         On systems where it is available, it works in some cases where
23517         O_RDONLY does not, namely on directories that are searchable but
23518         not readable, and which need only to be searchable.  If O_SEARCH
23519         is not available, fall back to the traditional method of using
23520         O_RDONLY.
23521
23522         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23523         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23524         when opening a directory that needs only to be searchable.
23525         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23526         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23527         * lib/openat-proc.c (openat_proc_name): Likewise.
23528         * lib/openat.c (openat_needs_fchdir): Likewise.
23529         * lib/save-cwd.c (save_cwd): Likewise.
23530         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23531
23532 2010-08-28  Bruno Haible  <bruno@clisp.org>
23533
23534         New module 'host-cpu-c-abi'.
23535         * modules/host-cpu-c-abi: New file.
23536         * m4/host-cpu-c-abi.m4: New file, based on part of
23537         clisp/src/m4/general.m4.
23538         Requested by Sam Steingold <sds@gnu.org>.
23539
23540 2010-08-31  Eric Blake  <eblake@redhat.com>
23541         and Jim Meyering  <meyering@redhat.com>
23542
23543         hash: factor, and guard against misbehaving hasher function
23544         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23545         of table->hasher's return value.  Also protect against a hash value
23546         so large that adding it to table->bucket results in a NULL pointer.
23547         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23548         Use it in place of open-coded check-and-abort.
23549
23550 2010-08-30  Bruno Haible  <bruno@clisp.org>
23551
23552         hash: silence spurious clang warning
23553         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23554         Reported by Eric Blake.
23555
23556 2010-08-30  Eric Blake  <eblake@redhat.com>
23557
23558         strstr, memmem, strcasestr: avoid leaked shell message
23559         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23560         FreeBSD.
23561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23563
23564         tests: silence clang warning
23565         * tests/test-malloca.c (do_allocation): Avoid dead store.
23566
23567 2010-08-29  Bruno Haible  <bruno@clisp.org>
23568
23569         gettext: Fix recent mistake.
23570         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23571
23572 2010-08-29  Bruno Haible  <bruno@clisp.org>
23573
23574         selinux-h: Offer a --without-selinux option.
23575         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23576         --without-selinux was specified, skip all tests and define
23577         HAVE_SELINUX_SELINUX_H to 0.
23578         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23579         set LIB_SELINUX to empty.
23580         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23581         gl_LIBSELINUX. If --without-selinux was specified, replace
23582         selinux/context.h.
23583         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23584
23585 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23586             Bruno Haible  <bruno@clisp.org>
23587
23588         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23589         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23590         of HAVE_REALLOC.
23591         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23592         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23593         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23594         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23595
23596 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23597             Bruno Haible  <bruno@clisp.org>
23598
23599         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23600         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23601         HAVE_CALLOC.
23602         * lib/xmalloc.c: Update accordingly.
23603         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23604         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23605         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23606
23607 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23608             Bruno Haible  <bruno@clisp.org>
23609
23610         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23611         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23612         HAVE_MALLOC.
23613         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23614         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23615         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23616
23617 2010-08-29  Bruno Haible  <bruno@clisp.org>
23618
23619         Update modules list.
23620         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23621         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23622         (String handling <string.h>): Add astrxfrm.
23623         (File system functions): Add readlinkat.
23624
23625 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23626
23627         Tests for module 'realloc-gnu'.
23628         * modules/realloc-gnu-tests: New file.
23629         * tests/test-realloc-gnu.c: New file.
23630
23631         Tests for module 'calloc-gnu'.
23632         * modules/calloc-gnu-tests: New file.
23633         * tests/test-calloc-gnu.c: New file.
23634
23635         Tests for module 'malloc-gnu'.
23636         * modules/malloc-gnu-tests: New file.
23637         * tests/test-malloc-gnu.c: New file.
23638
23639 2010-08-28  Bruno Haible  <bruno@clisp.org>
23640
23641         Rename module 'realloc' -> 'realloc-gnu'.
23642         * modules/realloc-gnu: New file, copied from modules/realloc.
23643         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23644         obsolete.
23645         * modules/mgetgroups (Depends-on): Update.
23646         * doc/posix-functions/realloc.texi: Update.
23647         * NEWS: Mention the change.
23648
23649         Rename module 'calloc' -> 'calloc-gnu'.
23650         * modules/calloc-gnu: New file, copied from modules/calloc.
23651         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23652         obsolete.
23653         * doc/posix-functions/calloc.texi: Update.
23654         * NEWS: Mention the change.
23655
23656         Rename module 'malloc' -> 'malloc-gnu'.
23657         * modules/malloc-gnu: New file, copied from modules/malloc.
23658         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23659         obsolete.
23660         * modules/argp (Depends-on): Update.
23661         * modules/regex (Depends-on): Update.
23662         * doc/posix-functions/malloc.texi: Update.
23663         * NEWS: Mention the change.
23664
23665 2010-08-28  Eric Blake  <eblake@redhat.com>
23666
23667         pread, pwrite: add missing dependency
23668         * modules/pread (Depends-on): Add extensions.
23669         * modules/pwrite (Depends-on): Likewise.
23670
23671 2010-08-28  Bruno Haible  <bruno@clisp.org>
23672
23673         unistr/u*-strchr: Fix tests dependencies.
23674         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23675         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23676         Reported by Ian Beckwith <ianb@erislabs.net>.
23677
23678 2010-08-28  Bruno Haible  <bruno@clisp.org>
23679
23680         read-file: Don't occupy too much unused memory.
23681         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23682
23683 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23684             Eric Blake  <eblake@redhat.com>
23685             Bruno Haible  <bruno@clisp.org>
23686
23687         read-file: Avoid memory reallocations with regular files.
23688         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23689         (fread_file): With regular files, use the remaining length as the
23690         initial buffer size.  Check against overflow.
23691         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23692         sys_stat.
23693
23694 2010-08-28  Bruno Haible  <bruno@clisp.org>
23695
23696         ftello: Relax license.
23697         * modules/ftello (License): Relax to LGPLv2+.
23698         Reported by Eric Blake.
23699
23700 2010-08-28  Bruno Haible  <bruno@clisp.org>
23701
23702         Avoid relocwrapper link errors due to gnulib replacement functions.
23703         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23704         function.
23705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23706
23707 2010-08-28  Bruno Haible  <bruno@clisp.org>
23708
23709         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23710         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23711         defined.
23712         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23713         Suggested by Eric Blake.
23714
23715 2010-08-28  Bruno Haible  <bruno@clisp.org>
23716
23717         sys_socket, netdb: Ensure socklen_t gets defined.
23718         * modules/sys_socket (Depends-on): Add socklen.
23719         * modules/netdb (Depends-on): Likewise.
23720         * modules/getaddrinfo (Depends-on): Remove socklen.
23721         * modules/getsockopt (Depends-on): Likewise.
23722         * modules/setsockopt (Depends-on): Likewise.
23723         * tests/test-sys_socket.c: Check that socklen_t is defined.
23724         * tests/test-netdb.c: Likewise.
23725         * m4/socklen.m4: Update comments.
23726         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23727
23728 2010-08-27  Eric Blake  <eblake@redhat.com>
23729
23730         login_tty: add missing dependency
23731         * modules/login_tty (Depends-on): Add pty.
23732
23733 2010-08-26  Eric Blake  <eblake@redhat.com>
23734
23735         lib-symbol-versions: fix m4 quoting
23736         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23737         format for AC_LINK_IFELSE.
23738
23739         glob: fix compile test
23740         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23741
23742         btowc: fix missing file
23743         * modules/btowc (Files): Also ship locale-fr.m4.
23744
23745         lseek: fix link test
23746         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23747         AC_LINK_IFELSE.
23748
23749         include_next: silence autoconf 2.68 warning
23750         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23751         AC_COMPILE_IFELSE as special.
23752         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23753         autoconf < 2.68.
23754
23755         acl: fix compilation test
23756         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23757         AC_COMPILE_IFELSE.
23758
23759 2010-08-26  Bruno Haible  <bruno@clisp.org>
23760
23761         Modernize AC_TRY_RUN invocations.
23762         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23763         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23764         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23765         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23766         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23767         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23770         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23771         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23773         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23774         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23777         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23778         gl_MBRLEN_NUL_RETVAL): Likewise.
23779         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23780         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23781         Likewise.
23782         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23783         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23784         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23785         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23786         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23787         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23788         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23789         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23790         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23791         Likewise.
23792         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23793         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23795         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23798         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23799         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23800         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23802
23803 2010-08-26  Bruno Haible  <bruno@clisp.org>
23804
23805         Modernize AC_TRY_LINK invocations.
23806         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23807         AC_TRY_LINK.
23808         * m4/argp.m4 (gl_ARGP): Likewise.
23809         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23810         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23811         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23812         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23813         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23814         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23815         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23816         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23817         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23818         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23819         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23820         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23821         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23822         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23823         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23824         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23825         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23826         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23827         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23828         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23829         Likewise.
23830         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23831         Likewise.
23832         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23833         Likewise.
23834         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23835         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23836         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23837         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23838         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23839         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23840         * m4/servent.m4 (gl_SERVENT): Likewise.
23841         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23842         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23843         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23844         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23845         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23846         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23847         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23848         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23849         * modules/tsearch-tests (configure.ac): Likewise.
23850
23851 2010-08-26  Bruno Haible  <bruno@clisp.org>
23852
23853         Modernize AC_TRY_COMPILE invocations.
23854         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23855         AC_TRY_COMPILE.
23856         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23857         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23858         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23859         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23860         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23861         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23863         * m4/lock.m4 (gl_LOCK): Likewise.
23864         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23865         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23866         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23867         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23868         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23869         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23870         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23872         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23873         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23874         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23875         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23876         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23877         extraneous semicolon.
23878
23879 2010-08-26  Jim Meyering  <meyering@redhat.com>
23880
23881         stat-time: relax license LGPL
23882         * modules/stat-time (License): Change from GPL to LGPL,
23883         with consent from all contributors, for use in libguile.
23884         Requested by Ludovic Courtès.
23885
23886 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23887
23888         poll: return immediately on POLLHUP.
23889         * lib/poll.c (poll): Always set timeout before wait_timeout is
23890         computed.
23891
23892 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23893
23894         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23895         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23896         rmdir ("dir/.//"), unlinkat.
23897
23898 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         stdbool: avoid spurious failure with modern xlc
23901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23902
23903 2010-08-24  Bruno Haible  <bruno@clisp.org>
23904
23905         getloadavg: simplify code
23906         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23907         gl_have_func. Update comments.
23908
23909 2010-08-24  Eric Blake  <eblake@redhat.com>
23910
23911         getloadavg: don't define SVR4 on cygwin
23912         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23913         only define SVR4 when -lkvm is required.
23914         Reported by Yaakov Selkowitz.
23915
23916 2010-08-24  Bruno Haible  <bruno@clisp.org>
23917
23918         priv-set: fix comment
23919         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23920
23921 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23922
23923         priv-set: fix comments
23924         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23925         to match code, as suggested by David Bartley in:
23926         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23927
23928 2010-08-23  Eric Blake  <eblake@redhat.com>
23929
23930         stdbool: avoid rejecting clang
23931         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23932         * tests/test-stdbool.c: Enable more tests if using the system
23933         <stdbool.h> instead of the gnulib replacement.
23934         (main): Move xlc bug test to a runtime test for all compilers.
23935         Reported by Anders Kaseorg.
23936
23937         argz: fix shell quoting issue
23938         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23939         Reported by Charles Wilson.
23940
23941 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23942             Erik Faye-Lund <kusmabite@gmail.com>
23943
23944         poll, select: handle ERROR_BROKEN_PIPE.
23945         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23946         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23947         * lib/select.c (win32_compute_revents): Do not mark a pipe
23948         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23949
23950 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23951
23952         fts: allow compilation with C++
23953         * lib/fts_.h: Specify extern "C" linkage with C++.
23954
23955 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23956
23957         Fix gnulib-tool sed script de-commentation for AIX sed.
23958         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23959         sed.
23960
23961 2010-08-17  Eric Blake  <eblake@redhat.com>
23962
23963         test-stddef: test for (some) offsetof bugs
23964         * tests/test-stddef.c: Enhance test to ensure correct type of
23965         offsetof.
23966         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23967         that we are not fixing at this time.
23968
23969 2010-08-15  Bruno Haible  <bruno@clisp.org>
23970
23971         stpncpy: Allow stpncpy to be defined as a macro.
23972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23973         if it's already correctly declared.
23974         * lib/string.in.h (stpncpy): Undefine before redefining.
23975         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23976
23977 2010-08-14  Bruno Haible  <bruno@clisp.org>
23978
23979         Rename module 'memxfrm' to 'amemxfrm'.
23980         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23981         (amemxfrm): Renamed from memxfrm.
23982         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23983         (amemxfrm): Renamed from memxfrm.
23984         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23985         * NEWS: Mention the change.
23986         * MODULES.html.sh (String handling <string.h>): Update.
23987         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23988         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23989         * lib/unicase/u16-casexfrm.c: Likewise.
23990         * lib/unicase/u32-casexfrm.c: Likewise.
23991         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23992         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23993         * lib/uninorm/u16-normxfrm.c: Likewise.
23994         * lib/uninorm/u32-normxfrm.c: Likewise.
23995         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23996         memxfrm.
23997         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23998         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23999         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
24000         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
24001         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
24002         Suggested by Paul Eggert.
24003
24004 2010-08-14  Bruno Haible  <bruno@clisp.org>
24005
24006         Tests for module 'astrxfrm'.
24007         * modules/astrxfrm-tests: New file.
24008         * tests/test-astrxfrm.c: New file.
24009
24010         New module 'astrxfrm'.
24011         * lib/astrxfrm.h: New file.
24012         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
24013         * modules/astrxfrm: New file.
24014
24015 2010-08-14  Reuben Thomas <rrt@sc3d.org>
24016
24017         regex: Tweak doc.
24018         * doc/regex.texi (Overview): Don't mention regex.c.
24019         (GNU Regular Expression Compiling): Likewise.
24020         (Match-end-of-line Operator): Mention 'not_eol'.
24021
24022 2010-08-14  Brian Gough  <bjg@gnu.org>
24023             Bruno Haible  <bruno@clisp.org>
24024
24025         git-merge-changelog: add doc relating to use with bzr and hg.
24026         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
24027
24028 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
24029
24030         pthread: fix pthread.h creation for srcdir != builddir
24031         * modules/pthread (Makefile.am): Fix the rule to work also in a
24032         non-srcdir build.
24033
24034 2010-08-13  Karl Berry  <karl@gnu.org>
24035
24036         * doc/regex.texi (Predefined Syntaxes): @smallexample.
24037         * doc/posix-*/*: force line break before @url of POSIX
24038         specifications.
24039         Suggested by Werner Lemberg.
24040
24041 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24042
24043         strtod: fix const diagnostic
24044         * lib/strtod.c (strtod): Don't assign const char * to char *,
24045         as this elicits a warning from GCC when warnings are enabled.
24046
24047 2010-08-10  Pádraig Brady <P@draigbrady.com>
24048         and Eric Blake  <eblake@redhat.com>
24049
24050         copy-acl: ignore ENOTSUP on HP-UX
24051         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
24052         so that it is available for HP-UX.
24053         * lib/copy-acl.c (qcopy_acl): Use it.
24054         Reported by Patrick M. Callahan.
24055
24056 2010-08-10  Eric Blake  <eblake@redhat.com>
24057
24058         open, chown: relax license
24059         * modules/open (License): Change to LGPLv2+, with consent by all
24060         authors, for use in augeas.
24061         * modules/chown (License): Likewise.
24062         * modules/lchown (Likewise): Likewise.
24063         Requested by Adam Stokes.
24064
24065 2010-08-09  Karl Berry  <karl@gnu.org>
24066
24067         * build-aux/ar-lib: new file, import from Automake.
24068         * config/srclist.txt: autocheck for updates.
24069
24070 2010-08-09  Eric Blake  <eblake@redhat.com>
24071
24072         readlinkat: adjust client modules
24073         * modules/areadlinkat (Depends-on): Use readlinkat, not
24074         symlinkat.
24075         * modules/areadlinkat-with-size (Depends-on): Likewise.
24076
24077         mknod: be more vocal about danger of running tests as root
24078         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
24079         root, since that is just asking for problems.
24080         Suggested by Bruno Haible, based on a report by Rainer Tammer.
24081
24082         readlinkat: split into its own module
24083         * modules/symlinkat: Split readlinkat...
24084         * modules/readlinkat: ...into separate module.
24085         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
24086         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
24087         * lib/symlinkat.c (readlinkat): Move...
24088         * lib/readlinkat.c: ...into new file.
24089         * modules/symlinkat-tests: Split readlinkat test...
24090         * modules/readlinkat-tests: ...into separate module.
24091         * tests/test-symlinkat.c: Split...
24092         * tests/test-readlinkat.c: ...into new file.
24093         * NEWS: Document the split.
24094         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24095         * lib/unistd.in.h (readlinkat): Likewise.
24096         Suggested by Bruno Haible.
24097
24098 2010-08-08  Bruno Haible  <bruno@clisp.org>
24099
24100         memxfrm: Speed up.
24101         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
24102         that usually only one call to strxfrm is necessary for each string
24103         part.
24104         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24105
24106 2010-08-07  Karl Berry  <karl@gnu.org>
24107
24108         * doc/posix-headers/limits.texi,
24109         * doc/posix-functions/malloc.texi,
24110         * doc/posix-functions/strsignal.texi: missing @item.
24111         * doc/ld-version-script.texi: spurious leading i.
24112         * doc/regex.texi (Interval Operators): no commas inside @var.
24113
24114 2010-08-01  Bruno Haible  <bruno@clisp.org>
24115
24116         Integrate the regex documentation.
24117         * doc/gnulib.texi: Define 'cn' index.
24118         (Regular expressions): New a chapter that includes regex.texi and
24119         regexprops-generic.texi.
24120         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
24121         syntax.
24122
24123         Whitespace cleanup.
24124         * doc/regex.texi: Remove trailing spaces.
24125
24126         Add regex documentation.
24127         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
24128         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
24129         Written by Kathy A. Hargreaves and Karl Berry.
24130
24131 2010-08-01  Bruno Haible  <bruno@clisp.org>
24132
24133         link: Update documentation.
24134         * doc/posix-functions/link.texi: Update regarding Solaris.
24135
24136 2010-07-31  Bruno Haible  <bruno@clisp.org>
24137
24138         Update modules list.
24139         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
24140         (String handling <string.h>): Add memcmp2, memxfrm.
24141         (Container data structures): Add xlist, xsublist, xoset.
24142         (Core language properties): Add alignof, unused-parameter.
24143         (Process control, Numeric conversion functions <stdlib.h>): Renamed
24144         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
24145         (Unibyte characters <ctype.h>): New section.
24146         (String handling <string.h>): New section.
24147         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
24148         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24149         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24150         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24151         tan, tanh, tanl, y0, y1, yn.
24152         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24153         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24154         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24155         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24156         unlockpt, vdprintf, vdprintf-posix.
24157         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24158         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24159         xconcat-filename.
24160         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24161         getdtablesize, pipe2, pipe2-safer.
24162         (Security): New section.
24163         (Networking functions): Add accept4.
24164         (Signal handling): Add sigpipe.
24165         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24166         mbmemcasecoll.
24167         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24168         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24169         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24170         pipe-filter-ii.
24171         (Misc): Add argp-version-etc, login_tty, parse-duration.
24172
24173 2010-07-31  Bruno Haible  <bruno@clisp.org>
24174
24175         Improve doc in MODULES.html.
24176         * modules/linkat (Description): Add the word "function".
24177         * modules/mkfifo (Description): Likewise.
24178         * modules/mknod (Description): Likewise.
24179         * modules/remove (Description): Likewise.
24180         * modules/renameat (Description): Likewise.
24181         * modules/stat (Description): Likewise.
24182         * modules/symlink (Description): Likewise.
24183         * modules/unlink (Description): Likewise.
24184
24185 2010-07-31  Bruno Haible  <bruno@clisp.org>
24186
24187         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24188         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24189         option --enable/disable-c++ instead of --enable/disable-cxx.
24190         * NEWS: Mention the change.
24191
24192 2010-07-31  Bruno Haible  <bruno@clisp.org>
24193
24194         readlink, areadlink: Relax test a bit.
24195         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24196         alternative to ENOTDIR.
24197         * tests/test-areadlink.h (test_areadlink): Likewise.
24198         Reported by Rainer Tammer.
24199
24200 2010-07-31  Bruno Haible  <bruno@clisp.org>
24201
24202         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24203         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24204         character, perform the search using U_STRCHR.
24205         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24206         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24207         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24208         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24209         Suggested by Paolo Bonzini.
24210
24211 2010-07-31  Bruno Haible  <bruno@clisp.org>
24212
24213         unistr/u*-strstr: Fix dependencies.
24214         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24215         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24216         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24217
24218 2010-07-31  Bruno Haible  <bruno@clisp.org>
24219
24220         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24221         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24222         the beginning of the loop.
24223         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24224         cases in 'switch' statement.
24225
24226         unistr/u8-strchr: Fix several bugs.
24227         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24228         the string. When not found, return NULL, not a pointer near the end.
24229
24230         More tests for unistr/u8-strchr.
24231         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24232         that the function does not read past the first occurrence of the byte
24233         being searched.
24234         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24235         * tests/unistr/test-u16-strchr.c (main): New function.
24236         * tests/unistr/test-u32-strchr.c (main): New function.
24237
24238 2010-07-31  Bruno Haible  <bruno@clisp.org>
24239
24240         posix-modules: Ignore backup files of documentation files.
24241         * posix-modules: grep only through files named *.texi.
24242
24243 2010-07-31  Bruno Haible  <bruno@clisp.org>
24244
24245         symlinkat: Fix documentation.
24246         * doc/posix-functions/readlinkat.texi: Fix module name.
24247
24248 2010-07-31  Bruno Haible  <bruno@clisp.org>
24249
24250         fchownat: Replace also when chown has the trailing slash bug.
24251         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24252         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24253         introduced on 2010-04-10.
24254         Reported by Rainer Tammer.
24255
24256 2010-07-31  Bruno Haible  <bruno@clisp.org>
24257
24258         linkat: Work around AIX 7.1 bug.
24259         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24260         whether linkat handles trailing slash correctly. If not, replace linkat
24261         and define LINKAT_TRAILING_SLASH_BUG.
24262         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24263         check whether (fd1,file1) points to a directory if file1 or file2 ends
24264         in a slash. Code taken from lib/link.c.
24265         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24266         Reported by Rainer Tammer.
24267
24268 2010-07-31  Bruno Haible  <bruno@clisp.org>
24269
24270         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24271         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24272         This disables an xlc optimization that was causing wrong test results.
24273         Reported by Rainer Tammer.
24274
24275 2010-07-31  Bruno Haible  <bruno@clisp.org>
24276
24277         iconv: Work around AIX 6.1..7.1 bug.
24278         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24279         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24280         cross-compiling, guess no on all versions of AIX.
24281         Reported by Rainer Tammer.
24282
24283 2010-07-31  Bruno Haible  <bruno@clisp.org>
24284
24285         readlink: Relax test a bit.
24286         * tests/test-readlink.h (test_readlink): Allow different errno value
24287         when readlink is called with a file name that ends in / and refers to
24288         a file.
24289         Suggested by Eric Blake.
24290         Reported by Rainer Tammer.
24291
24292 2010-07-31  Bruno Haible  <bruno@clisp.org>
24293
24294         copysign: Does not require -lm on glibc systems.
24295         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24296         gl_COMMON_DOUBLE_MATHFUNC.
24297         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24298
24299 2010-07-31  Bruno Haible  <bruno@clisp.org>
24300
24301         duplocale: Work around AIX 7.1 bug.
24302         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24303         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24304         * lib/duplocale.c (rpl_duplocale): Update comment.
24305         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24306         Reported by Rainer Tammer.
24307
24308 2010-07-30  Bruno Haible  <bruno@clisp.org>
24309
24310         dirfd: Avoid link error on AIX 7.1.
24311         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24312         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24313         exist, set REPLACE_DIRFD.
24314         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24315         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24316         * doc/posix-functions/dirfd.texi: Update.
24317         Reported by Rainer Tammer.
24318
24319 2010-07-30  Eric Blake  <eblake@redhat.com>
24320
24321         strtod: next round of AIX fixes
24322         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24323         exponent.
24324         * tests/test-strtod.c (main): Enhance tests.
24325         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24326         Reported by Rainer Tammer.
24327
24328         futimens: fix configure check
24329         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24330         Reported by Bruno Haible.
24331
24332 2010-07-30  Bruno Haible  <bruno@clisp.org>
24333
24334         getline: Update regarding AIX.
24335         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24336         Reported by Rainer Tammer.
24337
24338 2010-07-30  Bruno Haible  <bruno@clisp.org>
24339
24340         wcwidth: Drop replacement on AIX 7.
24341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24342         AIX 7.
24343         Reported by Rainer Tammer.
24344
24345 2010-07-30  Bruno Haible  <bruno@clisp.org>
24346
24347         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24349         a 'char *'.
24350         Reported by Rainer Tammer.
24351
24352 2010-07-30  Bruno Haible  <bruno@clisp.org>
24353
24354         unlink: Update regarding AIX.
24355         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24356         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24357         Reported by Rainer Tammer.
24358
24359 2010-07-30  Bruno Haible  <bruno@clisp.org>
24360
24361         symlink: Update regarding AIX.
24362         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24363         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24364         Reported by Rainer Tammer.
24365
24366 2010-07-30  Bruno Haible  <bruno@clisp.org>
24367
24368         strndup: Update regarding AIX.
24369         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24370         AIX 7.
24371         Reported by Rainer Tammer.
24372
24373 2010-07-30  Bruno Haible  <bruno@clisp.org>
24374
24375         stat: Update regarding AIX.
24376         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24377         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24378         Reported by Rainer Tammer.
24379
24380 2010-07-30  Bruno Haible  <bruno@clisp.org>
24381
24382         truncl: Fix autoconf test.
24383         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24384         whether truncl works.
24385         Reported by Rainer Tammer.
24386
24387 2010-07-30  Bruno Haible  <bruno@clisp.org>
24388
24389         round: Update regarding AIX.
24390         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24391         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24392         Reported by Rainer Tammer.
24393
24394 2010-07-30  Bruno Haible  <bruno@clisp.org>
24395
24396         rename: Update regarding AIX.
24397         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24398         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24399         Reported by Rainer Tammer.
24400
24401 2010-07-30  Bruno Haible  <bruno@clisp.org>
24402
24403         printf.m4: Update regarding AIX.
24404         * m4/printf.m4: Update comments regarding AIX.
24405         Reported by Rainer Tammer.
24406
24407 2010-07-30  Bruno Haible  <bruno@clisp.org>
24408
24409         iconv: Update regarding AIX.
24410         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24411         AIX 7.
24412         Reported by Rainer Tammer.
24413
24414 2010-07-30  Bruno Haible  <bruno@clisp.org>
24415
24416         getopt: Update regarding AIX.
24417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24418         no on AIX.
24419         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24420         Reported by Rainer Tammer.
24421
24422 2010-07-30  Bruno Haible  <bruno@clisp.org>
24423
24424         ldexpl; Update regarding AIX.
24425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24426         on AIX 7.
24427         Reported by Rainer Tammer.
24428
24429 2010-07-30  Bruno Haible  <bruno@clisp.org>
24430
24431         frexpl: Update regarding AIX.
24432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24433         on AIX 7.
24434         Reported by Rainer Tammer.
24435
24436 2010-07-30  Bruno Haible  <bruno@clisp.org>
24437
24438         open, fopen: Update regarding AIX.
24439         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24440         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24441         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24442         * doc/posix-functions/fopen.texi: Likewise.
24443         Reported by Rainer Tammer.
24444
24445 2010-07-30  Bruno Haible  <bruno@clisp.org>
24446
24447         chown: Update doc regarding AIX.
24448         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24449         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24450         Reported by Rainer Tammer.
24451
24452 2010-07-30  Eric Blake  <eblake@redhat.com>
24453
24454         strtod: fix bug in replacement function on AIX
24455         * lib/strtod.c (strtod): Special case broken "0x" parse in
24456         underlying strtod.
24457         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24458         * doc/posix-functions/strtod.texi (strtod): Likewise.
24459         Reported by Rainer Tammer.
24460
24461 2010-07-30  Bruno Haible  <bruno@clisp.org>
24462
24463         mbrlen: Fix cross-compilation guess for AIX.
24464         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24465         guess. Leftover from 2008-12-22.
24466
24467 2010-07-30  Bruno Haible  <bruno@clisp.org>
24468
24469         mbrtowc: Fix cross-compilation guess for AIX.
24470         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24471         guess. Leftover from 2008-12-21.
24472
24473 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24474
24475         init.sh: work around trap limitation of some shells
24476         * tests/init.sh (setup_): Move exit trap outside of shell function.
24477
24478 2010-07-29  Eric Blake  <eblake@redhat.com>
24479
24480         strtod: aid debugging
24481         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24482         understanding why strtod is rejected.
24483
24484 2010-07-28  Bruno Haible  <bruno@clisp.org>
24485
24486         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24487         * lib/unistr/u8-chr.c: Include <string.h>.
24488         * tests/unistr/test-u8-chr.c: Likewise.
24489         * tests/unistr/test-u16-chr.c: Likewise.
24490         * tests/unistr/test-u32-chr.c: Likewise.
24491         * tests/unistr/test-u8-strchr.c: Likewise.
24492         * tests/unistr/test-u16-strchr.c: Likewise.
24493         * tests/unistr/test-u32-strchr.c: Likewise.
24494         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24495         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24496         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24497         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24498
24499 2010-07-28  Bruno Haible  <bruno@clisp.org>
24500
24501         Use spaces for indentation, not tabs.
24502         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24503
24504 2010-07-27  Bruno Haible  <bruno@clisp.org>
24505
24506         mbspcasecmp: Fix function specification.
24507         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24508         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24509         Reported by Eric Blake <eblake@redhat.com>.
24510
24511 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24512
24513         timespec: use cast and not conditional, as truncation isn't possible
24514         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24515         instead of a conditional.  Comment about the situation in more detail.
24516         This undoes most of the 2009-10-29 patch.
24517
24518 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24519
24520         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24521         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24522         * lib/unistr/u8-strchr.c: Likewise.
24523         * modules/unistr/u8-chr: Depend on memchr.
24524
24525         unistr/u*-strchr: add tests
24526         * modules/unistr/u8-strchr-tests: New file.
24527         * modules/unistr/u16-strchr-tests: New file.
24528         * modules/unistr/u32-strchr-tests: New file.
24529         * tests/unistr/test-strchr.h: New file.
24530         * tests/unistr/test-u8-strchr.c: New file.
24531         * tests/unistr/test-u16-strchr.c: New file.
24532         * tests/unistr/test-u32-strchr.c: New file.
24533
24534         unistr/u*-chr: test multibyte sequences more
24535         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24536         test vector.
24537         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24538         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24539         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24540
24541         unistr/u*-chr: test multibyte sequences
24542         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24543
24544         unistr/u*-chr: prepare for multibyte tests
24545         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24546         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24547         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24548         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24549         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24550         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24551
24552 2010-07-18  Bruno Haible  <bruno@clisp.org>
24553
24554         unistr/u8-strchr: Optimize non-ASCII argument case.
24555         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24556         because the first byte often matches anyway.
24557         Reported by Pádraig Brady <P@draigbrady.com>.
24558
24559 2010-07-15  Karl Berry  <karl@gnu.org>
24560
24561         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24562
24563 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24564
24565         getcwd: on Solaris, work better if ancestors are inaccessible
24566         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24567         buffer and size, try again with a large buffer.  This works better
24568         on Solaris, since its getcwd succeeds even if the path to the root
24569         is inaccessible, and this is helpful in common cases such as .zfs
24570         hidden directories.  Problem reported by J Chapman Flack in
24571         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24572         Use system getcwd if it's declared, not merely if it's partly
24573         working; use the partly-working test only to avoid needless effort
24574         if the system getcwd fails.
24575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24576         comment that was already obsolete and is now even more obsolete.
24577         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24578         now might call strdup.
24579
24580 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24581
24582         pthread: Add enough so that coreutils/src/sort.c compiles.
24583         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24584         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24585         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24586         Include <sys/types.h>, in case it defines pthread_t.
24587         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24588         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24589         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24590         (pthread_rwlockattr_t, pthread_spinlock_t):
24591         New typedefs, if HAVE_PTHREAD_T is not defined.
24592         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24593         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24594         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24595         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24596         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24597         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24598         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24599         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24600         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24601         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24602         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24603         New macros.
24604         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24605         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24606         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24607         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24608         (pthread_spin_unlock): New dummy functions.
24609         (pthread_create): Return EAGAIN; don't set errno.
24610         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24611         require AC_C_INLINE.
24612         * modules/pthread (Depends-on): Add sched, time.
24613         (pthread.h): Use AM_V_GEN.
24614
24615 2010-07-13  Bruno Haible  <bruno@clisp.org>
24616
24617         striconveh: Don't malloc memory if the result buffer is sufficient.
24618         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24619         buffer if its size is sufficient.
24620         Reported by Ludovic Courtès <ludo@gnu.org>.
24621
24622 2010-07-13  Bruno Haible  <bruno@clisp.org>
24623
24624         strtod: Add safety check.
24625         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24626
24627 2010-07-12  Bruno Haible  <bruno@clisp.org>
24628
24629         Unify tests that set gl_cv_func_ldexpl_no_libm.
24630         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24631         gl_FUNC_LDEXPL.
24632         (gl_FUNC_LDEXPL): Invoke it.
24633         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24634
24635 2010-07-12  Bruno Haible  <bruno@clisp.org>
24636
24637         Unify tests that set gl_cv_func_ldexp_no_libm.
24638         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24639         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24640         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24641         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24642         * modules/strtod (Files): Add m4/ldexp.m4.
24643
24644 2010-07-12  Bruno Haible  <bruno@clisp.org>
24645
24646         Unify tests that set gl_cv_func_frexpl_no_libm.
24647         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24648         gl_FUNC_FREXPL_NO_LIBM.
24649         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24650         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24651
24652 2010-07-12  Bruno Haible  <bruno@clisp.org>
24653
24654         Unify tests that set gl_cv_func_frexp_no_libm.
24655         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24656         gl_FUNC_FREXP_NO_LIBM.
24657         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24658         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24659
24660 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24661
24662         memcoll: clarify sizes versus lengths, document better, and tweak perf
24663         * lib/memcoll.c (strcoll_loop, memcoll0):
24664         Improve quality of descriptive comments.  Name variables
24665         consistently as to whether they are lengths (which do not include
24666         terminating null) versus sizes (which do).
24667         * lib/xmemcoll.c (xmemcoll0): Likewise.
24668         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24669         returned when s1size == 0; this is easier to compile and saves
24670         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24671
24672 2010-07-12  Bruno Haible  <bruno@clisp.org>
24673
24674         Tests for module '_Exit'.
24675         * modules/_Exit-tests: New file.
24676         * tests/test-_Exit.sh: New file.
24677         * tests/test-_Exit.c: New file.
24678
24679         New module '_Exit'.
24680         * lib/stdlib.in.h (__attribute__): New macro.
24681         (_Exit): New declaration.
24682         * lib/_Exit.c: New file.
24683         * m4/_Exit.m4: New file.
24684         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24685         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24686         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24687         * modules/_Exit: New file.
24688         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24689         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24690
24691 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24692
24693         strtod: make it more-accurate typically, and don't require libm
24694         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24695         Include limits.h.  Don't include string.h.
24696         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24697         (locale_isspace): New function, so that no casts are needed to
24698         check whether *s is a space.
24699         (ldexp): Provide an unused dummy if not available.
24700         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24701         (strtod): Use them.  This implementation prefers to use the
24702         underlying strtod if available, falling back on our own code
24703         only to fix known bugs.  This is more likely to produce an
24704         accurate result.  Also, it avoids the use of libm functions.
24705         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24706         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24707         was absent, but it caused a test failure with coreutils.
24708         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24709         with libm.
24710         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24711         * modules/strtod-tests (Makefile.am): Likewise.
24712
24713 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24714             Bruno Haible  <bruno@clisp.org>
24715
24716         unistr/u8-strchr: Optimize ASCII argument case.
24717         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24718
24719 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24720
24721         (x)memcoll: minor tweaks
24722         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24723         is after the type that it qualifies.
24724         (memcoll0): Likewise.
24725         * lib/memcoll.h (memcoll0): Likewise.
24726         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24727         * lib/xmemcoll.h (xmemcoll0): Likewise.
24728         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24729         differs from memcoll in that the NUL byte is part of the argument.
24730         Omit the abort-checks, as performance is a real issue here.  Plus,
24731         the checks were wrong anyway (an off-by-one error).  Omit local
24732         variable 'diff', as it's a bit clearer that way.
24733         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24734         no longer needed.
24735
24736 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24737
24738         (x)memcoll: speedup when input is known to be NUL delimited
24739         * lib/memcoll.c: Include stdlib.
24740         (memcoll0): New function.
24741         (strcoll_loop): New function, refactored for use in both memcoll
24742         and memcoll0.
24743         * lib/memcoll.h (memcoll0): Add prototype.
24744         * lib/xmemcoll.c (xmemcoll0): New function.
24745         (collate_error): New function, refactored for use in both xmemcoll
24746         and xmemcoll0.
24747         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24748         * m4/memcoll.m4: add inline invocation.
24749
24750 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24751
24752         * build-aux/bootstrap: Remove any local translations
24753         from the translation project synchronization directory,
24754         so that local only translations are not distributed.
24755
24756 2010-07-04  Bruno Haible  <bruno@clisp.org>
24757
24758         fsusage: Clarify which code applies to which platforms.
24759         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24760         platform.
24761         * lib/fsusage.c (get_fs_usage): Likewise.
24762
24763 2010-07-04  Bruno Haible  <bruno@clisp.org>
24764
24765         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24766         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24767         Reported by Martin Lambers <marlam@marlam.de>.
24768
24769 2010-07-04  Jim Meyering  <meyering@redhat.com>
24770
24771         hash: once again explicitly disallow insertion of NULL
24772         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24773         inserting a NULL pointer cannot work with these functions.
24774         Add a comment with details.
24775         This reverts part of the 2010-07-01 commit, 5bef1a35
24776         "hash: extend module to deal with non-pointer keys".
24777
24778 2010-07-01  Bruno Haible  <bruno@clisp.org>
24779
24780         stdbool: Update doc.
24781         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24782         Info from Christian Weisgerber <naddy@mips.inka.de>.
24783
24784 2010-07-01  Jim Meyering  <meyering@redhat.com>
24785
24786         hash: extend module to deal with non-pointer keys
24787         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24788         but that allows insertion of non-pointer entries.
24789         Do not disallow an ENTRY value of NULL.
24790         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24791         * lib/hash.h (hash_insert0): Declare.
24792
24793 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24794
24795         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24796         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24797         not present (i.e. with autoconf 2.59 and when using gettextize, not
24798         gnulib), require AC_GNU_SOURCE instead.
24799
24800 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24801
24802         idpriv-drop: Fix tests.
24803         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24804         not to the test-idpriv-droptemp program.
24805
24806 2010-06-29  Bruno Haible  <bruno@clisp.org>
24807
24808         string: Fix syntax error with g++ 2.96.
24809         * lib/string.in.h (__pure__): Remove definition.
24810         (_GL_ATTRIBUTE_PURE): New macro.
24811         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24812         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24813         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24814
24815 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24816
24817         unitypes: Fix bug introduced on 2010-05-18.
24818         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24819
24820 2010-06-22  Eric Blake  <eblake@redhat.com>
24821
24822         memmem: slight optimization
24823         * lib/str-two-way.h (critical_factorization): Update comments.
24824         Reduce work during factorization phase.
24825         Reported by Carlos Bueno <carlos@bueno.org>.
24826
24827 2010-06-21  Bruno Haible  <bruno@clisp.org>
24828
24829         Fix HAVE_CALLOC_POSIX misnomer.
24830         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24831         !HAVE_CALLOC_POSIX.
24832         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24833         HAVE_CALLOC_POSIX.
24834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24835         instead of HAVE_CALLOC_POSIX.
24836         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24837         HAVE_CALLOC_POSIX.
24838
24839         Use modern idiom for calloc() replacement.
24840         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24841         AC_FUNC_CALLOC.
24842         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24843         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24844         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24845         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24846         (gl_REPLACE_CALLOC): New macro.
24847
24848 2010-06-21  Bruno Haible  <bruno@clisp.org>
24849
24850         Fix HAVE_REALLOC_POSIX misnomer.
24851         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24852         !HAVE_REALLOC_POSIX.
24853         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24854         HAVE_REALLOC_POSIX.
24855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24856         instead of HAVE_REALLOC_POSIX.
24857         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24858         HAVE_REALLOC_POSIX.
24859
24860         Use modern idiom for realloc() replacement.
24861         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24862         AC_FUNC_REALLOC.
24863         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24864         Autoconf's AC_FUNC_REALLOC.
24865         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24866         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24867         (gl_REPLACE_REALLOC): New macro.
24868         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24869
24870 2010-06-21  Bruno Haible  <bruno@clisp.org>
24871
24872         Fix HAVE_MALLOC_POSIX misnomer.
24873         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24874         !HAVE_MALLOC_POSIX.
24875         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24876         HAVE_MALLOC_POSIX.
24877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24878         instead of HAVE_MALLOC_POSIX.
24879         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24880         HAVE_MALLOC_POSIX.
24881
24882         Use modern idiom for malloc() replacement.
24883         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24884         AC_FUNC_MALLOC.
24885         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24886         Autoconf's AC_FUNC_MALLOC.
24887         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24888         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24889         (gl_REPLACE_MALLOC): New macro.
24890         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24891
24892 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24893
24894         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24895         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24896         This macro takes 3 arguments, not 4.
24897
24898 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24899
24900         ipv6: fix detection under mingw
24901         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24902         in6_addr.
24903
24904 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24905
24906         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24907         that strtod() works when cross-compiling to a glibc version known
24908         to work.
24909
24910 2010-06-15  Bruno Haible  <bruno@clisp.org>
24911
24912         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24913
24914 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24915
24916         select: Correct timeout.
24917         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24918
24919 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24920
24921         git-version-gen: init shell var to avoid env var influence
24922         * build-aux/git-version-gen (v): Init shell var to empty.
24923
24924 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24925
24926         priv-set: Don't assume that priv.h exists merely because getppriv does.
24927         See Jan Andersen's bug report about AIX 5L in
24928         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24929         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24930         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24931         * lib/priv-set.h: Likewise.
24932         * tests/test-priv-set.c: Likewise.
24933
24934 2010-06-13  Bruno Haible  <bruno@clisp.org>
24935
24936         relocatable: Make it easier to test whether to install wrappers.
24937         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24938         RELOCATABLE_VIA_WRAPPER.
24939
24940 2010-06-13  Bruno Haible  <bruno@clisp.org>
24941
24942         gnulib-tool: Display specified modules and dependencies differently.
24943         * gnulib-tool (func_show_module_list): New function.
24944         (func_import, func_create_testdir): Invoke it.
24945         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24946
24947 2010-06-13  Bruno Haible  <bruno@clisp.org>
24948
24949         gnulib-tool: Align code of func_import and func_create_testdir.
24950         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24951         specified_modules.
24952
24953 2010-06-12  Jim Meyering  <meyering@redhat.com>
24954
24955         test-inttostr: avoid spurious failure on Solaris 9
24956         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24957         to accept "%ju".  Reported by Bruno Haible.
24958
24959 2010-06-11  Jim Meyering  <meyering@redhat.com>
24960
24961         test-sys_socket: mark variables as used more readably
24962         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24963         as "used" explicitly via (void) statement casts.  This is more
24964         readable than using them in an artificial return expression.
24965         Suggestion from Bruno Haible.
24966
24967 2010-06-11  Bruno Haible  <bruno@clisp.org>
24968
24969         Avoid some more warnings from "gcc -Wwrite-strings".
24970         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24971         to 'const char *'.
24972         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24973         * tests/test-c-strcasestr.c (main): Likewise.
24974         * tests/test-mbscasestr1.c (main): Likewise.
24975         * tests/test-mbscasestr2.c (main): Likewise.
24976         * tests/test-memmem.c (main): Likewise.
24977         * tests/test-strstr.c (main): Likewise.
24978         * tests/test-strcasestr.c (main): Likewise.
24979
24980 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24981
24982         init.sh: change framework_failure_ to fail with status 99, not 1
24983         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24984         automake's parallel-tests rule that this is an unexpected failure,
24985         even if the test is listed in XFAIL_TESTS.
24986
24987 2010-06-11  Jim Meyering  <meyering@redhat.com>
24988
24989         test-inttostr: avoid warnings about 4-6KB literal strings
24990         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24991         Include "macros.h", for its definition of ASSERT.
24992         (CK): s/assert/ASSERT/
24993         * modules/inttostr-tests (Files): Add macros.h.
24994
24995         init.sh: don't use $ME_ or skip_ before they are defined
24996         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24997         their first uses.  Also hoist their companions: warn_, fail_,
24998         framework_failure_, $stderr_fileno.  Prompted by a patch from
24999         Stefano Lattarini.
25000
25001         test-sys_socket: avoid set-but-not-used warnings from gcc
25002         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
25003         avoid warning about set-but-not-used variables.
25004
25005         test-xvasprintf: avoid 'const' discard warnings
25006         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
25007         "const" when assigning from literal strings.
25008         (test_xasprintf): Add "void" in function argument list to placate
25009         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
25010
25011         tests: avoid compilation warnings in argmatch and exclude tests...
25012         in packages that define ARGMATCH_DIE_DECL, like coreutils.
25013         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
25014         Since it always exits, declare with the "noreturn" attribute.
25015         * tests/test-argmatch.c: Likewise.
25016
25017         tests: avoid 'const' discard warnings in mbsstr tests
25018         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
25019         * tests/test-mbsstr2.c (main): Likewise.
25020
25021         test-verify: avoid warning from gcc's -Wmissing-declarations
25022         * tests/test-verify.c (function): Declare to be static.
25023
25024         test-inttostr.c: include <string.h> for use of strcmp
25025         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
25026
25027         test-linkat: avoid failed assertion on "other" architectures
25028         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
25029         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
25030         sparc: https://bugs.launchpad.net/bugs/591968
25031
25032 2010-06-11  Jim Meyering  <meyering@redhat.com>
25033
25034         printf.m4: avoid autoconf's "Expanded Before Required" warning
25035         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
25036         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
25037         autoconf warning.
25038
25039 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
25040
25041         Replacement header templates are now named with ".in", not "_".
25042         * doc/gnulib-intro.texi: Correct.
25043
25044 2010-06-10  Jim Meyering  <meyering@redhat.com>
25045
25046         inttostr-tests: depend on snprintf, not snprintf-posix
25047         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
25048         snprintf-posix, to avoid this aclocal failure:
25049           missing file gnulib-tests/vasnprintf.c
25050           configure.ac:45: error: expected source file, required through \
25051           AC_LIBSOURCES, not found
25052
25053 2010-06-10  Jim Meyering  <meyering@redhat.com>
25054
25055         inttostr: add a new function, inttostr, and tests
25056         The namesake function was not available.  The existence of the
25057         template file, inttostr.c makes its addition nontrivial.
25058         * lib/anytostr.c: Rename from inttostr.c.
25059         (anytostr): Rename from inttostr.
25060         * lib/inttostr.c: New file.
25061         * modules/inttostr (Files): Add anytostr.c.
25062         (Makefile.am): Set lib_SOURCES instead of ...
25063         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
25064         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
25065         * lib/offtostr.c: Likewise.
25066         * lib/uinttostr.c: Likewise.
25067         * lib/umaxtostr.c: Likewise.
25068         * modules/inttostr-tests: New file.
25069         * tests/test-inttostr.c: New file.  Test these functions.
25070
25071 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
25072             Bruno Haible  <bruno@clisp.org>
25073
25074         Add "Extending Gnulib" chapter to manual.
25075         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
25076         chapter.
25077         (Extending Gnulib): New chapter.
25078         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
25079         chapter.
25080
25081 2010-06-09  Bruno Haible  <bruno@clisp.org>
25082
25083         Avoid relocwrapper link errors due to gnulib replacement functions.
25084         * lib/areadlink.c: Use the system's malloc, realloc functions.
25085         (areadlink): Set errno to ENOMEM explicitly.
25086         * modules/areadlink (Depends-on): Remove malloc-posix.
25087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25088
25089 2010-06-09  Bruno Haible  <bruno@clisp.org>
25090
25091         Avoid relocwrapper link errors due to gnulib replacement functions.
25092         * lib/canonicalize-lgpl.c: Use the system's malloc function.
25093         * lib/malloca.c: Likewise.
25094         * lib/relocatable.c: Likewise.
25095         * lib/progreloc.c: Use the system's malloc, sprintf functions.
25096         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
25097         * lib/setenv.c: Use the system's malloc, realloc functions.
25098         * lib/strerror.c: Use the system's sprintf function.
25099         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25100
25101 2010-06-04  Bruno Haible  <bruno@clisp.org>
25102
25103         Prefer documented low-level autoconf macro names.
25104         * m4/lib-link.m4: Use m4_translit instead of translit.
25105         * m4/environ.m4: Likewise.
25106         * m4/mathfunc.m4: Likewise.
25107         * m4/onceonly.m4: Likewise.
25108         * m4/stdint.m4: Likewise.
25109         Suggested by Eric Blake.
25110
25111 2010-06-04  Martin Lambers  <marlam@marlam.de>
25112             Bruno Haible  <bruno@clisp.org>
25113
25114         havelib: Allow library names with '+' characters.
25115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25116         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
25117
25118 2010-06-09  Bruno Haible  <bruno@clisp.org>
25119
25120         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
25121         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
25122         realloc failed.
25123
25124 2010-06-08  Peter Simons  <simons@cryp.to>
25125
25126         maint.mk: make the news-check rule more configurable
25127         * top/maint.mk (news-check-lines-spec): New variable.
25128         (news-check): Use "sed -n 1,10p" in place of "head".
25129
25130 2010-06-07  Jim Meyering  <meyering@redhat.com>
25131
25132         do-release-commit-and-tag: fix typo in --help
25133         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
25134
25135         regex: avoid new dead-code warning with gcc-4.6.0
25136         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
25137         if-block containing a while-loop.  It's been unused for at least
25138         5 years.
25139
25140 2010-06-05  Bruno Haible  <bruno@clisp.org>
25141
25142         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
25143         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
25144
25145 2010-06-04  Bruno Haible  <bruno@clisp.org>
25146
25147         Update to GNU gettext 0.18.1.
25148         * modules/gettext (configure.ac): Require gettext infrastructure from
25149         version 0.18.1.
25150
25151 2010-06-03  Bruno Haible  <bruno@clisp.org>
25152
25153         Don't use AC_LIBOBJ with file names in subdirectories.
25154         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25155         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25156         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25157         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25158         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25159         gl_LIBUNISTRING_LIBSOURCE.
25160         (Makefile.am): Augment lib_SOURCES here, conditionally.
25161         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25162
25163 2010-06-03  Bruno Haible  <bruno@clisp.org>
25164
25165         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25166         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25167         expansion does not end with a newline.
25168         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25169         unnecessary newline.
25170
25171 2010-06-03  Bruno Haible  <bruno@clisp.org>
25172
25173         Reduce dependencies.
25174         * tests/test-quotearg.h: New file, extracted from
25175         tests/test-quotearg.c.
25176         * tests/test-quotearg-simple.c: New file, extracted from
25177         tests/test-quotearg.c.
25178         * tests/test-quotearg.c: Don't include <ctype.h>.
25179         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25180         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25181         use_quote_double_quotes, use_quotearg_colon): Moved to
25182         tests/test-quotearg.h.
25183         (results_g, flag_results, custom_quotes, custom_results): Moved
25184         to tests/test-quotearg-simple.c.
25185         (main): Moved the part that does not depend on gettext to
25186         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25187         performed.
25188         * modules/quotearg-simple: New file.
25189         * modules/quotearg-simple-tests: New file.
25190         * modules/quotearg (Depends-on): Add quotearg-simple.
25191         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25192         (Files): Add tests/test-quotearg.h.
25193         Reported by Paolo Bonzini.
25194
25195 2010-06-03  Bruno Haible  <bruno@clisp.org>
25196
25197         Reduce dependencies.
25198         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25199
25200 2010-06-03  Bruno Haible  <bruno@clisp.org>
25201
25202         time: Undefine more broken macros.
25203         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25204         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25205         Reported by Eric Blake.
25206
25207 2010-06-03  Bruno Haible  <bruno@clisp.org>
25208
25209         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25210         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25211         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25212         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25213         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25214         Reported by Ludovic Courtès <ludo@gnu.org>.
25215
25216 2010-06-02  Eric Blake  <eblake@redhat.com>
25217
25218         time: work with mingw + pthreads-win32 library
25219         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25220         if timespec is defined only in pthread.h.
25221         * modules/time (Makefile.am): Substitute it.
25222         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25223         <pthread.h>, when needed.
25224         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25225         from the library.
25226
25227 2010-05-31  Bruno Haible  <bruno@clisp.org>
25228
25229         Avoid expanding two macros in the wrong order.
25230         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25231         gl_LIBUNISTRING if it is defined.
25232         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25233         autoconf >= 2.64.
25234         Reported by Ludovic Courtès <ludo@gnu.org>.
25235
25236 2010-05-27  Jim Meyering  <meyering@redhat.com>
25237
25238         maint.mk: also prohibit "#undef" of always-defined symbols
25239         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25240         Allow more than one space before the symbol name.
25241         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25242         the regexp uses alternation.
25243
25244 2010-05-26  Eric Blake  <eblake@redhat.com>
25245
25246         maint.mk: avoid echo -e
25247         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25248         Convert all uses of echo -* to printf.
25249         Reported by Matthias Bolte.
25250
25251 2010-05-25  Bruno Haible  <bruno@clisp.org>
25252
25253         Update to GNU gettext 0.18, part 2.
25254         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25255         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25256
25257 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25258
25259         Add missing include in test-pwrite.c.
25260         * tests/test-pwrite.c: Include string.h, for strcmp.
25261
25262 2010-05-24  Bruno Haible  <bruno@clisp.org>
25263
25264         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25265
25266 2010-05-24  Bruno Haible  <bruno@clisp.org>
25267
25268         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25269         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25270         iconveh_error argument.
25271         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25272         U_STRCONV_TO_LOCALE.
25273         * lib/unistr/u16-strcoll.c: Likewise.
25274         * lib/unistr/u32-strcoll.c: Likewise.
25275         * modules/unistr/u8-strcoll (Depends-on): Add
25276         uniconv/u8-strconv-to-enc, localcharset. Remove
25277         uniconv/u8-strconv-to-locale.
25278         (configure.ac): Bump version number.
25279         * modules/unistr/u16-strcoll (Depends-on): Add
25280         uniconv/u16-strconv-to-enc, localcharset. Remove
25281         uniconv/u16-strconv-to-locale.
25282         (configure.ac): Bump version number.
25283         * modules/unistr/u32-strcoll (Depends-on): Add
25284         uniconv/u32-strconv-to-enc, localcharset. Remove
25285         uniconv/u32-strconv-to-locale.
25286         (configure.ac): Bump version number.
25287
25288 2010-05-24  Bruno Haible  <bruno@clisp.org>
25289
25290         Avoid a test failure on NetBSD 5.0.
25291         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25292         an iconv() bug.
25293
25294 2010-05-24  Bruno Haible  <bruno@clisp.org>
25295
25296         Adjust #include directive style.
25297         * modules/regex (Includes): Recommend to write <regex.h>.
25298
25299 2010-05-24  Bruno Haible  <bruno@clisp.org>
25300
25301         regex: Don't require alloca.
25302         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25303         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25304         only inside if (0).
25305
25306 2010-05-23  Jim Meyering  <meyering@redhat.com>
25307
25308         test-renameat.c: include <sys/stat.h>
25309         * tests/test-renameat.c: Include <sys/stat.h>; required for
25310         definition of S_IS* macros.
25311
25312 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25313
25314         Update maintainer documentation for 'relocatable-prog' module.
25315         * doc/relocatable-maint.texi: Update.
25316         Comments by Bruno Haible.
25317
25318 2010-05-23  Bruno Haible  <bruno@clisp.org>
25319
25320         git-merge-changelog: Enable --split-merged-entry by default.
25321         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25322         (usage): Don't mention this option any more.
25323         Reported by Ralf Wildenhues.
25324
25325 2010-05-23  Jim Meyering  <meyering@redhat.com>
25326
25327         test-pwrite: do not leave behind a test file named "out"
25328         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25329         The trivial-looking use of init.sh is really necessary.
25330         It ensures that the temporary file, "out", is created in
25331         a temporary directory, and removed upon termination.
25332         * tests/test-pwrite.sh: Re-add file.
25333         * modules/pwrite-tests: Reference it.
25334
25335 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25336
25337         Fix output redirection buglet in init.sh.
25338         * tests/init.sh: Fix redirection of stderr.
25339
25340 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25341
25342         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25343
25344 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25345
25346         * modules/valgrind-tests: New file.
25347         * m4/valgrind-tests.m4: New file.
25348         * doc/valgrind-tests.texi: New file.
25349         * doc/gnulib.texi (Running self-tests under valgrind): New
25350         section.
25351
25352 2010-05-19  Bruno Haible  <bruno@clisp.org>
25353
25354         Clean up dead code in recent commit.
25355         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25356         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25357         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25358         Suggested by Paolo Bonzini.
25359
25360 2010-05-19  Bruno Haible  <bruno@clisp.org>
25361
25362         Avoid valgrind error reports from libunistring.
25363         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25364         * modules/libunistring (Files): Add it.
25365         * modules/libunistring-optional (Files): Likewise.
25366
25367 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25368             Bruno Haible  <bruno@clisp.org>
25369
25370         New module 'libunistring-optional'.
25371         * modules/libunistring-optional: New file.
25372         * m4/libunistring-base.m4: New file.
25373         * m4/libunistring-optional.m4: New file.
25374         * lib/unicase.in.h: Renamed from lib/unicase.h.
25375         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25376         * lib/unictype.in.h: Renamed from lib/unictype.h.
25377         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25378         * lib/uniname.in.h: Renamed from lib/uniname.h.
25379         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25380         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25381         * lib/unistr.in.h: Renamed from lib/unistr.h.
25382         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25383         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25384         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25385         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25386         gl_LIBUNISTRING. If the library was found, determine the installed
25387         version and set LIBUNISTRING_VERSION.
25388         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25389         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25390         handle a configuration option --with-included-libunistring.
25391         * modules/libunistring (Files): Add m4/absolute-header.m4.
25392         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25393         Add m4/libunistring-base.m4.
25394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25395         (Makefile.am): Build unicase.h from unicase.in.h.
25396         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25397         Add m4/libunistring-base.m4.
25398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25399         (Makefile.am): Build uniconv.h from uniconv.in.h.
25400         * modules/unictype/base (Files): Use unictype.in.h instead of
25401         unictype.h. Add m4/libunistring-base.m4.
25402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25403         (Makefile.am): Build unictype.h from unictype.in.h.
25404         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25405         Add m4/libunistring-base.m4.
25406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25407         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25408         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25409         Add m4/libunistring-base.m4.
25410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25411         (Makefile.am): Build uniname.h from uniname.in.h.
25412         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25413         Add m4/libunistring-base.m4.
25414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25415         (Makefile.am): Build uninorm.h from uninorm.in.h.
25416         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25417         unistdio.h. Add m4/libunistring-base.m4.
25418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25419         (Makefile.am): Build unistdio.h from unistdio.in.h.
25420         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25421         Add m4/libunistring-base.m4.
25422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25423         (Makefile.am): Build unistr.h from unistr.in.h.
25424         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25425         Add m4/libunistring-base.m4.
25426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25427         (Makefile.am): Build unitypes.h from unitypes.in.h.
25428         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25429         Add m4/libunistring-base.m4.
25430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25431         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25432         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25433         uniwidth.h. Add m4/libunistring-base.m4.
25434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25435         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25436         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25437         instead of augmenting lib_SOURCES.
25438         * modules/unicase/empty-suffix-context: Likewise.
25439         * modules/unicase/locale-language: Likewise.
25440         * modules/unicase/tolower: Likewise.
25441         * modules/unicase/totitle: Likewise.
25442         * modules/unicase/toupper: Likewise.
25443         * modules/unicase/u8-casecmp: Likewise.
25444         * modules/unicase/u8-casecoll: Likewise.
25445         * modules/unicase/u8-casefold: Likewise.
25446         * modules/unicase/u8-casexfrm: Likewise.
25447         * modules/unicase/u8-ct-casefold: Likewise.
25448         * modules/unicase/u8-ct-tolower: Likewise.
25449         * modules/unicase/u8-ct-totitle: Likewise.
25450         * modules/unicase/u8-ct-toupper: Likewise.
25451         * modules/unicase/u8-is-cased: Likewise.
25452         * modules/unicase/u8-is-casefolded: Likewise.
25453         * modules/unicase/u8-is-lowercase: Likewise.
25454         * modules/unicase/u8-is-titlecase: Likewise.
25455         * modules/unicase/u8-is-uppercase: Likewise.
25456         * modules/unicase/u8-prefix-context: Likewise.
25457         * modules/unicase/u8-suffix-context: Likewise.
25458         * modules/unicase/u8-tolower: Likewise.
25459         * modules/unicase/u8-totitle: Likewise.
25460         * modules/unicase/u8-toupper: Likewise.
25461         * modules/unicase/u16-casecmp: Likewise.
25462         * modules/unicase/u16-casecoll: Likewise.
25463         * modules/unicase/u16-casefold: Likewise.
25464         * modules/unicase/u16-casexfrm: Likewise.
25465         * modules/unicase/u16-ct-casefold: Likewise.
25466         * modules/unicase/u16-ct-tolower: Likewise.
25467         * modules/unicase/u16-ct-totitle: Likewise.
25468         * modules/unicase/u16-ct-toupper: Likewise.
25469         * modules/unicase/u16-is-cased: Likewise.
25470         * modules/unicase/u16-is-casefolded: Likewise.
25471         * modules/unicase/u16-is-lowercase: Likewise.
25472         * modules/unicase/u16-is-titlecase: Likewise.
25473         * modules/unicase/u16-is-uppercase: Likewise.
25474         * modules/unicase/u16-prefix-context: Likewise.
25475         * modules/unicase/u16-suffix-context: Likewise.
25476         * modules/unicase/u16-tolower: Likewise.
25477         * modules/unicase/u16-totitle: Likewise.
25478         * modules/unicase/u16-toupper: Likewise.
25479         * modules/unicase/u32-casecmp: Likewise.
25480         * modules/unicase/u32-casecoll: Likewise.
25481         * modules/unicase/u32-casefold: Likewise.
25482         * modules/unicase/u32-casexfrm: Likewise.
25483         * modules/unicase/u32-ct-casefold: Likewise.
25484         * modules/unicase/u32-ct-tolower: Likewise.
25485         * modules/unicase/u32-ct-totitle: Likewise.
25486         * modules/unicase/u32-ct-toupper: Likewise.
25487         * modules/unicase/u32-is-cased: Likewise.
25488         * modules/unicase/u32-is-casefolded: Likewise.
25489         * modules/unicase/u32-is-lowercase: Likewise.
25490         * modules/unicase/u32-is-titlecase: Likewise.
25491         * modules/unicase/u32-is-uppercase: Likewise.
25492         * modules/unicase/u32-prefix-context: Likewise.
25493         * modules/unicase/u32-suffix-context: Likewise.
25494         * modules/unicase/u32-tolower: Likewise.
25495         * modules/unicase/u32-totitle: Likewise.
25496         * modules/unicase/u32-toupper: Likewise.
25497         * modules/unicase/ulc-casecmp: Likewise.
25498         * modules/unicase/ulc-casecoll: Likewise.
25499         * modules/unicase/ulc-casexfrm: Likewise.
25500         * modules/uniconv/u8-conv-from-enc: Likewise.
25501         * modules/uniconv/u8-conv-to-enc: Likewise.
25502         * modules/uniconv/u8-strconv-from-enc: Likewise.
25503         * modules/uniconv/u8-strconv-from-locale: Likewise.
25504         * modules/uniconv/u8-strconv-to-enc: Likewise.
25505         * modules/uniconv/u8-strconv-to-locale: Likewise.
25506         * modules/uniconv/u16-conv-from-enc: Likewise.
25507         * modules/uniconv/u16-conv-to-enc: Likewise.
25508         * modules/uniconv/u16-strconv-from-enc: Likewise.
25509         * modules/uniconv/u16-strconv-from-locale: Likewise.
25510         * modules/uniconv/u16-strconv-to-enc: Likewise.
25511         * modules/uniconv/u16-strconv-to-locale: Likewise.
25512         * modules/uniconv/u32-conv-from-enc: Likewise.
25513         * modules/uniconv/u32-conv-to-enc: Likewise.
25514         * modules/uniconv/u32-strconv-from-enc: Likewise.
25515         * modules/uniconv/u32-strconv-from-locale: Likewise.
25516         * modules/uniconv/u32-strconv-to-enc: Likewise.
25517         * modules/uniconv/u32-strconv-to-locale: Likewise.
25518         * modules/unictype/bidicategory-byname: Likewise.
25519         * modules/unictype/bidicategory-name: Likewise.
25520         * modules/unictype/bidicategory-of: Likewise.
25521         * modules/unictype/bidicategory-test: Likewise.
25522         * modules/unictype/block-list: Likewise.
25523         * modules/unictype/block-test: Likewise.
25524         * modules/unictype/category-C: Likewise.
25525         * modules/unictype/category-Cc: Likewise.
25526         * modules/unictype/category-Cf: Likewise.
25527         * modules/unictype/category-Cn: Likewise.
25528         * modules/unictype/category-Co: Likewise.
25529         * modules/unictype/category-Cs: Likewise.
25530         * modules/unictype/category-L: Likewise.
25531         * modules/unictype/category-Ll: Likewise.
25532         * modules/unictype/category-Lm: Likewise.
25533         * modules/unictype/category-Lo: Likewise.
25534         * modules/unictype/category-Lt: Likewise.
25535         * modules/unictype/category-Lu: Likewise.
25536         * modules/unictype/category-M: Likewise.
25537         * modules/unictype/category-Mc: Likewise.
25538         * modules/unictype/category-Me: Likewise.
25539         * modules/unictype/category-Mn: Likewise.
25540         * modules/unictype/category-N: Likewise.
25541         * modules/unictype/category-Nd: Likewise.
25542         * modules/unictype/category-Nl: Likewise.
25543         * modules/unictype/category-No: Likewise.
25544         * modules/unictype/category-P: Likewise.
25545         * modules/unictype/category-Pc: Likewise.
25546         * modules/unictype/category-Pd: Likewise.
25547         * modules/unictype/category-Pe: Likewise.
25548         * modules/unictype/category-Pf: Likewise.
25549         * modules/unictype/category-Pi: Likewise.
25550         * modules/unictype/category-Po: Likewise.
25551         * modules/unictype/category-Ps: Likewise.
25552         * modules/unictype/category-S: Likewise.
25553         * modules/unictype/category-Sc: Likewise.
25554         * modules/unictype/category-Sk: Likewise.
25555         * modules/unictype/category-Sm: Likewise.
25556         * modules/unictype/category-So: Likewise.
25557         * modules/unictype/category-Z: Likewise.
25558         * modules/unictype/category-Zl: Likewise.
25559         * modules/unictype/category-Zp: Likewise.
25560         * modules/unictype/category-Zs: Likewise.
25561         * modules/unictype/category-and: Likewise.
25562         * modules/unictype/category-and-not: Likewise.
25563         * modules/unictype/category-byname: Likewise.
25564         * modules/unictype/category-name: Likewise.
25565         * modules/unictype/category-none: Likewise.
25566         * modules/unictype/category-of: Likewise.
25567         * modules/unictype/category-or: Likewise.
25568         * modules/unictype/category-test: Likewise.
25569         * modules/unictype/combining-class: Likewise.
25570         * modules/unictype/ctype-alnum: Likewise.
25571         * modules/unictype/ctype-alpha: Likewise.
25572         * modules/unictype/ctype-blank: Likewise.
25573         * modules/unictype/ctype-cntrl: Likewise.
25574         * modules/unictype/ctype-digit: Likewise.
25575         * modules/unictype/ctype-graph: Likewise.
25576         * modules/unictype/ctype-lower: Likewise.
25577         * modules/unictype/ctype-print: Likewise.
25578         * modules/unictype/ctype-punct: Likewise.
25579         * modules/unictype/ctype-space: Likewise.
25580         * modules/unictype/ctype-upper: Likewise.
25581         * modules/unictype/ctype-xdigit: Likewise.
25582         * modules/unictype/decimal-digit: Likewise.
25583         * modules/unictype/digit: Likewise.
25584         * modules/unictype/mirror: Likewise.
25585         * modules/unictype/numeric: Likewise.
25586         * modules/unictype/property-alphabetic: Likewise.
25587         * modules/unictype/property-ascii-hex-digit: Likewise.
25588         * modules/unictype/property-bidi-arabic-digit: Likewise.
25589         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25590         * modules/unictype/property-bidi-block-separator: Likewise.
25591         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25592         * modules/unictype/property-bidi-common-separator: Likewise.
25593         * modules/unictype/property-bidi-control: Likewise.
25594         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25595         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25596         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25597         * modules/unictype/property-bidi-european-digit: Likewise.
25598         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25599         * modules/unictype/property-bidi-left-to-right: Likewise.
25600         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25601         * modules/unictype/property-bidi-other-neutral: Likewise.
25602         * modules/unictype/property-bidi-pdf: Likewise.
25603         * modules/unictype/property-bidi-segment-separator: Likewise.
25604         * modules/unictype/property-bidi-whitespace: Likewise.
25605         * modules/unictype/property-byname: Likewise.
25606         * modules/unictype/property-combining: Likewise.
25607         * modules/unictype/property-composite: Likewise.
25608         * modules/unictype/property-currency-symbol: Likewise.
25609         * modules/unictype/property-dash: Likewise.
25610         * modules/unictype/property-decimal-digit: Likewise.
25611         * modules/unictype/property-default-ignorable-code-point: Likewise.
25612         * modules/unictype/property-deprecated: Likewise.
25613         * modules/unictype/property-diacritic: Likewise.
25614         * modules/unictype/property-extender: Likewise.
25615         * modules/unictype/property-format-control: Likewise.
25616         * modules/unictype/property-grapheme-base: Likewise.
25617         * modules/unictype/property-grapheme-extend: Likewise.
25618         * modules/unictype/property-grapheme-link: Likewise.
25619         * modules/unictype/property-hex-digit: Likewise.
25620         * modules/unictype/property-hyphen: Likewise.
25621         * modules/unictype/property-id-continue: Likewise.
25622         * modules/unictype/property-id-start: Likewise.
25623         * modules/unictype/property-ideographic: Likewise.
25624         * modules/unictype/property-ids-binary-operator: Likewise.
25625         * modules/unictype/property-ids-trinary-operator: Likewise.
25626         * modules/unictype/property-ignorable-control: Likewise.
25627         * modules/unictype/property-iso-control: Likewise.
25628         * modules/unictype/property-join-control: Likewise.
25629         * modules/unictype/property-left-of-pair: Likewise.
25630         * modules/unictype/property-line-separator: Likewise.
25631         * modules/unictype/property-logical-order-exception: Likewise.
25632         * modules/unictype/property-lowercase: Likewise.
25633         * modules/unictype/property-math: Likewise.
25634         * modules/unictype/property-non-break: Likewise.
25635         * modules/unictype/property-not-a-character: Likewise.
25636         * modules/unictype/property-numeric: Likewise.
25637         * modules/unictype/property-other-alphabetic: Likewise.
25638         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25639         * modules/unictype/property-other-grapheme-extend: Likewise.
25640         * modules/unictype/property-other-id-continue: Likewise.
25641         * modules/unictype/property-other-id-start: Likewise.
25642         * modules/unictype/property-other-lowercase: Likewise.
25643         * modules/unictype/property-other-math: Likewise.
25644         * modules/unictype/property-other-uppercase: Likewise.
25645         * modules/unictype/property-paired-punctuation: Likewise.
25646         * modules/unictype/property-paragraph-separator: Likewise.
25647         * modules/unictype/property-pattern-syntax: Likewise.
25648         * modules/unictype/property-pattern-white-space: Likewise.
25649         * modules/unictype/property-private-use: Likewise.
25650         * modules/unictype/property-punctuation: Likewise.
25651         * modules/unictype/property-quotation-mark: Likewise.
25652         * modules/unictype/property-radical: Likewise.
25653         * modules/unictype/property-sentence-terminal: Likewise.
25654         * modules/unictype/property-soft-dotted: Likewise.
25655         * modules/unictype/property-space: Likewise.
25656         * modules/unictype/property-terminal-punctuation: Likewise.
25657         * modules/unictype/property-test: Likewise.
25658         * modules/unictype/property-titlecase: Likewise.
25659         * modules/unictype/property-unassigned-code-value: Likewise.
25660         * modules/unictype/property-unified-ideograph: Likewise.
25661         * modules/unictype/property-uppercase: Likewise.
25662         * modules/unictype/property-variation-selector: Likewise.
25663         * modules/unictype/property-white-space: Likewise.
25664         * modules/unictype/property-xid-continue: Likewise.
25665         * modules/unictype/property-xid-start: Likewise.
25666         * modules/unictype/property-zero-width: Likewise.
25667         * modules/unictype/scripts: Likewise.
25668         * modules/unictype/syntax-c-ident: Likewise.
25669         * modules/unictype/syntax-c-whitespace: Likewise.
25670         * modules/unictype/syntax-java-ident: Likewise.
25671         * modules/unictype/syntax-java-whitespace: Likewise.
25672         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25673         * modules/unilbrk/u8-width-linebreaks: Likewise.
25674         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25675         * modules/unilbrk/u16-width-linebreaks: Likewise.
25676         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25677         * modules/unilbrk/u32-width-linebreaks: Likewise.
25678         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25679         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25680         * modules/uniname/uniname: Likewise.
25681         * modules/uninorm/canonical-decomposition: Likewise.
25682         * modules/uninorm/composition: Likewise.
25683         * modules/uninorm/decomposing-form: Likewise.
25684         * modules/uninorm/decomposition: Likewise.
25685         * modules/uninorm/filter: Likewise.
25686         * modules/uninorm/nfc: Likewise.
25687         * modules/uninorm/nfd: Likewise.
25688         * modules/uninorm/nfkc: Likewise.
25689         * modules/uninorm/nfkd: Likewise.
25690         * modules/uninorm/u8-normalize: Likewise.
25691         * modules/uninorm/u8-normcmp: Likewise.
25692         * modules/uninorm/u8-normcoll: Likewise.
25693         * modules/uninorm/u8-normxfrm: Likewise.
25694         * modules/uninorm/u16-normalize: Likewise.
25695         * modules/uninorm/u16-normcmp: Likewise.
25696         * modules/uninorm/u16-normcoll: Likewise.
25697         * modules/uninorm/u16-normxfrm: Likewise.
25698         * modules/uninorm/u32-normalize: Likewise.
25699         * modules/uninorm/u32-normcmp: Likewise.
25700         * modules/uninorm/u32-normcoll: Likewise.
25701         * modules/uninorm/u32-normxfrm: Likewise.
25702         * modules/unistdio/u8-asnprintf: Likewise.
25703         * modules/unistdio/u8-asprintf: Likewise.
25704         * modules/unistdio/u8-snprintf: Likewise.
25705         * modules/unistdio/u8-sprintf: Likewise.
25706         * modules/unistdio/u8-u8-asnprintf: Likewise.
25707         * modules/unistdio/u8-u8-asprintf: Likewise.
25708         * modules/unistdio/u8-u8-snprintf: Likewise.
25709         * modules/unistdio/u8-u8-sprintf: Likewise.
25710         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25711         * modules/unistdio/u8-u8-vasprintf: Likewise.
25712         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25713         * modules/unistdio/u8-u8-vsprintf: Likewise.
25714         * modules/unistdio/u8-vasnprintf: Likewise.
25715         * modules/unistdio/u8-vasprintf: Likewise.
25716         * modules/unistdio/u8-vsnprintf: Likewise.
25717         * modules/unistdio/u8-vsprintf: Likewise.
25718         * modules/unistdio/u16-asnprintf: Likewise.
25719         * modules/unistdio/u16-asprintf: Likewise.
25720         * modules/unistdio/u16-snprintf: Likewise.
25721         * modules/unistdio/u16-sprintf: Likewise.
25722         * modules/unistdio/u16-u16-asnprintf: Likewise.
25723         * modules/unistdio/u16-u16-asprintf: Likewise.
25724         * modules/unistdio/u16-u16-snprintf: Likewise.
25725         * modules/unistdio/u16-u16-sprintf: Likewise.
25726         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25727         * modules/unistdio/u16-u16-vasprintf: Likewise.
25728         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25729         * modules/unistdio/u16-u16-vsprintf: Likewise.
25730         * modules/unistdio/u16-vasnprintf: Likewise.
25731         * modules/unistdio/u16-vasprintf: Likewise.
25732         * modules/unistdio/u16-vsnprintf: Likewise.
25733         * modules/unistdio/u16-vsprintf: Likewise.
25734         * modules/unistdio/u32-asnprintf: Likewise.
25735         * modules/unistdio/u32-asprintf: Likewise.
25736         * modules/unistdio/u32-snprintf: Likewise.
25737         * modules/unistdio/u32-sprintf: Likewise.
25738         * modules/unistdio/u32-u32-asnprintf: Likewise.
25739         * modules/unistdio/u32-u32-asprintf: Likewise.
25740         * modules/unistdio/u32-u32-snprintf: Likewise.
25741         * modules/unistdio/u32-u32-sprintf: Likewise.
25742         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25743         * modules/unistdio/u32-u32-vasprintf: Likewise.
25744         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25745         * modules/unistdio/u32-u32-vsprintf: Likewise.
25746         * modules/unistdio/u32-vasnprintf: Likewise.
25747         * modules/unistdio/u32-vasprintf: Likewise.
25748         * modules/unistdio/u32-vsnprintf: Likewise.
25749         * modules/unistdio/u32-vsprintf: Likewise.
25750         * modules/unistdio/ulc-asnprintf: Likewise.
25751         * modules/unistdio/ulc-asprintf: Likewise.
25752         * modules/unistdio/ulc-fprintf: Likewise.
25753         * modules/unistdio/ulc-snprintf: Likewise.
25754         * modules/unistdio/ulc-sprintf: Likewise.
25755         * modules/unistdio/ulc-vasnprintf: Likewise.
25756         * modules/unistdio/ulc-vasprintf: Likewise.
25757         * modules/unistdio/ulc-vfprintf: Likewise.
25758         * modules/unistdio/ulc-vsnprintf: Likewise.
25759         * modules/unistdio/ulc-vsprintf: Likewise.
25760         * modules/unistr/u8-check: Likewise.
25761         * modules/unistr/u8-chr: Likewise.
25762         * modules/unistr/u8-cmp: Likewise.
25763         * modules/unistr/u8-cmp2: Likewise.
25764         * modules/unistr/u8-cpy: Likewise.
25765         * modules/unistr/u8-cpy-alloc: Likewise.
25766         * modules/unistr/u8-endswith: Likewise.
25767         * modules/unistr/u8-mblen: Likewise.
25768         * modules/unistr/u8-mbsnlen: Likewise.
25769         * modules/unistr/u8-mbtouc: Likewise.
25770         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25771         * modules/unistr/u8-mbtoucr: Likewise.
25772         * modules/unistr/u8-move: Likewise.
25773         * modules/unistr/u8-next: Likewise.
25774         * modules/unistr/u8-prev: Likewise.
25775         * modules/unistr/u8-set: Likewise.
25776         * modules/unistr/u8-startswith: Likewise.
25777         * modules/unistr/u8-stpcpy: Likewise.
25778         * modules/unistr/u8-stpncpy: Likewise.
25779         * modules/unistr/u8-strcat: Likewise.
25780         * modules/unistr/u8-strchr: Likewise.
25781         * modules/unistr/u8-strcmp: Likewise.
25782         * modules/unistr/u8-strcoll: Likewise.
25783         * modules/unistr/u8-strcpy: Likewise.
25784         * modules/unistr/u8-strcspn: Likewise.
25785         * modules/unistr/u8-strdup: Likewise.
25786         * modules/unistr/u8-strlen: Likewise.
25787         * modules/unistr/u8-strmblen: Likewise.
25788         * modules/unistr/u8-strmbtouc: Likewise.
25789         * modules/unistr/u8-strncat: Likewise.
25790         * modules/unistr/u8-strncmp: Likewise.
25791         * modules/unistr/u8-strncpy: Likewise.
25792         * modules/unistr/u8-strnlen: Likewise.
25793         * modules/unistr/u8-strpbrk: Likewise.
25794         * modules/unistr/u8-strrchr: Likewise.
25795         * modules/unistr/u8-strspn: Likewise.
25796         * modules/unistr/u8-strstr: Likewise.
25797         * modules/unistr/u8-strtok: Likewise.
25798         * modules/unistr/u8-to-u16: Likewise.
25799         * modules/unistr/u8-to-u32: Likewise.
25800         * modules/unistr/u8-uctomb: Likewise.
25801         * modules/unistr/u16-check: Likewise.
25802         * modules/unistr/u16-chr: Likewise.
25803         * modules/unistr/u16-cmp: Likewise.
25804         * modules/unistr/u16-cmp2: Likewise.
25805         * modules/unistr/u16-cpy: Likewise.
25806         * modules/unistr/u16-cpy-alloc: Likewise.
25807         * modules/unistr/u16-endswith: Likewise.
25808         * modules/unistr/u16-mblen: Likewise.
25809         * modules/unistr/u16-mbsnlen: Likewise.
25810         * modules/unistr/u16-mbtouc: Likewise.
25811         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25812         * modules/unistr/u16-mbtoucr: Likewise.
25813         * modules/unistr/u16-move: Likewise.
25814         * modules/unistr/u16-next: Likewise.
25815         * modules/unistr/u16-prev: Likewise.
25816         * modules/unistr/u16-set: Likewise.
25817         * modules/unistr/u16-startswith: Likewise.
25818         * modules/unistr/u16-stpcpy: Likewise.
25819         * modules/unistr/u16-stpncpy: Likewise.
25820         * modules/unistr/u16-strcat: Likewise.
25821         * modules/unistr/u16-strchr: Likewise.
25822         * modules/unistr/u16-strcmp: Likewise.
25823         * modules/unistr/u16-strcoll: Likewise.
25824         * modules/unistr/u16-strcpy: Likewise.
25825         * modules/unistr/u16-strcspn: Likewise.
25826         * modules/unistr/u16-strdup: Likewise.
25827         * modules/unistr/u16-strlen: Likewise.
25828         * modules/unistr/u16-strmblen: Likewise.
25829         * modules/unistr/u16-strmbtouc: Likewise.
25830         * modules/unistr/u16-strncat: Likewise.
25831         * modules/unistr/u16-strncmp: Likewise.
25832         * modules/unistr/u16-strncpy: Likewise.
25833         * modules/unistr/u16-strnlen: Likewise.
25834         * modules/unistr/u16-strpbrk: Likewise.
25835         * modules/unistr/u16-strrchr: Likewise.
25836         * modules/unistr/u16-strspn: Likewise.
25837         * modules/unistr/u16-strstr: Likewise.
25838         * modules/unistr/u16-strtok: Likewise.
25839         * modules/unistr/u16-to-u32: Likewise.
25840         * modules/unistr/u16-to-u8: Likewise.
25841         * modules/unistr/u16-uctomb: Likewise.
25842         * modules/unistr/u32-check: Likewise.
25843         * modules/unistr/u32-chr: Likewise.
25844         * modules/unistr/u32-cmp: Likewise.
25845         * modules/unistr/u32-cmp2: Likewise.
25846         * modules/unistr/u32-cpy: Likewise.
25847         * modules/unistr/u32-cpy-alloc: Likewise.
25848         * modules/unistr/u32-endswith: Likewise.
25849         * modules/unistr/u32-mblen: Likewise.
25850         * modules/unistr/u32-mbsnlen: Likewise.
25851         * modules/unistr/u32-mbtouc: Likewise.
25852         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25853         * modules/unistr/u32-mbtoucr: Likewise.
25854         * modules/unistr/u32-move: Likewise.
25855         * modules/unistr/u32-next: Likewise.
25856         * modules/unistr/u32-prev: Likewise.
25857         * modules/unistr/u32-set: Likewise.
25858         * modules/unistr/u32-startswith: Likewise.
25859         * modules/unistr/u32-stpcpy: Likewise.
25860         * modules/unistr/u32-stpncpy: Likewise.
25861         * modules/unistr/u32-strcat: Likewise.
25862         * modules/unistr/u32-strchr: Likewise.
25863         * modules/unistr/u32-strcmp: Likewise.
25864         * modules/unistr/u32-strcoll: Likewise.
25865         * modules/unistr/u32-strcpy: Likewise.
25866         * modules/unistr/u32-strcspn: Likewise.
25867         * modules/unistr/u32-strdup: Likewise.
25868         * modules/unistr/u32-strlen: Likewise.
25869         * modules/unistr/u32-strmblen: Likewise.
25870         * modules/unistr/u32-strmbtouc: Likewise.
25871         * modules/unistr/u32-strncat: Likewise.
25872         * modules/unistr/u32-strncmp: Likewise.
25873         * modules/unistr/u32-strncpy: Likewise.
25874         * modules/unistr/u32-strnlen: Likewise.
25875         * modules/unistr/u32-strpbrk: Likewise.
25876         * modules/unistr/u32-strrchr: Likewise.
25877         * modules/unistr/u32-strspn: Likewise.
25878         * modules/unistr/u32-strstr: Likewise.
25879         * modules/unistr/u32-strtok: Likewise.
25880         * modules/unistr/u32-to-u16: Likewise.
25881         * modules/unistr/u32-to-u8: Likewise.
25882         * modules/unistr/u32-uctomb: Likewise.
25883         * modules/uniwbrk/u8-wordbreaks: Likewise.
25884         * modules/uniwbrk/u16-wordbreaks: Likewise.
25885         * modules/uniwbrk/u32-wordbreaks: Likewise.
25886         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25887         * modules/uniwbrk/wordbreak-property: Likewise.
25888         * modules/uniwidth/u8-strwidth: Likewise.
25889         * modules/uniwidth/u8-width: Likewise.
25890         * modules/uniwidth/u16-strwidth: Likewise.
25891         * modules/uniwidth/u16-width: Likewise.
25892         * modules/uniwidth/u32-strwidth: Likewise.
25893         * modules/uniwidth/u32-width: Likewise.
25894         * modules/uniwidth/width: Likewise.
25895         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25896         with $(LIBUNISTRING).
25897         * modules/unicase/ignorable-tests: Likewise.
25898         * modules/unicase/locale-language-tests: Likewise.
25899         * modules/unicase/tolower-tests: Likewise.
25900         * modules/unicase/totitle-tests: Likewise.
25901         * modules/unicase/toupper-tests: Likewise.
25902         * modules/unicase/u8-casecmp-tests: Likewise.
25903         * modules/unicase/u8-casecoll-tests: Likewise.
25904         * modules/unicase/u8-casefold-tests: Likewise.
25905         * modules/unicase/u8-is-cased-tests: Likewise.
25906         * modules/unicase/u8-is-casefolded-tests: Likewise.
25907         * modules/unicase/u8-is-lowercase-tests: Likewise.
25908         * modules/unicase/u8-is-titlecase-tests: Likewise.
25909         * modules/unicase/u8-is-uppercase-tests: Likewise.
25910         * modules/unicase/u8-tolower-tests: Likewise.
25911         * modules/unicase/u8-totitle-tests: Likewise.
25912         * modules/unicase/u8-toupper-tests: Likewise.
25913         * modules/unicase/u16-casecmp-tests: Likewise.
25914         * modules/unicase/u16-casecoll-tests: Likewise.
25915         * modules/unicase/u16-casefold-tests: Likewise.
25916         * modules/unicase/u16-is-cased-tests: Likewise.
25917         * modules/unicase/u16-is-casefolded-tests: Likewise.
25918         * modules/unicase/u16-is-lowercase-tests: Likewise.
25919         * modules/unicase/u16-is-titlecase-tests: Likewise.
25920         * modules/unicase/u16-is-uppercase-tests: Likewise.
25921         * modules/unicase/u16-tolower-tests: Likewise.
25922         * modules/unicase/u16-totitle-tests: Likewise.
25923         * modules/unicase/u16-toupper-tests: Likewise.
25924         * modules/unicase/u32-casecmp-tests: Likewise.
25925         * modules/unicase/u32-casecoll-tests: Likewise.
25926         * modules/unicase/u32-casefold-tests: Likewise.
25927         * modules/unicase/u32-is-cased-tests: Likewise.
25928         * modules/unicase/u32-is-casefolded-tests: Likewise.
25929         * modules/unicase/u32-is-lowercase-tests: Likewise.
25930         * modules/unicase/u32-is-titlecase-tests: Likewise.
25931         * modules/unicase/u32-is-uppercase-tests: Likewise.
25932         * modules/unicase/u32-tolower-tests: Likewise.
25933         * modules/unicase/u32-totitle-tests: Likewise.
25934         * modules/unicase/u32-toupper-tests: Likewise.
25935         * modules/unicase/ulc-casecmp-tests: Likewise.
25936         * modules/unicase/ulc-casecoll-tests: Likewise.
25937         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25938         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25939         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25940         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25941         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25942         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25943         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25944         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25945         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25946         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25947         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25948         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25949         * modules/unictype/bidicategory-byname-tests: Likewise.
25950         * modules/unictype/bidicategory-name-tests: Likewise.
25951         * modules/unictype/bidicategory-of-tests: Likewise.
25952         * modules/unictype/bidicategory-test-tests: Likewise.
25953         * modules/unictype/block-list-tests: Likewise.
25954         * modules/unictype/block-of-tests: Likewise.
25955         * modules/unictype/block-test-tests: Likewise.
25956         * modules/unictype/category-C-tests: Likewise.
25957         * modules/unictype/category-Cc-tests: Likewise.
25958         * modules/unictype/category-Cf-tests: Likewise.
25959         * modules/unictype/category-Cn-tests: Likewise.
25960         * modules/unictype/category-Co-tests: Likewise.
25961         * modules/unictype/category-Cs-tests: Likewise.
25962         * modules/unictype/category-L-tests: Likewise.
25963         * modules/unictype/category-Ll-tests: Likewise.
25964         * modules/unictype/category-Lm-tests: Likewise.
25965         * modules/unictype/category-Lo-tests: Likewise.
25966         * modules/unictype/category-Lt-tests: Likewise.
25967         * modules/unictype/category-Lu-tests: Likewise.
25968         * modules/unictype/category-M-tests: Likewise.
25969         * modules/unictype/category-Mc-tests: Likewise.
25970         * modules/unictype/category-Me-tests: Likewise.
25971         * modules/unictype/category-Mn-tests: Likewise.
25972         * modules/unictype/category-N-tests: Likewise.
25973         * modules/unictype/category-Nd-tests: Likewise.
25974         * modules/unictype/category-Nl-tests: Likewise.
25975         * modules/unictype/category-No-tests: Likewise.
25976         * modules/unictype/category-P-tests: Likewise.
25977         * modules/unictype/category-Pc-tests: Likewise.
25978         * modules/unictype/category-Pd-tests: Likewise.
25979         * modules/unictype/category-Pe-tests: Likewise.
25980         * modules/unictype/category-Pf-tests: Likewise.
25981         * modules/unictype/category-Pi-tests: Likewise.
25982         * modules/unictype/category-Po-tests: Likewise.
25983         * modules/unictype/category-Ps-tests: Likewise.
25984         * modules/unictype/category-S-tests: Likewise.
25985         * modules/unictype/category-Sc-tests: Likewise.
25986         * modules/unictype/category-Sk-tests: Likewise.
25987         * modules/unictype/category-Sm-tests: Likewise.
25988         * modules/unictype/category-So-tests: Likewise.
25989         * modules/unictype/category-Z-tests: Likewise.
25990         * modules/unictype/category-Zl-tests: Likewise.
25991         * modules/unictype/category-Zp-tests: Likewise.
25992         * modules/unictype/category-Zs-tests: Likewise.
25993         * modules/unictype/category-and-not-tests: Likewise.
25994         * modules/unictype/category-and-tests: Likewise.
25995         * modules/unictype/category-byname-tests: Likewise.
25996         * modules/unictype/category-name-tests: Likewise.
25997         * modules/unictype/category-none-tests: Likewise.
25998         * modules/unictype/category-of-tests: Likewise.
25999         * modules/unictype/category-or-tests: Likewise.
26000         * modules/unictype/category-test-withtable-tests: Likewise.
26001         * modules/unictype/combining-class-tests: Likewise.
26002         * modules/unictype/ctype-alnum-tests: Likewise.
26003         * modules/unictype/ctype-alpha-tests: Likewise.
26004         * modules/unictype/ctype-blank-tests: Likewise.
26005         * modules/unictype/ctype-cntrl-tests: Likewise.
26006         * modules/unictype/ctype-digit-tests: Likewise.
26007         * modules/unictype/ctype-graph-tests: Likewise.
26008         * modules/unictype/ctype-lower-tests: Likewise.
26009         * modules/unictype/ctype-print-tests: Likewise.
26010         * modules/unictype/ctype-punct-tests: Likewise.
26011         * modules/unictype/ctype-space-tests: Likewise.
26012         * modules/unictype/ctype-upper-tests: Likewise.
26013         * modules/unictype/ctype-xdigit-tests: Likewise.
26014         * modules/unictype/decimal-digit-tests: Likewise.
26015         * modules/unictype/digit-tests: Likewise.
26016         * modules/unictype/mirror-tests: Likewise.
26017         * modules/unictype/numeric-tests: Likewise.
26018         * modules/unictype/property-alphabetic-tests: Likewise.
26019         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
26020         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
26021         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
26022         * modules/unictype/property-bidi-block-separator-tests: Likewise.
26023         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
26024         * modules/unictype/property-bidi-common-separator-tests: Likewise.
26025         * modules/unictype/property-bidi-control-tests: Likewise.
26026         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
26027         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
26028         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
26029         * modules/unictype/property-bidi-european-digit-tests: Likewise.
26030         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
26031         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
26032         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
26033         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
26034         * modules/unictype/property-bidi-pdf-tests: Likewise.
26035         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
26036         * modules/unictype/property-bidi-whitespace-tests: Likewise.
26037         * modules/unictype/property-byname-tests: Likewise.
26038         * modules/unictype/property-combining-tests: Likewise.
26039         * modules/unictype/property-composite-tests: Likewise.
26040         * modules/unictype/property-currency-symbol-tests: Likewise.
26041         * modules/unictype/property-dash-tests: Likewise.
26042         * modules/unictype/property-decimal-digit-tests: Likewise.
26043         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
26044         * modules/unictype/property-deprecated-tests: Likewise.
26045         * modules/unictype/property-diacritic-tests: Likewise.
26046         * modules/unictype/property-extender-tests: Likewise.
26047         * modules/unictype/property-format-control-tests: Likewise.
26048         * modules/unictype/property-grapheme-base-tests: Likewise.
26049         * modules/unictype/property-grapheme-extend-tests: Likewise.
26050         * modules/unictype/property-grapheme-link-tests: Likewise.
26051         * modules/unictype/property-hex-digit-tests: Likewise.
26052         * modules/unictype/property-hyphen-tests: Likewise.
26053         * modules/unictype/property-id-continue-tests: Likewise.
26054         * modules/unictype/property-id-start-tests: Likewise.
26055         * modules/unictype/property-ideographic-tests: Likewise.
26056         * modules/unictype/property-ids-binary-operator-tests: Likewise.
26057         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
26058         * modules/unictype/property-ignorable-control-tests: Likewise.
26059         * modules/unictype/property-iso-control-tests: Likewise.
26060         * modules/unictype/property-join-control-tests: Likewise.
26061         * modules/unictype/property-left-of-pair-tests: Likewise.
26062         * modules/unictype/property-line-separator-tests: Likewise.
26063         * modules/unictype/property-logical-order-exception-tests: Likewise.
26064         * modules/unictype/property-lowercase-tests: Likewise.
26065         * modules/unictype/property-math-tests: Likewise.
26066         * modules/unictype/property-non-break-tests: Likewise.
26067         * modules/unictype/property-not-a-character-tests: Likewise.
26068         * modules/unictype/property-numeric-tests: Likewise.
26069         * modules/unictype/property-other-alphabetic-tests: Likewise.
26070         * modules/unictype/property-other-default-ignorable-code-point-tests:
26071         Likewise.
26072         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
26073         * modules/unictype/property-other-id-continue-tests: Likewise.
26074         * modules/unictype/property-other-id-start-tests: Likewise.
26075         * modules/unictype/property-other-lowercase-tests: Likewise.
26076         * modules/unictype/property-other-math-tests: Likewise.
26077         * modules/unictype/property-other-uppercase-tests: Likewise.
26078         * modules/unictype/property-paired-punctuation-tests: Likewise.
26079         * modules/unictype/property-paragraph-separator-tests: Likewise.
26080         * modules/unictype/property-pattern-syntax-tests: Likewise.
26081         * modules/unictype/property-pattern-white-space-tests: Likewise.
26082         * modules/unictype/property-private-use-tests: Likewise.
26083         * modules/unictype/property-punctuation-tests: Likewise.
26084         * modules/unictype/property-quotation-mark-tests: Likewise.
26085         * modules/unictype/property-radical-tests: Likewise.
26086         * modules/unictype/property-sentence-terminal-tests: Likewise.
26087         * modules/unictype/property-soft-dotted-tests: Likewise.
26088         * modules/unictype/property-space-tests: Likewise.
26089         * modules/unictype/property-terminal-punctuation-tests: Likewise.
26090         * modules/unictype/property-test-tests: Likewise.
26091         * modules/unictype/property-titlecase-tests: Likewise.
26092         * modules/unictype/property-unassigned-code-value-tests: Likewise.
26093         * modules/unictype/property-unified-ideograph-tests: Likewise.
26094         * modules/unictype/property-uppercase-tests: Likewise.
26095         * modules/unictype/property-variation-selector-tests: Likewise.
26096         * modules/unictype/property-white-space-tests: Likewise.
26097         * modules/unictype/property-xid-continue-tests: Likewise.
26098         * modules/unictype/property-xid-start-tests: Likewise.
26099         * modules/unictype/property-zero-width-tests: Likewise.
26100         * modules/unictype/scripts-tests: Likewise.
26101         * modules/unictype/syntax-c-ident-tests: Likewise.
26102         * modules/unictype/syntax-c-whitespace-tests: Likewise.
26103         * modules/unictype/syntax-java-ident-tests: Likewise.
26104         * modules/unictype/syntax-java-whitespace-tests: Likewise.
26105         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
26106         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
26107         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
26108         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
26109         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
26110         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
26111         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
26112         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
26113         * modules/uniname/uniname-tests: Likewise.
26114         * modules/uninorm/canonical-decomposition-tests: Likewise.
26115         * modules/uninorm/compat-decomposition-tests: Likewise.
26116         * modules/uninorm/composition-tests: Likewise.
26117         * modules/uninorm/decomposing-form-tests: Likewise.
26118         * modules/uninorm/decomposition-tests: Likewise.
26119         * modules/uninorm/filter-tests: Likewise.
26120         * modules/uninorm/nfc-tests: Likewise.
26121         * modules/uninorm/nfd-tests: Likewise.
26122         * modules/uninorm/nfkc-tests: Likewise.
26123         * modules/uninorm/nfkd-tests: Likewise.
26124         * modules/uninorm/u8-normcmp-tests: Likewise.
26125         * modules/uninorm/u8-normcoll-tests: Likewise.
26126         * modules/uninorm/u16-normcmp-tests: Likewise.
26127         * modules/uninorm/u16-normcoll-tests: Likewise.
26128         * modules/uninorm/u32-normcmp-tests: Likewise.
26129         * modules/uninorm/u32-normcoll-tests: Likewise.
26130         * modules/unistdio/u8-asnprintf-tests: Likewise.
26131         * modules/unistdio/u8-vasnprintf-tests: Likewise.
26132         * modules/unistdio/u8-vasprintf-tests: Likewise.
26133         * modules/unistdio/u8-vsnprintf-tests: Likewise.
26134         * modules/unistdio/u8-vsprintf-tests: Likewise.
26135         * modules/unistdio/u16-asnprintf-tests: Likewise.
26136         * modules/unistdio/u16-vasnprintf-tests: Likewise.
26137         * modules/unistdio/u16-vasprintf-tests: Likewise.
26138         * modules/unistdio/u16-vsnprintf-tests: Likewise.
26139         * modules/unistdio/u16-vsprintf-tests: Likewise.
26140         * modules/unistdio/u32-asnprintf-tests: Likewise.
26141         * modules/unistdio/u32-vasnprintf-tests: Likewise.
26142         * modules/unistdio/u32-vasprintf-tests: Likewise.
26143         * modules/unistdio/u32-vsnprintf-tests: Likewise.
26144         * modules/unistdio/u32-vsprintf-tests: Likewise.
26145         * modules/unistdio/ulc-asnprintf-tests: Likewise.
26146         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
26147         * modules/unistdio/ulc-vasprintf-tests: Likewise.
26148         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26149         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26150         * modules/unistr/u8-check-tests: Likewise.
26151         * modules/unistr/u8-chr-tests: Likewise.
26152         * modules/unistr/u8-cmp-tests: Likewise.
26153         * modules/unistr/u8-cmp2-tests: Likewise.
26154         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26155         * modules/unistr/u8-cpy-tests: Likewise.
26156         * modules/unistr/u8-mblen-tests: Likewise.
26157         * modules/unistr/u8-mbsnlen-tests: Likewise.
26158         * modules/unistr/u8-mbtouc-tests: Likewise.
26159         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26160         * modules/unistr/u8-mbtoucr-tests: Likewise.
26161         * modules/unistr/u8-move-tests: Likewise.
26162         * modules/unistr/u8-next-tests: Likewise.
26163         * modules/unistr/u8-prev-tests: Likewise.
26164         * modules/unistr/u8-set-tests: Likewise.
26165         * modules/unistr/u8-stpcpy-tests: Likewise.
26166         * modules/unistr/u8-stpncpy-tests: Likewise.
26167         * modules/unistr/u8-strcat-tests: Likewise.
26168         * modules/unistr/u8-strcmp-tests: Likewise.
26169         * modules/unistr/u8-strcoll-tests: Likewise.
26170         * modules/unistr/u8-strcpy-tests: Likewise.
26171         * modules/unistr/u8-strdup-tests: Likewise.
26172         * modules/unistr/u8-strlen-tests: Likewise.
26173         * modules/unistr/u8-strmblen-tests: Likewise.
26174         * modules/unistr/u8-strmbtouc-tests: Likewise.
26175         * modules/unistr/u8-strncat-tests: Likewise.
26176         * modules/unistr/u8-strncmp-tests: Likewise.
26177         * modules/unistr/u8-strncpy-tests: Likewise.
26178         * modules/unistr/u8-strnlen-tests: Likewise.
26179         * modules/unistr/u8-to-u16-tests: Likewise.
26180         * modules/unistr/u8-to-u32-tests: Likewise.
26181         * modules/unistr/u8-uctomb-tests: Likewise.
26182         * modules/unistr/u16-check-tests: Likewise.
26183         * modules/unistr/u16-chr-tests: Likewise.
26184         * modules/unistr/u16-cmp-tests: Likewise.
26185         * modules/unistr/u16-cmp2-tests: Likewise.
26186         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26187         * modules/unistr/u16-cpy-tests: Likewise.
26188         * modules/unistr/u16-mblen-tests: Likewise.
26189         * modules/unistr/u16-mbsnlen-tests: Likewise.
26190         * modules/unistr/u16-mbtouc-tests: Likewise.
26191         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26192         * modules/unistr/u16-mbtoucr-tests: Likewise.
26193         * modules/unistr/u16-move-tests: Likewise.
26194         * modules/unistr/u16-next-tests: Likewise.
26195         * modules/unistr/u16-prev-tests: Likewise.
26196         * modules/unistr/u16-set-tests: Likewise.
26197         * modules/unistr/u16-stpcpy-tests: Likewise.
26198         * modules/unistr/u16-stpncpy-tests: Likewise.
26199         * modules/unistr/u16-strcat-tests: Likewise.
26200         * modules/unistr/u16-strcmp-tests: Likewise.
26201         * modules/unistr/u16-strcoll-tests: Likewise.
26202         * modules/unistr/u16-strcpy-tests: Likewise.
26203         * modules/unistr/u16-strdup-tests: Likewise.
26204         * modules/unistr/u16-strlen-tests: Likewise.
26205         * modules/unistr/u16-strmblen-tests: Likewise.
26206         * modules/unistr/u16-strmbtouc-tests: Likewise.
26207         * modules/unistr/u16-strncat-tests: Likewise.
26208         * modules/unistr/u16-strncmp-tests: Likewise.
26209         * modules/unistr/u16-strncpy-tests: Likewise.
26210         * modules/unistr/u16-strnlen-tests: Likewise.
26211         * modules/unistr/u16-to-u32-tests: Likewise.
26212         * modules/unistr/u16-to-u8-tests: Likewise.
26213         * modules/unistr/u16-uctomb-tests: Likewise.
26214         * modules/unistr/u32-check-tests: Likewise.
26215         * modules/unistr/u32-chr-tests: Likewise.
26216         * modules/unistr/u32-cmp-tests: Likewise.
26217         * modules/unistr/u32-cmp2-tests: Likewise.
26218         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26219         * modules/unistr/u32-cpy-tests: Likewise.
26220         * modules/unistr/u32-mblen-tests: Likewise.
26221         * modules/unistr/u32-mbsnlen-tests: Likewise.
26222         * modules/unistr/u32-mbtouc-tests: Likewise.
26223         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26224         * modules/unistr/u32-mbtoucr-tests: Likewise.
26225         * modules/unistr/u32-move-tests: Likewise.
26226         * modules/unistr/u32-next-tests: Likewise.
26227         * modules/unistr/u32-prev-tests: Likewise.
26228         * modules/unistr/u32-set-tests: Likewise.
26229         * modules/unistr/u32-stpcpy-tests: Likewise.
26230         * modules/unistr/u32-stpncpy-tests: Likewise.
26231         * modules/unistr/u32-strcat-tests: Likewise.
26232         * modules/unistr/u32-strcmp-tests: Likewise.
26233         * modules/unistr/u32-strcoll-tests: Likewise.
26234         * modules/unistr/u32-strcpy-tests: Likewise.
26235         * modules/unistr/u32-strdup-tests: Likewise.
26236         * modules/unistr/u32-strlen-tests: Likewise.
26237         * modules/unistr/u32-strmblen-tests: Likewise.
26238         * modules/unistr/u32-strmbtouc-tests: Likewise.
26239         * modules/unistr/u32-strncat-tests: Likewise.
26240         * modules/unistr/u32-strncmp-tests: Likewise.
26241         * modules/unistr/u32-strncpy-tests: Likewise.
26242         * modules/unistr/u32-strnlen-tests: Likewise.
26243         * modules/unistr/u32-to-u16-tests: Likewise.
26244         * modules/unistr/u32-to-u8-tests: Likewise.
26245         * modules/unistr/u32-uctomb-tests: Likewise.
26246         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26247         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26248         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26249         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26250         * modules/uniwidth/u8-strwidth-tests: Likewise.
26251         * modules/uniwidth/u8-width-tests: Likewise.
26252         * modules/uniwidth/u16-strwidth-tests: Likewise.
26253         * modules/uniwidth/u16-width-tests: Likewise.
26254         * modules/uniwidth/u32-strwidth-tests: Likewise.
26255         * modules/uniwidth/u32-width-tests: Likewise.
26256         * modules/uniwidth/width-tests: Likewise.
26257
26258 2010-05-18  Richard Jones  <rjones@redhat.com>
26259
26260         doc: users.txt: list hivex
26261         * users.txt: Add hivex.
26262
26263 2010-05-18  Richard Jones  <rjones@redhat.com>
26264
26265         doc: users.txt: list febootstrap
26266         * users.txt: Add febootstrap.
26267
26268 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26269
26270         bootstrap: fix an error when gnulib is not used as a git submodule
26271         * build-aux/bootstrap (gnulib_path): If its length is zero then
26272         assign "gnulib" to it.
26273         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26274
26275 2010-05-16  Bruno Haible  <bruno@clisp.org>
26276
26277         Avoid autoconf warnings about AM_ICONV.
26278         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26279         2.64.
26280
26281 2010-05-16  Bruno Haible  <bruno@clisp.org>
26282
26283         absolute-header: Make the macro usable in more situations.
26284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26285         from gl_ABSOLUTE_HEADER.
26286         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26287
26288 2010-05-16  James Youngman  <jay@gnu.org>
26289
26290         doc: update users.txt
26291         * users.txt: Add CSSC.
26292
26293 2010-05-16  Jim Meyering  <meyering@redhat.com>
26294
26295         init.sh: fix an error in the previous change; add more comments
26296         * tests/init.sh: Compare exit code in loop against 9, not 2.
26297         Patch by Bruno Haible.
26298         Make the two tests more similar by adding an empty "then" clause.
26299         Add comments.
26300
26301         init.sh: avoid unnecessary shell re-exec
26302         * tests/init.sh: Improve the re-exec-required check to first test the
26303         current shell.  If it passes the test, do not search for a shell that
26304         does pass, and do not re-exec.  This test is particularly contorted to
26305         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26306         of $(...) evokes a syntax error and causes immediate shell exit with
26307         status 2.  Bruno Haible reported that the re-exec made it impossible
26308         to single-step through any init.sh-using script.
26309
26310 2010-05-16  Bruno Haible  <bruno@clisp.org>
26311
26312         Fix collision between gnulib's and libintl's printf replacements.
26313         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26314         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26315         (printf): When using GNU C, map the __printf__ function to rpl_printf
26316         via __asm__. When not using GNU C, define rpl_printf instead of
26317         __printf__.
26318         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26319         commit.
26320         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26321         commit.
26322         * m4/asm-underscore.m4: New file.
26323         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26324         * modules/stdio (Files): Add m4/asm-underscore.m4.
26325         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26326         Reported by Ben Pfaff.
26327
26328 2010-05-16  Bruno Haible  <bruno@clisp.org>
26329
26330         verify: Avoid skipping the test on openSUSE 11.0.
26331         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26332
26333 2010-05-13  Bruno Haible  <bruno@clisp.org>
26334
26335         Avoid useless warnings from G++.
26336         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26337         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26338         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26339
26340 2010-05-11  Jim Meyering  <meyering@redhat.com>
26341
26342         maint.mk: tweak preceding change
26343         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26344         regexps tighter by anchoring at EOL, and make the new group "shy"
26345         for slightly decreased overhead.
26346
26347 2010-05-11  Eric Blake  <eblake@redhat.com>
26348
26349         maint.mk: gnulib doesn't guarantee NSIG
26350         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26351
26352 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26353
26354         test-pwrite.c: Remove unused variable declaration.
26355         * tests/test-pwrite.c (main): Remove read_buf declaration.
26356
26357         Remove useless test-pwrite.sh file.
26358         * tests/test-pwrite.sh: Delete file.
26359         * modules/pwrite-tests: Remove references.
26360         Reported by Bruno Haible.
26361
26362 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26363
26364         init.sh: fix a typo
26365         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26366
26367 2010-05-10  Jim Meyering  <meyering@redhat.com>
26368
26369         maint.mk: avoid using a temporary file in the always-defined-macros check
26370         * top/maint.mk (.re-defmac): Remove rule.
26371         (gl_trap_): Remove definition.
26372         (sc_prohibit_always-defined_macros): Rewrite not to create and
26373         depend on a temporary file.  Instead, depend on GNU grep's ability
26374         to read a list of regular expressions from stdin when given "-f -".
26375
26376 2010-05-09  Bruno Haible  <bruno@clisp.org>
26377
26378         Update to GNU gettext 0.18, part 1.
26379         * m4/gettext.m4: Update to GNU gettext 0.18.
26380         * m4/intl.m4: Likewise.
26381         * m4/po.m4: Likewise.
26382         * modules/gettext (Files): Add m4/fcntl-o.m4.
26383         (configure.ac): Require gettext infrastructure from version 0.18.
26384
26385 2010-05-09  Jim Meyering  <meyering@redhat.com>
26386
26387         init.sh: enable MALLOC_PERTURB_
26388         * tests/init.sh: Enable glibc's malloc-perturbing option.
26389
26390         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26391         With my recent change in init.sh from the two-line form:
26392             -#   : ${srcdir=.}
26393             -#   . "$srcdir/init.sh"; path_prepend_ .
26394             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26395         I noticed that using the one-line form would cause this test
26396         to fail with a false-positive, or to stop working altogether,
26397         depending on whether help-version changed or all the tests did.
26398         * top/maint.mk (_hv_regex): Remove this definition.
26399         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26400         (_hv_regex_strong): Use a stronger regex to check for conformance.
26401         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26402         Give a separate diagnostic for lack of conforming use.
26403
26404         maint.mk: prohibit definition of symbols defined by gnulib
26405         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26406         definition of symbols defined by gnulib.
26407
26408 2010-05-09  Bruno Haible  <bruno@clisp.org>
26409
26410         acl: Avoid test failure on Cygwin-hosted mingw.
26411         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26412
26413 2010-05-09  Bruno Haible  <bruno@clisp.org>
26414
26415         error: Use system's fcntl function.
26416         * lib/error.c (fcntl): Undefine.
26417
26418 2010-05-09  Jim Meyering  <meyering@redhat.com>
26419
26420         verify: adjust formatting to be more consistent
26421         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26422         argument-list '('s, and after one comma.
26423
26424 2010-05-09  Bruno Haible  <bruno@clisp.org>
26425
26426         error: More reliable output on mingw.
26427         * lib/error.c: Include <windows.h>.
26428         (is_open): New function.
26429         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26430         defined.
26431
26432 2010-05-09  Bruno Haible  <bruno@clisp.org>
26433
26434         vasnprintf: Fix syntax errors in libintl build on mingw.
26435         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26436         pad_ourselves and prec_ourselves after use.
26437
26438 2010-05-08  Bruno Haible  <bruno@clisp.org>
26439
26440         * lib/config.charset: Update comments for Cygwin 1.7.
26441         * lib/localcharset.c: Likewise.
26442
26443 2010-05-07  Jim Meyering  <meyering@redhat.com>
26444
26445         init.sh: improve comments
26446         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26447         . "${srcdir=.}/init.sh"; path_prepend_ .
26448         Add a note about path_prepend_ and the alternative of using
26449         TESTS_ENVIRONMENT.
26450
26451 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26452
26453         exclude: Unescape hashed patterns in wildcard mode.
26454         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26455         to the hash list.
26456         * tests/test-exclude8.sh: New test case.
26457         * modules/exclude-tests: Add new test.
26458
26459 2010-05-05  Eric Blake  <eblake@redhat.com>
26460
26461         verify: automate tests
26462         * modules/verify-tests: New module.
26463         * tests/test-verify.sh: New file.
26464         * tests/test-verify.c: Guard each negative test with a unique id.
26465         Also avoid warning about unused left hand of comma expressions.
26466
26467 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26468
26469         Further improvements to verify.h, suggested by Eric Blake.
26470         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26471         the GL_* versions, to avoid collision with OpenGL.
26472         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26473         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26474         than testing merely whether it's defined.
26475
26476         Modify verify.h to pacify gcc -Wredundant_decls.
26477         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26478         These use the prefix "GL_" since they're likely to be useful elsewhere.
26479         We may need to break them out into a different .h file.
26480         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26481         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26482         of verify_function__.
26483
26484 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26485
26486         Tests for module pwrite.
26487         * modules/pwrite-tests: New file.
26488         * tests/test-pwrite.sh: New file.
26489         * tests/test-pwrite.c: New file.
26490
26491         New module pwrite.
26492         * lib/unistd.in.h (pwrite): New declaration.
26493         * lib/pwrite.c: New file, from glibc with modifications.
26494         * m4/pwrite.m4: New file.
26495         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26497         REPLACE_PWRITE.
26498         * modules/pwrite: New file.
26499         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26500         REPLACE_PWRITE.
26501         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26502         * doc/posix-functions/pwrite.texi: Mention the new module.
26503
26504 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26505
26506         pread: Update documentation.
26507         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26508
26509 2010-05-04  Eric Blake  <eblake@redhat.com>
26510
26511         docs: update cygwin progress
26512         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26513         this bug.
26514         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26515         Added in cygwin 1.7.2.
26516         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26517         Likewise.
26518         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26519         Likewise.
26520         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26521         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26522         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26523         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26524         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26525         Mention nproc module.
26526         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26527         bug in cygwin 1.7.5 addition.
26528         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26529         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26530         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26531         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26532         1.7.5.
26533         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26534         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26535         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26536         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26537         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26538         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26539         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26540         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26541         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26542         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26543         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26544         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26545         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26546         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26547         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26548         Likewise.
26549         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26550         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26551         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26552         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26553         Likewise.
26554         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26555         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26556         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26557         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26558         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26559         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26560         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26561         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26562         Likewise.
26563         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26564         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26565         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26566         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26567         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26568         Likewise.
26569         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26570         Likewise.
26571         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26572         Likewise.
26573         * doc/glibc-functions/xdrrec_endofrecord.texi
26574         (xdrrec_endofrecord): Likewise.
26575         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26576         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26577         Likewise.
26578         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26579         Likewise.
26580
26581 2010-05-04  Jim Meyering  <meyering@redhat.com>
26582
26583         gendocs.sh: make its "-s FILE" option more useful
26584         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26585         $PACKAGE to reflect the probably-different basename of "FILE".
26586
26587 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26588
26589         bootstrap: don't ignore download_po_files failure
26590         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26591         failure.
26592
26593 2010-05-03  Jim Meyering  <meyering@redhat.com>
26594
26595         maint.mk: allow to pass options to gendocs.sh
26596         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26597         (gendocs_options_): New overridable variable.
26598
26599         gnu-web-doc-update: don't ignore configure or build failure
26600         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26601
26602         announce-gen: backslash-escape '@'s in --help output
26603         * build-aux/announce-gen: Fix syntax errors.
26604
26605         maint.mk, announce-gen: allow project-specific announcement mail headers
26606         * top/maint.mk (translation_project_): Define default.
26607         (announcement_Cc_, announcement_mail_headers_): Likewise.
26608         (announcement): Invoke announce-gen with new --mail-headers option.
26609         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26610
26611         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26612         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26613         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26614         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26615         line in the "err2" output file when running "make check" in verbose
26616         mode (i.e., with set -x enabled).
26617
26618 2010-05-03  Bruno Haible  <bruno@clisp.org>
26619
26620         wctob: Fix for weird platforms.
26621         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26622         argument value.
26623
26624 2010-05-03  Jim Meyering  <meyering@redhat.com>
26625
26626         maint.mk: prohibit unwarranted use of <strings.h>
26627         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26628         strings.h in a file that does not also use strcasecmp, strncasecmp,
26629         ffs or ffsll.
26630
26631         maint.mk: remove obsolete comments
26632         * top/maint.mk: Remove stale, commented-out rules.
26633
26634 2010-05-02  Bruno Haible  <bruno@clisp.org>
26635
26636         wcwidth: Declare also when it's aliased.
26637         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26638         macro.
26639
26640 2010-05-02  Bruno Haible  <bruno@clisp.org>
26641
26642         Fix regression from 2010-04-25.
26643         * gnulib-tool (func_modules_transitive_closure): Check the status of
26644         all modules, not only of the tests that are of the form foo-tests where
26645         foo is a module.
26646
26647 2010-05-02  Bruno Haible  <bruno@clisp.org>
26648
26649         wctob: Work around nasty Cygwin 1.7.2 bug.
26650         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26651         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26652
26653 2010-05-01  Bruno Haible  <bruno@clisp.org>
26654
26655         fpurge: Sharper test.
26656         * tests/test-fpurge.c (main): Add one more ftell check.
26657         * modules/fpurge-tests (Depends-on): Add ftell.
26658         Suggested by Eric Blake.
26659
26660 2010-05-01  Bruno Haible  <bruno@clisp.org>
26661
26662         ftello: Another test.
26663         * tests/test-ftello3.c: New file.
26664         * modules/ftello-tests (Files): Add it.
26665         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26666         MOSTLYCLEANFILES.
26667
26668         ftell: Another test.
26669         * tests/test-ftell3.c: New file.
26670         * modules/ftell-tests (Files): Add it.
26671         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26672         MOSTLYCLEANFILES.
26673
26674 2010-05-01  Bruno Haible  <bruno@clisp.org>
26675
26676         ftell, ftello: Work around Solaris bug.
26677         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26678         * lib/ftello.c: Include stdio-impl.h.
26679         (ftello): On Solaris, when _IOWRT is set, compute the result without
26680         looking at _IOREAD.
26681         * modules/ftello (Files): Add lib/stdio-impl.h.
26682         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26683         * doc/posix-functions/ftello.texi: Likewise.
26684         Reported by Eric Blake.
26685
26686 2010-05-01  Bruno Haible  <bruno@clisp.org>
26687
26688         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26689         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26690         the _IOWRT flag is also set.
26691
26692 2010-05-01  Bruno Haible  <bruno@clisp.org>
26693
26694         Fix doc about a HP-UX stdio bug.
26695         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26696         * doc/posix-functions/ftello.texi: Likewise.
26697
26698 2010-05-01  Bruno Haible  <bruno@clisp.org>
26699
26700         lseek test: Fix failure on Solaris.
26701         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26702         output.
26703
26704 2010-04-30  Jim Meyering  <meyering@redhat.com>
26705
26706         bootstrap: don't ignore failure to generate po*/Makevars
26707         * build-aux/bootstrap (with_gettext): Don't ignore failure
26708         to create po/Makevars or runtime-po/Makevars.
26709
26710 2010-04-29  Eric Blake  <eblake@redhat.com>
26711
26712         headers: relax license to LGPLv2+
26713         * modules/fcntl-h (License): Relax license.
26714         * modules/getopt-posix (License): Likewise.
26715         * modules/locale (License): Likewise.
26716         * modules/math (License): Likewise.
26717         * modules/pty (License): Likewise.
26718         * modules/sched (License): Likewise.
26719         * modules/search (License): Likewise.
26720         * modules/spawn (License): Likewise.
26721         * modules/stdarg (License): Likewise.
26722         * modules/sysexits (License): Likewise.
26723
26724 2010-04-29  Jim Meyering  <meyering@redhat.com>
26725
26726         inttypes: relax license to LGPLv2+
26727         * modules/inttypes (License): Relax license.
26728
26729 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26730
26731         * top/maint.mk (indent): Run twice to produce idempotent results.
26732
26733 2010-04-28  Bruno Haible  <bruno@clisp.org>
26734
26735         getdate: Generate getdate.c in the source directory.
26736         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26737         MOSTLYCLEANFILES.
26738         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26739
26740 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26741
26742         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26743         is not declared as a const *; avoid warnings in that case.
26744
26745 2010-04-28  Eric Blake  <eblake@redhat.com>
26746
26747         canonicalize-lgpl: avoid compiler warning
26748         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26749         declaration' / 'extraneous semicolon' warning with some compilers.
26750         Reported by Andreas Gruenbacher.
26751
26752 2010-04-28  Jim Meyering  <meyering@redhat.com>
26753
26754         init.sh: ensure a more reliable exit status when exiting via trap
26755         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26756         Inspired by patches from Dmitry V. Levin.
26757         Also trap on signal 3 (SIGQUIT).
26758
26759 2010-04-27  Bruno Haible  <bruno@clisp.org>
26760
26761         Update doc about utimes().
26762         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26763         'utimens' module.
26764         Reported by Andreas Gruenbacher <agruen@suse.de>.
26765
26766 2010-04-27  Eric Blake  <eblake@redhat.com>
26767
26768         full-read, full-write: relax license
26769         * modules/full-read (License): Drop to LGPLv2+.
26770         * modules/full-write (License): Likewise.
26771         * modules/safe-read (License): Likewise.
26772         * modules/safe-write (License): Likewise.
26773
26774         pthread: mention library for linking
26775         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26776
26777 2010-04-27  Jim Meyering  <meyering@redhat.com>
26778
26779         maint.mk: fix a bug introduced in last change
26780         * top/maint.mk (gl_assured_headers_): Now that all names are on
26781         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26782         is not anchored to end of word, it should be adequate.
26783
26784         maint.mk: avoid side-effect in latest syntax-check
26785         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26786         to run commands via $(shell...), and hence to incur cost only when
26787         the new rule is actually run.
26788
26789         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26790         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26791         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26792         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26793         (gl_assured_headers_, az_, AZ_): Define.
26794         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26795
26796 2010-04-26  Jim Meyering  <jim@meyering.net>
26797             Bruno Haible  <bruno@clisp.org>
26798
26799         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26800         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26801         Prompted by an exchange with Gilles Espinasse.
26802
26803 2010-04-26  Jim Meyering  <meyering@redhat.com>
26804
26805         git-version-gen: aesthetic tweak
26806         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26807         so that the command remains on a single line.
26808
26809 2010-04-26  Eric Blake  <eblake@redhat.com>
26810
26811         git-version-gen: allow use on EBCDIC hosts
26812         * build-aux/git-version-gen (dirty): Use literal rather than tying
26813         ourselves to ascii.
26814         Reported by Steve Goetze.
26815
26816 2010-04-25  Bruno Haible  <bruno@clisp.org>
26817
26818         netdb: Add support for GNULIB_POSIXCHECK.
26819         * lib/netdb.in.h: Include warn-on-use.h.
26820         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26821         functions are used when GNULIB_POSIXCHECK is defined and the
26822         getaddrinfo module is not in use.
26823         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26824         freeaddrinfo, gai_strerror, getnameinfo are declared.
26825         * modules/netdb (Depends-on): Add warn-on-use.
26826         (Makefile.am): Include warn-on-use.h in netdb.h.
26827
26828 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26829
26830         build: avoid "make check" failure without .git/ directory
26831         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26832         there is no .git/ directory.
26833
26834 2010-04-25  Bruno Haible  <bruno@clisp.org>
26835
26836         ptsname: Fix misuse of ttyname_r.
26837         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26838         of errno.
26839
26840 2010-04-25  Bruno Haible  <bruno@clisp.org>
26841
26842         ttyname_r: Make it work on Solaris 10.
26843         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26844         if the system function has the POSIX declaration. Test whether the
26845         function fails if the buffer is less than 128 bytes large.
26846         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26847         system's ttyname_r function. Provide a reasonably large buffer.
26848         * modules/ttyname_r (Depends-on): Add extensions.
26849         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26850
26851 2010-04-25  Bruno Haible  <bruno@clisp.org>
26852
26853         Use the 'extensions' module for some more functions on Solaris.
26854         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26855         module.
26856         * doc/posix-functions/ctime_r.texi: Likewise.
26857         * doc/posix-functions/getgrgid_r.texi: Likewise.
26858         * doc/posix-functions/getgrnam_r.texi: Likewise.
26859         * doc/posix-functions/getpwnam_r.texi: Likewise.
26860         * doc/posix-functions/getpwuid_r.texi: Likewise.
26861         * doc/posix-functions/readdir_r.texi: Likewise.
26862         * doc/posix-functions/sigwait.texi: Likewise.
26863         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26864         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26865
26866 2010-04-25  Bruno Haible  <bruno@clisp.org>
26867
26868         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26869         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26870         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26871         * lib/ttyname_r.c: Include <limits.h>.
26872         (ttyname_r): Define using the system's ttyname_r function, if it exists
26873         and not on Solaris.
26874         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26875         set.
26876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26877         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26878         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26879         Reported by Simon Josefsson.
26880
26881 2010-04-25  Bruno Haible  <bruno@clisp.org>
26882
26883         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26884         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26885         * doc/posix-functions/ctime_r.texi: Likewise.
26886         * doc/posix-functions/getgrgid_r.texi: Likewise.
26887         * doc/posix-functions/getgrnam_r.texi: Likewise.
26888         * doc/posix-functions/getlogin_r.texi: Likewise.
26889         * doc/posix-functions/getpwnam_r.texi: Likewise.
26890         * doc/posix-functions/getpwuid_r.texi: Likewise.
26891         * doc/posix-functions/readdir_r.texi: Likewise.
26892         * doc/posix-functions/sigwait.texi: Likewise.
26893         * doc/posix-functions/ttyname_r.texi: Likewise.
26894         Reported by Simon Josefsson.
26895
26896 2010-04-25  Bruno Haible  <bruno@clisp.org>
26897
26898         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26899         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26900         also to --create-testdir.
26901         (func_acceptable): Don't consider the status of *-tests modules here.
26902         (func_modules_transitive_closure): Consider it here, before including a
26903         test module.
26904         (func_import, func_create_testdir): Set inc_all_direct_tests,
26905         inc_all_indirect_tests.
26906         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26907         --create-testdir and --create-megatestdir.
26908
26909 2010-04-25  Bruno Haible  <bruno@clisp.org>
26910
26911         gnulib-tool: Add --without-*-tests options.
26912         * gnulib-tool (func_usage): Document the --without-*-tests options.
26913         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26914         excl_unportable_tests): New variables.
26915         Fail if they are specified with --import or --update.
26916         (func_acceptable): Respect the excl_*_tests variables.
26917         (func_import): Set the excl_*_tests variables to empty.
26918
26919 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26920             Bruno Haible  <bruno@clisp.org>
26921
26922         Work around a MacOS X 10.4 bug with openpty.
26923         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26924         * tests/test-openpty.c (main): Close the master side explicitly.
26925
26926 2010-04-25  Bruno Haible  <bruno@clisp.org>
26927
26928         strnlen: Fix a C++ test error on MacOS X and Solaris.
26929         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26930         the function is not declared.
26931         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26932         Simon Josefsson.
26933
26934 2010-04-24  Bruno Haible  <bruno@clisp.org>
26935
26936         Avoid a gcc warning.
26937         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26938         of correct type for %08lx directive.
26939         Reported by Eric Blake.
26940
26941 2010-04-24  Bruno Haible  <bruno@clisp.org>
26942
26943         vasnprintf: Correct errno value in case of out-of-memory.
26944         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26945         or sprintf. Use the errno value from SNPRINTF or sprintf.
26946         Reported by Ian Beckwith <ianb@erislabs.net>.
26947
26948 2010-04-24  Bruno Haible  <bruno@clisp.org>
26949
26950         ansi-c++-opt: Find correct compiler when cross-compiling.
26951         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26952         AC_CHECK_PROGS.
26953         Reported by Simon Josefsson.
26954
26955 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26956
26957         vc-list-files: Add support for subversion
26958         * build-aux/vc-list-files: Use "svn list" to generate the list of
26959         files controlled by subversion.
26960
26961 2010-04-23  Jim Meyering  <meyering@redhat.com>
26962
26963         vc-list-files tests: convert to use init.sh
26964         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26965         path_prepend_.
26966         Use Exit, not exit.
26967         Use skip_ rather than open coding it.
26968         Remove trap set-up and compare definitions.
26969         * tests/test-vc-list-files-git.sh: Likewise.
26970         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26971
26972 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26973
26974         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26975         backup files.
26976
26977 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26978
26979         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26980
26981 2010-04-20  Eric Blake  <eblake@redhat.com>
26982
26983         tests: be robust to ignored SIGPIPE
26984         * tests/test-select-in.sh: Consume all output.
26985         * tests/test-lseek.sh: Check correct exit status, while avoiding
26986         EPIPE.
26987
26988 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26989             Bruno Haible  <bruno@clisp.org>
26990
26991         visibility: Don't use -fvisibility if it leads to a warning.
26992         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26993         yes, don't pretend that visibility works if it leads to a warning.
26994         Reported by Mike Gran <spk121@yahoo.com>.
26995
26996 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26997
26998         * build-aux/bootstrap: Use "git -h" for testing for supported options
26999         instead of "git --help".  The short-form option only shows a summary,
27000         and doesn't layout the full man page.  Grep for the full option name
27001         in the summary, too.
27002
27003 2010-04-19  Bruno Haible  <bruno@clisp.org>
27004
27005         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
27006         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
27007         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
27008         mention of RELOCATABLE_STRIP.
27009         Reported by Sylvain Beucler <beuc@beuc.net>.
27010
27011 2010-04-19  Bruno Haible  <bruno@clisp.org>
27012
27013         * lib/diffseq.h: Fix typo in comment.
27014         Reported by Eric Blake.
27015
27016 2010-04-19  Bruno Haible  <bruno@clisp.org>
27017
27018         ioctl: Move autoconf macro to a .m4 file.
27019         * m4/ioctl.m4: New file, extracted from modules/ioctl.
27020         * modules/ioctl (Files): Add it.
27021         (configure.ac): Simply invoke gl_FUNC_IOCTL.
27022         Reported by Ian Beckwith <ianb@erislabs.net>.
27023
27024 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
27025             Bruno Haible  <bruno@clisp.org>
27026
27027         diffseq: Accommodate use-case with abstract arrays.
27028         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
27029         is not defined.
27030         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
27031         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
27032
27033 2010-04-18  Bruno Haible  <bruno@clisp.org>
27034
27035         * doc/posix-headers/stdbool.texi: More precise wording.
27036
27037 2010-04-17  Jim Meyering  <meyering@redhat.com>
27038
27039         maint.mk: use gnu-style indentation in an embedded perl script
27040         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
27041         Rename variable: s/two/last_two_bytes/
27042
27043 2010-04-16  Eric Blake  <eblake@redhat.com>
27044
27045         test-stdbool: skip test that fails with Solaris CC
27046         * tests/test-stdbool.c (f): Skip test that causes compilation
27047         error under buggy C++ compiler.
27048         * lib/stdbool.in.h: Document the limitation.
27049         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
27050
27051         setenv: allow compilation with C++
27052         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
27053         register keyword.
27054
27055         stdint: allow test to pass with C++
27056         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
27057
27058         getopt: allow compilation with C++
27059         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
27060         struct.
27061         * lib/getopt.c (_getopt_internal_r): Use correct type.
27062         Reported by Dagobert Michelson, via Joel E. Denny.
27063
27064 2010-04-16  Bruno Haible  <bruno@clisp.org>
27065
27066         Override netdb.h always.
27067         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
27068         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27069         Reported by Ludovic Courtès <ludo@gnu.org>.
27070
27071 2010-04-15  Bruno Haible  <bruno@clisp.org>
27072
27073         openpty: Fix mistake from 2010-03-21.
27074         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
27075         Reported by Simon Josefsson.
27076
27077 2010-04-15  Eric Blake  <eblake@redhat.com>
27078
27079         test-forkpty: fix expected signature
27080         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
27081         Reported by Simon Josefsson.
27082
27083 2010-04-15  Jim Meyering  <meyering@redhat.com>
27084
27085         maint.mk: texinfo_suffix_re_: correct the default regexp
27086         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
27087
27088         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
27089         make it configurable via texinfo_suffix_re_.
27090
27091 2010-04-14  Eric Blake  <eblake@redhat.com>
27092
27093         strtok_r: relax license to LGPLv2+
27094         * modules/strtok_r (License): Relax license.
27095         Reported by Matthias Bolte.
27096
27097 2010-04-14  Simon Josefsson  <simon@josefsson.org>
27098
27099         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
27100         version 1.4.4 by default instead of requiring the libgcrypt
27101         version used during build.  This makes it possible to use the
27102         application with older but still binary compatible libgcrypt
27103         versions.
27104
27105 2010-04-13  Eric Blake  <eblake@redhat.com>
27106
27107         getopt-gnu: match recent glibc fixes and posix ruling
27108         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
27109         '+' handling, when requesting extensions.
27110         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
27111         'W;' handling.
27112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
27113         * doc/posix-functions/getopt.texi (getopt): Document this.
27114         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27115         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27116         Likewise.
27117
27118         getopt: merge bug fixes from glibc
27119         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
27120         diagnostics.  Honor '+:' correctly.  Reject ';'.
27121
27122         getopt-posix: detect MacOS bug
27123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
27124         optind when missing a required argument.
27125         * doc/posix-functions/getopt.texi (getopt): Document the bug.
27126         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27127         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27128         Likewise.
27129
27130         getopt-posix: avoid spurious failure on Solaris
27131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
27132         an indicator that setting optind=1 is sufficient for reset.
27133
27134         getopt-posix: avoid spurious failure on FreeBSD
27135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
27136         in POSIX mode, since the m4 test uses it.
27137
27138         gnulib-tool: silence warning on BSD sh
27139         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
27140
27141 2010-04-13  Jim Meyering  <meyering@redhat.com>
27142
27143         doc: users.txt: GNU patch now uses gnulib
27144         * users.txt: Add patch.
27145
27146 2010-04-12  Jim Meyering  <meyering@redhat.com>
27147
27148         maint.mk: generate more concise timing data for syntax-check rules
27149         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27150         " done" from each line that reports a syntax-check test duration.
27151
27152 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27153
27154         git-version-gen: use "git update-index..." rather than "git status"
27155         * build-aux/git-version-gen: Use git update-index --refresh, not
27156         "git status".  With some versions of git, "git status" would fail
27157         to update the index and result in an unwarranted "-dirty" suffix.
27158
27159 2010-04-11  Jim Meyering  <meyering@redhat.com>
27160
27161         openat: correct formatting (no semantic change)
27162         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27163         Suggested by Bruno Haible.
27164
27165 2010-04-11  Bruno Haible  <bruno@clisp.org>
27166
27167         Stricter declaration checking in testdirs.
27168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27169         If for_tests is true, augment AM_CPPFLAGS to define
27170         GNULIB_STRICT_CHECKING.
27171         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27172         GNULIB_STRICT_CHECKING is defined, verify that the function is
27173         declared.
27174
27175 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27176             Bruno Haible  <bruno@clisp.org>
27177
27178         libunistring: Improve configure output.
27179         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27180         Don't say "consider installing GNU libunistring" when checking again
27181         with libiconv.
27182
27183 2010-04-11  Bruno Haible  <bruno@clisp.org>
27184
27185         libunistring: Correct value of $LTLIBUNISTRING.
27186         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27187         correct the value of $LTLIBUNISTRING.
27188
27189 2010-04-11  Bruno Haible  <bruno@clisp.org>
27190
27191         havelib: Add static libraries to LIBS in the right order.
27192         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27193         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27194
27195 2010-04-11  Bruno Haible  <bruno@clisp.org>
27196
27197         libunistring: Detect libunistring also when it depends on libiconv.
27198         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27199         the second AC_LIB_HAVE_LINKFLAGS invocation.
27200
27201 2010-04-11  James Youngman  <jay@gnu.org>
27202
27203         close-stream: declare local scalars to be "const"
27204         * lib/close-stream.c (close_stream): Make boolean variables const
27205         to document the fact that we set but do not change them.
27206
27207 2010-04-11  Bruno Haible  <bruno@clisp.org>
27208
27209         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27210
27211 2010-04-11  Jim Meyering  <meyering@redhat.com>
27212
27213         maint.mk: don't include dist-check.mk
27214         * top/maint.mk: Remove bogus include directive.
27215
27216         maint.mk: improve empty-line-at-EOF check
27217         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27218         solution, rather than tail+Perl-based one.  The latter would read
27219         a few kilobytes from the end of each file, and did not handle empty
27220         files properly.
27221
27222         maint.mk: print the elapsed time for each syntax-check rule
27223         * top/maint.mk (sc_m_rules_): Save start time in a file.
27224         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27225         (local-check): Interpose the .z rules
27226
27227 2010-04-11  Jim Meyering  <meyering@redhat.com>
27228
27229         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27230         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27231         empty file with one that ends in an empty line.
27232
27233 2010-04-10  Bruno Haible  <bruno@clisp.org>
27234
27235         mkdir: Make it work on mingw64.
27236         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27237         * lib/mkdir.c: Update comment.
27238         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27239
27240 2010-04-10  Bruno Haible  <bruno@clisp.org>
27241
27242         Don't override improved macro from newer autoconf.
27243         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27244         autoconf >= 2.62.
27245         Reported by Joel E. Denny <jdenny@clemson.edu>.
27246
27247 2010-04-10  Jim Meyering  <meyering@redhat.com>
27248
27249         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27250         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27251
27252         maint.mk: correct a diagnostic
27253         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27254         in diagnostic; now use $prohibit.
27255
27256 2010-04-10  Bruno Haible  <address@hidden>
27257
27258         fchownat: Fix a C++ test error on Solaris 8.
27259         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27260         the function does not exist.
27261
27262 2010-04-10  Bruno Haible  <bruno@clisp.org>
27263
27264         vasnprintf: Add more tests.
27265         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27266         (test_function): Test converting an invalid wide string.
27267
27268         vasnprintf: Correct handling of unconvertible wide string arguments.
27269         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27270         VASNPRINTF.
27271         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27272         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27273         smaller than the expected maximum need for the directive. Set errno to
27274         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27275         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27277         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27278         * modules/vasnprintf (Files): Add m4/printf.m4.
27279         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27280
27281 2010-04-10  Bruno Haible  <bruno@clisp.org>
27282
27283         vasnprintf: Fix crash in %ls directive.
27284         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27285         string is passed as argument to %ls, with no precision and no width.
27286         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27287
27288 2010-04-10  Bruno Haible  <bruno@clisp.org>
27289
27290         vasnprintf: Fix multiple test failures on mingw.
27291         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27292         _snprintf, or snwprintf, not _snwprintf.
27293
27294 2010-04-10  Bruno Haible  <bruno@clisp.org>
27295
27296         write: Fix a C++ test error on mingw.
27297         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27298
27299 2010-04-10  Bruno Haible  <bruno@clisp.org>
27300
27301         vasnprintf test: Reduce code duplication.
27302         * tests/test-vasnprintf.c (test_function): New function, extracted from
27303         test_vasnprintf.
27304         (test_vasnprintf, test_asnprintf): Invoke it.
27305
27306 2010-04-10  Bruno Haible  <bruno@clisp.org>
27307
27308         strnlen: Fix warning in C++ mode on MacOS X.
27309         * lib/string.in.h (strnlen): Use the modern idiom.
27310         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27311         defining strnlen as a macro already in <config.h>.
27312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27313         REPLACE_STRNLEN.
27314         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27315         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27316
27317 2010-04-08  James Youngman  <jay@gnu.org>
27318
27319         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27320         the example.
27321
27322 2010-04-09  Jim Meyering  <meyering@redhat.com>
27323
27324         maint.mk: print better diagnostic when there is no $(_hv_file)
27325         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27326         announce that when $(_hv_file) (aka help-version) does not exist.
27327
27328         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27329         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27330         not try to interpret its random input bytes.  Jarno Rajahalme reported
27331         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27332         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27333         (mktempd_): Likewise, just in case.
27334
27335         ftruncate: add two years to projected module removal date: 2012
27336         * m4/ftruncate.m4: Adjust comments.
27337
27338         ftruncate: mark module as obsolete; even MinGW provides it, now
27339         * modules/ftruncate (Status): Obsolete.
27340         (Notice): Say that.
27341         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27342         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27343
27344 2010-04-08  Bruno Haible  <bruno@clisp.org>
27345
27346         Fix side effects from tests-related modules.
27347         * modules/dprintf-posix (Comment): New section.
27348         * modules/fprintf-posix (Comment): Likewise.
27349         * modules/obstack-printf-posix (Comment): Likewise.
27350         * modules/printf-posix (Comment): Likewise.
27351         * modules/snprintf-posix (Comment): Likewise.
27352         * modules/sprintf-posix (Comment): Likewise.
27353         * modules/vasnprintf-posix (Comment): Likewise.
27354         * modules/vasprintf-posix (Comment): Likewise.
27355         * modules/vdprintf-posix (Comment): Likewise.
27356         * modules/vfprintf-posix (Comment): Likewise.
27357         * modules/vprintf-posix (Comment): Likewise.
27358         * modules/vsnprintf-posix (Comment): Likewise.
27359         * modules/vsprintf-posix (Comment): Likewise.
27360         * modules/xprintf-posix (Comment): Likewise.
27361         * modules/xvasprintf-posix (Comment): Likewise.
27362         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27363         * modules/floorf-tests (Depends-on): Likewise.
27364         * modules/round-tests (Depends-on): Likewise.
27365         * modules/roundf-tests (Depends-on): Likewise.
27366         * modules/trunc-tests (Depends-on): Likewise.
27367         * modules/truncf-tests (Depends-on): Likewise.
27368         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27369         'fprintf-posix' module is not present.
27370         * tests/test-floorf2.c (check): Likewise.
27371         * tests/test-trunc2.c (check): Likewise.
27372         * tests/test-truncf2.c (check): Likewise.
27373         * tests/test-round2.c (equal): Likewise.
27374         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27375
27376 2010-04-07  Karl Berry  <karl@gnu.org>
27377
27378         * config/srclist.txt,
27379         * config/srclistvars.sh,
27380         * config/srclist-update: doc fixes.
27381
27382 2010-04-07  Jim Meyering  <meyering@redhat.com>
27383
27384         maint.mk: add a PATH crosschecking syntax-check rule
27385         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27386         Useful if you use a test like the one in help-version (coreutils,
27387         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27388         printed by prog --version.
27389
27390 2010-04-06  Bruno Haible  <bruno@clisp.org>
27391
27392         Fix link error on mingw.
27393         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27394         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27395
27396 2010-04-06  Bruno Haible  <bruno@clisp.org>
27397
27398         Assume rmdir exists.
27399         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27400
27401 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27402
27403         doc: update users.txt
27404         * users.txt: Add gcal.
27405
27406 2010-04-06  Jim Meyering  <meyering@redhat.com>
27407
27408         init.sh: simply unset TMPDIR rather than risking env -i
27409         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27410         although it probably works fine on all Unix-based systems, some
27411         systems (Cygwin?) cannot tolerate a totally cleared environment.
27412         Suggestion from Eric Blake.
27413
27414 2010-04-06  Jim Meyering  <meyering@redhat.com>
27415
27416         init.sh: portability fix: use env's POSIX-specified -i option not -u
27417         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27418         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27419
27420 2010-04-05  Bruno Haible  <bruno@clisp.org>
27421
27422         btowc: Work around Cygwin 1.7.2 bug.
27423         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27424         does not map NUL to 0.
27425         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27426
27427 2010-04-05  Bruno Haible  <bruno@clisp.org>
27428
27429         Make the multithread modules work on Cygwin 1.7.2.
27430         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27431         imported symbols can be declared weak, so that it returns "no" on
27432         Cygwin 1.7.2.
27433
27434 2010-04-05  Bruno Haible  <bruno@clisp.org>
27435
27436         Use the module 'strncat'.
27437         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27438
27439         Tests for module 'strncat'.
27440         * modules/strncat-tests: New file.
27441         * tests/test-strncat.c: New file.
27442
27443         New module 'strncat'.
27444         * lib/string.in.h (strncat): New declaration.
27445         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27446         * m4/strncat.m4: New file, based on m4/memchr.m4.
27447         * modules/strncat: New file.
27448         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27449         is declared.
27450         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27451         REPLACE_STRNCAT.
27452         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27453         REPLACE_STRNCAT.
27454         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27455         module.
27456         * tests/test-string-c++.cc: Check signature of strncat.
27457
27458 2010-04-05  Jim Meyering  <meyering@redhat.com>
27459
27460         xstrtoumax-tests: convert to use init.sh
27461         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27462         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27463         Use Exit, not exit.
27464         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27465
27466         xstrtoimax-tests: convert to use init.sh
27467         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27468         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27469         Use Exit, not exit.
27470         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27471
27472 2010-04-05  Bruno Haible  <bruno@clisp.org>
27473
27474         sys_socket: Avoid #define replacements in C++ mode.
27475         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27476         warning to the function if possible, rather than #defining the symbol
27477         to a dysfunctional alias.
27478
27479 2010-04-05  Bruno Haible  <bruno@clisp.org>
27480
27481         fseeko: Fix C++ test error on mingw.
27482         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27483         gl_FUNC_FSEEKO.
27484         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27485         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27486         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27487         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27488
27489 2010-04-05  Bruno Haible  <bruno@clisp.org>
27490
27491         duplocale: Improve test output.
27492         * tests/test-duplocale.c (main): Print reason for skipped test.
27493
27494 2010-04-05  Bruno Haible  <bruno@clisp.org>
27495
27496         Assume rmdir exists.
27497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27498         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27499
27500 2010-04-05  Bruno Haible  <bruno@clisp.org>
27501
27502         Fix link error on Solaris 8 with cc.
27503         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27504
27505 2010-04-05  Bruno Haible  <bruno@clisp.org>
27506
27507         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27508         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27509
27510 2010-04-05  Bruno Haible  <bruno@clisp.org>
27511
27512         vasprintf: Update documentation.
27513         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27514
27515 2010-04-05  Bruno Haible  <bruno@clisp.org>
27516
27517         ptsname: Improve test.
27518         * tests/test-ptsname.c (main): Also try the various master names of BSD
27519         systems.
27520
27521 2010-04-05  Bruno Haible  <bruno@clisp.org>
27522
27523         memchr: Avoid a possible C++ test error.
27524         * lib/string.in.h (memchr): Provide declaration if function is missing.
27525         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27526         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27528         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27529
27530 2010-04-05  Bruno Haible  <bruno@clisp.org>
27531
27532         strtok_r: Improve idiom.
27533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27534         AC_LIBOBJ is used.
27535
27536 2010-04-05  Bruno Haible  <bruno@clisp.org>
27537
27538         strdup: Improve idiom.
27539         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27540         AC_LIBOBJ is used.
27541         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27542         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27543         when AC_LIBOBJ is used.
27544
27545 2010-04-05  Bruno Haible  <bruno@clisp.org>
27546
27547         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27548         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27549         don't set REPLACE_MBSINIT to 1.
27550         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27551         don't set REPLACE_MBRTOWC to 1.
27552         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27553         exist, don't set REPLACE_MBSRTOWCS to 1.
27554         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27555         exist, don't set REPLACE_MBSNRTOWCS to 1.
27556         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27557         don't set REPLACE_WCRTOMB to 1.
27558         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27559         exist, don't set REPLACE_WCSRTOMBS to 1.
27560         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27561         exist, don't set REPLACE_WCSNRTOMBS to 1.
27562
27563 2010-04-05  Bruno Haible  <bruno@clisp.org>
27564
27565         ldexpl: Improve idiom.
27566         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27567         make sure to set HAVE_DECL_LDEXPL to 0.
27568
27569 2010-04-05  Jim Meyering  <meyering@redhat.com>
27570
27571         xstrtol-tests: convert to use init.sh
27572         * modules/xstrtol-tests (Files): Add tests/init.sh.
27573         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27574         Use Exit, not exit.
27575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27576
27577         atexit-tests: convert to use init.sh
27578         * modules/atexit-tests (Files): Add tests/init.sh.
27579         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27580         Use Exit, not exit.
27581         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27582
27583         init.sh: fix typo
27584         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27585
27586         init.sh: make it easier for a test script to write to the tty, ...
27587         when using automake's parallel-tests mode.
27588         * tests/init.sh (stderr_fileno_): Define overridable variable.
27589         (warn_): New function, to use it.
27590         (fail_, skip_, framework_failure_): Use warn_.
27591
27592 2010-04-04  Bruno Haible  <bruno@clisp.org>
27593
27594         btowc: Avoid warning.
27595         * lib/btowc.c: Include <stdlib.h>.
27596         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27597
27598 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27599             Bruno Haible  <bruno@clisp.org>
27600
27601         wchar: Port to NetBSD 1.5.
27602         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27603         * lib/wctype.in.h (WEOF): Likewise.
27604
27605 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27606             Bruno Haible  <bruno@clisp.org>
27607
27608         Port extended stdio to NetBSD 1.5.
27609         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27610         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27611         older.
27612
27613 2010-04-04  Bruno Haible  <bruno@clisp.org>
27614
27615         string: Remove unused substitution.
27616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27617         HAVE_DECL_STRERROR.
27618         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27619
27620 2010-04-04  Bruno Haible  <bruno@clisp.org>
27621
27622         strtod: Avoid a possible C++ test error.
27623         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27624         set REPLACE_STRTOD.
27625
27626 2010-04-04  Bruno Haible  <bruno@clisp.org>
27627
27628         strerror: Update documentation.
27629         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27630
27631 2010-04-04  Bruno Haible  <bruno@clisp.org>
27632
27633         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27634         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27635         _GL_CXXALIAS_SYS_CAST.
27636
27637 2010-04-04  Bruno Haible  <bruno@clisp.org>
27638
27639         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27640         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27641         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27642         REPLACE_FREXPL to 1.
27643         * doc/posix-functions/frexpl.texi: Update documentation.
27644
27645 2010-04-04  Bruno Haible  <bruno@clisp.org>
27646
27647         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27648         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27649
27650 2010-04-04  Bruno Haible  <bruno@clisp.org>
27651
27652         Implement nanosleep for native Windows.
27653         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27654
27655 2010-04-04  Bruno Haible  <bruno@clisp.org>
27656
27657         math: Fix some C++ test errors on Solaris 8.
27658         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27659
27660 2010-04-04  Bruno Haible  <bruno@clisp.org>
27661
27662         math: Fix some C++ test errors on Cygwin.
27663         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27664         truncl): Provide declaration if the system does not have it.
27665         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27666         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27667         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27668         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27669         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27670         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27671         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27672         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27673         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27674         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27675         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27676         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27677         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27678         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27679         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27680         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27682         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27683         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27684         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27685         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27686         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27687
27688 2010-04-04  Bruno Haible  <bruno@clisp.org>
27689
27690         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27691         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27692         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27693         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27694         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27695         * m4/isinf.m4 (gl_ISINF): Likewise.
27696         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27697
27698 2010-04-04  Bruno Haible  <bruno@clisp.org>
27699
27700         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27701         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27702
27703 2010-04-04  Bruno Haible  <bruno@clisp.org>
27704
27705         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27706         * modules/tmpfile (configure.ac): Update.
27707
27708         tmpfile: Fix C++ test error on mingw.
27709         * lib/stdio.in.h (tmpfile): New declaration.
27710         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27711         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27712         * modules/tmpfile (Depends-on): Add stdio.
27713         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27714         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27715         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27716         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27717         REPLACE_TMPFILE.
27718         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27719
27720 2010-04-04  Bruno Haible  <bruno@clisp.org>
27721
27722         ioctl: Fix C++ test error on mingw.
27723         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27724         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27725         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27726
27727 2010-04-03  Bruno Haible  <bruno@clisp.org>
27728
27729         wcwidth: Fix C++ test error on mingw.
27730         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27732         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27733
27734 2010-04-03  Bruno Haible  <bruno@clisp.org>
27735
27736         nanosleep: Fix C++ test error on mingw.
27737         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27738         * lib/time.in.h (nanosleep): Use modern idiom.
27739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27740         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27741         REPLACE_NANOSLEEP to 1.
27742         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27743         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27744
27745 2010-04-03  Bruno Haible  <bruno@clisp.org>
27746
27747         strptime: Fix C++ test error on mingw.
27748         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27749         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27750         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27751         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27753         not REPLACE_STRPTIME.
27754         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27755         REPLACE_STRPTIME.
27756
27757 2010-04-03  Bruno Haible  <bruno@clisp.org>
27758
27759         timegm: Fix C++ test error on mingw.
27760         * lib/time.in.h (timegm): Use modern idiom.
27761         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27762         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27763         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27764         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27765
27766 2010-04-03  Bruno Haible  <bruno@clisp.org>
27767
27768         timegm: Assume declaration if function exists.
27769         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27770         if it exists. Don't clobber ac_cv_func_timegm.
27771
27772 2010-04-03  Bruno Haible  <bruno@clisp.org>
27773
27774         time_r: Fix C++ test error on mingw.
27775         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27776         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27777         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27778         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27779         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27780
27781 2010-04-03  Bruno Haible  <bruno@clisp.org>
27782
27783         time_r: Minor updates.
27784         * modules/time_r (Description): Mention the provided functions.
27785         * lib/time_r.c: Don't include <string.h>.
27786         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27787         * doc/posix-functions/localtime_r.texi: Likewise.
27788
27789 2010-04-03  Bruno Haible  <bruno@clisp.org>
27790
27791         time: Fix regression introduced on 2010-03-08.
27792         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27793         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27794
27795 2010-04-03  Jim Meyering  <meyering@redhat.com>
27796
27797         maint.mk: don't silently disable project-specific syntax-check rules
27798         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27799         that they need to convert their project-specific syntax-check rules
27800         to use the new _sc_search_regexp.
27801
27802 2010-04-03  Bruno Haible  <bruno@clisp.org>
27803
27804         fchdir: Fix regression introduced on 2010-03-08.
27805         * lib/unistd.in.h (fchdir): Fix declaration.
27806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27808         REPLACE_FCHDIR.
27809         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27810         REPLACE_FCHDIR.
27811
27812 2010-04-03  Bruno Haible  <bruno@clisp.org>
27813
27814         getpagesize: Fix C++ test error on mingw.
27815         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27816         system does not declare the function.
27817         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27818         declared.
27819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27820         HAVE_DECL_GETPAGESIZE.
27821         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27822
27823 2010-04-03  Bruno Haible  <bruno@clisp.org>
27824
27825         stdio: Make C++ tests work on mingw.
27826         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27827         does not declare the function.
27828
27829 2010-04-03  Bruno Haible  <bruno@clisp.org>
27830
27831         ftello: Fix C++ test error on mingw.
27832         * lib/stdio.in.h (ftello): Use modern idiom.
27833         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27834         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27835         is missing and that it needs to be replaced.
27836         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27838         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27839
27840 2010-04-03  Bruno Haible  <bruno@clisp.org>
27841
27842         fseeko: Fix C++ test error on mingw.
27843         * lib/stdio.in.h (fseeko): Use modern idiom.
27844         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27846         is missing and that it needs to be replaced.
27847         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27849         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27850
27851 2010-04-03  Bruno Haible  <bruno@clisp.org>
27852
27853         mkstemp: Fix C++ test error on mingw.
27854         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27856         function is missing and that it needs to be replaced.
27857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27858         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27859
27860 2010-04-03  Bruno Haible  <bruno@clisp.org>
27861
27862         stpncpy: Fix C++ test error on mingw.
27863         * lib/string.in.h (stpncpy): Use modern idiom.
27864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27865         function is missing and that it needs to be replaced.
27866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27867         REPLACE_STPNCPY.
27868         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27869
27870 2010-04-03  Bruno Haible  <bruno@clisp.org>
27871
27872         sys_stat: Fix C++ test error on mingw.
27873         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27874         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27875
27876 2010-04-03  Bruno Haible  <bruno@clisp.org>
27877
27878         pty: Update doc.
27879         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27880
27881 2010-04-03  Bruno Haible  <bruno@clisp.org>
27882
27883         unistd: Fix C++ test error on mingw.
27884         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27885
27886 2010-04-03  Bruno Haible  <bruno@clisp.org>
27887
27888         Update doc regarding mingw.
27889         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27890         * doc/glibc-functions/login_tty.texi: Likewise.
27891         * doc/glibc-functions/forkpty.texi: Likewise.
27892
27893 2010-04-03  Bruno Haible  <bruno@clisp.org>
27894
27895         stdlib: Avoid compilation failure of c-strtold on mingw.
27896         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27897
27898 2010-04-03  Bruno Haible  <bruno@clisp.org>
27899
27900         locale: Make C++ tests work on Cygwin and mingw.
27901         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27902         cannot provide the function.
27903         Reported by Simon Josefsson.
27904
27905 2010-04-03  Bruno Haible  <bruno@clisp.org>
27906
27907         localename: Port to MacOS X 10.6.
27908         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27909         memory layout of the locales in MacOS X 10.6 as well.
27910         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27911
27912 2010-04-02  Bruno Haible  <bruno@clisp.org>
27913
27914         gnulib-tool: Ensure that long-running tests are executed last.
27915         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27916         running tests after the one for the other tests.
27917
27918 2010-04-02  Bruno Haible  <bruno@clisp.org>
27919
27920         gnulib-tool: Ensure the tests in the main directory are executed first.
27921         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27922         start with the current directory.
27923
27924 2010-04-02  Bruno Haible  <bruno@clisp.org>
27925
27926         Tests for module 'havelib', moved here from GNU gettext.
27927         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27928         modifications.
27929         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27930         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27931         with modifications.
27932         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27933         modifications.
27934         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27935         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27936         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27937         with modifications.
27938         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27939         with modifications.
27940         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27941         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27942         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27943         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27944         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27945         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27946         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27947         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27948         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27949         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27950         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27951         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27952         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27953         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27954         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27955         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27956         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27957         with modifications.
27958         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27959         with modifications.
27960         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27961         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27962         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27963         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27964         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27965         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27966         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27967         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27968         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27969         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27970         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27971         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27972         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27973         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27974         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27975         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27976         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27977         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27978         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27979         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27980         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27981         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27982         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27983         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27984         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27985         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27986         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27987         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27988         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27989         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27990         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27991         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27992         * tests/havelib/rpathx/rpathx.c: New file, from
27993         gettext/autoconf-lib-link.
27994         * tests/havelib/rpathx/Makefile.am: New file, from
27995         gettext/autoconf-lib-link.
27996         * tests/havelib/rpathx/configure.ac: New file, from
27997         gettext/autoconf-lib-link with modifications.
27998         * tests/havelib/rpathy/rpathy.c: New file, from
27999         gettext/autoconf-lib-link.
28000         * tests/havelib/rpathy/Makefile.am: New file, from
28001         gettext/autoconf-lib-link.
28002         * tests/havelib/rpathy/configure.ac: New file, from
28003         gettext/autoconf-lib-link with modifications.
28004         * tests/havelib/rpathz/rpathz.c: New file, from
28005         gettext/autoconf-lib-link.
28006         * tests/havelib/rpathz/Makefile.am: New file, from
28007         gettext/autoconf-lib-link.
28008         * tests/havelib/rpathz/configure.ac: New file, from
28009         gettext/autoconf-lib-link with modifications.
28010         * tests/havelib/rpathlx/usex.c: New file, from
28011         gettext/autoconf-lib-link.
28012         * tests/havelib/rpathlx/Makefile.am: New file, from
28013         gettext/autoconf-lib-link.
28014         * tests/havelib/rpathlx/configure.ac: New file, from
28015         gettext/autoconf-lib-link with modifications.
28016         * tests/havelib/rpathly/usey.c: New file, from
28017         gettext/autoconf-lib-link.
28018         * tests/havelib/rpathly/Makefile.am: New file, from
28019         gettext/autoconf-lib-link.
28020         * tests/havelib/rpathly/configure.ac: New file, from
28021         gettext/autoconf-lib-link with modifications.
28022         * tests/havelib/rpathlz/usez.c: New file, from
28023         gettext/autoconf-lib-link.
28024         * tests/havelib/rpathlz/Makefile.am: New file, from
28025         gettext/autoconf-lib-link.
28026         * tests/havelib/rpathlz/configure.ac: New file, from
28027         gettext/autoconf-lib-link with modifications.
28028         * tests/havelib/rpathlyx/usey.c: New file, from
28029         gettext/autoconf-lib-link.
28030         * tests/havelib/rpathlyx/Makefile.am: New file, from
28031         gettext/autoconf-lib-link.
28032         * tests/havelib/rpathlyx/configure.ac: New file, from
28033         gettext/autoconf-lib-link with modifications.
28034         * tests/havelib/rpathlzyx/usez.c: New file, from
28035         gettext/autoconf-lib-link.
28036         * tests/havelib/rpathlzyx/Makefile.am: New file, from
28037         gettext/autoconf-lib-link.
28038         * tests/havelib/rpathlzyx/configure.ac: New file, from
28039         gettext/autoconf-lib-link with modifications.
28040         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
28041         with modifications.
28042
28043 2010-04-02  Bruno Haible  <bruno@clisp.org>
28044
28045         gnulib-tool: Create distributed built sources also for the tests.
28046         * gnulib-tool (func_create_testdir): Also generate distributed built
28047         sources in the tests directory.
28048
28049 2010-04-02  Bruno Haible  <bruno@clisp.org>
28050
28051         gnulib-tool: Obey user's environment variables.
28052         * gnulib-tool (func_create_testdir): When creating built sources,
28053         respect the environment variables for autoconf, automake, etc. given by
28054         the user.
28055
28056 2010-04-02  Bruno Haible  <bruno@clisp.org>
28057
28058         gnulib-tool: Provide the value of --m4-base to modules.
28059         * gnulib-tool (func_import, func_create_testdir): Emit a definition
28060         of gl_m4_base.
28061
28062 2010-04-02  Eric Blake  <eblake@redhat.com>
28063
28064         maint.mk: fix some fallout
28065         * NEWS: Document the incompatible change, and its effect on cfg.mk.
28066         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
28067
28068 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28069
28070         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
28071         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
28072         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
28073         (sc_cast_of_x_alloc_return_value): Likewise.
28074         (sc_cast_of_alloca_return_value): Likewise.
28075         (sc_space_tab): Likewise.
28076         (sc_prohibit_atoi_atof): Likewise.
28077         (sc_prohibit_magic_number_exit): Likewise.
28078         (sc_error_exit_success): Likewise.
28079         (sc_file_system): Likewise.
28080         (sc_prohibit_have_config_h): Likewise.
28081         (sc_require_config_h): Likewise.
28082         (sc_prohibit_HAVE_MBRTOWC): Likewise.
28083         (sc_obsolete_symbols): Likewise.
28084         (sc_changelog): Likewise.
28085         (sc_program_name): Likewise.
28086         (sc_the_the): Likewise.
28087         (sc_trailing_blank): Likewise.
28088         (sc_two_space_separator_in_usage): Likewise.
28089         (sc_useless_cpp_parens): Likewise.
28090         (sc_GPL_version): Likewise.
28091         (sc_GFDL_version): Likewise.
28092         (sc_texinfo_acronym): Likewise.
28093         (sc_prohibit_cvs_keyword): Likewise.
28094         (sc_prohibit_stat_st_blocks): Likewise.
28095         (sc_prohibit_S_IS_definition): Likewise.
28096         (sc_redundant_const): Likewise.
28097         (sc_makefile_TAB_only_indentation): Likewise.
28098         (sc_m4_quote_check): Likewise.
28099         (sc_makefile_path_separator_check): Likewise.
28100         (sc_copyright_check): Likewise.
28101         (sc_Wundef_boolean): Likewise.
28102         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28103
28104         maint.mk: match 0 or more whitespace-before-function-call '('
28105         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
28106         that have zero or two-and-more spaces between the function name
28107         and the open parenthesis.
28108         (sc_error_message_warn_fatal): Likewise.
28109         (sc_error_message_uppercase): Likewise.
28110         (sc_error_message_period): Likewise.
28111
28112 2010-03-31  Eric Blake  <eblake@redhat.com>
28113
28114         maint.mk: check for [ as well as test
28115         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
28116         Based on a libvirt report by Matthias Bolte.
28117
28118         gnumakefile: don't squelch _version output
28119         * top/GNUmakefile (_version): Create one-shot dependency rather
28120         than using $(shell) when version must be regenerated.
28121         (_autoreconf): Run verbosely, by default.
28122
28123         sys_time: avoid compiler warnings
28124         * lib/sys_time.in.h (includes): Ensure gcc pragma is
28125         unconditional, fixing regression from 2010-03-29.
28126         Reported by Simon Josefsson.
28127
28128 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28129
28130         maint.mk: s/_header_without_use/_sc_header_without_use/
28131         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
28132         (sc_prohibit_assert_without_use): Use the new name.
28133         (sc_prohibit_close_stream_without_use): Likewise.
28134         (sc_prohibit_getopt_without_use): Likewise.
28135         (sc_prohibit_quotearg_without_use): Likewise.
28136         (sc_prohibit_quote_without_use): Likewise.
28137         (sc_prohibit_long_options_without_use): Likewise.
28138         (sc_prohibit_inttostr_without_use): Likewise.
28139         (sc_prohibit_ignore_value_without_use): Likewise.
28140         (sc_prohibit_error_without_use): Likewise.
28141         (sc_prohibit_xalloc_without_use): Likewise.
28142         (sc_prohibit_hash_without_use): Likewise.
28143         (sc_prohibit_hash_pjw_without_use): Likewise.
28144         (sc_prohibit_safe_read_without_use): Likewise.
28145         (sc_prohibit_argmatch_without_use): Likewise.
28146         (sc_prohibit_canonicalize_without_use): Likewise.
28147         (sc_prohibit_root_dev_ino_without_use): Likewise.
28148         (sc_prohibit_openat_without_use): Likewise.
28149         (sc_prohibit_c_ctype_without_use): Likewise.
28150         (sc_prohibit_signal_without_use): Likewise.
28151         (sc_prohibit_intprops_without_use): Likewise.
28152
28153 2010-03-30  Eric Blake  <eblake@redhat.com>
28154
28155         maint: improve module indicators
28156         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28157         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28158         columns, and avoid extra macro expansion.
28159
28160         fdopendir: work around FreeBSD bug
28161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28162         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28163         * modules/dirent (Makefile.am): Substitute it.
28164         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28165         declaration.
28166         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28167         fix.
28168         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28169
28170 2010-03-29  Bruno Haible  <bruno@clisp.org>
28171
28172         Emit #pragma system_header after the inclusion guard, not before.
28173         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28174         guard that spans the entire file, not before. This enables an
28175         optimization in GCC's preprocessor.
28176         * lib/ctype.in.h: Likewise.
28177         * lib/dirent.in.h: Likewise.
28178         * lib/errno.in.h: Likewise.
28179         * lib/float.in.h: Likewise.
28180         * lib/getopt.in.h: Likewise.
28181         * lib/iconv.in.h: Likewise.
28182         * lib/langinfo.in.h: Likewise.
28183         * lib/locale.in.h: Likewise.
28184         * lib/math.in.h: Likewise.
28185         * lib/netdb.in.h: Likewise.
28186         * lib/netinet_in.in.h: Likewise.
28187         * lib/pty.in.h: Likewise.
28188         * lib/sched.in.h: Likewise.
28189         * lib/se-selinux.in.h: Likewise.
28190         * lib/search.in.h: Likewise.
28191         * lib/spawn.in.h: Likewise.
28192         * lib/stdarg.in.h: Likewise.
28193         * lib/stdint.in.h: Likewise.
28194         * lib/string.in.h: Likewise.
28195         * lib/strings.in.h: Likewise.
28196         * lib/sys_file.in.h: Likewise.
28197         * lib/sys_ioctl.in.h: Likewise.
28198         * lib/sys_time.in.h: Likewise.
28199         * lib/sys_times.in.h: Likewise.
28200         * lib/sys_utsname.in.h: Likewise.
28201         * lib/sys_wait.in.h: Likewise.
28202         * lib/sysexits.in.h: Likewise.
28203         * lib/wctype.in.h: Likewise.
28204
28205 2010-03-28  James Youngman  <jay@gnu.org>
28206
28207         save-cwd: don't leak a file descriptor when the caller execs.
28208         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28209         saved file descriptor.
28210         * modules/save-cwd (Depends-on): Depend on cloexec.
28211
28212 2010-03-29  Bruno Haible  <bruno@clisp.org>
28213
28214         Remove vestiges of fts-lgpl module.
28215         * lib/fts_.h: Assume GNULIB_FTS is 1.
28216         * lib/fts.c: Likewise.
28217         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28218
28219 2010-03-28  Bruno Haible  <bruno@clisp.org>
28220
28221         Fix definition of tests witness macro.
28222         * gnulib-tool (func_import): Fix definition of witness macro.
28223
28224 2010-03-28  Bruno Haible  <bruno@clisp.org>
28225
28226         Fix ioctl's protoype on glibc systems.
28227         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28228         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28229         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28230         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28231         signature. If not, arrange to replace the ioctl function.
28232         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28233         REPLACE_IOCTL.
28234         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28235         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28236         Reported by Ludovic Courtès <ludo@gnu.org>.
28237
28238 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28239
28240         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28241         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28242         made it so grep -r --include=GLOB* ... did not work.
28243
28244 2010-03-26  Jim Meyering  <meyering@redhat.com>
28245             Eric Blake  <eblake@redhat.com>
28246
28247         maint.mk: prohibit use of test's -o and -a operators
28248         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28249
28250 2010-03-28  Bruno Haible  <bruno@clisp.org>
28251
28252         Remove unused GNULIB_XYZ macro definitions.
28253         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28254         invocation.
28255
28256 2010-03-28  Bruno Haible  <bruno@clisp.org>
28257
28258         Mark privileged tests modules.
28259         * modules/idpriv-drop-tests (Status): New section.
28260         * modules/idpriv-droptemp-tests (Status): New section.
28261
28262 2010-03-28  Bruno Haible  <bruno@clisp.org>
28263
28264         Split C++ tests into separate tests modules.
28265         * modules/dirent-c++-tests: New file, extracted from
28266         modules/dirent-tests.
28267         * modules/dirent-tests: Depend on it.
28268         * modules/fcntl-h-c++-tests: New file, extracted from
28269         modules/fcntl-h-tests.
28270         * modules/fcntl-h-tests: Depend on it.
28271         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28272         * modules/glob-tests: Depend on it.
28273         * modules/iconv-h-c++-tests: New file, extracted from
28274         modules/iconv-h-tests.
28275         * modules/iconv-h-tests: Depend on it.
28276         * modules/langinfo-c++-tests: New file, extracted from
28277         modules/langinfo-tests.
28278         * modules/langinfo-tests: Depend on it.
28279         * modules/locale-c++-tests: New file, extracted from
28280         modules/locale-tests.
28281         * modules/locale-tests: Depend on it.
28282         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28283         * modules/math-tests: Depend on it.
28284         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28285         * modules/pty-tests: Depend on it.
28286         * modules/search-c++-tests: New file, extracted from
28287         modules/search-tests.
28288         * modules/search-tests: Depend on it.
28289         * modules/signal-c++-tests: New file, extracted from
28290         modules/signal-tests.
28291         * modules/signal-tests: Depend on it.
28292         * modules/spawn-c++-tests: New file, extracted from
28293         modules/spawn-tests.
28294         * modules/spawn-tests: Depend on it.
28295         * modules/stdio-c++-tests: New file, extracted from
28296         modules/stdio-tests.
28297         * modules/stdio-tests: Depend on it.
28298         * modules/stdlib-c++-tests: New file, extracted from
28299         modules/stdlib-tests.
28300         * modules/stdlib-tests: Depend on it.
28301         * modules/string-c++-tests: New file, extracted from
28302         modules/string-tests.
28303         * modules/string-tests: Depend on it.
28304         * modules/sys_ioctl-c++-tests: New file, extracted from
28305         modules/sys_ioctl-tests.
28306         * modules/sys_ioctl-tests: Depend on it.
28307         * modules/sys_select-c++-tests: New file, extracted from
28308         modules/sys_select-tests.
28309         * modules/sys_select-tests: Depend on it.
28310         * modules/sys_socket-c++-tests: New file, extracted from
28311         modules/sys_socket-tests.
28312         * modules/sys_socket-tests: Depend on it.
28313         * modules/sys_stat-c++-tests: New file, extracted from
28314         modules/sys_stat-tests.
28315         * modules/sys_stat-tests: Depend on it.
28316         * modules/sys_time-c++-tests: New file, extracted from
28317         modules/sys_time-tests.
28318         * modules/sys_time-tests: Depend on it.
28319         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28320         * modules/time-tests: Depend on it.
28321         * modules/unistd-c++-tests: New file, extracted from
28322         modules/unistd-tests.
28323         * modules/unistd-tests: Depend on it.
28324         * modules/wchar-c++-tests: New file, extracted from
28325         modules/wchar-tests.
28326         * modules/wchar-tests: Depend on it.
28327         * modules/wctype-c++-tests: New file, extracted from
28328         modules/wctype-tests.
28329         * modules/wctype-tests: Depend on it.
28330         Reported by Simon Josefsson.
28331
28332 2010-03-28  Bruno Haible  <bruno@clisp.org>
28333
28334         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28335         * gnulib-tool (func_exists_module): New function, extracted from
28336         func_verify_module.
28337         (func_verify_module): Use it.
28338         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28339         'foo' only if 'foo' exists.
28340         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28341         module.
28342
28343 2010-03-28  Bruno Haible  <bruno@clisp.org>
28344
28345         gnulib-tool: Add support for special categories of tests.
28346         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28347         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28348         (func_usage): Document them.
28349         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28350         inc_unportable_tests, inc_all_tests): New variables.
28351         (func_acceptable): Consider these variables.
28352         (func_modules_transitive_closure): Make it work when the 'Status' field
28353         consists of multiple words.
28354         (func_import): Store and restore the values of inc_cxx_tests,
28355         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28356         inc_all_tests in gnulib-comp.m4.
28357         (func_create_testdir): Set inc_all_tests to true.
28358         * doc/gnulib.texi (Extra tests modules): New section.
28359         Suggested by Jim Meyering.
28360
28361 2010-03-28  Bruno Haible  <bruno@clisp.org>
28362
28363         ansi-c++-opt: Allow turning off the C++ build by default.
28364         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28365         gl_CXX_CHOICE_DEFAULT_NO is defined.
28366         Requested by Eric Blake.
28367
28368 2010-03-28  Bruno Haible  <bruno@clisp.org>
28369
28370         unistd: Avoid #define replacements in C++ mode.
28371         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28372         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28373         setsockopt, shutdown, select): In C++, attach a warning to the function
28374         if possible, rather than #defining the symbol to a dysfunctional alias.
28375         Reported by John W. Eaton <jwe@gnu.org>.
28376
28377 2010-03-28  Bruno Haible  <bruno@clisp.org>
28378
28379         Fix link errors on mingw.
28380         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28381         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28382         $(LIBSOCKET).
28383         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28384         $(LIBSOCKET).
28385
28386 2010-03-28  Bruno Haible  <bruno@clisp.org>
28387             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28388
28389         lib-ignore: Determine different options for different compilers.
28390         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28391         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28392         Add comments.
28393         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28394         * NEWS: Mention the change.
28395
28396 2010-03-27  Bruno Haible  <bruno@clisp.org>
28397
28398         Remove unused GNULIB_XYZ macro definitions.
28399         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28400         * modules/fseek (configure.ac): Likewise.
28401         * modules/ioctl (configure.ac): Likewise.
28402         * modules/open (configure.ac): Likewise.
28403         * modules/stdlib-safer (configure.ac): Likewise.
28404
28405 2010-03-27  Bruno Haible  <bruno@clisp.org>
28406
28407         Add a remark about certain modules.
28408         * modules/malloc (Comment): New section.
28409         * modules/realloc (Comment): Likewise.
28410         * modules/sigpipe (Comment): Likewise.
28411
28412 2010-03-27  Bruno Haible  <bruno@clisp.org>
28413
28414         Resolve conflict between the two kinds of module indicators.
28415         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28416         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28417         * modules/canonicalize (configure.ac): Invoke
28418         gl_MODULE_INDICATOR_FOR_TESTS.
28419         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28420         GNULIB_XYZ.
28421         * tests/test-dirent-c++.cc: Likewise.
28422         * tests/test-dirent-safer.c: Likewise.
28423         * tests/test-dup2.c: Likewise.
28424         * tests/test-fchdir.c: Likewise.
28425         * tests/test-fcntl-h-c++.cc: Likewise.
28426         * tests/test-getopt.c: Likewise.
28427         * tests/test-getopt.h: Likewise.
28428         * tests/test-langinfo-c++.cc: Likewise.
28429         * tests/test-locale-c++.cc: Likewise.
28430         * tests/test-math-c++.cc: Likewise.
28431         * tests/test-pty-c++.cc: Likewise.
28432         * tests/test-search-c++.cc: Likewise.
28433         * tests/test-signal-c++.cc: Likewise.
28434         * tests/test-spawn-c++.cc: Likewise.
28435         * tests/test-stdio-c++.cc: Likewise.
28436         * tests/test-stdlib-c++.cc: Likewise.
28437         * tests/test-string-c++.cc: Likewise.
28438         * tests/test-sys_ioctl-c++.cc: Likewise.
28439         * tests/test-sys_select-c++.cc: Likewise.
28440         * tests/test-sys_socket-c++.cc: Likewise.
28441         * tests/test-sys_stat-c++.cc: Likewise.
28442         * tests/test-sys_time-c++.cc: Likewise.
28443         * tests/test-time-c++.cc: Likewise.
28444         * tests/test-unistd-c++.cc: Likewise.
28445         * tests/test-wchar-c++.cc: Likewise.
28446         * tests/uninorm/test-u8-nfc.c: Likewise.
28447         * tests/uninorm/test-u8-nfd.c: Likewise.
28448         * tests/uninorm/test-u8-nfkc.c: Likewise.
28449         * tests/uninorm/test-u8-nfkd.c: Likewise.
28450         * tests/uninorm/test-u16-nfc.c: Likewise.
28451         * tests/uninorm/test-u16-nfd.c: Likewise.
28452         * tests/uninorm/test-u16-nfkc.c: Likewise.
28453         * tests/uninorm/test-u16-nfkd.c: Likewise.
28454         * tests/uninorm/test-u32-nfc.c: Likewise.
28455         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28456         * tests/uninorm/test-u32-nfd.c: Likewise.
28457         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28458         * tests/uninorm/test-u32-nfkc.c: Likewise.
28459         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28460         * tests/uninorm/test-u32-nfkd.c: Likewise.
28461         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28462         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28463
28464 2010-03-27  Bruno Haible  <bruno@clisp.org>
28465
28466         Distinguish two kinds of module indicators.
28467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28468         gl_MODULE_INDICATOR.
28469         (gl_MODULE_INDICATOR): New macro.
28470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28471         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28472         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28473         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28474         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28475         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28476         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28477         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28478         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28480         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28481         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28483         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28484         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28485         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28487         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28488         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28489         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28490         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28491         * modules/cloexec (configure.ac): Likewise.
28492         * modules/getopt-gnu (configure.ac): Likewise.
28493         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28494         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28495         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28496         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28497
28498 2010-03-27  Bruno Haible  <bruno@clisp.org>
28499
28500         New module description field 'Comment'.
28501         * gnulib-tool: New option --extract-comment.
28502         (func_usage): Document it.
28503         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28504         (func_get_comment): New function.
28505         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28506
28507 2010-03-27  Bruno Haible  <bruno@clisp.org>
28508
28509         Addendum to 2010-02-07 commit.
28510         * gnulib-tool (func_usage): Document --extract-applicability option.
28511
28512 2010-03-27  Bruno Haible  <bruno@clisp.org>
28513
28514         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28515         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28516         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28517         rather than link errors.
28518
28519 2010-03-27  Bruno Haible  <bruno@clisp.org>
28520
28521         Avoid side effects from tests-related modules on the compilation of lib.
28522         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28523         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28524         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28525         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28526         macro.
28527         (func_import): Define a witness macro. Assign it a value that depends
28528         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28529         tests-related modules.
28530         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28531         Reported by Jim Meyering.
28532
28533 2010-03-27  Bruno Haible  <bruno@clisp.org>
28534
28535         Factorize common .m4 code.
28536         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28537         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28538         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28539         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28540         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28541         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28542         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28543         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28544         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28545         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28546         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28547         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28548         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28549         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28550         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28551         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28552         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28553         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28555         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28556         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28558         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28560         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28561         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28562         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28563         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28564         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28565         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28566         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28567         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28568
28569 2010-03-27  Bruno Haible  <bruno@clisp.org>
28570
28571         Fix a compilation error on Cygwin with g++ >= 4.3.
28572         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28573         if it is undefined or if we alias it to chmod.
28574         (lstat): Don't warn about the use of this function if it is undefined
28575         or if we alias it to stat.
28576         Reported by Simon Josefsson.
28577
28578 2010-03-27  Bruno Haible  <bruno@clisp.org>
28579
28580         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28581         * modules/getlogin (configure.ac): Update.
28582
28583         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28584         * modules/getlogin_r (configure.ac): Update.
28585
28586         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28588         * modules/inet_ntop (configure.ac): Update.
28589
28590         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28591         * modules/inet_pton (configure.ac): Update.
28592
28593         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28594         * modules/mbslen (configure.ac): Update.
28595
28596         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28597         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28598         * modules/forkpty (configure.ac): Update.
28599         * modules/openpty (configure.ac): Update.
28600
28601 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28602
28603         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28604         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28605
28606 2010-03-25  Eric Blake  <eblake@redhat.com>
28607
28608         maint: use pragma consistently across replacement headers
28609         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28610         * lib/dirent.in.h (system_header): Likewise.
28611         * lib/errno.in.h (system_header): Likewise.
28612         * lib/float.in.h (system_header): Likewise.
28613         * lib/getopt.in.h (system_header): Likewise.
28614         * lib/iconv.in.h (system_header): Likewise.
28615         * lib/inttypes.in.h (system_header): Likewise.
28616         * lib/langinfo.in.h (system_header): Likewise.
28617         * lib/locale.in.h (system_header): Likewise.
28618         * lib/math.in.h (system_header): Likewise.
28619         * lib/netdb.in.h (system_header): Likewise.
28620         * lib/netinet_in.in.h (system_header): Likewise.
28621         * lib/pty.in.h (system_header): Likewise.
28622         * lib/sched.in.h (system_header): Likewise.
28623         * lib/se-selinux.in.h (system_header): Likewise.
28624         * lib/search.in.h (system_header): Likewise.
28625         * lib/spawn.in.h (system_header): Likewise.
28626         * lib/stdarg.in.h (system_header): Likewise.
28627         * lib/stdint.in.h (system_header): Likewise.
28628         * lib/string.in.h (system_header): Likewise.
28629         * lib/strings.in.h (system_header): Likewise.
28630         * lib/sys_file.in.h (system_header): Likewise.
28631         * lib/sys_ioctl.in.h (system_header): Likewise.
28632         * lib/sys_socket.in.h (system_header): Likewise.
28633         * lib/sys_times.in.h (system_header): Likewise.
28634         * lib/sys_utsname.in.h (system_header): Likewise.
28635         * lib/sys_wait.in.h (system_header): Likewise.
28636         * lib/sysexits.in.h (system_header): Likewise.
28637         * lib/unistd.in.h (system_header): Likewise.
28638         * lib/wctype.in.h (system_header): Likewise.
28639
28640         arpa/inet: fix mingw compilation warning
28641         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28642         Reported by Matthew Bolte.
28643
28644 2010-03-25  Bruno Haible  <bruno@clisp.org>
28645
28646         Avoid collision between gnulib wrapper and libintl wrapper.
28647         * lib/printf.c (printf): Don't define if a printf wrapper is already
28648         defined in intl/printf.c.
28649         Reported by Michel Boaventura <michel@michelboaventura.com>.
28650
28651 2010-03-25  Bruno Haible  <bruno@clisp.org>
28652
28653         Use ANSI C.
28654         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28655
28656 2010-03-25  Bruno Haible  <bruno@clisp.org>
28657
28658         Minor formatting changes.
28659         * lib/acosl.c: Insert space before function argument list.
28660         * lib/argz.c: Likewise.
28661         * lib/asinl.c: Likewise.
28662         * lib/expl.c: Likewise.
28663         * lib/gen-uni-tables.c: Likewise.
28664         * lib/gettext.h: Likewise.
28665         * lib/glthread/lock.h: Likewise.
28666         * lib/tanl.c: Likewise.
28667         * lib/uniname/uniname.c: Likewise.
28668         * tests/test-idpriv-drop.c: Likewise.
28669         * tests/test-idpriv-droptemp.c: Likewise.
28670         * tests/test-lock.c: Likewise.
28671         * tests/test-tls.c: Likewise.
28672         * lib/argp-help.c: Insert space before function-like macro argument
28673         list.
28674         * lib/memcmp.c: Likewise.
28675         * tests/test-base64.c: Likewise.
28676         * lib/localename.c: Insert space before sizeof's argument list.
28677         * lib/safe-alloc.h: Likewise.
28678         * lib/file-set.h: Insert space before macro argument list.
28679         * tests/test-argp.c: Likewise.
28680         * lib/argp-namefrob.h: Insert space before function parameter list.
28681         * lib/getaddrinfo.c: Likewise.
28682         * lib/netdb.in.h: Likewise.
28683         * lib/parse-duration.h: Likewise.
28684         * lib/parse-duration.c: Likewise.
28685         * lib/poll.c: Likewise.
28686         * lib/select.c: Likewise.
28687         * lib/trim.h: Likewise.
28688         * tests/test-usleep.c: Likewise.
28689         * lib/ldexpl.c: Insert space before function parameter list and before
28690         function argument list.
28691         * lib/logl.c: Likewise.
28692         * lib/sqrtl.c: Likewise.
28693         * lib/trim.c: Likewise.
28694         * lib/cosl.c: Use GNU style indentation. Insert space before function
28695         argument list.
28696         * lib/sinl.c: Likewise.
28697         * lib/tsearch.c: Insert space after 'for'.
28698         Reported by Jim Meyering.
28699
28700 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28701
28702         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28703         config header before grepping, as it's not present before
28704         autoreconf/configure are run.  Reported by Simon Josefsson.
28705
28706 2010-03-23  Bruno Haible  <bruno@clisp.org>
28707
28708         pt_chown: Make it work with automake < 1.11.
28709         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28710         Reported by Simon Josefsson.
28711
28712 2010-03-23  Bruno Haible  <bruno@clisp.org>
28713
28714         pt_chown: Don't depend on GPLed modules.
28715         * lib/pt_chown.c: Don't include idpriv.h.
28716         (main): Don't drop privileges.
28717         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28718         Reported by Simon Josefsson.
28719
28720 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28721
28722         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28723         suggestions from karl@freefriends.org (Karl Berry).
28724
28725 2010-03-22  Eric Blake  <eblake@redhat.com>
28726
28727         gethostname: further tweaks
28728         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28729         are overriding gethostname.
28730         Suggested by Bruno Haible.
28731
28732 2010-03-21  Bruno Haible  <bruno@clisp.org>
28733
28734         Fix comments.
28735         * lib/forkpty.c (rpl_forkpty): Fix comment.
28736         * lib/openpty.c (rpl_openpty): Likewise.
28737         Reported by Eric Blake.
28738
28739 2010-03-22  Eric Blake  <eblake@redhat.com>
28740
28741         gethostname: fix build on mingw
28742         * lib/unistd.in.h (includes): Work around fact that mingw
28743         <winsock2.h> re-includes <unistd.h>, by avoiding any
28744         redeclarations if we are being included by <winsock2.h>.
28745         Reported by Matthias Bolte.
28746
28747 2010-03-21  Bruno Haible  <bruno@clisp.org>
28748
28749         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28750         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28751         modifications.
28752         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28753         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28754         provide the replacement.
28755         * modules/forkpty (Depends-on): Add openpty, login_tty.
28756         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28757         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28758         * doc/glibc-functions/forkpty.texi: More supported platforms.
28759         * config/srclist.txt: Add forkpty.c (commented).
28760
28761 2010-03-21  Bruno Haible  <bruno@clisp.org>
28762
28763         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28764         (Makefile.am): Verify that PTY_LIB is defined.
28765
28766         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28767
28768 2010-03-21  Bruno Haible  <bruno@clisp.org>
28769
28770         Tests for module 'login_tty'.
28771         * modules/login_tty-tests: New file.
28772         * tests/test-login_tty.c: New file.
28773
28774         New module 'login_tty'.
28775         * lib/login_tty.c: New file.
28776         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28777         * modules/login_tty: New file.
28778         * doc/glibc-functions/login_tty.texi: Mention the new module.
28779
28780 2010-03-21  Bruno Haible  <bruno@clisp.org>
28781
28782         login_tty: Documentation.
28783         * doc/glibc-functions/login_tty.texi: New file.
28784         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28785
28786 2010-03-21  Bruno Haible  <bruno@clisp.org>
28787
28788         pty: Consistent macro naming.
28789         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28790         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28791         * modules/pty (configure.ac): Update.
28792
28793 2010-03-21  Bruno Haible  <bruno@clisp.org>
28794
28795         Tests for openpty: Make stricter.
28796         * tests/test-openpty.c (main): Add test of canonical processing and
28797         erase.
28798         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28799
28800         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28801         * lib/openpty.c (openpty): New replacement function.
28802         * lib/pty.in.h: Include <termios.h>.
28803         (openpty): Update declaration. Add comments.
28804         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28805         is not declared, arrange to provide the replacement. Check for _getpty
28806         and posix_openpt.
28807         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28808         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28809         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28810         * modules/pty-tests (test_pty_c___LDADD): New variable.
28811         * doc/glibc-functions/openpty.texi: More supported platforms.
28812
28813 2010-03-21  Bruno Haible  <bruno@clisp.org>
28814
28815         setenv: Tweaks.
28816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28817         the test program.
28818         * doc/posix-functions/setenv.texi: Update platforms list.
28819
28820 2010-03-21  Bruno Haible  <bruno@clisp.org>
28821
28822         New module 'unlockpt'.
28823         * lib/unlockpt.c: New file, from glibc with modifications.
28824         * m4/unlockpt.m4: New file.
28825         * modules/unlockpt: New file.
28826         * lib/stdlib.in.h (unlockpt): New declaration.
28827         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28828         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28829         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28830         HAVE_UNLOCKPT.
28831         * doc/posix-functions/unlockpt.texi: Mention the new module.
28832         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28833         * config/srclist.txt: Add unlockpt.c (commented).
28834
28835 2010-03-21  Jim Meyering  <meyering@redhat.com>
28836
28837         maint.mk: prohibit inclusion of "intprops.h" without use
28838         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28839
28840 2010-03-21  Bruno Haible  <bruno@clisp.org>
28841
28842         New module 'grantpt'.
28843         * lib/grantpt.c: New file, from glibc with modifications.
28844         * m4/grantpt.m4: New file.
28845         * modules/grantpt: New file.
28846         * lib/stdlib.in.h (grantpt): New declaration.
28847         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28848         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28849         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28850         HAVE_GRANTPT.
28851         * doc/posix-functions/grantpt.texi: Mention the new module.
28852         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28853         * config/srclist.txt: Add grantpt.c (commented).
28854
28855 2010-03-21  Bruno Haible  <bruno@clisp.org>
28856
28857         New module 'pt_chown'.
28858         * lib/pt_chown.c: New file, from glibc with modifications.
28859         * lib/pty-private.h: New file, from glibc with modifications.
28860         * modules/pt_chown: New file.
28861         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28862
28863 2010-03-21  Bruno Haible  <bruno@clisp.org>
28864
28865         Tests for module 'ptsname'.
28866         * modules/ptsname-tests: New file.
28867         * tests/test-ptsname.c: New file.
28868
28869         New module 'ptsname'.
28870         * lib/ptsname.c: New file, from glibc with modifications.
28871         * m4/ptsname.m4: New file.
28872         * modules/ptsname: New file.
28873         * lib/stdlib.in.h (ptsname): New declaration.
28874         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28875         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28876         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28877         HAVE_PTSNAME.
28878         * doc/posix-functions/ptsname.texi: Mention the new module.
28879         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28880         * config/srclist.txt: Add ptsname.c (commented).
28881
28882 2010-03-21  Bruno Haible  <bruno@clisp.org>
28883
28884         Tests for module 'ttyname_r'.
28885         * modules/ttyname_r-tests: New file.
28886         * tests/test-ttyname_r.c: New file.
28887
28888         New module 'ttyname_r'.
28889         * lib/ttyname_r.c: New file.
28890         * m4/ttyname_r.m4: New file.
28891         * modules/ttyname_r: New file.
28892         * lib/unistd.in.h (ttyname_r): New declaration.
28893         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28894         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28895         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28896         HAVE_TTYNAME_R.
28897         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28898         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28899
28900 2010-03-20  Bruno Haible  <bruno@clisp.org>
28901
28902         signal: Undefine macro definitions in C++ mode.
28903         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28904         sigfillset): Undefine macro definitions from the system header in C++
28905         mode.
28906         Reported by John W. Eaton <jwe@gnu.org>.
28907
28908 2010-03-20  Bruno Haible  <bruno@clisp.org>
28909
28910         Ensure no #include statements inside extern "C" { ... }.
28911         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28912         contain #include statements.
28913         * lib/time.in.h: Likewise.
28914
28915 2010-03-20  Bruno Haible  <bruno@clisp.org>
28916
28917         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28918         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28919         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28920         Reported by John W. Eaton <jwe@gnu.org>.
28921
28922 2010-03-20  Bruno Haible  <bruno@clisp.org>
28923
28924         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28925         Reported by Jim Meyering.
28926
28927 2010-03-20  Bruno Haible  <bruno@clisp.org>
28928
28929         pipe: Set errno upon failure.
28930         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28931         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28932         errno value in error message.
28933
28934 2010-03-20  Bruno Haible  <bruno@clisp.org>
28935             Jim Meyering  <meyering@redhat.com>
28936
28937         lchown: Avoid "unused variable" warning.
28938         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28939
28940 2010-03-20  Bruno Haible  <bruno@clisp.org>
28941
28942         Work around unlink() bug on MacOS X 10.5.6.
28943         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28944         attempting to unlink a parent directory.
28945         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28946         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28947         activate for the replacement function.
28948         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28949
28950 2010-03-20  Bruno Haible  <bruno@clisp.org>
28951
28952         Fix link errors on Solaris 8.
28953         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28954         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28955
28956 2010-03-19  Jim Meyering  <meyering@redhat.com>
28957
28958         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28959         The _LIBC implementation of build_range_exp correctly honors the
28960         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28961         However, the non-_LIBC implementation would ignore that syntax-bit
28962         flag and return REG_ERANGE unconditionally.
28963         This change makes it honor that flag.
28964         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28965         Make two pointer parameters "const".
28966         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28967         (parse_bracket_exp): Update caller.
28968
28969         regex.m4: correct the reversed range endpoint ([b-a]) test
28970         * m4/regex.m4: When requiring that [b-a] evoke failure,
28971         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28972         test pass once again for x86-based systems.
28973
28974 2010-03-19  Bruno Haible  <bruno@clisp.org>
28975
28976         scandir: Fix link error on Solaris 8.
28977         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28978         macros.
28979
28980 2010-03-19  Bruno Haible  <bruno@clisp.org>
28981
28982         getusershell: Fix documentation.
28983         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28984         module.
28985         * doc/glibc-functions/setusershell.texi: Likewise.
28986
28987         getusershell: Provide declaration, missing on Solaris 9.
28988         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28989         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28990         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28991         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28993         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28994         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28995         HAVE_GETUSERSHELL.
28996         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28997
28998 2010-03-19  Bruno Haible  <bruno@clisp.org>
28999
29000         wctype: Provide iswblank function.
29001         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
29002         exists and is fine.
29003         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
29004         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
29005         * tests/test-wctype.c (main): Re-enable the iswblank tests.
29006         * doc/posix-functions/iswblank.texi: Update.
29007
29008 2010-03-19  Bruno Haible  <bruno@clisp.org>
29009
29010         Tests of module 'pty' in C++ mode.
29011         * modules/pty-tests: New file.
29012         * tests/test-pty-c++.cc: New file.
29013         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29014
29015 2010-03-19  Eric Blake  <eblake@redhat.com>
29016
29017         logb: fix documentation
29018         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
29019         1.5 declaration bug.
29020
29021         forkpty, openpty: prefer glibc's const-safe prototype
29022         * lib/forkpty.c (rpl_forkpty): New file.
29023         * lib/openpty.c (rpl_openpty): Likewise.
29024         * modules/forkpty (Files): Distribute it.
29025         * modules/openpty (Files): Likewise.
29026         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
29027         check...
29028         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
29029         replacement for for non-const BSD signature.
29030         * modules/pty (Makefile.am): Substitute witnesses.
29031         * lib/pty.in.h (forkpty, openpty): Declare replacements.
29032         * tests/test-forkpty.c: Update signature check.
29033         * tests/test-openpty.c: Likewise.
29034         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
29035         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29036
29037         forkpty, openpty: split functions into new modules
29038         * modules/pty (Makefile.am): Substitute new witnesses.
29039         (Libraries): Move library detection...
29040         * modules/forkpty: ...into new module.
29041         * modules/openpty: Another new module.
29042         * modules/pty-tests: Rename and split...
29043         * modules/forkpty-tests: ...to this...
29044         * modules/openpty-tests: ...and this.
29045         * tests/test-pty.c: Rename and split...
29046         * tests/test-forkpty.c: ...to this...
29047         * tests/test-openpty.c: ...and this.
29048         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
29049         (gl_PTY): Split library searching...
29050         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
29051         (gl_FORKPTY, gl_OPENPTY): New macros.
29052         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
29053         * NEWS: Mention the split.
29054         * MODULES.html.sh (Misc): Document the modules.
29055         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
29056         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29057
29058         pty: improve replacement header
29059         * lib/pty.in.h: New file.
29060         * modules/pty (Files): Ship it.
29061         (Makefile.am): Always build replacement.
29062         * m4/pty.m4: Rename...
29063         * m4/pty_h.m4: ...to this.
29064         (gl_PTY): Modernize setting of witness macros; update check of
29065         forkpty to take proper advantage of cache.
29066         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
29067
29068         getopt: avoid compiler warning
29069         * lib/getopt.c (attribute_hidden): Remove unused macro.
29070
29071 2010-03-18  Bruno Haible  <bruno@clisp.org>
29072
29073         Fix link errors on Solaris 8.
29074         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
29075         * modules/search-tests (test_search_c___LDADD): Likewise.
29076         * modules/signal-tests (test_signal_c___LDADD): Likewise.
29077         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
29078         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
29079         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
29080         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
29081         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
29082         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
29083
29084 2010-03-18  Bruno Haible  <bruno@clisp.org>
29085
29086         Fix bug introduced on 2010-03-14.
29087         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
29088         (gl_SPAWN_H): Require it.
29089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
29090         Reported by Simon Josefsson.
29091
29092 2010-03-18  Bruno Haible  <bruno@clisp.org>
29093
29094         Fix typo introduced on 2009-12-31.
29095         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
29096         posix_spawn_file_actions_adddup2.
29097
29098 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
29099         and Eric Blake  <eblake@redhat.com>
29100
29101         test-vc-list-files-git: make more robust
29102         * tests/test-vc-list-files-git.sh: Unset problematic environment
29103         variables.  Chain commands together.
29104
29105 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
29106
29107         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
29108         `AC_CHECK_DECL' invocation.
29109
29110 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
29111
29112         * lib/inttostr.c (inttostr): Make sure the invocation of verify
29113         appears before executable statements. Suggested by Petr Sumbera
29114         <Petr.Sumbera@Sun.COM>.
29115
29116 2010-03-14  Bruno Haible  <bruno@clisp.org>
29117
29118         * tests/test-flock.c (test_exclusive): Comment out a test that causes
29119         portability problems. Instead use a simpler test.
29120         (main): Check that invalid arguments are rejected only on Linux.
29121
29122 2010-03-14  Bruno Haible  <bruno@clisp.org>
29123
29124         Fix bug introduced on 2009-12-31.
29125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29126         gl_PREREQ_SYS_H_WINSOCK2 always.
29127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
29128         SYS_SOCKET_H variable.
29129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
29130         Update comments.
29131         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
29132         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29133         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29134         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29135         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29136
29137 2010-03-14  Bruno Haible  <bruno@clisp.org>
29138
29139         Fix values returned by sinl, cosl.
29140         * lib/trigl.h: Add specification comments.
29141         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
29142         that combines the values from the precomputed table with the values of
29143         the Chebyshev polynomials.
29144
29145 2010-03-14  Bruno Haible  <bruno@clisp.org>
29146
29147         Fix compilation error when modules 'posix_spawn[p]' are not used.
29148         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29150
29151 2010-03-14  Bruno Haible  <bruno@clisp.org>
29152
29153         Fix compilation error on mingw when module 'time_r' is not used.
29154         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29155         is 1.
29156         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29157         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29158         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29160
29161 2010-03-14  Bruno Haible  <bruno@clisp.org>
29162
29163         Fix compilation error with Sun C.
29164         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29165         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29166         instead of GCC specific ULONG_LONG_MAX.
29167         * lib/xstrtoll.c: Likewise.
29168         * lib/xstrtoull.c: Likewise.
29169
29170 2010-03-13  Bruno Haible  <bruno@clisp.org>
29171
29172         Allow the user to disable C++ code and tests.
29173         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29174         (gl_PROG_ANSI_CXX): Require it.
29175
29176 2010-03-13  Bruno Haible  <bruno@clisp.org>
29177
29178         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29179         cases.
29180
29181 2010-03-13  Bruno Haible  <bruno@clisp.org>
29182
29183         Test that gnulib does not break the standard C++ headers.
29184         * tests/test-locale-c++2.cc: New file.
29185         * modules/locale-tests (Files): Add it.
29186         (Makefile.am): Compile it for test-locale-c++.
29187         * tests/test-math-c++2.cc: New file.
29188         * modules/math-tests (Files): Add it.
29189         (Makefile.am): Compile it for test-math-c++.
29190         * tests/test-signal-c++2.cc: New file.
29191         * modules/signal-tests (Files): Add it.
29192         (Makefile.am): Compile it for test-signal-c++.
29193         * tests/test-stdio-c++2.cc: New file.
29194         * modules/stdio-tests (Files): Add it.
29195         (Makefile.am): Compile it for test-stdio-c++.
29196         * tests/test-stdlib-c++2.cc: New file.
29197         * modules/stdlib-tests (Files): Add it.
29198         (Makefile.am): Compile it for test-stdlib-c++.
29199         * tests/test-string-c++2.cc: New file.
29200         * modules/string-tests (Files): Add it.
29201         (Makefile.am): Compile it for test-string-c++.
29202         * tests/test-time-c++2.cc: New file.
29203         * modules/time-tests (Files): Add it.
29204         (Makefile.am): Compile it for test-time-c++.
29205         Reported by John W. Eaton <jwe@gnu.org>.
29206
29207 2010-03-13  Bruno Haible  <bruno@clisp.org>
29208
29209         * gnulib-tool (func_usage): Clarify which options are available for
29210         --create-testdir and --create-megatestdir.
29211
29212 2010-03-13  Bruno Haible  <bruno@clisp.org>
29213
29214         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29215         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29216         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29217         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29218         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29219         when appropriate.
29220         Reported by Jim Meyering.
29221
29222 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29223
29224         * gnulib-tool (func_import): Explain origin of code.
29225
29226 2010-03-12  Bruno Haible  <bruno@clisp.org>
29227
29228         Fix problem with automake's definition of CXXLINK.
29229         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29230         Reported by Simon Josefsson and Ludovic Courtès.
29231
29232 2010-03-12  Bruno Haible  <bruno@clisp.org>
29233
29234         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29235         stable releases.
29236
29237 2010-03-11  Bruno Haible  <bruno@clisp.org>
29238
29239         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29240         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29241         whether the system provides one variant or multiple variants of the
29242         function.
29243         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29244         C++ compilers.
29245         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29246         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29247         Reported by Jim Meyering.
29248
29249 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29250
29251         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29252
29253 2010-03-08  Bruno Haible  <bruno@clisp.org>
29254
29255         gnulib-tool: Add support for --libtool in --create-testdir.
29256         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29257         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29258
29259 2010-03-08  Eric Blake  <eblake@redhat.com>
29260
29261         gnulib-tool.texi: mention possibility of git submodule
29262         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29263         submodules.
29264         * doc/.gitignore: Ignore another generated file.
29265
29266 2010-03-08  Karl Berry  <karl@gnu.org>
29267
29268         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29269         of committing gnulib files while skipping others.
29270
29271 2010-03-07  Bruno Haible  <bruno@clisp.org>
29272
29273         Tests of module 'wctype' in C++ mode.
29274         * tests/test-wctype-c++.cc: New file.
29275         * modules/wctype-tests (Files): Add it and tests/signature.h.
29276         (Depends-on): Add ansi-c++-opt.
29277         (Makefile.am): Arrange to compile and run test-wctype-c++.
29278
29279         Tests of module 'wchar' in C++ mode.
29280         * tests/test-wchar-c++.cc: New file.
29281         * modules/wchar-tests (Files): Add it and tests/signature.h.
29282         (Depends-on): Add ansi-c++-opt.
29283         (Makefile.am): Arrange to compile and run test-wchar-c++.
29284         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29285         gl_MODULE_INDICATOR.
29286
29287         Tests of module 'unistd' in C++ mode.
29288         * tests/test-unistd-c++.cc: New file.
29289         * modules/unistd-tests (Files): Add it and tests/signature.h.
29290         (Depends-on): Add ansi-c++-opt.
29291         (Makefile.am): Arrange to compile and run test-unistd-c++.
29292         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29293         gl_MODULE_INDICATOR.
29294
29295         Tests of module 'time' in C++ mode.
29296         * tests/test-time-c++.cc: New file.
29297         * modules/time-tests (Files): Add it and tests/signature.h.
29298         (Depends-on): Add ansi-c++-opt.
29299         (Makefile.am): Arrange to compile and run test-time-c++.
29300         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29301
29302         Tests of module 'sys_time' in C++ mode.
29303         * tests/test-sys_time-c++.cc: New file.
29304         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29305         (Depends-on): Add ansi-c++-opt.
29306         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29307         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29308         gl_MODULE_INDICATOR.
29309
29310         Tests of module 'sys_stat' in C++ mode.
29311         * tests/test-sys_stat-c++.cc: New file.
29312         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29313         (Depends-on): Add ansi-c++-opt.
29314         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29315         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29316         gl_MODULE_INDICATOR.
29317
29318         Tests of module 'sys_socket' in C++ mode.
29319         * tests/test-sys_socket-c++.cc: New file.
29320         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29321         (Depends-on): Add ansi-c++-opt.
29322         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29324         gl_MODULE_INDICATOR.
29325
29326         Tests of module 'sys_select' in C++ mode.
29327         * tests/test-sys_select-c++.cc: New file.
29328         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29329         (Depends-on): Add ansi-c++-opt.
29330         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29331         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29332         gl_MODULE_INDICATOR.
29333
29334         Tests of module 'sys_ioctl' in C++ mode.
29335         * tests/test-sys_ioctl-c++.cc: New file.
29336         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29337         (Depends-on): Add ansi-c++-opt.
29338         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29339         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29340         gl_MODULE_INDICATOR.
29341
29342         Tests of module 'string' in C++ mode.
29343         * tests/test-string-c++.cc: New file.
29344         * modules/string-tests (Files): Add it and tests/signature.h.
29345         (Depends-on): Add ansi-c++-opt.
29346         (Makefile.am): Arrange to compile and run test-string-c++.
29347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29348         gl_MODULE_INDICATOR.
29349
29350         Tests of module 'stdlib' in C++ mode.
29351         * tests/test-stdlib-c++.cc: New file.
29352         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29353         (Depends-on): Add ansi-c++-opt.
29354         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29355         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29356         gl_MODULE_INDICATOR.
29357
29358         Tests of module 'stdio' in C++ mode.
29359         * tests/test-stdio-c++.cc: New file.
29360         * modules/stdio-tests (Files): Add it and tests/signature.h.
29361         (Depends-on): Add ansi-c++-opt.
29362         (Makefile.am): Arrange to compile and run test-stdio-c++.
29363         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29364         gl_MODULE_INDICATOR.
29365
29366         Tests of module 'spawn' in C++ mode.
29367         * tests/test-spawn-c++.cc: New file.
29368         * modules/spawn-tests (Files): Add it and tests/signature.h.
29369         (Depends-on): Add ansi-c++-opt.
29370         (Makefile.am): Arrange to compile and run test-spawn-c++.
29371         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29372         gl_MODULE_INDICATOR.
29373
29374         Tests of module 'signal' in C++ mode.
29375         * tests/test-signal-c++.cc: New file.
29376         * modules/signal-tests (Files): Add it and tests/signature.h.
29377         (Depends-on): Add ansi-c++-opt.
29378         (Makefile.am): Arrange to compile and run test-signal-c++.
29379         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29380         gl_MODULE_INDICATOR.
29381
29382         Tests of module 'search' in C++ mode.
29383         * tests/test-search-c++.cc: New file.
29384         * modules/search-tests (Files): Add it and tests/signature.h.
29385         (Depends-on): Add ansi-c++-opt.
29386         (Makefile.am): Arrange to compile and run test-search-c++.
29387         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29388         gl_MODULE_INDICATOR.
29389
29390         Tests of module 'math' in C++ mode.
29391         * tests/test-math-c++.cc: New file.
29392         * modules/math-tests (Files): Add it and tests/signature.h.
29393         (Depends-on): Add ansi-c++-opt.
29394         (Makefile.am): Arrange to compile and run test-math-c++.
29395         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29396
29397         Tests of module 'locale' in C++ mode.
29398         * tests/test-locale-c++.cc: New file.
29399         * modules/locale-tests (Files): Add it and tests/signature.h.
29400         (Depends-on): Add ansi-c++-opt.
29401         (Makefile.am): Arrange to compile and run test-locale-c++.
29402         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29403         gl_MODULE_INDICATOR.
29404
29405         Tests of module 'langinfo' in C++ mode.
29406         * tests/test-langinfo-c++.cc: New file.
29407         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29408         (Depends-on): Add ansi-c++-opt.
29409         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29410         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29411         gl_MODULE_INDICATOR.
29412
29413         Tests of module 'iconv-h' in C++ mode.
29414         * tests/test-iconv-h-c++.cc: New file.
29415         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29416         (Depends-on): Add ansi-c++-opt.
29417         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29418
29419         Tests of module 'glob' in C++ mode.
29420         * tests/test-glob-c++.cc: New file.
29421         * modules/glob-tests (Files): Add it.
29422         (Depends-on): Add ansi-c++-opt.
29423         (Makefile.am): Arrange to compile and run test-glob-c++.
29424
29425         Tests of module 'fcntl-h' in C++ mode.
29426         * tests/test-fcntl-h-c++.cc: New file.
29427         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29428         (Depends-on): Add ansi-c++-opt.
29429         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29430         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29431         gl_MODULE_INDICATOR.
29432
29433         Tests of module 'dirent' in C++ mode.
29434         * tests/test-dirent-c++.cc: New file.
29435         * modules/dirent-tests (Files): Add it and tests/signature.h.
29436         (Depends-on): Add ansi-c++-opt.
29437         (Makefile.am): Arrange to compile and run test-dirent-c++.
29438         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29439         gl_MODULE_INDICATOR.
29440
29441         New module 'ansi-c++-opt'.
29442         * modules/ansi-c++-opt: New file.
29443         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29444
29445         Document C++ namespace mode.
29446         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29447
29448         wctype: Avoid #define replacements in C++ mode.
29449         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29450         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29451         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29452         In C++, define a namespaced alias symbol.
29453         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29454         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29455         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29456         rule.
29457
29458         wchar: Avoid #define replacements in C++ mode.
29459         * lib/wchar.in.h: Include c++defs.h.
29460         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29461         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29462         symbol.
29463         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29464         * modules/wchar (Depends-on): Add c++defs.
29465         (Makefile.am): Update wchar.h rule.
29466
29467         unistd: Avoid #define replacements in C++ mode.
29468         * lib/unistd.in.h: Include c++defs.h.
29469         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29470         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29471         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29472         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29473         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29474         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29475         symbol.
29476         (environ): Update.
29477         * modules/unistd (Depends-on): Add c++defs.
29478         (Makefile.am): Update unistd.h rule.
29479
29480         time: Avoid #define replacements in C++ mode.
29481         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29482         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29483         define a namespaced alias symbol.
29484         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29485         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29486         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29487         * modules/time (Depends-on): Add c++defs, warn-on-use.
29488         (Makefile.am): Update time.h rule.
29489         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29490         * modules/nanosleep (configure.ac): Likewise.
29491         * modules/strptime (configure.ac): Likewise.
29492         * modules/timegm (configure.ac): Likewise.
29493
29494         sys_time: Avoid #define replacements in C++ mode.
29495         * lib/sys_time.in.h: Include c++defs.h.
29496         (gettimeofday): In C++, define a namespaced alias symbol.
29497         * modules/sys_time (Depends-on): Add c++defs.
29498         (Makefile.am): Update sys/time.h rule.
29499
29500         sys_stat: Avoid #define replacements in C++ mode.
29501         * lib/sys_stat.in.h: Include c++defs.h.
29502         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29503         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29504         namespaced alias symbol.
29505         In C++, define a namespaced alias symbol.
29506         * modules/sys_stat (Depends-on): Add c++defs.
29507         (Makefile.am): Update sys/stat.h rule.
29508
29509         sys_socket: Avoid #define replacements in C++ mode.
29510         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29511         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29512         definitions also when the system has a <sys/socket.h>.
29513         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29514         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29515         In C++, define a namespaced alias symbol.
29516         * modules/sys_socket (Depends-on): Add c++defs.
29517         (Makefile.am): Update sys/socket.h rule.
29518
29519         sys_select: Avoid #define replacements in C++ mode.
29520         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29521         definitions also when the system has a <sys/select.h>.
29522         (select): In C++, define a namespaced alias symbol.
29523         * modules/sys_select (Depends-on): Add c++defs.
29524         (Makefile.am): Update sys/select.h rule.
29525
29526         sys_ioctl: Avoid #define replacements in C++ mode.
29527         * lib/sys_ioctl.in.h: Include c++defs.h.
29528         (ioctl): In C++, define a namespaced alias symbol.
29529         * modules/sys_ioctl (Depends-on): Add c++defs.
29530         (Makefile.am): Update sys/ioctl.h rule.
29531
29532         string: Avoid #define replacements in C++ mode.
29533         * lib/string.in.h: Include c++defs.h.
29534         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29535         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29536         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29537         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29538         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29539         * modules/string (Depends-on): Add c++defs.
29540         (Makefile.am): Update string.h rule.
29541
29542         stdlib: Avoid #define replacements in C++ mode.
29543         * lib/stdlib.in.h: Include c++defs.h.
29544         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29545         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29546         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29547         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29548         symbol.
29549         * modules/stdlib (Depends-on): Add c++defs.
29550         (Makefile.am): Update stdlib.h rule.
29551
29552         stdio: Avoid #define replacements in C++ mode.
29553         * lib/stdio.in.h: Include c++defs.h.
29554         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29555         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29556         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29557         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29558         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29559         namespaced alias symbol.
29560         * modules/stdio (Depends-on): Add c++defs.
29561         (Makefile.am): Update stdio.h rule.
29562
29563         spawn: Avoid #define replacements in C++ mode.
29564         * lib/spawn.in.h: Include c++defs.h.
29565         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29566         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29567         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29568         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29569         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29570         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29571         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29572         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29573         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29574         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29575         In C++, define a namespaced alias symbol.
29576         * modules/spawn (Depends-on): Add c++defs.
29577         (Makefile.am): Update spawn.h rule.
29578
29579         signal: Avoid #define replacements in C++ mode.
29580         * lib/signal.in.h: Include c++defs.h.
29581         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29582         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29583         namespaced alias symbol.
29584         * modules/signal (Depends-on): Add c++defs.
29585         (Makefile.am): Update signal.h rule.
29586
29587         search: Avoid #define replacements in C++ mode.
29588         * lib/search.in.h: Include c++defs.h.
29589         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29590         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29591         symbol.
29592         * modules/search (Depends-on): Add c++defs.
29593         (Makefile.am): Update search.h rule.
29594
29595         math: Avoid #define replacements in C++ mode.
29596         * lib/math.in.h: Include c++defs.h.
29597         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29598         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29599         trunc, truncl): In C++, define a namespaced alias symbol.
29600         * modules/math (Depends-on): Add c++defs.
29601         (Makefile.am): Update math.h rule.
29602
29603         locale: Avoid #define replacements in C++ mode.
29604         * lib/locale.in.h: Include c++defs.h.
29605         (duplocale): In C++, define a namespaced alias symbol.
29606         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29607         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29608         * modules/locale (Depends-on): Add c++defs.
29609         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29610
29611         langinfo: Avoid #define replacements in C++ mode.
29612         * lib/langinfo.in.h: Include c++defs.h.
29613         (nl_langinfo): In C++, define a namespaced alias symbol.
29614         * modules/langinfo (Depends-on): Add c++defs.
29615         (Makefile.am): Update langinfo.h rule.
29616
29617         iconv-h: Avoid #define replacements in C++ mode.
29618         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29619         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29620         symbol.
29621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29622         whenever iconv is present.
29623         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29624         (Makefile.am): Update iconv.h rule.
29625
29626         glob: Avoid #define replacements in C++ mode.
29627         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29628         (_gl_glob_errfunc_fn): New type.
29629         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29630         symbol.
29631         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29632         (Makefile.am): Update glob.h rule.
29633
29634         fcntl-h: Avoid #define replacements in C++ mode.
29635         * lib/fcntl.in.h: Include c++defs.h.
29636         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29637         * modules/fcntl-h (Depends-on): Add c++defs.
29638         (Makefile.am): Update fcntl.h rule.
29639
29640         dirent: Avoid #define replacements in C++ mode.
29641         * lib/dirent.in.h: Include c++defs.h.
29642         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29643         namespaced alias symbol.
29644         (dirfd): Update declaration.
29645         * modules/dirent (Depends-on): Add c++defs.
29646         (Makefile.am): Update dirent.h rule.
29647
29648         ctype: Make it usable in C++ code.
29649         * lib/ctype.in.h: Include c++defs.h.
29650         (isblank): Declare as extern "C".
29651         * modules/ctype (Depends-on): Add c++defs.
29652         (Makefile.am): Update ctype.h rule.
29653
29654         New module 'c++defs'.
29655         * modules/c++defs: New file.
29656         * build-aux/c++defs.h: New file.
29657         Reported by John W. Eaton <jwe@gnu.org>.
29658
29659 2010-03-07  Bruno Haible  <bruno@clisp.org>
29660
29661         logb: Provide missing declaration for Cygwin.
29662         * lib/math.in.h (logb): New declaration.
29663         * m4/logb.m4: New file.
29664         * modules/logb (Files): Add m4/logb.m4.
29665         (Depends-on): Add math.
29666         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29667         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29669         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29670         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29671
29672 2010-03-07  Bruno Haible  <bruno@clisp.org>
29673
29674         Fix test-cond link error.
29675         * tests/test-cond.c: Include <stdio.h>.
29676
29677 2010-03-07  Bruno Haible  <bruno@clisp.org>
29678
29679         Fix test-dirent-safer link error.
29680         * modules/dirent-safer-tests (Makefile.am): Define
29681         test_dirent_safer_LDADD.
29682
29683 2010-03-07  Bruno Haible  <bruno@clisp.org>
29684
29685         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29686         among default module list.
29687
29688 2010-03-07  Bruno Haible  <bruno@clisp.org>
29689
29690         Fix link error on platforms with GNU libiconv.
29691         * modules/unistr/u8-strcoll-tests (Makefile): Define
29692         test_u8_strcoll_LDADD.
29693         * modules/unistr/u16-strcoll-tests (Makefile): Define
29694         test_u16_strcoll_LDADD.
29695         * modules/unistr/u32-strcoll-tests (Makefile): Define
29696         test_u32_strcoll_LDADD.
29697
29698 2010-03-07  Bruno Haible  <bruno@clisp.org>
29699
29700         Use POSIX declarations for socket functions.
29701         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29702         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29703         rpl_sendto): Change declaration to match POSIX.
29704         * lib/connect.c (rpl_connect): Likewise.
29705         * lib/accept.c (rpl_accept): Likewise.
29706         * lib/bind.c (rpl_bind): Likewise.
29707         * lib/getpeername.c (rpl_getpeername): Likewise.
29708         * lib/getsockname.c (rpl_getsockname): Likewise.
29709         * lib/recv.c (rpl_recv): Likewise.
29710         * lib/send.c (rpl_send): Likewise.
29711         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29712         * lib/sendto.c (rpl_sendto): Likewise.
29713
29714 2010-03-06  Bruno Haible  <bruno@clisp.org>
29715
29716         Clarify access, euidaccess, faccessat.
29717         * doc/posix-functions/faccessat.texi: Mention security problem under
29718         "Other problems", not "Portability problems".
29719         * doc/posix-functions/access.texi: Likewise. Mention a related security
29720         problem.
29721         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29722         * lib/euidaccess.c: Add comments about platforms.
29723         * lib/unistd.in.h (access, euidaccess): Add warnings.
29724
29725 2010-03-07  Bruno Haible  <bruno@clisp.org>
29726
29727         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29728         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29729         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29730         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29731         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29732         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29733         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29734         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29735         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29737         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29738         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29739         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29740         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29741         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29742         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29743         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29744         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29745         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29746         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29747         Likewise.
29748         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29749         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29750         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29751         Likewise.
29752         * tests/test-spawn.c (main): Make it work when
29753         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29754
29755 2010-03-07  Bruno Haible  <bruno@clisp.org>
29756
29757         Fix incorrect Makefile.am generation in German locale.
29758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29759         Execute sed command with character range in C locale.
29760
29761 2010-03-06  Bruno Haible  <bruno@clisp.org>
29762
29763         Tests for module 'iconv-h'.
29764         * modules/iconv-h-tests: New file.
29765         * tests/test-iconv-h.c: New file.
29766
29767         New module 'iconv-h'.
29768         * modules/iconv-h: New file.
29769         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29770         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29771         (configure.ac): Remove gl_ICONV_H.
29772         (Makefile.am): Remove rule for iconv.h.
29773
29774 2010-03-06  Bruno Haible  <bruno@clisp.org>
29775
29776         More consistent naming of *.m4 files.
29777         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29778         * modules/wctype (Files): Update.
29779
29780         More consistent naming of *.m4 files.
29781         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29782         * modules/wchar (Files): Update.
29783
29784 2010-03-06  Jim Meyering  <meyering@redhat.com>
29785
29786         euidaccess: relax license to LGPLv2+
29787         * modules/euidaccess (License): Relax to LGPLv2+.
29788
29789 2010-03-06  Bruno Haible  <bruno@clisp.org>
29790
29791         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29792         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29793         (Makefile.am): Augment lib_SOURCES instead.
29794
29795 2010-03-04  Jim Meyering  <meyering@redhat.com>
29796
29797         utime: remove obsolete module
29798         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29799         unnecessary for years, and has been marked as obsolete for 10 months.
29800         * modules/utime: Remove file.
29801         * lib/utime.c: Remove file.
29802         * m4/utime.m4: Remove file.
29803         * m4/utimes-null.m4: Remove file.
29804         * doc/posix-functions/utime.texi (utime): Remove reference to
29805         the module.  Move the sole "fixed by gnulib" item into the
29806         "problems not fixed by Gnulib" list.
29807         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29808
29809 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29810
29811         * modules/exit (License): Relax license to LGPLv2+.
29812         (Status): Mark as obsolete.
29813         * NEWS: Mention deprecated 'exit' module.
29814         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29815         of now obsolete 'exit'.
29816
29817 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29818
29819         fts-lgpl: remove unused module
29820         * modules/fts-lgpl: Remove.
29821         * MODULES.html.sh (func_all_modules): Adjust.
29822         * check-module (find_included_lib_files): Adjust.
29823         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29824
29825 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29826
29827         copy-acl: enhance Solaris ACL error handling
29828         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29829         * lib/set-mode-acl.c (qset_acl): Likewise.
29830
29831 2010-03-02  Bruno Haible  <bruno@clisp.org>
29832
29833         spawn: Don't override the system defined values on FreeBSD 8.
29834         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29835         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29836         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29837         if HAVE_POSIX_SPAWN is 1.
29838         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29839
29840 2010-03-01  Bruno Haible  <bruno@clisp.org>
29841
29842         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29843         regarding Automake.
29844
29845 2010-02-25  Bruno Haible  <bruno@clisp.org>
29846
29847         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29848         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29849         setting, not afterwards.
29850         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29851
29852 2010-02-24  Eric Blake  <eblake@redhat.com>
29853
29854         bootstrap, git-version-gen: use timestamp
29855         * build-aux/git-version-gen (scriptversion): Force UTC.
29856         * build-aux/bootstrap (scriptversion): New variable.
29857
29858         bootstrap: allow older git
29859         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29860         older than 1.6.4.  Requested by the libvirt project.
29861
29862 2010-02-23  Eric Blake  <eblake@redhat.com>
29863
29864         warn-on-use: work with old autoconf
29865         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29866         AS_VAR semantics of autoconf 2.60.
29867         Reported by Bruno Haible.
29868
29869         bootstrap: improve some comments
29870         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29871         clarification comments.
29872
29873         gettimeofday: provide correct function
29874         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29875         when replacement is declared, otherwise provide gettimeofday.
29876         Reported by Michael Goffioul.
29877
29878 2010-02-23  Jim Meyering  <meyering@redhat.com>
29879
29880         lib-ignore: relax license to "unlimited", not LGPLv2+
29881         * modules/lib-ignore (License): Relax to "unlimited".
29882
29883 2010-02-23  Jim Meyering  <meyering@redhat.com>
29884
29885         lib-ignore: relax license to LGPLv2+
29886         * modules/lib-ignore (License): Relax to LGPLv2+.
29887
29888 2010-02-22  Eric Blake  <eblake@redhat.com>
29889
29890         lseek: avoid bash 3.2 broken pipe bug
29891         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29892         warning from bash 3.2.
29893         Reported by Ben Pfaff, with analysis from Bruno Haible.
29894
29895         bootstrap: support non-FSF copyright holder
29896         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29897         bootstrap.conf override of COPYRIGHT_HOLDER.
29898         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29899
29900         bootstrap: interoperate with gettext 0.14.1
29901         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29902
29903         bootstrap: allow for alternate submodule location
29904         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29905         hardcoding submodule location.
29906         (gnulib_mk): Allow direct use of Makefile.am.
29907
29908         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29909         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29910         rather than reconfiguring where the submodule points.
29911
29912         gettimeofday: restore support for platforms that lack function
29913         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29914         replacement if function is missing.
29915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29916         * modules/sys_time (Makefile.am): Substitute it.
29917         * lib/sys_time.in.h (gettimeofday): Check it.
29918         Reported by Michael Goffioul.
29919
29920 2010-02-21  Bruno Haible  <bruno@clisp.org>
29921
29922         * lib/stdio.in.h (obstack_printf): Fix typo.
29923
29924 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29925
29926         vc-list-files: use bzr ls's -R option
29927         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29928         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29929
29930 2010-02-21  Jim Meyering  <meyering@redhat.com>
29931
29932         init.sh: fix EXEEXT shims to work also for names like test-prog
29933         * tests/init.sh: Re-exec a better shell, when needed.
29934         If the current shell lacks support for posix $(...), an init.sh-using
29935         test will now try to find a shell that supports that.  If EXEEXT is
29936         nonempty, we also require support for hyphen-in-alias-name and shell
29937         substitutions like ${var#glob}.  Failure to find such a shell results
29938         in a skipped test.
29939
29940 2010-02-21  Bruno Haible  <bruno@clisp.org>
29941
29942         Really work around around "broken pipe" error message from bash 3.2.
29943         * gnulib-tool (func_reset_sigpipe): Remove function.
29944         (echo): In bash 3.2, define to a function that uses printf.
29945         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29946
29947 2010-02-20  Bruno Haible  <bruno@clisp.org>
29948
29949         Restore support for automake 1.9.6 with autoconf 2.61.
29950         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29951         Reported by James Youngman <jay@gnu.org>.
29952
29953 2010-02-20  Bruno Haible  <bruno@clisp.org>
29954
29955         Improve *printf warning condition.
29956         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29957         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29958         and the function is overridden due to SIGPIPE emulation.
29959
29960 2010-02-20  Bruno Haible  <bruno@clisp.org>
29961
29962         * lib/stdio.in.h: Tweak comments.
29963
29964 2010-02-19  Bruno Haible  <bruno@clisp.org>
29965
29966         Make it easier to find modules. New gnulib-tool option '--find'.
29967         * gnulib-tool: New option --find.
29968         (func_usage): Document it.
29969         (func_sanitize_modulelist): New function, extracted from
29970         func_all_modules.
29971         (func_all_modules): Invoke it.
29972         * doc/gnulib-tool.texi (Which modules?): New node.
29973
29974 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29975
29976         * lib/sys_select.in.h: Provide select replacement even if
29977         sys/select.h exists on a system, for Interix.
29978
29979 2010-02-18  Jim Meyering  <meyering@redhat.com>
29980
29981         init.sh: don't use $(...) just yet
29982         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29983         to accommodate e.g., Solaris' /bin/sh.
29984
29985 2010-02-17  Bruno Haible  <bruno@clisp.org>
29986
29987         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29988         Reported by Ludovic Courtès <ludo@gnu.org>.
29989
29990 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29991
29992         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29993         linking with -lintl.
29994
29995 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29996
29997         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29998         if not provided by the system's netdb.h.  Reported by
29999         ludo@gnu.org (Ludovic Courtès).
30000
30001 2010-02-15  Jim Meyering  <meyering@redhat.com>
30002
30003         init.sh: improve portability and efficiency
30004         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
30005         "dummy" in a for loop.
30006         Use '!', not '^' to select the complement of a character set used
30007         in a "case" statement.
30008         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
30009         Suggestions from Eric Blake.
30010
30011         init.sh: automatically accommodate programs with the .exe suffix
30012         Automatically arrange for an invocation of "prog" to execute the
30013         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
30014         may use the simpler "prog", yet still work when built on a system
30015         that requires specifying the added suffix.
30016         Do this by constructing a function named "prog" that invokes
30017         "prog.exe" for each .exe file in selected directories.
30018         * tests/init.sh (find_exe_basenames_): New function.
30019         (create_exe_shim_functions_): New function.
30020         (path_prepend_): Use it.
30021
30022         maint.mk: mark syntax-check sc_*.m rules as .PHONY
30023         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
30024         "make -t syntax-check" doesn't create a ton of sc_*.m files.
30025
30026 2010-02-14  Jim Meyering  <meyering@redhat.com>
30027
30028         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
30029         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
30030         (sc_prohibit_hash_pjw_without_use): New rule.
30031
30032         maint.mk: allow the default upload destination dir to be overridden
30033         * top/maint.mk (upload_dest_dir_): Define with a default that
30034         preserves the status quo.
30035         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
30036         Reported by Peter Simons.
30037
30038         maint.mk: prohibit inclusion of "hash.h" without_use
30039         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
30040
30041 2010-02-10  Jim Meyering  <meyering@redhat.com>
30042
30043         maint.mk: prohibit inclusion of "ignore-value.h" without_use
30044         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
30045
30046 2010-02-09  Eric Blake  <ebb9@byu.net>
30047         and Bruno Haible  <bruno@clisp.org>
30048
30049         obstack-printf-posix: ensure declaration
30050         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
30051         extracted from gl_FUNC_OBSTACK_PRINTF.
30052         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
30053         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30054         Likewise.
30055         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
30056         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
30057         0.
30058
30059 2010-02-08  Bruno Haible  <bruno@clisp.org>
30060
30061         gnulib-tool: Fix typo in 2010-02-07 commit.
30062         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
30063         Reported by Eric Blake.
30064
30065 2010-02-07  Bruno Haible  <bruno@clisp.org>
30066
30067         gnulib-tool: Fix up caching patches.
30068         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
30069         option --no-cache. Use associative arrays when supported by the shell.
30070         (sed_comments): New variable.
30071         (modcache): Renamed from do_cache.
30072         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
30073         abbreviate unnecessarily.
30074         (have_associative): New variable.
30075         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
30076         way also for ksh and zsh.
30077         (func_init_sed_convert_to_cache_statements): New function, extracted
30078         from func_cache_lookup_module. Add support for associative arrays.
30079         Don't set the c_MODULE_cached variable here. Ignore all lines before
30080         the first field header. Remove only the final newline, not all trailing
30081         newlines. Support empty fields correctly. Limit the use of 'eval' to
30082         assignments.
30083         (func_get_description, func_get_status, func_get_notice,
30084         func_get_applicability, func_get_filelist, func_get_dependencies,
30085         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
30086         func_get_automake_snippet, func_get_include_directive,
30087         func_get_link_directive, func_get_license, func_get_maintainer):
30088         Update documentation. List the unoptimized code first. Add support for
30089         associative arrays. Limit the use of 'eval' to assignments.
30090         (func_get_applicability): Undo stylistic pessimisations.
30091         (func_get_automake_snippet, func_get_include_directive): Reduce code
30092         duplication.
30093         (func_modules_transitive_closure, func_modules_add_dummy,
30094         func_modules_notice, func_modules_to_filelist, func_add_file,
30095         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
30096         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
30097         func_create_testdir, func_create_megatestdir): Update documentation.
30098
30099 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30100
30101         * gnulib-tool (func_cache_lookup_module): Store the module name
30102         belonging to the cache variable; error out if two different
30103         module names map to the same cache variable name.
30104
30105 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106
30107         gnulib-tool: Make caching optional.
30108         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
30109         Update matching short versions of --no-changelog.
30110         (func_usage): Update.
30111         (sed_extract_cache_prog): Renamed from ...
30112         (sed_extract_prog): ... this; revert to old extraction script.
30113         (func_get_description, func_get_status)
30114         (func_get_notice, func_get_applicability, func_get_filelist)
30115         (func_get_dependencies, func_get_autoconf_early_snippet)
30116         (func_get_autoconf_snippet, func_get_automake_snippet)
30117         (func_get_include_directive, func_get_link_directive)
30118         (func_get_license, func_get_maintainer): If $do_cache is false,
30119         use old, non-caching extraction scripts.
30120         Suggestion by Bruno Haible.
30121
30122 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30123
30124         gnulib-tool: cache module metainformation.
30125         * gnulib-tool (sed_extract_prog): Match newline before each
30126         header, and rewrite header to a shell variable suffix.
30127         (func_cache_var, func_cache_lookup_module): New functions,
30128         to turn a module name into a cache variable prefix, and to
30129         look up and cache module metainformation.
30130         (func_get_description, func_get_status)
30131         (func_get_notice, func_get_applicability, func_get_filelist)
30132         (func_get_dependencies, func_get_autoconf_early_snippet)
30133         (func_get_autoconf_snippet, func_get_automake_snippet)
30134         (func_get_include_directive, func_get_link_directive)
30135         (func_get_license, func_get_maintainer): Use
30136         func_cache_lookup_module.
30137
30138 2010-02-07  Bruno Haible  <bruno@clisp.org>
30139
30140         fnctl: Fix missing dependency.
30141         * modules/fcntl (Depends-on): Add getdtablesize.
30142         Reported by John W. Eaton <jwe@gnu.org>.
30143
30144 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30145
30146         Argp: fix recognition of short alias options.
30147
30148         * lib/argp-parse.c (convert_options): Fix improper use of
30149         `|' between character values.
30150         * tests/test-argp.c (group1_option): New alias option
30151         --read (-r).
30152         (group1_parser): Special handling for 'r'.
30153         (test15): New test case.
30154         (test_fun): Add test15.
30155         * tests/test-argp-2.sh: Update expected --help and --usage
30156         outputs.
30157
30158 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30159
30160         * tests/test-argp.c: Fix indentation.
30161
30162 2010-02-04  Eric Blake  <ebb9@byu.net>
30163
30164         gettimeofday: expose type of second argument
30165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30166         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30167         * tests/test-gettimeofday.c: Use it to silence warning.
30168         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30169         the issue.
30170
30171 2010-02-03  Jim Meyering  <meyering@redhat.com>
30172
30173         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30174         * lib/regcomp.c (TYPE_SIGNED): Define.
30175         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30176
30177         regcomp.c: avoid a new -Wshadow warning
30178         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30179
30180 2010-02-01  Jim Meyering  <meyering@redhat.com>
30181
30182         removing useless parentheses in cpp #define directives
30183         For motivation, see commit c0221df4, "define STREQ(a,b)
30184         consistently, removing useless parentheses"
30185         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30186         * lib/mountlist.c (MNT_IGNORE): Likewise.
30187         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30188
30189 2010-02-01  Eric Blake  <ebb9@byu.net>
30190
30191         sys_time: use link-warning
30192         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30193         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30194         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30195         * modules/sys_time (Depends-on): Add warn-on-use.
30196         (Makefile.am): Always build replacement.
30197         (configure.ac): Update substitutions.
30198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30199         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30200         bother with SYS_TIME_H.
30201         * modules/gettimeofday (configure.ac): Declare indicator.
30202         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30203         in use.
30204
30205         closein-tests: silence compiler warning
30206         * tests/test-closein.c (main): Ignore fread result.
30207         * modules/closein-tests (Depends-on): Add ignore-value.
30208
30209         tests: silence warning about system return
30210         * tests/test-areadlink-with-size.c (main): Ignore system result.
30211         * tests/test-areadlink.c (main): Likewise.
30212         * tests/test-areadlinkat-with-size.c (main): Likewise.
30213         * tests/test-areadlinkat.c (main): Likewise.
30214         * tests/test-canonicalize-lgpl.c (main): Likewise.
30215         * tests/test-canonicalize.c (main): Likewise.
30216         * tests/test-chown.c (main): Likewise.
30217         * tests/test-fchownat.c (main): Likewise.
30218         * tests/test-fdutimensat.c (main): Likewise.
30219         * tests/test-fstatat.c (main): Likewise.
30220         * tests/test-futimens.c (main): Likewise.
30221         * tests/test-lchown.c (main): Likewise.
30222         * tests/test-link.c (main): Likewise.
30223         * tests/test-linkat.c (main): Likewise.
30224         * tests/test-lstat.c (main): Likewise.
30225         * tests/test-mkdir.c (main): Likewise.
30226         * tests/test-mkdirat.c (main): Likewise.
30227         * tests/test-mkfifo.c (main): Likewise.
30228         * tests/test-mkfifoat.c (main): Likewise.
30229         * tests/test-mknod.c (main): Likewise.
30230         * tests/test-readlink.c (main): Likewise.
30231         * tests/test-remove.c (main): Likewise.
30232         * tests/test-rename.c (main): Likewise.
30233         * tests/test-renameat.c (main): Likewise.
30234         * tests/test-rmdir.c (main): Likewise.
30235         * tests/test-symlink.c (main): Likewise.
30236         * tests/test-symlinkat.c (main): Likewise.
30237         * tests/test-unlink.c (main): Likewise.
30238         * tests/test-unlinkat.c (main): Likewise.
30239         * tests/test-utimens.c (main): Likewise.
30240         * tests/test-utimensat.c (main): Likewise.
30241         * modules/areadlink-tests (Depends-on): Add ignore-value.
30242         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30243         * modules/areadlinkat-tests (Depends-on): Likewise.
30244         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30245         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30246         * modules/canonicalize-tests (Depends-on): Likewise.
30247         * modules/chown-tests (Depends-on): Likewise.
30248         * modules/fdutimensat-tests (Depends-on): Likewise.
30249         * modules/futimens-tests (Depends-on): Likewise.
30250         * modules/lchown-tests (Depends-on): Likewise.
30251         * modules/link-tests (Depends-on): Likewise.
30252         * modules/linkat-tests (Depends-on): Likewise.
30253         * modules/lstat-tests (Depends-on): Likewise.
30254         * modules/mkdir-tests (Depends-on): Likewise.
30255         * modules/mkfifo-tests (Depends-on): Likewise.
30256         * modules/mkfifoat-tests (Depends-on): Likewise.
30257         * modules/mknod-tests (Depends-on): Likewise.
30258         * modules/openat-tests (Depends-on): Likewise.
30259         * modules/readlink-tests (Depends-on): Likewise.
30260         * modules/remove-tests (Depends-on): Likewise.
30261         * modules/rename-tests (Depends-on): Likewise.
30262         * modules/renameat-tests (Depends-on): Likewise.
30263         * modules/rmdir-tests (Depends-on): Likewise.
30264         * modules/symlink-tests (Depends-on): Likewise.
30265         * modules/symlinkat-tests (Depends-on): Likewise.
30266         * modules/unlink-tests (Depends-on): Likewise.
30267         * modules/utimens-tests (Depends-on): Likewise.
30268         * modules/utimensat-tests (Depends-on): Likewise.
30269
30270 2010-01-31  Bruno Haible  <bruno@clisp.org>
30271
30272         Perform the same test for many <math.h> functions.
30273         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30274         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30275         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30276         of gl_MATHFUNC.
30277         * modules/acos (configure.ac): Likewise.
30278         * modules/asin (configure.ac): Likewise.
30279         * modules/atan (configure.ac): Likewise.
30280         * modules/atan2 (configure.ac): Likewise.
30281         * modules/cbrt (configure.ac): Likewise.
30282         * modules/copysign (configure.ac): Likewise.
30283         * modules/cos (configure.ac): Likewise.
30284         * modules/cosh (configure.ac): Likewise.
30285         * modules/erf (configure.ac): Likewise.
30286         * modules/erfc (configure.ac): Likewise.
30287         * modules/exp (configure.ac): Likewise.
30288         * modules/fmod (configure.ac): Likewise.
30289         * modules/hypot (configure.ac): Likewise.
30290         * modules/j0 (configure.ac): Likewise.
30291         * modules/j1 (configure.ac): Likewise.
30292         * modules/jn (configure.ac): Likewise.
30293         * modules/lgamma (configure.ac): Likewise.
30294         * modules/log (configure.ac): Likewise.
30295         * modules/log10 (configure.ac): Likewise.
30296         * modules/log1p (configure.ac): Likewise.
30297         * modules/pow (configure.ac): Likewise.
30298         * modules/remainder (configure.ac): Likewise.
30299         * modules/sin (configure.ac): Likewise.
30300         * modules/sinh (configure.ac): Likewise.
30301         * modules/tan (configure.ac): Likewise.
30302         * modules/tanh (configure.ac): Likewise.
30303         * modules/y0 (configure.ac): Likewise.
30304         * modules/y1 (configure.ac): Likewise.
30305         * modules/yn (configure.ac): Likewise.
30306         Suggested by Paolo Bonzini.
30307
30308 2010-01-31  Bruno Haible  <bruno@clisp.org>
30309
30310         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30311
30312 2010-01-31  Bruno Haible  <bruno@clisp.org>
30313
30314         Work around getdelim() bug on FreeBSD 8.0.
30315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30316         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30317         not work.
30318         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30319         is 1.
30320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30321         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30322         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30323         a non-zero size.
30324         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30325
30326 2010-01-31  Bruno Haible  <bruno@clisp.org>
30327
30328         Work around getline() bug on FreeBSD 8.0.
30329         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30330         and a non-zero size.
30331         * tests/test-getline.c (main): Likewise.
30332         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30333         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30334
30335 2010-01-28  Eric Blake  <ebb9@byu.net>
30336
30337         regex: fix build failure
30338         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30339         platforms.
30340
30341 2010-01-28  Jim Meyering  <meyering@redhat.com>
30342
30343         regex: do not ignore memory allocation failure
30344         * lib/regex_internal.c (create_cd_newstate): Detect
30345         re_node_set_init_copy failure.   Extracted from glibc commit
30346         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30347
30348         regex: sync more white-space changes from libc
30349         * lib/regex_internal.c: White-space only changes.
30350         * lib/regexec.c: Likewise.
30351
30352         regex: add many uses of __attribute_warn_unused_result__
30353         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30354         * lib/regexec.c: Likewise.
30355         Extracted from a messy glibc commit.
30356
30357         regcomp.c: spelling and merge-artifact from glibc
30358         * lib/regcomp.c: Merge remainder of glibc's
30359         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30360
30361         regcomp.c: sync white-space changes from glibc
30362         * lib/regcomp.c: Merge to accommodate white space
30363         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30364
30365         regcomp.c: do not ignore internal return values
30366         * lib/regcomp.c: Do not ignore internal return values.
30367         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30368         but without its white-space changes and spelling fixes.
30369
30370         regex_internal.h: define __attribute_warn_unused_result__
30371         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30372
30373         maint: add a syntax-check rule to check for vulnerable Makefile.in
30374         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30375
30376 2010-01-27  Jim Meyering  <meyering@redhat.com>
30377
30378         ncftpput-ftp: clean up spaces
30379         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30380         Remove trailing blanks.
30381
30382 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30383
30384         * build-aux/git-version-gen: Fix copyright statement.
30385         * build-aux/gnupload: Likewise.
30386         * tests/test-arcfour.c: Likewise.
30387         * tests/test-arctwo.c: Likewise.
30388         * tests/test-count-one-bits.c: Likewise.
30389         * tests/test-crc.c: Likewise.
30390         * tests/test-des.c: Likewise.
30391         * tests/test-gc-arcfour.c: Likewise.
30392         * tests/test-gc-arctwo.c: Likewise.
30393         * tests/test-gc-des.c: Likewise.
30394         * tests/test-gc-hmac-md5.c: Likewise.
30395         * tests/test-gc-hmac-sha1.c: Likewise.
30396         * tests/test-gc-md2.c: Likewise.
30397         * tests/test-gc-md4.c: Likewise.
30398         * tests/test-gc-md5.c: Likewise.
30399         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30400         * tests/test-gc-rijndael.c: Likewise.
30401         * tests/test-gc-sha1.c: Likewise.
30402         * tests/test-gc.c: Likewise.
30403         * tests/test-gethostname.c: Likewise.
30404         * tests/test-gettimeofday.c: Likewise.
30405         * tests/test-hash.c: Likewise.
30406         * tests/test-hmac-md5.c: Likewise.
30407         * tests/test-hmac-sha1.c: Likewise.
30408         * tests/test-md2.c: Likewise.
30409         * tests/test-md4.c: Likewise.
30410         * tests/test-md5.c: Likewise.
30411         * tests/test-memchr.c: Likewise.
30412         * tests/test-memchr2.c: Likewise.
30413         * tests/test-memcmp.c: Likewise.
30414         * tests/test-memmem.c: Likewise.
30415         * tests/test-memrchr.c: Likewise.
30416         * tests/test-rawmemchr.c: Likewise.
30417         * tests/test-read-file.c: Likewise.
30418         * tests/test-rijndael.c: Likewise.
30419         * tests/test-sockets.c: Likewise.
30420         * tests/test-strchrnul.c: Likewise.
30421         * tests/test-strstr.c: Likewise.
30422         * tests/test-strtod.c: Likewise.
30423         * build-aux/ncftpput-ftp: Likewise.
30424
30425 2010-01-26  Eric Blake  <ebb9@byu.net>
30426
30427         ignore-value: update recommended header name
30428         * modules/ignore-value (Include): Only use <> for headers that
30429         exist in glibc.
30430
30431 2010-01-26  Jim Meyering  <meyering@redhat.com>
30432
30433         test-userspec.c: avoid compiler warnings
30434         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30435         and "initialization discards qualifiers..." warnings.
30436         Put the first "uid" in its own scope, and make char* members "const".
30437
30438 2010-01-25  Bruno Haible  <bruno@clisp.org>
30439
30440         gnulib-tool: Make warning diagnostics consistent.
30441         * gnulib-tool (func_warning): New function.
30442         Use it everywhere where gnulib-tool produces output to stderr and it is
30443         not a fatal error.
30444
30445 2010-01-25  Bruno Haible  <bruno@clisp.org>
30446
30447         Fix test dependencies.
30448         * modules/xstrtol-tests (Depends-on): Add inttypes.
30449         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30450
30451 2010-01-25 Pádraig Brady <P@draigBrady.com>
30452
30453         syntax-check: detect incorrect boolean macro values in config.h
30454         * modules/maintainer-makefile (configure.ac): Parameterize the location
30455         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30456         The logic is from Eric Blake and the location indicated by Jim Meyering.
30457         Note the more natural CONFIG_HEADER name is prohibited by automake
30458         for backwards compatibility reasons.
30459         * top/maint.mk (sc_Wundef_boolean): New rule.
30460
30461 2010-01-25  Jim Meyering  <meyering@redhat.com>
30462
30463         bootstrap: detect MacOS 10.6's shasum, too
30464         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30465         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30466
30467 2010-01-23  Jim Meyering  <meyering@redhat.com>
30468
30469         xstrtoll: new module
30470         * modules/xstrtoll: New file.
30471         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30472         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30473         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30474         ./configure fails if you use this module and lack "long long".
30475         * modules/xstrtoll-tests: New module.
30476         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30477         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30478         new init.sh-based test framework.
30479
30480 2010-01-24  Bruno Haible  <bruno@clisp.org>
30481
30482         Tests for module 'yn'.
30483         * modules/yn-tests: New file.
30484         * tests/test-yn.c: New file.
30485
30486         Tests for module 'y1'.
30487         * modules/y1-tests: New file.
30488         * tests/test-y1.c: New file.
30489
30490         Tests for module 'y0'.
30491         * modules/y0-tests: New file.
30492         * tests/test-y0.c: New file.
30493
30494         Tests for module 'tanh'.
30495         * modules/tanh-tests: New file.
30496         * tests/test-tanh.c: New file.
30497
30498         Tests for module 'tan'.
30499         * modules/tan-tests: New file.
30500         * tests/test-tan.c: New file.
30501
30502         Tests for module 'sqrt'.
30503         * modules/sqrt-tests: New file.
30504         * tests/test-sqrt.c: New file.
30505
30506         Tests for module 'sinh'.
30507         * modules/sinh-tests: New file.
30508         * tests/test-sinh.c: New file.
30509
30510         Tests for module 'sin'.
30511         * modules/sin-tests: New file.
30512         * tests/test-sin.c: New file.
30513
30514         Tests for module 'rint'.
30515         * modules/rint-tests: New file.
30516         * tests/test-rint.c: New file.
30517
30518         Tests for module 'remainder'.
30519         * modules/remainder-tests: New file.
30520         * tests/test-remainder.c: New file.
30521
30522         Tests for module 'pow'.
30523         * modules/pow-tests: New file.
30524         * tests/test-pow.c: New file.
30525
30526         Tests for module 'nextafter'.
30527         * modules/nextafter-tests: New file.
30528         * tests/test-nextafter.c: New file.
30529
30530         Tests for module 'modf'.
30531         * modules/modf-tests: New file.
30532         * tests/test-modf.c: New file.
30533
30534         Tests for module 'logb'.
30535         * modules/logb-tests: New file.
30536         * tests/test-logb.c: New file.
30537
30538         Tests for module 'log1p'.
30539         * modules/log1p-tests: New file.
30540         * tests/test-log1p.c: New file.
30541
30542         Tests for module 'log10'.
30543         * modules/log10-tests: New file.
30544         * tests/test-log10.c: New file.
30545
30546         Tests for module 'log'.
30547         * modules/log-tests: New file.
30548         * tests/test-log.c: New file.
30549
30550         Tests for module 'lgamma'.
30551         * modules/lgamma-tests: New file.
30552         * tests/test-lgamma.c: New file.
30553
30554         Tests for module 'ldexp'.
30555         * modules/ldexp-tests: New file.
30556         * tests/test-ldexp.c: New file.
30557
30558         Tests for module 'jn'.
30559         * modules/jn-tests: New file.
30560         * tests/test-jn.c: New file.
30561
30562         Tests for module 'j1'.
30563         * modules/j1-tests: New file.
30564         * tests/test-j1.c: New file.
30565
30566         Tests for module 'j0'.
30567         * modules/j0-tests: New file.
30568         * tests/test-j0.c: New file.
30569
30570         Tests for module 'hypot'.
30571         * modules/hypot-tests: New file.
30572         * tests/test-hypot.c: New file.
30573
30574         Tests for module 'fmod'.
30575         * modules/fmod-tests: New file.
30576         * tests/test-fmod.c: New file.
30577
30578         Tests for module 'fabs'.
30579         * modules/fabs-tests: New file.
30580         * tests/test-fabs.c: New file.
30581
30582         Tests for module 'exp'.
30583         * modules/exp-tests: New file.
30584         * tests/test-exp.c: New file.
30585
30586         Tests for module 'erfc'.
30587         * modules/erfc-tests: New file.
30588         * tests/test-erfc.c: New file.
30589
30590         Tests for module 'erf'.
30591         * modules/erf-tests: New file.
30592         * tests/test-erf.c: New file.
30593
30594         Tests for module 'cosh'.
30595         * modules/cosh-tests: New file.
30596         * tests/test-cosh.c: New file.
30597
30598         Tests for module 'cos'.
30599         * modules/cos-tests: New file.
30600         * tests/test-cos.c: New file.
30601
30602         Tests for module 'copysign'.
30603         * modules/copysign-tests: New file.
30604         * tests/test-copysign.c: New file.
30605
30606         Tests for module 'cbrt'.
30607         * modules/cbrt-tests: New file.
30608         * tests/test-cbrt.c: New file.
30609
30610         Tests for module 'atan2'.
30611         * modules/atan2-tests: New file.
30612         * tests/test-atan2.c: New file.
30613
30614         Tests for module 'atan'.
30615         * modules/atan-tests: New file.
30616         * tests/test-atan.c: New file.
30617
30618         Tests for module 'asin'.
30619         * modules/asin-tests: New file.
30620         * tests/test-asin.c: New file.
30621
30622         Tests for module 'acos'.
30623         * modules/acos-tests: New file.
30624         * tests/test-acos.c: New file.
30625
30626 2010-01-24  Bruno Haible  <bruno@clisp.org>
30627
30628         Fix tests for common <math.h> functions.
30629         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30630         code snippet that references the function pointer, rather than merely
30631         calling the function. Substitute the FUNC_LIBM variable.
30632         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30633         * modules/acos (configure.ac): Likewise.
30634         * modules/asin (configure.ac): Likewise.
30635         * modules/atan (configure.ac): Likewise.
30636         * modules/atan2 (configure.ac): Likewise.
30637         * modules/cbrt (configure.ac): Likewise.
30638         * modules/copysign (configure.ac): Likewise.
30639         * modules/cos (configure.ac): Likewise.
30640         * modules/cosh (configure.ac): Likewise.
30641         * modules/erf (configure.ac): Likewise.
30642         * modules/erfc (configure.ac): Likewise.
30643         * modules/exp (configure.ac): Likewise.
30644         * modules/fabs (configure.ac): Likewise.
30645         * modules/fmod (configure.ac): Likewise.
30646         * modules/hypot (configure.ac): Likewise.
30647         * modules/j0 (configure.ac): Likewise.
30648         * modules/j1 (configure.ac): Likewise.
30649         * modules/jn (configure.ac): Likewise.
30650         * modules/ldexp (configure.ac): Likewise.
30651         * modules/lgamma (configure.ac): Likewise.
30652         * modules/log (configure.ac): Likewise.
30653         * modules/log10 (configure.ac): Likewise.
30654         * modules/log1p (configure.ac): Likewise.
30655         * modules/logb (configure.ac): Likewise.
30656         * modules/modf (configure.ac): Likewise.
30657         * modules/nextafter (configure.ac): Likewise.
30658         * modules/pow (configure.ac): Likewise.
30659         * modules/remainder (configure.ac): Likewise.
30660         * modules/rint (configure.ac): Likewise.
30661         * modules/sin (configure.ac): Likewise.
30662         * modules/sinh (configure.ac): Likewise.
30663         * modules/tan (configure.ac): Likewise.
30664         * modules/tanh (configure.ac): Likewise.
30665         * modules/y0 (configure.ac): Likewise.
30666         * modules/y1 (configure.ac): Likewise.
30667         * modules/yn (configure.ac): Likewise.
30668
30669 2010-01-24  Bruno Haible  <bruno@clisp.org>
30670
30671         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30672         * tests/test-acosl.c (x): New variable.
30673         (main): Store argument in x and fetch it from x.
30674         * tests/test-asinl.c (x): New variable.
30675         (main): Store argument in x and fetch it from x.
30676         * tests/test-atanl.c (x): New variable.
30677         (main): Store argument in x and fetch it from x.
30678         * tests/test-cosl.c (x): New variable.
30679         (main): Store argument in x and fetch it from x.
30680         * tests/test-expl.c (x): New variable.
30681         (main): Store argument in x and fetch it from x.
30682         * tests/test-logl.c (x): New variable.
30683         (main): Store argument in x and fetch it from x.
30684         * tests/test-sinl.c (x): New variable.
30685         (main): Store argument in x and fetch it from x.
30686         * tests/test-sqrtl.c (x): New variable.
30687         (main): Store argument in x and fetch it from x.
30688         * tests/test-tanl.c (x): New variable.
30689         (main): Store argument in x and fetch it from x.
30690
30691 2010-01-24  Bruno Haible  <bruno@clisp.org>
30692
30693         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30694         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30695         assignments to the initial TESTS_ENVIRONMENT.
30696         * doc/gnulib.texi (Unit test modules): Document it.
30697         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30698         TESTS_ENVIRONMENT.
30699         * modules/btowc-tests (Makefile.am): Likewise.
30700         * modules/c-stack-tests (Makefile.am): Likewise.
30701         * modules/c-strcase-tests (Makefile.am): Likewise.
30702         * modules/copy-file-tests (Makefile.am): Likewise.
30703         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30704         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30705         * modules/mbrtowc-tests (Makefile.am): Likewise.
30706         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30707         * modules/mbscasestr-tests (Makefile.am): Likewise.
30708         * modules/mbschr-tests (Makefile.am): Likewise.
30709         * modules/mbscspn-tests (Makefile.am): Likewise.
30710         * modules/mbsinit-tests (Makefile.am): Likewise.
30711         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30712         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30713         * modules/mbspbrk-tests (Makefile.am): Likewise.
30714         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30715         * modules/mbsrchr-tests (Makefile.am): Likewise.
30716         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30717         * modules/mbsspn-tests (Makefile.am): Likewise.
30718         * modules/mbsstr-tests (Makefile.am): Likewise.
30719         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30720         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30721         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30722         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30723         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30724         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30725         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30726         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30727         * modules/wcrtomb-tests (Makefile.am): Likewise.
30728         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30729         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30730         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30731         assignments from TESTS_ENVIRONMENT.
30732         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30733         augmentation.
30734         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30735         * modules/atexit-tests (Makefile.am): Likewise.
30736         * modules/binary-io-tests (Makefile.am): Likewise.
30737         * modules/closein-tests (Makefile.am): Likewise.
30738         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30739         * modules/exclude-tests (Makefile.am): Likewise.
30740         * modules/fflush-tests (Makefile.am): Likewise.
30741         * modules/fpending-tests (Makefile.am): Likewise.
30742         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30743         * modules/freadahead-tests (Makefile.am): Likewise.
30744         * modules/freadptr-tests (Makefile.am): Likewise.
30745         * modules/freadseek-tests (Makefile.am): Likewise.
30746         * modules/fseek-tests (Makefile.am): Likewise.
30747         * modules/fseeko-tests (Makefile.am): Likewise.
30748         * modules/ftell-tests (Makefile.am): Likewise.
30749         * modules/ftello-tests (Makefile.am): Likewise.
30750         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30751         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30752         * modules/lseek-tests (Makefile.am): Likewise.
30753         * modules/parse-duration-tests (Makefile.am): Likewise.
30754         * modules/perror-tests (Makefile.am): Likewise.
30755         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30756         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30757         * modules/pipe-tests (Makefile.am): Likewise.
30758         * modules/pread-tests (Makefile.am): Likewise.
30759         * modules/printf-posix-tests (Makefile.am): Likewise.
30760         * modules/select-tests (Makefile.am): Likewise.
30761         * modules/sigpipe-tests (Makefile.am): Likewise.
30762         * modules/tsearch-tests (Makefile.am): Likewise.
30763         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30764         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30765         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30766         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30767         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30768         * modules/version-etc-tests (Makefile.am): Likewise.
30769         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30770         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30771         * modules/xalloc-die-tests (Makefile.am): Likewise.
30772         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30773         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30774         * modules/xstrtol-tests (Makefile.am): Likewise.
30775         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30776         * modules/yesno-tests (Makefile.am): Likewise.
30777         Suggested by Jim Meyering.
30778
30779 2010-01-24  Bruno Haible  <bruno@clisp.org>
30780
30781         More documentation.
30782         * doc/gnulib.texi (Writing modules): New chapter.
30783         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30784         the new chapter.
30785
30786 2010-01-24  Jim Meyering  <meyering@redhat.com>
30787
30788         maint.mk: do not prepend "./" after filtering
30789         * top/maint.mk (_prepend_srcdir_prefix): New variable
30790         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30791         "./" when $(srcdir) is ".".
30792
30793         define STREQ(a,b) consistently, removing useless parentheses
30794         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30795         since the only risk is that "a" or "b" contains an unparenthesized
30796         comma, but if either did that, STREQ would have 3 or more arguments.
30797         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30798         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30799         * lib/hash-triple.c (STREQ): Likewise.
30800         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30801         * lib/getugroups.c (STREQ): Likewise.
30802
30803 2010-01-23  Jim Meyering  <meyering@redhat.com>
30804
30805         maint.mk: fix syntax-check in a non-srcdir build directory
30806         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30807         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30808
30809 2010-01-22  Jim Meyering  <meyering@redhat.com>
30810
30811         userspec: add unit tests
30812         * tests/test-userspec.c: New file.
30813         * modules/userspec-tests: Likewise.
30814
30815 2010-01-21  Jim Meyering  <meyering@redhat.com>
30816
30817         maint.mk: handle source file names containing "." robustly
30818         * top/maint.mk (_dot_escaped_srcdir): Define.
30819         (VC_LIST): Use it in LHS of sed substitution.
30820
30821 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30822
30823         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30824         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30825         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30826         from a non-srcdir build.
30827
30828 2010-01-20  Eric Blake  <ebb9@byu.net>
30829
30830         warn-on-use: use instead of link-warning
30831         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30832         * modules/unistd (Depends-on, Makefile.am): Likewise.
30833         * modules/arpa_inet (Depends-on): Replace link-warning with
30834         warn-on-use.
30835         (Makefile.am): Update rules accordingly.
30836         * modules/ctype (Depends-on, Makefile.am): Likewise.
30837         * modules/dirent (Depends-on, Makefile.am): Likewise.
30838         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30839         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30840         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30841         * modules/locale (Depends-on, Makefile.am): Likewise.
30842         * modules/math (Depends-on, Makefile.am): Likewise.
30843         * modules/search (Depends-on, Makefile.am): Likewise.
30844         * modules/signal (Depends-on, Makefile.am): Likewise.
30845         * modules/spawn (Depends-on, Makefile.am): Likewise.
30846         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30847         * modules/string (Depends-on, Makefile.am): Likewise.
30848         * modules/strings (Depends-on, Makefile.am): Likewise.
30849         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30850         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30851         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30852         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30853         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30854         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30855         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30856         * modules/wchar (Depends-on, Makefile.am): Likewise.
30857         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30858         should be poisoned.
30859         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30860         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30861         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30862         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30863         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30864         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30865         * m4/math_h.m4 (gl_MATH_H): Likewise.
30866         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30867         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30868         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30869         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30870         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30871         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30872         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30873         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30875         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30878         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30879         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30881         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30882         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30883         GL_LINK_WARNING.
30884         * lib/ctype.in.h: Likewise.
30885         * lib/dirent.in.h: Likewise.
30886         * lib/fcntl.in.h: Likewise.
30887         * lib/inttypes.in.h: Likewise.
30888         * lib/langinfo.in.h: Likewise.
30889         * lib/locale.in.h: Likewise.
30890         * lib/math.in.h: Likewise.
30891         * lib/search.in.h: Likewise.
30892         * lib/signal.in.h: Likewise.
30893         * lib/spawn.in.h: Likewise.
30894         * lib/stdio.in.h: Likewise.
30895         * lib/stdlib.in.h: Likewise.
30896         * lib/string.in.h: Likewise.
30897         * lib/strings.in.h: Likewise.
30898         * lib/sys_file.in.h: Likewise.
30899         * lib/sys_ioctl.in.h: Likewise.
30900         * lib/sys_select.in.h: Likewise.
30901         * lib/sys_socket.in.h: Likewise.
30902         * lib/sys_stat.in.h: Likewise.
30903         * lib/sys_times.in.h: Likewise.
30904         * lib/sys_utsname.in.h: Likewise.
30905         * lib/unistd.in.h: Likewise.
30906         * lib/wchar.in.h: Likewise.
30907
30908 2010-01-20  Bruno Haible  <bruno@clisp.org>
30909
30910         Avoid duplicate -lm.
30911         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30912         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30914         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30915         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30916         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30917         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30918         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30919         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30920         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30921         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30922         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30923         Reported by Paolo Bonzini.
30924
30925 2010-01-19  Bruno Haible  <bruno@clisp.org>
30926
30927         langinfo, nl_langinfo: Relicense under LGPLv2+.
30928         * modules/langinfo (License): Change to LGPLv2+.
30929         * modules/nl_langinfo (License): Likewise.
30930         Patch by David Lutterkort <lutter@redhat.com>.
30931
30932 2010-01-19  Bruno Haible  <bruno@clisp.org>
30933
30934         Avoid compilation error with cc on OSF/1 5.1.
30935         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30936         statement, not before.
30937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30938
30939 2010-01-18  Bruno Haible  <bruno@clisp.org>
30940
30941         Avoid a link error due to the __printf__ symbol.
30942         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30943         and 2.6.x.
30944         (__format__, __printf__): Remove definitions.
30945         * lib/argp-fmtstream.h: Likewise.
30946         * lib/argp.h: Likewise.
30947         * lib/error.h: Likewise.
30948         * lib/vasnprintf.h: Likewise.
30949         * lib/xprintf.h: Likewise.
30950         * lib/xvasprintf.h: Likewise.
30951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30952
30953 2010-01-18  Bruno Haible  <bruno@clisp.org>
30954
30955         Tests for module 'tanl'.
30956         * modules/tanl-tests: New file.
30957         * tests/test-tanl.c: New file.
30958
30959         Tests for module 'sqrtl'.
30960         * modules/sqrtl-tests: New file.
30961         * tests/test-sqrtl.c: New file.
30962
30963         Tests for module 'sinl'.
30964         * modules/sinl-tests: New file.
30965         * tests/test-sinl.c: New file.
30966
30967         Tests for module 'logl'.
30968         * modules/logl-tests: New file.
30969         * tests/test-logl.c: New file.
30970
30971         Tests for module 'expl'.
30972         * modules/expl-tests: New file.
30973         * tests/test-expl.c: New file.
30974
30975         Tests for module 'cosl'.
30976         * modules/cosl-tests: New file.
30977         * tests/test-cosl.c: New file.
30978
30979         Tests for module 'atanl'.
30980         * modules/atanl-tests: New file.
30981         * tests/test-atanl.c: New file.
30982
30983         Tests for module 'asinl'.
30984         * modules/asinl-tests: New file.
30985         * tests/test-asinl.c: New file.
30986
30987         Tests for module 'acosl'.
30988         * modules/acosl-tests: New file.
30989         * tests/test-acosl.c: New file.
30990
30991         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30992         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30993         tanl): Use the standard gnulib idiom.
30994         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30995         * lib/sinl.c: Likewise.
30996         * lib/tanl.c: Don't include trigl.c.
30997         (kernel_tanl): Make static.
30998         * lib/sincosl.c: Include trigl.h first.
30999         * lib/trigl.c: Likewise.
31000         * m4/acosl.m4: New file.
31001         * m4/asinl.m4: New file.
31002         * m4/atanl.m4: New file.
31003         * m4/cosl.m4: New file.
31004         * m4/expl.m4: New file.
31005         * m4/logl.m4: New file.
31006         * m4/sinl.m4: New file.
31007         * m4/sqrtl.m4: New file.
31008         * m4/tanl.m4: New file.
31009         * m4/mathl.m4: Remove file.
31010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
31011         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31012         Don't initialize GNULIB_MATHL.
31013         * modules/acosl: New file.
31014         * modules/asinl: New file.
31015         * modules/atanl: New file.
31016         * modules/cosl: New file.
31017         * modules/expl: New file.
31018         * modules/logl: New file.
31019         * modules/sinl: New file.
31020         * modules/sqrtl: New file.
31021         * modules/tanl: New file.
31022         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
31023         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
31024         substitute GNULIB_MATHL.
31025         * modules/mathl: Rewritten.
31026         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
31027         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
31028         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
31029         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
31030         * doc/posix-functions/expl.texi: Mention the 'expl' module.
31031         * doc/posix-functions/logl.texi: Mention the 'logl' module.
31032         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
31033         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
31034         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
31035
31036 2010-01-18  Bruno Haible  <bruno@clisp.org>
31037
31038         sqrt: Make gl_FUNC_SQRT requirable.
31039         * m4/sqrt.m4: New file.
31040         * modules/sqrt (Files): Add it.
31041         (configure.ac): Invoke gl_FUNC_SQRT.
31042
31043 2010-01-18  Bruno Haible  <bruno@clisp.org>
31044
31045         New modules for common <math.h> functions.
31046         * m4/mathfunc.m4: New file.
31047         * modules/acos: New file.
31048         * modules/asin: New file.
31049         * modules/atan: New file.
31050         * modules/atan2: New file.
31051         * modules/cbrt: New file.
31052         * modules/copysign: New file.
31053         * modules/cos: New file.
31054         * modules/cosh: New file.
31055         * modules/erf: New file.
31056         * modules/erfc: New file.
31057         * modules/exp: New file.
31058         * modules/fabs: New file.
31059         * modules/fmod: New file.
31060         * modules/hypot: New file.
31061         * modules/j0: New file.
31062         * modules/j1: New file.
31063         * modules/jn: New file.
31064         * modules/ldexp: New file.
31065         * modules/lgamma: New file.
31066         * modules/log: New file.
31067         * modules/log10: New file.
31068         * modules/log1p: New file.
31069         * modules/logb: New file.
31070         * modules/modf: New file.
31071         * modules/nextafter: New file.
31072         * modules/pow: New file.
31073         * modules/remainder: New file.
31074         * modules/rint: New file.
31075         * modules/sin: New file.
31076         * modules/sinh: New file.
31077         * modules/sqrt: New file.
31078         * modules/tan: New file.
31079         * modules/tanh: New file.
31080         * modules/y0: New file.
31081         * modules/y1: New file.
31082         * modules/yn: New file.
31083         * doc/posix-functions/acos.texi: Mention the 'acos' module.
31084         * doc/posix-functions/asin.texi: Mention the 'asin' module.
31085         * doc/posix-functions/atan.texi: Mention the 'atan' module.
31086         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
31087         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
31088         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
31089         * doc/posix-functions/cos.texi: Mention the 'cos' module.
31090         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
31091         * doc/posix-functions/erf.texi: Mention the 'erf' module.
31092         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
31093         * doc/posix-functions/exp.texi: Mention the 'exp' module.
31094         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
31095         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
31096         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
31097         * doc/posix-functions/j0.texi: Mention the 'j0' module.
31098         * doc/posix-functions/j1.texi: Mention the 'j1' module.
31099         * doc/posix-functions/jn.texi: Mention the 'jn' module.
31100         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
31101         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
31102         * doc/posix-functions/log.texi: Mention the 'log' module.
31103         * doc/posix-functions/log10.texi: Mention the 'log10' module.
31104         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
31105         * doc/posix-functions/logb.texi: Mention the 'logb' module.
31106         * doc/posix-functions/modf.texi: Mention the 'modf' module.
31107         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
31108         * doc/posix-functions/pow.texi: Mention the 'pow' module.
31109         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
31110         * doc/posix-functions/rint.texi: Mention the 'rint' module.
31111         * doc/posix-functions/sin.texi: Mention the 'sin' module.
31112         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
31113         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
31114         * doc/posix-functions/tan.texi: Mention the 'tan' module.
31115         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
31116         * doc/posix-functions/y0.texi: Mention the 'y0' module.
31117         * doc/posix-functions/y1.texi: Mention the 'y1' module.
31118         * doc/posix-functions/yn.texi: Mention the 'yn' module.
31119
31120 2010-01-18  Jim Meyering  <meyering@redhat.com>
31121
31122         ignore-value: relax license to LGPLv2+
31123         * modules/ignore-value (License): Relax to LGPLv2+.
31124
31125         getdate: don't leak when TZ contains two or more '"'s
31126         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
31127         double quote in TZ after the first one.
31128
31129         readtokens: do not leak internal token_lengths buffer
31130         * lib/readtokens.c (readtokens): Free the local, lengths,
31131         when the supplied "token_lengths" parameter is NULL.
31132
31133 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31134
31135         Fix a couple of missing LIBTHREAD link failures on AIX.
31136         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
31137         $(LIBTHREAD).
31138         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
31139
31140         Link test-poll against INET_PTON_LIB.
31141         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
31142         for inet_pton on Solaris 10.
31143
31144 2010-01-17  Bruno Haible  <bruno@clisp.org>
31145
31146         unistdio/*-sprintf: Fix typo in module description.
31147         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
31148         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31149         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31150         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31151         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31152         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31153         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31155
31156 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31157
31158         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31159         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31160         variables in shell case patterns, for AIX and HP-UX ksh.
31161
31162         Split large sed scripts, for HP-UX sed.
31163         * modules/stdio: Split sed scripts around 50 sed commands,
31164         to avoid HP-UX limit of 99 commands, in the near future.
31165         * modules/string: Likewise.
31166         * modules/unistd: Likewise.
31167
31168         gnulib-tool: avoid writing in the current directory.
31169         * gnulib-tool (func_emit_lib_Makefile_am)
31170         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31171         not in the current directory, so concurrent gnulib-tool
31172         instances do not interfere.
31173
31174 2010-01-16  Jim Meyering  <meyering@redhat.com>
31175
31176         doc: update users.txt
31177         * users.txt: Add grep.
31178         (diffutils, gzip): Update URLs.
31179
31180 2010-01-12  Bruno Haible  <bruno@clisp.org>
31181
31182         posix_spawn: Avoid test failure on Cygwin.
31183         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31184         characters.
31185         Reported by Simon Josefsson.
31186
31187 2010-01-12  Bruno Haible  <bruno@clisp.org>
31188
31189         * tests/test-cond.c (main): When skipping the test, show the reason.
31190
31191 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31192
31193         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31194
31195 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31196
31197         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31198         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31199
31200 2010-01-12  Eric Blake  <ebb9@byu.net>
31201
31202         build: guarantee AS_VAR_IF
31203         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31204         (gl_AS_VAR_IF): Move...
31205         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31206         Reported by Simon Josefsson.
31207
31208 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31209
31210         * lib/stdio.in.h: Fix typo.
31211
31212 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31213
31214         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31215         libgpg-error.
31216
31217 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31218
31219         * tests/test-xalloc-die.sh: Use $EXEEXT.
31220
31221 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31222             Bruno Haible  <bruno@clisp.org>
31223
31224         getlogin, getlogin_r: Avoid test failure.
31225         * tests/test-getlogin.c: Include <stdio.h>.
31226         (main): Skip the test when the function fails because stdin is not a
31227         tty.
31228         * tests/test-getlogin_r.c: Include <stdio.h>.
31229         (main): Skip the test when the function fails because stdin is not a
31230         tty.
31231
31232 2010-01-11  Eric Blake  <ebb9@byu.net>
31233
31234         tests: avoid more large file warnings
31235         * tests/test-fflush.c: Avoid warning about ftell use.
31236         * tests/test-fseek.c: Avoid warning about fseek use.
31237
31238 2010-01-10  Bruno Haible  <bruno@clisp.org>
31239
31240         nproc: Work better on Linux when /proc and /sys are not mounted.
31241         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31242         as lower bound when, on glibc/Linux systems,
31243         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31244         Suggested by Pádraig Brady <P@draigbrady.com>.
31245         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31246
31247         nproc: Refactor.
31248         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31249         extracted from num_processors.
31250         (num_processors): Call it.
31251
31252 2010-01-11  Jim Meyering  <meyering@redhat.com>
31253
31254         utimecmp: avoid new warning from upcoming gcc-4.5.0
31255         * lib/utimecmp.c (BILLION): Define using #define rather than an
31256         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31257
31258 2010-01-11  Eric Blake  <ebb9@byu.net>
31259
31260         math: add portability warnings for classification macros
31261         * modules/math (Depends-on): Add warn-on-use.
31262         (Makefile.am): Provide new substitutions.
31263         * m4/math_h.m4 (gl_MATH_H): Require inline.
31264         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31265         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31266         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31267         implement warnings.
31268
31269         unistd: warn on use of environ without module
31270         * modules/unistd (Depends-on): Add warn-on-use.
31271         (Makefile.am): Provide new substitutions.
31272         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31273         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31274
31275         stdio: warn on suspicious uses
31276         * modules/stdio (Depends-on): Add warn-on-use.
31277         (Makefile.am): Provide new substitutions.
31278         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31279         fseeko.
31280         * lib/stdio.in.h (gets): Always warn on use.
31281         (fseek, ftell): Adjust when warnings are issued, and honor
31282         _GL_NO_LARGE_FILES as a way to silence the warning.
31283         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31284         any warning about large file offsets.
31285         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31286         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31287         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31288         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31289         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31290         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31291         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31292         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31293
31294         warn-on-use: new module
31295         * modules/warn-on-use: New file.
31296         * build-aux/warn-on-use.h: Likewise.
31297         * m4/warn-on-use.m4: Likewise.
31298         * MODULES.html.sh (Support for building): Mention it.
31299
31300 2010-01-10  Bruno Haible  <bruno@clisp.org>
31301
31302         Tests for module 'unistr/u32-strdup'.
31303         * modules/unistr/u32-strdup-tests: New file.
31304         * tests/unistr/test-u32-strdup.c: New file.
31305
31306         Tests for module 'unistr/u16-strdup'.
31307         * modules/unistr/u16-strdup-tests: New file.
31308         * tests/unistr/test-u16-strdup.c: New file.
31309
31310         Tests for module 'unistr/u8-strdup'.
31311         * modules/unistr/u8-strdup-tests: New file.
31312         * tests/unistr/test-u8-strdup.c: New file.
31313         * tests/unistr/test-strdup.h: New file.
31314
31315         Tests for module 'unistr/u32-strncmp'.
31316         * modules/unistr/u32-strncmp-tests: New file.
31317         * tests/unistr/test-u32-strncmp.c: New file.
31318
31319         Tests for module 'unistr/u16-strncmp'.
31320         * modules/unistr/u16-strncmp-tests: New file.
31321         * tests/unistr/test-u16-strncmp.c: New file.
31322
31323         Tests for module 'unistr/u8-strncmp'.
31324         * modules/unistr/u8-strncmp-tests: New file.
31325         * tests/unistr/test-u8-strncmp.c: New file.
31326         * tests/unistr/test-strncmp.h: New file.
31327
31328         Tests for module 'unistr/u32-strcoll'.
31329         * modules/unistr/u32-strcoll-tests: New file.
31330         * tests/unistr/test-u32-strcoll.c: New file.
31331
31332         Tests for module 'unistr/u16-strcoll'.
31333         * modules/unistr/u16-strcoll-tests: New file.
31334         * tests/unistr/test-u16-strcoll.c: New file.
31335
31336         Tests for module 'unistr/u8-strcoll'.
31337         * modules/unistr/u8-strcoll-tests: New file.
31338         * tests/unistr/test-u8-strcoll.c: New file.
31339
31340         Tests for module 'unistr/u32-strcmp'.
31341         * modules/unistr/u32-strcmp-tests: New file.
31342         * tests/unistr/test-u32-strcmp.c: New file.
31343         * tests/unistr/test-u32-strcmp.h: New file.
31344
31345         Tests for module 'unistr/u16-strcmp'.
31346         * modules/unistr/u16-strcmp-tests: New file.
31347         * tests/unistr/test-u16-strcmp.c: New file.
31348         * tests/unistr/test-u16-strcmp.h: New file.
31349
31350         Tests for module 'unistr/u8-strcmp'.
31351         * modules/unistr/u8-strcmp-tests: New file.
31352         * tests/unistr/test-u8-strcmp.c: New file.
31353         * tests/unistr/test-u8-strcmp.h: New file.
31354         * tests/unistr/test-strcmp.h: New file.
31355
31356         Tests for module 'unistr/u32-strncat'.
31357         * modules/unistr/u32-strncat-tests: New file.
31358         * tests/unistr/test-u32-strncat.c: New file.
31359
31360         Tests for module 'unistr/u16-strncat'.
31361         * modules/unistr/u16-strncat-tests: New file.
31362         * tests/unistr/test-u16-strncat.c: New file.
31363
31364         Tests for module 'unistr/u8-strncat'.
31365         * modules/unistr/u8-strncat-tests: New file.
31366         * tests/unistr/test-u8-strncat.c: New file.
31367         * tests/unistr/test-strncat.h: New file.
31368
31369         Tests for module 'unistr/u32-strcat'.
31370         * modules/unistr/u32-strcat-tests: New file.
31371         * tests/unistr/test-u32-strcat.c: New file.
31372
31373         Tests for module 'unistr/u16-strcat'.
31374         * modules/unistr/u16-strcat-tests: New file.
31375         * tests/unistr/test-u16-strcat.c: New file.
31376
31377         Tests for module 'unistr/u8-strcat'.
31378         * modules/unistr/u8-strcat-tests: New file.
31379         * tests/unistr/test-u8-strcat.c: New file.
31380         * tests/unistr/test-strcat.h: New file.
31381
31382         Tests for module 'unistr/u32-stpncpy'.
31383         * modules/unistr/u32-stpncpy-tests: New file.
31384         * tests/unistr/test-u32-stpncpy.c: New file.
31385
31386         Tests for module 'unistr/u16-stpncpy'.
31387         * modules/unistr/u16-stpncpy-tests: New file.
31388         * tests/unistr/test-u16-stpncpy.c: New file.
31389
31390         Tests for module 'unistr/u8-stpncpy'.
31391         * modules/unistr/u8-stpncpy-tests: New file.
31392         * tests/unistr/test-u8-stpncpy.c: New file.
31393         * tests/unistr/test-stpncpy.h: New file.
31394
31395         Tests for module 'unistr/u32-strncpy'.
31396         * modules/unistr/u32-strncpy-tests: New file.
31397         * tests/unistr/test-u32-strncpy.c: New file.
31398
31399         Tests for module 'unistr/u16-strncpy'.
31400         * modules/unistr/u16-strncpy-tests: New file.
31401         * tests/unistr/test-u16-strncpy.c: New file.
31402
31403         Tests for module 'unistr/u8-strncpy'.
31404         * modules/unistr/u8-strncpy-tests: New file.
31405         * tests/unistr/test-u8-strncpy.c: New file.
31406         * tests/unistr/test-strncpy.h: New file.
31407
31408         Tests for module 'unistr/u32-stpcpy'.
31409         * modules/unistr/u32-stpcpy-tests: New file.
31410         * tests/unistr/test-u32-stpcpy.c: New file.
31411
31412         Tests for module 'unistr/u16-stpcpy'.
31413         * modules/unistr/u16-stpcpy-tests: New file.
31414         * tests/unistr/test-u16-stpcpy.c: New file.
31415
31416         Tests for module 'unistr/u8-stpcpy'.
31417         * modules/unistr/u8-stpcpy-tests: New file.
31418         * tests/unistr/test-u8-stpcpy.c: New file.
31419         * tests/unistr/test-stpcpy.h: New file.
31420
31421         Tests for module 'unistr/u32-strcpy'.
31422         * modules/unistr/u32-strcpy-tests: New file.
31423         * tests/unistr/test-u32-strcpy.c: New file.
31424
31425         Tests for module 'unistr/u16-strcpy'.
31426         * modules/unistr/u16-strcpy-tests: New file.
31427         * tests/unistr/test-u16-strcpy.c: New file.
31428
31429         Tests for module 'unistr/u8-strcpy'.
31430         * modules/unistr/u8-strcpy-tests: New file.
31431         * tests/unistr/test-u8-strcpy.c: New file.
31432         * tests/unistr/test-strcpy.h: New file.
31433
31434         Tests for module 'unistr/u32-strnlen'.
31435         * modules/unistr/u32-strnlen-tests: New file.
31436         * tests/unistr/test-u32-strnlen.c: New file.
31437
31438         Tests for module 'unistr/u16-strnlen'.
31439         * modules/unistr/u16-strnlen-tests: New file.
31440         * tests/unistr/test-u16-strnlen.c: New file.
31441
31442         Tests for module 'unistr/u8-strnlen'.
31443         * modules/unistr/u8-strnlen-tests: New file.
31444         * tests/unistr/test-u8-strnlen.c: New file.
31445         * tests/unistr/test-strnlen.h: New file.
31446
31447         Tests for module 'unistr/u32-strlen'.
31448         * modules/unistr/u32-strlen-tests: New file.
31449         * tests/unistr/test-u32-strlen.c: New file.
31450
31451         Tests for module 'unistr/u16-strlen'.
31452         * modules/unistr/u16-strlen-tests: New file.
31453         * tests/unistr/test-u16-strlen.c: New file.
31454
31455         Tests for module 'unistr/u8-strlen'.
31456         * modules/unistr/u8-strlen-tests: New file.
31457         * tests/unistr/test-u8-strlen.c: New file.
31458
31459         Tests for module 'unistr/u32-prev'.
31460         * modules/unistr/u32-prev-tests: New file.
31461         * tests/unistr/test-u32-prev.c: New file.
31462
31463         Tests for module 'unistr/u16-prev'.
31464         * modules/unistr/u16-prev-tests: New file.
31465         * tests/unistr/test-u16-prev.c: New file.
31466
31467         Tests for module 'unistr/u8-prev'.
31468         * modules/unistr/u8-prev-tests: New file.
31469         * tests/unistr/test-u8-prev.c: New file.
31470
31471         Tests for module 'unistr/u32-next'.
31472         * modules/unistr/u32-next-tests: New file.
31473         * tests/unistr/test-u32-next.c: New file.
31474
31475         Tests for module 'unistr/u16-next'.
31476         * modules/unistr/u16-next-tests: New file.
31477         * tests/unistr/test-u16-next.c: New file.
31478
31479         Tests for module 'unistr/u8-next'.
31480         * modules/unistr/u8-next-tests: New file.
31481         * tests/unistr/test-u8-next.c: New file.
31482
31483         Tests for module 'unistr/u32-strmbtouc'.
31484         * modules/unistr/u32-strmbtouc-tests: New file.
31485         * tests/unistr/test-u32-strmbtouc.c: New file.
31486
31487         Tests for module 'unistr/u16-strmbtouc'.
31488         * modules/unistr/u16-strmbtouc-tests: New file.
31489         * tests/unistr/test-u16-strmbtouc.c: New file.
31490
31491         Tests for module 'unistr/u8-strmbtouc'.
31492         * modules/unistr/u8-strmbtouc-tests: New file.
31493         * tests/unistr/test-u8-strmbtouc.c: New file.
31494
31495         Tests for module 'unistr/u32-strmblen'.
31496         * modules/unistr/u32-strmblen-tests: New file.
31497         * tests/unistr/test-u32-strmblen.c: New file.
31498
31499         Tests for module 'unistr/u16-strmblen'.
31500         * modules/unistr/u16-strmblen-tests: New file.
31501         * tests/unistr/test-u16-strmblen.c: New file.
31502
31503         Tests for module 'unistr/u8-strmblen'.
31504         * modules/unistr/u8-strmblen-tests: New file.
31505         * tests/unistr/test-u8-strmblen.c: New file.
31506
31507         Tests for module 'unistr/u32-cpy-alloc'.
31508         * modules/unistr/u32-cpy-alloc-tests: New file.
31509         * tests/unistr/test-u32-cpy-alloc.c: New file.
31510
31511         Tests for module 'unistr/u16-cpy-alloc'.
31512         * modules/unistr/u16-cpy-alloc-tests: New file.
31513         * tests/unistr/test-u16-cpy-alloc.c: New file.
31514
31515         Tests for module 'unistr/u8-cpy-alloc'.
31516         * modules/unistr/u8-cpy-alloc-tests: New file.
31517         * tests/unistr/test-u8-cpy-alloc.c: New file.
31518         * tests/unistr/test-cpy-alloc.h: New file.
31519
31520         Tests for module 'unistr/u32-mbsnlen'.
31521         * modules/unistr/u32-mbsnlen-tests: New file.
31522         * tests/unistr/test-u32-mbsnlen.c: New file.
31523
31524         Tests for module 'unistr/u16-mbsnlen'.
31525         * modules/unistr/u16-mbsnlen-tests: New file.
31526         * tests/unistr/test-u16-mbsnlen.c: New file.
31527
31528         Tests for module 'unistr/u8-mbsnlen'.
31529         * modules/unistr/u8-mbsnlen-tests: New file.
31530         * tests/unistr/test-u8-mbsnlen.c: New file.
31531
31532         Tests for module 'unistr/u32-chr'.
31533         * modules/unistr/u32-chr-tests: New file.
31534         * tests/unistr/test-u32-chr.c: New file.
31535
31536         Tests for module 'unistr/u16-chr'.
31537         * modules/unistr/u16-chr-tests: New file.
31538         * tests/unistr/test-u16-chr.c: New file.
31539
31540         Tests for module 'unistr/u8-chr'.
31541         * modules/unistr/u8-chr-tests: New file.
31542         * tests/unistr/test-u8-chr.c: New file.
31543         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31544
31545         Tests for module 'unistr/u32-cmp2'.
31546         * modules/unistr/u32-cmp2-tests: New file.
31547         * tests/unistr/test-u32-cmp2.c: New file.
31548
31549         Tests for module 'unistr/u16-cmp2'.
31550         * modules/unistr/u16-cmp2-tests: New file.
31551         * tests/unistr/test-u16-cmp2.c: New file.
31552
31553         Tests for module 'unistr/u8-cmp2'.
31554         * modules/unistr/u8-cmp2-tests: New file.
31555         * tests/unistr/test-u8-cmp2.c: New file.
31556         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31557
31558         Tests for module 'unistr/u32-cmp'.
31559         * modules/unistr/u32-cmp-tests: New file.
31560         * tests/unistr/test-u32-cmp.c: New file.
31561
31562         Tests for module 'unistr/u16-cmp'.
31563         * modules/unistr/u16-cmp-tests: New file.
31564         * tests/unistr/test-u16-cmp.c: New file.
31565
31566         Tests for module 'unistr/u8-cmp'.
31567         * modules/unistr/u8-cmp-tests: New file.
31568         * tests/unistr/test-u8-cmp.c: New file.
31569         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31570
31571         Tests for module 'unistr/u32-set'.
31572         * modules/unistr/u32-set-tests: New file.
31573         * tests/unistr/test-u32-set.c: New file.
31574
31575         Tests for module 'unistr/u16-set'.
31576         * modules/unistr/u16-set-tests: New file.
31577         * tests/unistr/test-u16-set.c: New file.
31578
31579         Tests for module 'unistr/u8-set'.
31580         * modules/unistr/u8-set-tests: New file.
31581         * tests/unistr/test-u8-set.c: New file.
31582         * tests/unistr/test-set.h: New file.
31583
31584         Tests for module 'unistr/u32-move'.
31585         * modules/unistr/u32-move-tests: New file.
31586         * tests/unistr/test-u32-move.c: New file.
31587
31588         Tests for module 'unistr/u16-move'.
31589         * modules/unistr/u16-move-tests: New file.
31590         * tests/unistr/test-u16-move.c: New file.
31591
31592         Tests for module 'unistr/u8-move'.
31593         * modules/unistr/u8-move-tests: New file.
31594         * tests/unistr/test-u8-move.c: New file.
31595         * tests/unistr/test-move.h: New file.
31596
31597         Tests for module 'unistr/u32-cpy'.
31598         * modules/unistr/u32-cpy-tests: New file.
31599         * tests/unistr/test-u32-cpy.c: New file.
31600
31601         Tests for module 'unistr/u16-cpy'.
31602         * modules/unistr/u16-cpy-tests: New file.
31603         * tests/unistr/test-u16-cpy.c: New file.
31604
31605         Tests for module 'unistr/u8-cpy'.
31606         * modules/unistr/u8-cpy-tests: New file.
31607         * tests/unistr/test-u8-cpy.c: New file.
31608         * tests/unistr/test-cpy.h: New file.
31609
31610 2010-01-09  Bruno Haible  <bruno@clisp.org>
31611
31612         Tests for module 'unistr/u32-uctomb'.
31613         * modules/unistr/u32-uctomb-tests: New file.
31614         * tests/unistr/test-u32-uctomb.c: New file.
31615
31616         Tests for module 'unistr/u16-uctomb'.
31617         * modules/unistr/u16-uctomb-tests: New file.
31618         * tests/unistr/test-u16-uctomb.c: New file.
31619
31620         Tests for module 'unistr/u8-uctomb'.
31621         * modules/unistr/u8-uctomb-tests: New file.
31622         * tests/unistr/test-u8-uctomb.c: New file.
31623
31624         Tests for module 'unistr/u32-mbtoucr'.
31625         * modules/unistr/u32-mbtoucr-tests: New file.
31626         * tests/unistr/test-u32-mbtoucr.c: New file.
31627
31628         Tests for module 'unistr/u16-mbtoucr'.
31629         * modules/unistr/u16-mbtoucr-tests: New file.
31630         * tests/unistr/test-u16-mbtoucr.c: New file.
31631
31632         Tests for module 'unistr/u8-mbtoucr'.
31633         * modules/unistr/u8-mbtoucr-tests: New file.
31634         * tests/unistr/test-u8-mbtoucr.c: New file.
31635
31636         Tests for module 'unistr/u32-mbtouc'.
31637         * modules/unistr/u32-mbtouc-tests: New file.
31638         * tests/unistr/test-u32-mbtouc.c: New file.
31639
31640         Tests for module 'unistr/u16-mbtouc'.
31641         * modules/unistr/u16-mbtouc-tests: New file.
31642         * tests/unistr/test-u16-mbtouc.c: New file.
31643
31644         Tests for module 'unistr/u8-mbtouc'.
31645         * modules/unistr/u8-mbtouc-tests: New file.
31646         * tests/unistr/test-u8-mbtouc.c: New file.
31647
31648         Tests for module 'unistr/u32-mbtouc-unsafe'.
31649         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31650         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31651         * tests/unistr/test-u32-mbtouc.h: New file.
31652
31653         Tests for module 'unistr/u16-mbtouc-unsafe'.
31654         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31655         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31656         * tests/unistr/test-u16-mbtouc.h: New file.
31657
31658         Tests for module 'unistr/u8-mbtouc-unsafe'.
31659         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31660         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31661         * tests/unistr/test-u8-mbtouc.h: New file.
31662
31663         Tests for module 'unistr/u32-mblen'.
31664         * modules/unistr/u32-mblen-tests: New file.
31665         * tests/unistr/test-u32-mblen.c: New file.
31666
31667         Tests for module 'unistr/u16-mblen'.
31668         * modules/unistr/u16-mblen-tests: New file.
31669         * tests/unistr/test-u16-mblen.c: New file.
31670
31671         Tests for module 'unistr/u8-mblen'.
31672         * modules/unistr/u8-mblen-tests: New file.
31673         * tests/unistr/test-u8-mblen.c: New file.
31674
31675         Tests for module 'unistr/u32-to-u16'.
31676         * modules/unistr/u32-to-u16-tests: New file.
31677         * tests/unistr/test-u32-to-u16.c: New file.
31678
31679         Tests for module 'unistr/u32-to-u8'.
31680         * modules/unistr/u32-to-u8-tests: New file.
31681         * tests/unistr/test-u32-to-u8.c: New file.
31682
31683         Tests for module 'unistr/u16-to-u32'.
31684         * modules/unistr/u16-to-u32-tests: New file.
31685         * tests/unistr/test-u16-to-u32.c: New file.
31686
31687         Tests for module 'unistr/u16-to-u8'.
31688         * modules/unistr/u16-to-u8-tests: New file.
31689         * tests/unistr/test-u16-to-u8.c: New file.
31690
31691         Tests for module 'unistr/u8-to-u32'.
31692         * modules/unistr/u8-to-u32-tests: New file.
31693         * tests/unistr/test-u8-to-u32.c: New file.
31694
31695         Tests for module 'unistr/u8-to-u16'.
31696         * modules/unistr/u8-to-u16-tests: New file.
31697         * tests/unistr/test-u8-to-u16.c: New file.
31698
31699         Tests for module 'unistr/u32-check'.
31700         * modules/unistr/u32-check-tests: New file.
31701         * tests/unistr/test-u32-check.c: New file.
31702
31703         Tests for module 'unistr/u16-check'.
31704         * modules/unistr/u16-check-tests: New file.
31705         * tests/unistr/test-u16-check.c: New file.
31706
31707         Tests for module 'unistr/u8-check'.
31708         * modules/unistr/u8-check-tests: New file.
31709         * tests/unistr/test-u8-check.c: New file.
31710
31711         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31712         (category_equals): New function.
31713         (main): Add more tests.
31714         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31715
31716         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31717
31718 2010-01-10  Bruno Haible  <bruno@clisp.org>
31719
31720         unistr/u*-strcoll: Try harder to distinguish different strings.
31721         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31722         compare s1 and s2 to see if they are different.
31723
31724 2010-01-10  Bruno Haible  <bruno@clisp.org>
31725
31726         unistr/u*-stpncpy: Fix the return value.
31727         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31728         description of the return value consistent with stpncpy in glibc.
31729         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31730         written non-NUL unit.
31731
31732 2010-01-10  Bruno Haible  <bruno@clisp.org>
31733
31734         unistr/u*-next: Add missing dependencies.
31735         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31736         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31737         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31738
31739 2010-01-10  Bruno Haible  <bruno@clisp.org>
31740
31741         unistr/u8-mbsnlen: Fix return value for incomplete character.
31742         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31743         u8_mblen.
31744         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31745         Remove unistr/u8-mblen.
31746         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31747         u16_mblen.
31748         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31749         Remove unistr/u16-mblen.
31750
31751 2010-01-10  Bruno Haible  <bruno@clisp.org>
31752
31753         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31754         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31755         Reported by Brian Gough <bjg@gnu.org> and
31756         Chris Clayton <chris2553@googlemail.com> via
31757         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31758
31759 2010-01-09  Bruno Haible  <bruno@clisp.org>
31760
31761         unistr/u16-to-u32: Reject invalid input.
31762         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31763         u16_mbtouc.
31764         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31765         Remove unistr/u16-mbtouc.
31766
31767         unistr/u16-to-u8: Reject invalid input.
31768         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31769         u16_mbtouc.
31770         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31771         Remove unistr/u16-mbtouc.
31772
31773         unistr/u8-to-u32: Reject invalid input.
31774         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31775         u8_mbtouc.
31776         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31777         Remove unistr/u8-mbtouc.
31778
31779         unistr/u8-to-u16: Reject invalid input.
31780         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31781         u8_mbtouc.
31782         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31783         Remove unistr/u8-mbtouc.
31784
31785 2010-01-09  Bruno Haible  <bruno@clisp.org>
31786
31787         Tests for module 'getlogin'.
31788         * modules/getlogin-tests: New file.
31789         * tests/test-getlogin.c: New file.
31790
31791         New module 'getlogin'.
31792         * lib/unistd.in.h (getlogin): New declaration.
31793         * lib/getlogin.c: New file.
31794         * m4/getlogin.m4: New file.
31795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31796         HAVE_GETLOGIN.
31797         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31798         HAVE_GETLOGIN.
31799         * modules/getlogin: New file.
31800         * doc/posix-functions/getlogin.texi: Mention the new module.
31801         Reported by John W. Eaton <jwe@gnu.org>.
31802
31803 2010-01-09  Bruno Haible  <bruno@clisp.org>
31804
31805         getlogin_r: Support for native Windows.
31806         * lib/getlogin_r.c: Include <windows.h>
31807         (getlogin_r): Implement for native Windows.
31808         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31809         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31810         via John W. Eaton <jwe@gnu.org>.
31811
31812 2010-01-09  Bruno Haible  <bruno@clisp.org>
31813
31814         getlogin_r: Small fixes.
31815         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31816         succeeds.
31817         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31818         before testing whether getlogin_r is declared. No need to set
31819         HAVE_DECL_GETLOGIN_R to 1.
31820         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31821
31822 2010-01-09  Bruno Haible  <bruno@clisp.org>
31823
31824         * lib/unistd.in.h (getlogin_r): Add comment.
31825
31826 2010-01-09  Bruno Haible  <bruno@clisp.org>
31827
31828         Tests for module 'getlogin_r'.
31829         * modules/getlogin_r-tests: New file.
31830         * tests/test-getlogin_r.c: New file.
31831
31832 2010-01-09  Jim Meyering  <meyering@redhat.com>
31833
31834         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31835         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31836         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31837
31838 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31839
31840         * lib/dup2.c (rpl_dup2): Improve comment.
31841
31842 2010-01-08  Eric Blake  <ebb9@byu.net>
31843
31844         maint.mk: allow packages to add makefile @@ exceptions
31845         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31846         (sc_makefile_check): Rename...
31847         (sc_makefile_at_at_check): ...to this, and use hook.
31848
31849         dup2: work around mingw bug
31850         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31851         Reported by Simon Josefsson.
31852
31853 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31854
31855         glob: Fix C++ compilation.
31856         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31857         C++.
31858
31859 2010-01-07  Bruno Haible  <bruno@clisp.org>
31860
31861         Fix indentation of wctype.in.h, broken since 2007-01-06.
31862         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31863
31864 2010-01-07  Bruno Haible  <bruno@clisp.org>
31865
31866         mbslen: Avoid collision with system function.
31867         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31868         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31869         * m4/mbslen.m4: New file.
31870         * modules/mbslen (Files): Add it.
31871         (configure.ac): Invoke gl_MBSLEN.
31872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31873         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31874         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31875         via Ian Beckwith <ianb@erislabs.net>.
31876
31877 2010-01-07  Bruno Haible  <bruno@clisp.org>
31878
31879         dirent: Document the last fix.
31880         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31881
31882 2010-01-07  Bruno Haible  <bruno@clisp.org>
31883
31884         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31885         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31886         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31887         va_list are defined.
31888         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31889         Reported by Eric Blake.
31890
31891 2010-01-07  Bruno Haible  <bruno@clisp.org>
31892
31893         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31894         * modules/xlist (Depends-on): Add 'list',
31895         * modules/xoset (Depends-on): Add 'oset'.
31896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31897
31898 2010-01-07  Bruno Haible  <bruno@clisp.org>
31899
31900         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31901         * doc/posix-functions/strncasecmp.texi: Likewise.
31902
31903 2010-01-07  Bruno Haible  <bruno@clisp.org>
31904
31905         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31906
31907 2010-01-07  John W. Eaton  <jwe@octave.org>
31908
31909         wctype: allow C++ use
31910         * lib/wctype.in.h: Add extern "C" block for C++.
31911
31912 2010-01-06  Eric Blake  <ebb9@byu.net>
31913
31914         maint.mk: detect incorrect GFDL usage
31915         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31916
31917 2010-01-06  Jim Meyering  <meyering@redhat.com>
31918         and Eric Blake  <ebb9@byu.net>
31919
31920         maint.mk: ignore multi-line copyright in NEWS
31921         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31922
31923 2010-01-06  Eric Blake  <ebb9@byu.net>
31924
31925         select: add missing dependency
31926         * modules/select-tests (Depends-on): Move sockets dependency...
31927         * modules/select (Depends-on): ...here.
31928         Reported by Ian Beckwith.
31929
31930         doc: regenerate INSTALL
31931         * doc/INSTALL: Reflect recent autoconf update.
31932         * doc/INSTALL.ISO: Likewise.
31933         * doc/INSTALL.UTF-8: Likewise.
31934
31935         pread: fix compilation on glibc
31936         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31937         Reported by Ralf Wildenhues.
31938
31939         dirent: fix test failure
31940         * lib/dirent.in.h (includes): Guarantee ino_t.
31941         Reported by Ralf Wildenhues.
31942
31943 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31944
31945         linkat, renameat: avoid bad free
31946         * lib/at-func2.c (at_func2): Fix typo.
31947         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31948
31949 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31950
31951         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31952         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31953         to avoid failure of symlink test later.
31954
31955 2010-01-06  Eric Blake  <ebb9@byu.net>
31956
31957         stdio, unistd: guarantee ssize_t
31958         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31959         2008 are exposed when needed.
31960         * lib/stdio.in.h (includes): Likewise.
31961         Reported by Ralf Wildenhues.
31962
31963 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31964
31965         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31966         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31967         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31968
31969 2010-01-06  Jim Meyering  <meyering@redhat.com>
31970
31971         readtokens: this module *does* require xalloc.h
31972         It uses only functions that were omitted by the old syntax-check rule.
31973         * lib/readtokens.c: Include "xalloc.h" once again.
31974         * modules/readtokens (Depends-on): Add xalloc.
31975         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31976
31977 2010-01-05  Eric Blake  <ebb9@byu.net>
31978
31979         maint: support 'make announcement' from a VPATH build
31980         * top/maint.mk (announcement): Look for correct NEWS file.
31981
31982 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31983
31984         utimens (fdutimens): ignore a negative FD, per contract
31985         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31986         when we have a valid file descriptor.  Otherwise, using a brand
31987         new glibc (with just-patched futimens that now fails with EBADF)
31988         would cause this function to fail with ENOSYS.
31989         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31990         See also http://bugzilla.redhat.com/552320.
31991
31992 2010-01-05  Eric Blake  <ebb9@byu.net>
31993
31994         strcase: document what it provides
31995         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31996         gnulib module.
31997         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31998         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31999
32000 2010-01-05  Jim Meyering  <meyering@redhat.com>
32001
32002         maint: remove useless inclusions of "xalloc.h"
32003         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
32004         * lib/readtokens.c: Likewise.
32005         * lib/same.c: Likewise.
32006         * modules/getloadavg (Depends-on): Remove xalloc.
32007         * modules/readtokens: Likewise.
32008         * modules/same: Likewise.
32009
32010         maint.mk: include 4 more function names in alloca.h-checking regexp
32011         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
32012         regexp.  Before, we would give a false-positive (saying alloca.h
32013         is included unnecessarily) when the only uses involved omitted symbols.
32014
32015         xalloc.h: use consistent formatting
32016         * lib/xalloc.h: Move declarations to start in the first column.
32017
32018 2010-01-05  Eric Blake  <ebb9@byu.net>
32019
32020         mkdir: avoid xalloc
32021         * lib/mkdir.c (includes): Drop unused header.
32022         Reported by John W. Eaton.
32023
32024 2010-01-04  Jim Meyering  <meyering@redhat.com>
32025
32026         nl_langinfo: avoid configure-time syntax error
32027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
32028         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
32029         the empty string.  Don't let that provoke a shell syntax error.
32030
32031         regcomp, regexec, fnmatch: avoid array bounds read error
32032         * lib/regcomp.c (build_equiv_class): From glibc:
32033         Use only the low 24 bits of a findidx return value as an index
32034         into the weights array.  Patch by Ulrich Drepper:
32035         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
32036         * lib/regexec.c (check_node_accept_bytes): Likewise.
32037         * lib/fnmatch_loop.c (FCT): Likewise.
32038
32039         regcomp: skip collseq lookup when there are no rules
32040         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
32041         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
32042
32043         regcomp: recognize ill-formed { } expressions
32044         * lib/regcomp.c (parse_dup_op): From glibc:
32045         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
32046
32047         regcomp: fix typo in comment
32048         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
32049         s/satisfy/satisfies/.
32050
32051         regcomp: sync from glibc: remove dead store
32052         * lib/regcomp.c (duplicate_node_closure): Remove useless
32053         search_duplicated_node call and dead store.
32054
32055         regcomp: sync from glibc; always use nl_langinfo
32056         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
32057         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
32058         * modules/regex (Depends-on): Add nl_langinfo.
32059
32060 2010-01-04  Eric Blake  <ebb9@byu.net>
32061
32062         fdopendir: fix configure test
32063         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
32064
32065 2010-01-01  Bruno Haible  <bruno@clisp.org>
32066
32067         wchar: Remove unused configure check.
32068         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
32069
32070 2010-01-01  Eric Blake  <ebb9@byu.net>
32071
32072         headers: make check of system header explicit
32073         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
32074         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
32075         ourselves.
32076         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32077         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32078         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32079         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
32080         internals.
32081         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
32082         missing.
32083         Suggested by Bruno Haible.
32084
32085 2010-01-01  Jim Meyering  <meyering@redhat.com>
32086
32087         ChangeLog: tweak to eliminate unnecessary copyright line
32088         * ChangeLog: Remove a copyright line that was mistakenly updated
32089         by today's update-copyright run.  Reported by Eric Blake.
32090
32091         test-update-copyright: don't let envvar setting cause test failure
32092         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32093
32094 2010-01-01  Bruno Haible  <bruno@clisp.org>
32095
32096         localename: Avoid gcc warning.
32097         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
32098         function if it is not used.
32099
32100 2010-01-01  Jim Meyering  <meyering@redhat.com>
32101
32102         update nearly all FSF copyright year lists to include 2010
32103         Use the same procedure as for 2009, outlined in
32104         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
32105
32106         version-etc: set COPYRIGHT_YEAR to 2010
32107         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
32108
32109 2009-12-31  Eric Blake  <ebb9@byu.net>
32110
32111         doc: correct availability of cygwin 1.5.x getopt
32112         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
32113         variables.
32114         * doc/posix-functions/opterr.texi (opterr): Likewise.
32115         * doc/posix-functions/optind.texi (optind): Likewise.
32116         * doc/posix-functions/optopt.texi (optopt): Likewise.
32117         * doc/posix-functions/tzname.texi (tzname): Likewise.
32118
32119         openat: update maintainer
32120         * modules/openat (Maintainer): Add myself.
32121
32122         utimens: avoid shadowing warning
32123         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
32124         buffers into one, to avoid shadowing, as well as avoiding a
32125         redundant stat.
32126         Reported by Jim Meyering.
32127
32128         test-dup2: avoid compiler warning
32129         * tests/test-dup2.c (is_inheritable): Only define if used.
32130
32131 2010-01-01  Bruno Haible  <bruno@clisp.org>
32132
32133         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
32134         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
32135         defined, use wctomb instead of wcrtomb.
32136
32137 2010-01-01  Bruno Haible  <bruno@clisp.org>
32138
32139         iconv: Reject native Solaris iconv.
32140         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
32141         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
32142
32143 2009-12-31  Bruno Haible  <bruno@clisp.org>
32144
32145         * tests/test-signal.c (main): Remove test of 'SIG'.
32146
32147 2009-12-31  Bruno Haible  <bruno@clisp.org>
32148
32149         spawn: Fix incomplete fix.
32150         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32151         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32152         warnings for GNULIB_POSIXCHECK again.
32153         Reported by Eric Blake.
32154
32155 2009-12-31  Bruno Haible  <bruno@clisp.org>
32156
32157         Avoid namespace pollution on glibc systems.
32158         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32159         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32160         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32161         glibc systems.
32162
32163 2009-12-31  Bruno Haible  <bruno@clisp.org>
32164
32165         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32166         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32167         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32168         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32169         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32170         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32171         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32172
32173 2009-12-31  Bruno Haible  <bruno@clisp.org>
32174
32175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32176         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32177         afterwards.
32178
32179 2009-12-31  Bruno Haible  <bruno@clisp.org>
32180
32181         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32182         SYS_UTSNAME_H.
32183
32184 2009-12-31  Bruno Haible  <bruno@clisp.org>
32185
32186         spawn: Fix misapplied patch.
32187         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32188         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32189         warnings for GNULIB_POSIXCHECK.
32190
32191 2009-12-31  Bruno Haible  <bruno@clisp.org>
32192
32193         times: Update after sys_times changed.
32194         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32195         * modules/times (Files): Add it.
32196         (configure.ac): Invoke gl_FUNC_TIMES.
32197
32198 2009-12-31  Bruno Haible  <bruno@clisp.org>
32199
32200         Use AC_C_INLINE where necessary.
32201         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32202         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32204         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32205         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32206         * m4/mbiter.m4 (gl_MBITER): Likewise.
32207         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32208         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32209         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32210         * modules/u64 (configure.ac): Likewise.
32211
32212 2009-12-31  Bruno Haible  <bruno@clisp.org>
32213
32214         Use AC_C_INLINE instead of module 'inline' where possible.
32215         * modules/inline (Description): Clarify purpose.
32216         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32217         * modules/count-one-bits (Depends-on): Remove inline.
32218         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32219         * modules/openat (Depends-on): Remove inline.
32220         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32221         instead of depending on module 'inline'.
32222         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32223         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32224         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32225         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32226         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32227         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32228         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32229         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32230         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32231         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32232         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32233         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32234         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32235         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32236         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32237         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32238         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32239         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32240         Likewise.
32241         * modules/unictype/property-ascii-hex-digit (Depends-on,
32242         configure.ac): Likewise.
32243         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32244         configure.ac): Likewise.
32245         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32246         configure.ac): Likewise.
32247         * modules/unictype/property-bidi-block-separator (Depends-on,
32248         configure.ac): Likewise.
32249         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32250         configure.ac): Likewise.
32251         * modules/unictype/property-bidi-common-separator (Depends-on,
32252         configure.ac): Likewise.
32253         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32254         Likewise.
32255         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32256         configure.ac): Likewise.
32257         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32258         configure.ac): Likewise.
32259         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32260         configure.ac): Likewise.
32261         * modules/unictype/property-bidi-european-digit (Depends-on,
32262         configure.ac): Likewise.
32263         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32264         configure.ac): Likewise.
32265         * modules/unictype/property-bidi-left-to-right (Depends-on,
32266         configure.ac): Likewise.
32267         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32268         configure.ac): Likewise.
32269         * modules/unictype/property-bidi-other-neutral (Depends-on,
32270         configure.ac): Likewise.
32271         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32272         Likewise.
32273         * modules/unictype/property-bidi-segment-separator (Depends-on,
32274         configure.ac): Likewise.
32275         * modules/unictype/property-bidi-whitespace (Depends-on,
32276         configure.ac): Likewise.
32277         * modules/unictype/property-combining (Depends-on, configure.ac):
32278         Likewise.
32279         * modules/unictype/property-composite (Depends-on, configure.ac):
32280         Likewise.
32281         * modules/unictype/property-currency-symbol (Depends-on,
32282         configure.ac): Likewise.
32283         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32284         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32285         Likewise.
32286         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32287         configure.ac): Likewise.
32288         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32289         Likewise.
32290         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32291         Likewise.
32292         * modules/unictype/property-extender (Depends-on, configure.ac):
32293         Likewise.
32294         * modules/unictype/property-format-control (Depends-on, configure.ac):
32295         Likewise.
32296         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32297         Likewise.
32298         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32299         Likewise.
32300         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32301         Likewise.
32302         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32303         Likewise.
32304         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32305         Likewise.
32306         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32307         Likewise.
32308         * modules/unictype/property-id-start (Depends-on, configure.ac):
32309         Likewise.
32310         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32311         Likewise.
32312         * modules/unictype/property-ids-binary-operator (Depends-on,
32313         configure.ac): Likewise.
32314         * modules/unictype/property-ids-trinary-operator (Depends-on,
32315         configure.ac): Likewise.
32316         * modules/unictype/property-ignorable-control (Depends-on,
32317         configure.ac): Likewise.
32318         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32319         Likewise.
32320         * modules/unictype/property-join-control (Depends-on, configure.ac):
32321         Likewise.
32322         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32323         Likewise.
32324         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32325         Likewise.
32326         * modules/unictype/property-logical-order-exception (Depends-on,
32327         configure.ac): Likewise.
32328         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32329         Likewise.
32330         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32331         * modules/unictype/property-non-break (Depends-on, configure.ac):
32332         Likewise.
32333         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32334         Likewise.
32335         * modules/unictype/property-numeric (Depends-on, configure.ac):
32336         Likewise.
32337         * modules/unictype/property-other-alphabetic (Depends-on,
32338         configure.ac): Likewise.
32339         * modules/unictype/property-other-default-ignorable-code-point
32340         (Depends-on, configure.ac): Likewise.
32341         * modules/unictype/property-other-grapheme-extend (Depends-on,
32342         configure.ac): Likewise.
32343         * modules/unictype/property-other-id-continue (Depends-on,
32344         configure.ac): Likewise.
32345         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32346         Likewise.
32347         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32348         Likewise.
32349         * modules/unictype/property-other-math (Depends-on, configure.ac):
32350         Likewise.
32351         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32352         Likewise.
32353         * modules/unictype/property-paired-punctuation (Depends-on,
32354         configure.ac): Likewise.
32355         * modules/unictype/property-paragraph-separator (Depends-on,
32356         configure.ac): Likewise.
32357         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32358         Likewise.
32359         * modules/unictype/property-pattern-white-space (Depends-on,
32360         configure.ac): Likewise.
32361         * modules/unictype/property-private-use (Depends-on, configure.ac):
32362         Likewise.
32363         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32364         Likewise.
32365         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32366         Likewise.
32367         * modules/unictype/property-radical (Depends-on, configure.ac):
32368         Likewise.
32369         * modules/unictype/property-sentence-terminal (Depends-on,
32370         configure.ac): Likewise.
32371         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32372         Likewise.
32373         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32374         * modules/unictype/property-terminal-punctuation (Depends-on,
32375         configure.ac): Likewise.
32376         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32377         Likewise.
32378         * modules/unictype/property-unassigned-code-value (Depends-on,
32379         configure.ac): Likewise.
32380         * modules/unictype/property-unified-ideograph (Depends-on,
32381         configure.ac): Likewise.
32382         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32383         Likewise.
32384         * modules/unictype/property-variation-selector (Depends-on,
32385         configure.ac): Likewise.
32386         * modules/unictype/property-white-space (Depends-on, configure.ac):
32387         Likewise.
32388         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32389         Likewise.
32390         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32391         Likewise.
32392         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32393         Likewise.
32394         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32395         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32396         Likewise.
32397
32398 2009-12-31  Bruno Haible  <bruno@clisp.org>
32399
32400         Remove unnecessary AC_C_INLINE invocation.
32401         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32402         since 2009-08-21.
32403
32404 2009-12-31  Jim Meyering  <meyering@redhat.com>
32405
32406         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32407         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32408         With this change, we can all remove the gpg_key_ID = ... definition
32409         from our respective cfg.mk files.
32410
32411         maint.mk: create announcement template in ~/, not in /tmp
32412         * top/maint.mk (emit_upload_commands): Adjust.
32413         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32414         Remove temporary file, .ci-msg.
32415
32416 2009-12-31  Eric Blake  <ebb9@byu.net>
32417
32418         link-warning: always build headers with link warnings
32419         * modules/arpa_inet (Makefile.am): Always build replacement
32420         header.
32421         * modules/ctype (Makefile.am): Likewise.
32422         * modules/dirent (Makefile.am): Likewise.
32423         * modules/inttypes (Makefile.am): Likewise.
32424         * modules/langinfo (Makefile.am): Likewise.
32425         * modules/locale (Makefile.am): Likewise.
32426         * modules/spawn (Makefile.am): Likewise.
32427         * modules/sys_file (Makefile.am): Likewise.
32428         * modules/sys_ioctl (Makefile.am): Likewise.
32429         * modules/sys_select (Makefile.am): Likewise.
32430         * modules/sys_socket (Makefile.am): Likewise.
32431         * modules/sys_times (Makefile.am): Likewise.
32432         * modules/sys_utsname (Makefile.am): Likewise.
32433         * modules/sys_wait (Makefile.am): Likewise.
32434         * modules/wchar (Makefile.am): Likewise.
32435         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32436         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32437         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32438         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32439         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32440         Likewise.
32441         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32442         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32443         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32444         Likewise.
32445         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32446         Likewise.
32447         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32449         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32450         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32453         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32454         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32455         (gl_WCHAR_H_DEFAULTS): Likewise.
32456
32457 2009-12-31  Eric Blake  <ebb9@byu.net>
32458
32459         signal, spawn: use link warnings
32460         * lib/signal.in.h (sigset_t): Make unconditional.
32461         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32462         (sigpending, sigprocmask, sigaction): Add link warnings.
32463         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32464         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32465         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32466         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32467         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32468         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32469         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32470         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32471         (posix_spawn_file_actions_destroy)
32472         (posix_spawn_file_actions_addopen)
32473         (posix_spawn_file_actions_addclose)
32474         (posix_spawn_file_actions_adddup2): Likewise.
32475         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32476         * tests/test-signal.c (main): Enhance test.
32477
32478         spawn: improve wrapper support
32479         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32480         (gl_SPAWN_H_DEFAULTS): New defaults.
32481         * modules/spawn (Makefile.am): Substitute them.
32482         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32483         Only declare if missing or broken.
32484
32485         sys_times, sys_utsname: use include_next
32486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32487         header.
32488         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32490         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32491         * modules/sys_times (Depends-on): Add include_next.
32492         (Makefile.am): Substitute additional values.
32493         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32494         * lib/sys_times.in.h (includes): Include native header, if
32495         available.
32496         * lib/sys_utsname.in.h (includes): Likewise.
32497         * tests/test-sys_times.c (main): Enhance test.
32498
32499         fdutimensat: revert prior patch
32500         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32501         utimens.h.
32502         Reported by Bruno Haible.
32503
32504 2009-12-30  Eric Blake  <ebb9@byu.net>
32505
32506         sys_wait: drop link-warning dependency
32507         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32508         link-warning efforts.
32509         * lib/sys_wait.in.h: Likewise.
32510
32511         fdutimensat: remove bogus dependency
32512         * modules/fdutimensat (Depends-on): Drop inline.
32513
32514         unistd: fix typo
32515         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32516
32517 2009-12-30  Bruno Haible  <bruno@clisp.org>
32518
32519         Fix compilation error with Solaris cc.
32520         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32521         * lib/unicase/u16-is-invariant.c: Likewise.
32522         * lib/unicase/u32-is-invariant.c: Likewise.
32523         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32524
32525 2009-12-30  Bruno Haible  <bruno@clisp.org>
32526
32527         Fix test crash.
32528         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32529         locales.
32530         Reported by Simon Josefsson <simon@josefsson.org>.
32531
32532 2009-12-30  Bruno Haible  <bruno@clisp.org>
32533
32534         Fix compilation error on most platforms.
32535         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32536         Reported by Simon Josefsson <simon@josefsson.org>
32537         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32538
32539 2009-12-30  Eric Blake  <ebb9@byu.net>
32540
32541         futimens, utimensat: work around ntfs-3g bug
32542         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32543         a ctime bug is present, and expand workaround to cover ntfs-3g.
32544         * lib/utimens.c (fdutimens, lutimens): Likewise.
32545         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32546         (validate_timespec): Adjust return value.
32547         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32548         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32549         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32550
32551 2009-12-29  Eric Blake  <ebb9@byu.net>
32552
32553         link-warning: make usage consistent
32554         * modules/ctype (Depends-on): Add link-warning.
32555         (Makefile.am): Update rules accordingly.
32556         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32557         * modules/locale (Depends-on, Makefile.am): Likewise.
32558         * modules/sys_file (Makefile.am): Likewise.
32559         * modules/getopt-posix (Makefile.am): Delete unused link warning
32560         efforts.
32561         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32562         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32563         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32564         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32565
32566         stdio: remove unused variables
32567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32569         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32570
32571         tests: test more substitute headers
32572         * modules/ctype-tests: New file.
32573         * modules/dirent-tests: Likewise.
32574         * modules/spawn-tests: Likewise.
32575         * modules/sys_file-tests: Likewise.
32576         * modules/sys_ioctl-tests: Likewise.
32577         * modules/sys_wait-tests: Likewise.
32578         * tests/test-ctype.c: Likewise.
32579         * tests/test-dirent.c: Likewise.
32580         * tests/test-spawn.c: Likewise.
32581         * tests/test-sys_file.c: Likewise.
32582         * tests/test-sys_ioctl.c: Likewise.
32583         * tests/test-sys_wait.c: Likewise.
32584         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32585         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32586         whether or not flock is in use.
32587
32588         tests: remove License section from module
32589         * modules/arpa_inet-tests: Remove unneeded section.
32590         * modules/byteswap-tests: Likewise.
32591         * modules/ceilf-tests: Likewise.
32592         * modules/ceill-tests: Likewise.
32593         * modules/crypto/des-tests: Likewise.
32594         * modules/crypto/gc-arcfour-tests: Likewise.
32595         * modules/crypto/gc-arctwo-tests: Likewise.
32596         * modules/crypto/gc-des-tests: Likewise.
32597         * modules/crypto/gc-hmac-md5-tests: Likewise.
32598         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32599         * modules/crypto/gc-md2-tests: Likewise.
32600         * modules/crypto/gc-md4-tests: Likewise.
32601         * modules/crypto/gc-md5-tests: Likewise.
32602         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32603         * modules/crypto/gc-rijndael-tests: Likewise.
32604         * modules/crypto/gc-sha1-tests: Likewise.
32605         * modules/crypto/gc-tests: Likewise.
32606         * modules/crypto/md2-tests: Likewise.
32607         * modules/crypto/md4-tests: Likewise.
32608         * modules/fcntl-h-tests: Likewise.
32609         * modules/floorf-tests: Likewise.
32610         * modules/floorl-tests: Likewise.
32611         * modules/frexp-nolibm-tests: Likewise.
32612         * modules/frexp-tests: Likewise.
32613         * modules/frexpl-nolibm-tests: Likewise.
32614         * modules/frexpl-tests: Likewise.
32615         * modules/getaddrinfo-tests: Likewise.
32616         * modules/inttypes-tests: Likewise.
32617         * modules/isfinite-tests: Likewise.
32618         * modules/isinf-tests: Likewise.
32619         * modules/ldexpl-tests: Likewise.
32620         * modules/locale-tests: Likewise.
32621         * modules/math-tests: Likewise.
32622         * modules/netdb-tests: Likewise.
32623         * modules/netinet_in-tests: Likewise.
32624         * modules/printf-frexp-tests: Likewise.
32625         * modules/printf-frexpl-tests: Likewise.
32626         * modules/priv-set-tests: Likewise.
32627         * modules/random_r-tests: Likewise.
32628         * modules/round-tests: Likewise.
32629         * modules/roundf-tests: Likewise.
32630         * modules/roundl-tests: Likewise.
32631         * modules/search-tests: Likewise.
32632         * modules/select-tests: Likewise.
32633         * modules/signal-tests: Likewise.
32634         * modules/stdbool-tests: Likewise.
32635         * modules/stddef-tests: Likewise.
32636         * modules/stdint-tests: Likewise.
32637         * modules/stdio-tests: Likewise.
32638         * modules/stdlib-tests: Likewise.
32639         * modules/string-tests: Likewise.
32640         * modules/strings-tests: Likewise.
32641         * modules/sys_select-tests: Likewise.
32642         * modules/sys_socket-tests: Likewise.
32643         * modules/sys_stat-tests: Likewise.
32644         * modules/sys_time-tests: Likewise.
32645         * modules/sys_utsname-tests: Likewise.
32646         * modules/sysexits-tests: Likewise.
32647         * modules/time-tests: Likewise.
32648         * modules/trunc-tests: Likewise.
32649         * modules/truncf-tests: Likewise.
32650         * modules/truncl-tests: Likewise.
32651         * modules/tsearch-tests: Likewise.
32652         * modules/unistd-tests: Likewise.
32653         * modules/wchar-tests: Likewise.
32654         * modules/wctype-tests: Likewise.
32655
32656         tests: fix license on several tests
32657         * tests/test-des.c: Update to GPLv3+.
32658         * tests/test-flock.c: Likewise.
32659         * tests/test-fsync.c: Likewise.
32660         * tests/test-futimens.h: Likewise.
32661         * tests/test-gc-arcfour.c: Likewise.
32662         * tests/test-gc-arctwo.c: Likewise.
32663         * tests/test-gc-des.c: Likewise.
32664         * tests/test-gc-hmac-md5.c: Likewise.
32665         * tests/test-gc-hmac-sha1.c: Likewise.
32666         * tests/test-gc-md2.c: Likewise.
32667         * tests/test-gc-md4.c: Likewise.
32668         * tests/test-gc-md5.c: Likewise.
32669         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32670         * tests/test-gc-rijndael.c: Likewise.
32671         * tests/test-gc-sha1.c: Likewise.
32672         * tests/test-gc.c: Likewise.
32673         * tests/test-getcwd.c: Likewise.
32674         * tests/test-link.c: Likewise.
32675         * tests/test-link.h: Likewise.
32676         * tests/test-lutimens.h: Likewise.
32677         * tests/test-md2.c: Likewise.
32678         * tests/test-md4.c: Likewise.
32679         * tests/test-mkdir.h: Likewise.
32680         * tests/test-rename.c: Likewise.
32681         * tests/test-rename.h: Likewise.
32682         * tests/test-safe-alloc.c: Likewise.
32683         * tests/test-utimens-common.h: Likewise.
32684         * tests/test-utimens.h: Likewise.
32685
32686         maint: sync license texts
32687         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32688         * doc/gpl-3.0.texi: Revert copyright year update.
32689         * doc/lgpl-3.0.texi: Likewise.
32690
32691 2009-12-29  Jim Meyering  <meyering@redhat.com>
32692
32693         update nearly all FSF copyright year lists to include 2009
32694         The files named by the following are exempted:
32695             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32696               test -f "$dst" && { echo "$dst"; continue; }
32697               test -d "$dst" || continue
32698               echo "$dst"/$(basename "$src")
32699             done > exempt
32700             git ls-files tests/unictype >> exempt
32701         In the remaining files, convert to all-interval notation if
32702         - there is already at least one year interval like 2000-2003
32703         - the file is maintained by me
32704         - the file is in lib/uni*/, where that style already prevails
32705         Otherwise, use update-copyright's default.
32706
32707 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32708         and Eric Blake  <ebb9@byu.net>
32709
32710         tests: don't require debug system() to pass
32711         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32712         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32713         * tests/test-unlink.h (test_unlink_func): Likewise.
32714         * tests/test-fstatat.c (main): ...into callers.
32715         * tests/test-lstat.c (main): Likewise.
32716         * tests/test-rmdir.c (main): Likewise.
32717         * tests/test-unlink.c (main): Likewise.
32718         * tests/test-unlinkat.c (main): Likewise.
32719         * tests/test-areadlink-with-size.c (main): Don't require a
32720         debug-only system call to pass, aiding cross-testing to mingw.
32721         * tests/test-areadlink.c (main): Likewise.
32722         * tests/test-areadlinkat-with-size.c (main): Likewise.
32723         * tests/test-areadlinkat.c (main): Likewise.
32724         * tests/test-canonicalize-lgpl.c (main): Likewise.
32725         * tests/test-canonicalize.c (main): Likewise.
32726         * tests/test-chown.c (main): Likewise.
32727         * tests/test-fchownat.c (main): Likewise.
32728         * tests/test-lchown.c (main): Likewise.
32729         * tests/test-fdutimensat.c (main): Likewise.
32730         * tests/test-futimens.c (main): Likewise.
32731         * tests/test-link.c (main): Likewise.
32732         * tests/test-linkat.c (main): Likewise.
32733         * tests/test-mkdir.c (main): Likewise.
32734         * tests/test-mkdirat.c (main): Likewise.
32735         * tests/test-mkfifo.c (main): Likewise.
32736         * tests/test-mkfifoat.c (main): Likewise.
32737         * tests/test-mknod.c (main): Likewise.
32738         * tests/test-readlink.c (main): Likewise.
32739         * tests/test-remove.c (main): Likewise.
32740         * tests/test-rename.c (main): Likewise.
32741         * tests/test-renameat.c (main): Likewise.
32742         * tests/test-symlink.c (main): Likewise.
32743         * tests/test-symlinkat.c (main): Likewise.
32744         * tests/test-utimens.c (main): Likewise.
32745         * tests/test-utimensat.c (main): Likewise.
32746
32747 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32748
32749         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32750         on $(UNUSED_PARAMETER_H) to avoid build failure.
32751
32752 2009-12-28  Jim Meyering  <meyering@redhat.com>
32753
32754         update-copyright: you may specify a max. line length other than 72
32755         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32756
32757         maint: use consistent FSF copyright line syntax
32758         * lib/posixtm.c: Add missing comma in FSF copyright line.
32759         * lib/posixtm.h: Likewise.
32760         * lib/getugroups.c: Add missing ", Inc.".
32761
32762         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32763         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32764         FSF copyright line.  Remove trailing blanks.
32765
32766 2009-12-28  Eric Blake  <ebb9@byu.net>
32767
32768         test-dup2: reduce dependencies
32769         * modules/cloexec (Configure.ac): Set witness.
32770         * modules/dup2-tests (Depends-on): Drop cloexec.
32771         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32772         not present.
32773         Suggested by Bruno Haible.
32774
32775 2009-12-26  Bruno Haible  <bruno@clisp.org>
32776
32777         Remove an unneeded dependency.
32778         * modules/fseterr (Depends-on): Remove dup2.
32779
32780 2009-12-26  Eric Blake  <ebb9@byu.net>
32781
32782         tests: use macros.h in more places
32783         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32784         (ASSERT_STREAM): Provide default of stderr.
32785         * tests/test-dirent-safer.c: Include macros.h, using alternate
32786         stream for assertions.
32787         * tests/test-dup-safer.c: Likewise.
32788         * tests/test-freopen-safer.c: Likewise.
32789         * tests/test-getopt.c: Likewise.
32790         * tests/test-openat-safer.c: Likewise.
32791         * tests/test-pipe.c: Likewise.
32792         * tests/test-popen-safer.c: Likewise.
32793         * modules/dirent-safer-tests (Files): Include macros.h.
32794         * modules/unistd-safer-tests (Files): Likewise.
32795         * modules/freopen-safer-tests (Files): Likewise.
32796         * modules/getopt-posix-tests (Files): Likewise.
32797         * modules/openat-safer-tests (Files): Likewise.
32798         * modules/pipe-tests (Files): Likewise.
32799
32800 2009-12-26  Bruno Haible  <bruno@clisp.org>
32801
32802         javacomp: Portability fix.
32803         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32804         that it also works on Solaris.
32805
32806 2009-12-26  Bruno Haible  <bruno@clisp.org>
32807
32808         localename: Fix storage allocation of gl_locale_name_thread's result.
32809         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32810         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32811         all platforms that have 'uselocale'.
32812         (gl_locale_name_thread_unsafe): New function, extracted from
32813         gl_locale_name_thread.
32814         (gl_locale_name_thread): Call struniq on all platforms that have
32815         'uselocale'.
32816         * tests/test-localename.c (test_locale_name_thread): Check that the
32817         resulting strings are permanently allocated.
32818         * modules/localename-tests (Depends-on): Add strdup.
32819
32820 2009-12-26  Bruno Haible  <bruno@clisp.org>
32821
32822         * tests/test-localename.c (categories): Fill in the strings.
32823
32824 2009-12-26  Jim Meyering  <meyering@redhat.com>
32825
32826         isdir: complete the removal of m4/isdir.m4
32827         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32828
32829         isdir: clean up, since at least grep still uses it
32830         * lib/isdir.c: Include "isdir.h".
32831         (S_ISDIR): Remove now-unneeded definition.
32832         * modules/isdir (Files): Add lib/isdir.h.
32833         * lib/isdir.h: New file, with declaration.
32834         * m4/isdir.m4: Remove file -- unneeded.
32835
32836 2009-12-25  Bruno Haible  <bruno@clisp.org>
32837
32838         selinux-h: Make generated .h files standalone.
32839         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32840         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32841         * lib/se-selinux.in.h: Likewise.
32842         * modules/selinux-h (Depends-on): Add unused-parameter.
32843         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32844         selinux/selinux.h and selinux/context.h.
32845         Suggested by Eric Blake.
32846
32847 2009-12-25  Bruno Haible  <bruno@clisp.org>
32848
32849         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32850         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32851         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32852         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32853         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32854
32855 2009-12-24  Bruno Haible  <bruno@clisp.org>
32856
32857         openat: Fix warning.
32858         * lib/openat-proc.c: Include <unistd.h>.
32859
32860 2009-12-24  Bruno Haible  <bruno@clisp.org>
32861
32862         New module 'unused-parameter'.
32863         * build-aux/unused-parameter.h: New file, extracted from earlier
32864         gnulib-common.m4.
32865         * modules/unused-parameter: New file.
32866         * lib/unistr.h: Include unused-parameter.h.
32867         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32868         _GL_UNUSED.
32869         * modules/unistr/base (Depends-on): Add unused-parameter.
32870
32871 2009-12-24  Bruno Haible  <bruno@clisp.org>
32872
32873         Add missing dependencies to 'extensions' module.
32874         * m4/extensions.m4: Add comment.
32875         * modules/accept4 (Depends-on): Add extensions.
32876         * modules/dup3 (Depends-on): Likewise.
32877         * modules/fcntl (Depends-on): Likewise.
32878         * modules/futimens (Depends-on): Likewise.
32879         * modules/mknod (Depends-on): Likewise.
32880         * modules/pipe2 (Depends-on): Likewise.
32881         * modules/stat-time (Depends-on): Likewise.
32882         * modules/strcasestr-simple (Depends-on): Likewise.
32883         * modules/strsignal (Depends-on): Likewise.
32884         * modules/utimensat (Depends-on): Likewise.
32885         * modules/localcharset (Depends-on): Likewise. Needed because of
32886         gl_FCNTL_O_FLAGS.
32887         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32888         AC_TYPE_MBSTATE_T.
32889         * modules/wcsnrtombs (Depends-on): Likewise.
32890         * modules/wcsrtombs (Depends-on): Likewise.
32891
32892 2009-12-24  Bruno Haible  <bruno@clisp.org>
32893
32894         binary-io: Avoid gcc warning due to SET_BINARY.
32895         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32896         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32897
32898 2009-12-24  Bruno Haible  <bruno@clisp.org>
32899
32900         Avoid future namespace pollution on glibc systems.
32901         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32902         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32903         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32904         glibc systems.
32905
32906 2009-12-24  Bruno Haible  <bruno@clisp.org>
32907
32908         Refactor common macros used in tests.
32909         * tests/macros.h: New file.
32910         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32911         and/or <stdlib.h>, if appropriate.
32912         (ASSERT, SIZEOF): Remove macros.
32913         * tests/test-areadlink-with-size.c: Likewise.
32914         * tests/test-areadlinkat.c: Likewise.
32915         * tests/test-areadlinkat-with-size.c: Likewise.
32916         * tests/test-argmatch.c: Likewise.
32917         * tests/test-argv-iter.c: Likewise.
32918         * tests/test-array-mergesort.c: Likewise.
32919         * tests/test-array_list.c: Likewise.
32920         * tests/test-array_oset.c: Likewise.
32921         * tests/test-avltree_list.c: Likewise.
32922         * tests/test-avltree_oset.c: Likewise.
32923         * tests/test-avltreehash_list.c: Likewise.
32924         * tests/test-base64.c: Likewise.
32925         * tests/test-binary-io.c: Likewise.
32926         * tests/test-bitrotate.c: Likewise.
32927         * tests/test-btowc.c: Likewise.
32928         * tests/test-byteswap.c: Likewise.
32929         * tests/test-c-ctype.c: Likewise.
32930         * tests/test-c-stack.c: Likewise.
32931         * tests/test-c-strcasecmp.c: Likewise.
32932         * tests/test-c-strcasestr.c: Likewise.
32933         * tests/test-c-strncasecmp.c: Likewise.
32934         * tests/test-c-strstr.c: Likewise.
32935         * tests/test-canonicalize-lgpl.c: Likewise.
32936         * tests/test-canonicalize.c: Likewise.
32937         * tests/test-carray_list.c: Likewise.
32938         * tests/test-ceilf1.c: Likewise.
32939         * tests/test-ceilf2.c: Likewise.
32940         * tests/test-ceill.c: Likewise.
32941         * tests/test-chown.c: Likewise.
32942         * tests/test-cloexec.c: Likewise.
32943         * tests/test-copy-acl.c: Likewise.
32944         * tests/test-copy-file.c: Likewise.
32945         * tests/test-count-one-bits.c: Likewise.
32946         * tests/test-dprintf-posix.c: Likewise.
32947         * tests/test-dup2.c: Likewise.
32948         * tests/test-dup3.c: Likewise.
32949         * tests/test-duplocale.c: Likewise.
32950         * tests/test-fbufmode.c: Likewise.
32951         * tests/test-fchdir.c: Likewise.
32952         * tests/test-fchownat.c: Likewise.
32953         * tests/test-fcntl-safer.c: Likewise.
32954         * tests/test-fcntl.c: Likewise.
32955         * tests/test-fdopendir.c: Likewise.
32956         * tests/test-fdutimensat.c: Likewise.
32957         * tests/test-fflush2.c: Likewise.
32958         * tests/test-file-has-acl.c: Likewise.
32959         * tests/test-filevercmp.c: Likewise.
32960         * tests/test-flock.c: Likewise.
32961         * tests/test-floorf1.c: Likewise.
32962         * tests/test-floorf2.c: Likewise.
32963         * tests/test-floorl.c: Likewise.
32964         * tests/test-fnmatch.c: Likewise.
32965         * tests/test-fopen.h: Likewise.
32966         * tests/test-fpending.c: Likewise.
32967         * tests/test-fprintf-posix.c: Likewise.
32968         * tests/test-fpurge.c: Likewise.
32969         * tests/test-freadable.c: Likewise.
32970         * tests/test-freadahead.c: Likewise.
32971         * tests/test-freading.c: Likewise.
32972         * tests/test-freadptr.c: Likewise.
32973         * tests/test-freadptr2.c: Likewise.
32974         * tests/test-freadseek.c: Likewise.
32975         * tests/test-freopen.c: Likewise.
32976         * tests/test-frexp.c: Likewise.
32977         * tests/test-frexpl.c: Likewise.
32978         * tests/test-fseek.c: Likewise.
32979         * tests/test-fseeko.c: Likewise.
32980         * tests/test-fstatat.c: Likewise.
32981         * tests/test-fstrcmp.c: Likewise.
32982         * tests/test-fsync.c: Likewise.
32983         * tests/test-ftell.c: Likewise.
32984         * tests/test-ftello.c: Likewise.
32985         * tests/test-func.c: Likewise.
32986         * tests/test-futimens.c: Likewise.
32987         * tests/test-fwritable.c: Likewise.
32988         * tests/test-fwriting.c: Likewise.
32989         * tests/test-getcwd.c: Likewise.
32990         * tests/test-getdate.c: Likewise.
32991         * tests/test-getdelim.c: Likewise.
32992         * tests/test-getdtablesize.c: Likewise.
32993         * tests/test-getgroups.c: Likewise.
32994         * tests/test-getline.c: Likewise.
32995         * tests/test-getndelim2.c: Likewise.
32996         * tests/test-glob.c: Likewise.
32997         * tests/test-hash.c: Likewise.
32998         * tests/test-i-ring.c: Likewise.
32999         * tests/test-iconv-utf.c: Likewise.
33000         * tests/test-iconv.c: Likewise.
33001         * tests/test-idpriv-drop.c: Likewise.
33002         * tests/test-idpriv-droptemp.c: Likewise.
33003         * tests/test-inet_ntop.c: Likewise.
33004         * tests/test-inet_pton.c: Likewise.
33005         * tests/test-isblank.c: Likewise.
33006         * tests/test-isfinite.c: Likewise.
33007         * tests/test-isinf.c: Likewise.
33008         * tests/test-isnan.c: Likewise.
33009         * tests/test-isnand.h: Likewise.
33010         * tests/test-isnanf.h: Likewise.
33011         * tests/test-isnanl.h: Likewise.
33012         * tests/test-lchown.c: Likewise.
33013         * tests/test-ldexpl.c: Likewise.
33014         * tests/test-link.c: Likewise.
33015         * tests/test-linkat.c: Likewise.
33016         * tests/test-linked_list.c: Likewise.
33017         * tests/test-linkedhash_list.c: Likewise.
33018         * tests/test-localename.c: Likewise.
33019         * tests/test-lseek.c: Likewise.
33020         * tests/test-lstat.c: Likewise.
33021         * tests/test-mbmemcasecmp.c: Likewise.
33022         * tests/test-mbmemcasecoll.c: Likewise.
33023         * tests/test-mbrtowc.c: Likewise.
33024         * tests/test-mbscasecmp.c: Likewise.
33025         * tests/test-mbscasestr1.c: Likewise.
33026         * tests/test-mbscasestr2.c: Likewise.
33027         * tests/test-mbscasestr3.c: Likewise.
33028         * tests/test-mbscasestr4.c: Likewise.
33029         * tests/test-mbschr.c: Likewise.
33030         * tests/test-mbscspn.c: Likewise.
33031         * tests/test-mbsinit.c: Likewise.
33032         * tests/test-mbsncasecmp.c: Likewise.
33033         * tests/test-mbsnrtowcs.c: Likewise.
33034         * tests/test-mbspbrk.c: Likewise.
33035         * tests/test-mbspcasecmp.c: Likewise.
33036         * tests/test-mbsrchr.c: Likewise.
33037         * tests/test-mbsrtowcs.c: Likewise.
33038         * tests/test-mbsspn.c: Likewise.
33039         * tests/test-mbsstr1.c: Likewise.
33040         * tests/test-mbsstr2.c: Likewise.
33041         * tests/test-mbsstr3.c: Likewise.
33042         * tests/test-memchr.c: Likewise.
33043         * tests/test-memchr2.c: Likewise.
33044         * tests/test-memcmp.c: Likewise.
33045         * tests/test-memmem.c: Likewise.
33046         * tests/test-memrchr.c: Likewise.
33047         * tests/test-mkdir.c: Likewise.
33048         * tests/test-mkdirat.c: Likewise.
33049         * tests/test-mkfifo.c: Likewise.
33050         * tests/test-mkfifoat.c: Likewise.
33051         * tests/test-mknod.c: Likewise.
33052         * tests/test-nanosleep.c: Likewise.
33053         * tests/test-nl_langinfo.c: Likewise.
33054         * tests/test-obstack-printf.c: Likewise.
33055         * tests/test-open.c: Likewise.
33056         * tests/test-openat.c: Likewise.
33057         * tests/test-pipe-filter-gi1.c: Likewise.
33058         * tests/test-pipe-filter-gi2-main.c: Likewise.
33059         * tests/test-pipe-filter-ii1.c: Likewise.
33060         * tests/test-pipe-filter-ii2-main.c: Likewise.
33061         * tests/test-pipe2.c: Likewise.
33062         * tests/test-popen.h: Likewise.
33063         * tests/test-posixtm.c: Likewise.
33064         * tests/test-pread.c: Likewise.
33065         * tests/test-printf-frexp.c: Likewise.
33066         * tests/test-printf-frexpl.c: Likewise.
33067         * tests/test-printf-posix.c: Likewise.
33068         * tests/test-priv-set.c: Likewise.
33069         * tests/test-quotearg.c: Likewise.
33070         * tests/test-random_r.c: Likewise.
33071         * tests/test-rawmemchr.c: Likewise.
33072         * tests/test-rbtree_list.c: Likewise.
33073         * tests/test-rbtree_oset.c: Likewise.
33074         * tests/test-rbtreehash_list.c: Likewise.
33075         * tests/test-readlink.c: Likewise.
33076         * tests/test-remove.c: Likewise.
33077         * tests/test-rename.c: Likewise.
33078         * tests/test-renameat.c: Likewise.
33079         * tests/test-rmdir.c: Likewise.
33080         * tests/test-round1.c: Likewise.
33081         * tests/test-roundf1.c: Likewise.
33082         * tests/test-roundl.c: Likewise.
33083         * tests/test-safe-alloc.c: Likewise.
33084         * tests/test-sameacls.c: Likewise.
33085         * tests/test-set-mode-acl.c: Likewise.
33086         * tests/test-setenv.c: Likewise.
33087         * tests/test-sigaction.c: Likewise.
33088         * tests/test-signbit.c: Likewise.
33089         * tests/test-sleep.c: Likewise.
33090         * tests/test-snprintf-posix.c: Likewise.
33091         * tests/test-snprintf.c: Likewise.
33092         * tests/test-sprintf-posix.c: Likewise.
33093         * tests/test-stat-time.c: Likewise.
33094         * tests/test-stat.c: Likewise.
33095         * tests/test-strcasestr.c: Likewise.
33096         * tests/test-strchrnul.c: Likewise.
33097         * tests/test-strerror.c: Likewise.
33098         * tests/test-striconv.c: Likewise.
33099         * tests/test-striconveh.c: Likewise.
33100         * tests/test-striconveha.c: Likewise.
33101         * tests/test-strsignal.c: Likewise.
33102         * tests/test-strstr.c: Likewise.
33103         * tests/test-strtod.c: Likewise.
33104         * tests/test-strverscmp.c: Likewise.
33105         * tests/test-symlink.c: Likewise.
33106         * tests/test-symlinkat.c: Likewise.
33107         * tests/test-trunc1.c: Likewise.
33108         * tests/test-trunc2.c: Likewise.
33109         * tests/test-truncf1.c: Likewise.
33110         * tests/test-truncf2.c: Likewise.
33111         * tests/test-truncl.c: Likewise.
33112         * tests/test-uname.c: Likewise.
33113         * tests/test-unlink.c: Likewise.
33114         * tests/test-unlinkat.c: Likewise.
33115         * tests/test-unsetenv.c: Likewise.
33116         * tests/test-usleep.c: Likewise.
33117         * tests/test-utimens.c: Likewise.
33118         * tests/test-utimensat.c: Likewise.
33119         * tests/test-vasnprintf-posix.c: Likewise.
33120         * tests/test-vasnprintf-posix2.c: Likewise.
33121         * tests/test-vasnprintf.c: Likewise.
33122         * tests/test-vasprintf-posix.c: Likewise.
33123         * tests/test-vasprintf.c: Likewise.
33124         * tests/test-vdprintf-posix.c: Likewise.
33125         * tests/test-vfprintf-posix.c: Likewise.
33126         * tests/test-vprintf-posix.c: Likewise.
33127         * tests/test-vsnprintf-posix.c: Likewise.
33128         * tests/test-vsnprintf.c: Likewise.
33129         * tests/test-vsprintf-posix.c: Likewise.
33130         * tests/test-wcrtomb.c: Likewise.
33131         * tests/test-wcsnrtombs.c: Likewise.
33132         * tests/test-wcsrtombs.c: Likewise.
33133         * tests/test-wctype.c: Likewise.
33134         * tests/test-wcwidth.c: Likewise.
33135         * tests/test-xfprintf-posix.c: Likewise.
33136         * tests/test-xmemdup0.c: Likewise.
33137         * tests/test-xprintf-posix.c: Likewise.
33138         * tests/test-xvasprintf.c: Likewise.
33139         * tests/unicase/test-locale-language.c: Likewise.
33140         * tests/unicase/test-mapping-part1.h: Likewise.
33141         * tests/unicase/test-predicate-part1.h: Likewise.
33142         * tests/unicase/test-u8-casecmp.c: Likewise.
33143         * tests/unicase/test-u8-casecoll.c: Likewise.
33144         * tests/unicase/test-u8-casefold.c: Likewise.
33145         * tests/unicase/test-u8-is-cased.c: Likewise.
33146         * tests/unicase/test-u8-is-casefolded.c: Likewise.
33147         * tests/unicase/test-u8-is-lowercase.c: Likewise.
33148         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33149         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33150         * tests/unicase/test-u8-tolower.c: Likewise.
33151         * tests/unicase/test-u8-totitle.c: Likewise.
33152         * tests/unicase/test-u8-toupper.c: Likewise.
33153         * tests/unicase/test-u16-casecmp.c: Likewise.
33154         * tests/unicase/test-u16-casecoll.c: Likewise.
33155         * tests/unicase/test-u16-casefold.c: Likewise.
33156         * tests/unicase/test-u16-is-cased.c: Likewise.
33157         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33158         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33159         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33160         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33161         * tests/unicase/test-u16-tolower.c: Likewise.
33162         * tests/unicase/test-u16-totitle.c: Likewise.
33163         * tests/unicase/test-u16-toupper.c: Likewise.
33164         * tests/unicase/test-u32-casecmp.c: Likewise.
33165         * tests/unicase/test-u32-casecoll.c: Likewise.
33166         * tests/unicase/test-u32-casefold.c: Likewise.
33167         * tests/unicase/test-u32-is-cased.c: Likewise.
33168         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33169         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33170         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33171         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33172         * tests/unicase/test-u32-tolower.c: Likewise.
33173         * tests/unicase/test-u32-totitle.c: Likewise.
33174         * tests/unicase/test-u32-toupper.c: Likewise.
33175         * tests/unicase/test-ulc-casecmp.c: Likewise.
33176         * tests/unicase/test-ulc-casecoll.c: Likewise.
33177         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33178         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33179         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33180         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33181         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33182         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33183         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33184         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33185         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33186         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33187         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33188         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33189         * tests/unictype/test-bidi_byname.c: Likewise.
33190         * tests/unictype/test-bidi_name.c: Likewise.
33191         * tests/unictype/test-bidi_of.c: Likewise.
33192         * tests/unictype/test-bidi_test.c: Likewise.
33193         * tests/unictype/test-block_list.c: Likewise.
33194         * tests/unictype/test-block_of.c: Likewise.
33195         * tests/unictype/test-block_test.c: Likewise.
33196         * tests/unictype/test-categ_and.c: Likewise.
33197         * tests/unictype/test-categ_and_not.c: Likewise.
33198         * tests/unictype/test-categ_byname.c: Likewise.
33199         * tests/unictype/test-categ_name.c: Likewise.
33200         * tests/unictype/test-categ_none.c: Likewise.
33201         * tests/unictype/test-categ_of.c: Likewise.
33202         * tests/unictype/test-categ_or.c: Likewise.
33203         * tests/unictype/test-categ_test_withtable.c: Likewise.
33204         * tests/unictype/test-combining.c: Likewise.
33205         * tests/unictype/test-decdigit.c: Likewise.
33206         * tests/unictype/test-digit.c: Likewise.
33207         * tests/unictype/test-mirror.c: Likewise.
33208         * tests/unictype/test-numeric.c: Likewise.
33209         * tests/unictype/test-pr_byname.c: Likewise.
33210         * tests/unictype/test-pr_test.c: Likewise.
33211         * tests/unictype/test-predicate-part1.h: Likewise.
33212         * tests/unictype/test-scripts.c: Likewise.
33213         * tests/unictype/test-sy_c_ident.c: Likewise.
33214         * tests/unictype/test-sy_java_ident.c: Likewise.
33215         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33216         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33217         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33218         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33219         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33220         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33221         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33222         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33223         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33224         * tests/uninorm/test-compat-decomposition.c: Likewise.
33225         * tests/uninorm/test-composition.c: Likewise.
33226         * tests/uninorm/test-decomposing-form.c: Likewise.
33227         * tests/uninorm/test-decomposition.c: Likewise.
33228         * tests/uninorm/test-u8-nfc.c: Likewise.
33229         * tests/uninorm/test-u8-nfd.c: Likewise.
33230         * tests/uninorm/test-u8-nfkc.c: Likewise.
33231         * tests/uninorm/test-u8-nfkd.c: Likewise.
33232         * tests/uninorm/test-u8-normcmp.c: Likewise.
33233         * tests/uninorm/test-u8-normcoll.c: Likewise.
33234         * tests/uninorm/test-u16-nfc.c: Likewise.
33235         * tests/uninorm/test-u16-nfd.c: Likewise.
33236         * tests/uninorm/test-u16-nfkc.c: Likewise.
33237         * tests/uninorm/test-u16-nfkd.c: Likewise.
33238         * tests/uninorm/test-u16-normcmp.c: Likewise.
33239         * tests/uninorm/test-u16-normcoll.c: Likewise.
33240         * tests/uninorm/test-u32-nfc.c: Likewise.
33241         * tests/uninorm/test-u32-nfd.c: Likewise.
33242         * tests/uninorm/test-u32-nfkc.c: Likewise.
33243         * tests/uninorm/test-u32-nfkd.c: Likewise.
33244         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33245         * tests/uninorm/test-u32-normcmp.c: Likewise.
33246         * tests/uninorm/test-u32-normcoll.c: Likewise.
33247         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33248         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33249         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33250         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33251         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33252         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33253         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33254         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33255         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33256         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33257         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33258         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33259         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33260         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33261         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33262         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33263         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33264         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33265         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33266         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33267         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33268         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33269         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33270         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33271         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33272         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33273         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33274         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33275         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33276         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33277         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33278         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33279         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33280         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33281         * tests/uniwidth/test-u8-width.c: Likewise.
33282         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33283         * tests/uniwidth/test-u16-width.c: Likewise.
33284         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33285         * tests/uniwidth/test-u32-width.c: Likewise.
33286         * tests/uniwidth/test-uc_width.c: Likewise.
33287         * tests/uniwidth/test-uc_width2.c: Likewise.
33288         * modules/acl-tests (Files): Add tests/macros.h.
33289         * modules/areadlink-tests (Files): Likewise.
33290         * modules/areadlink-with-size-tests (Files): Likewise.
33291         * modules/areadlinkat-tests (Files): Likewise.
33292         * modules/areadlinkat-with-size-tests (Files): Likewise.
33293         * modules/argmatch-tests (Files): Likewise.
33294         * modules/argv-iter-tests (Files): Likewise.
33295         * modules/array-list-tests (Files): Likewise.
33296         * modules/array-mergesort-tests (Files): Likewise.
33297         * modules/array-oset-tests (Files): Likewise.
33298         * modules/avltree-list-tests (Files): Likewise.
33299         * modules/avltree-oset-tests (Files): Likewise.
33300         * modules/avltreehash-list-tests (Files): Likewise.
33301         * modules/base64-tests (Files): Likewise.
33302         * modules/binary-io-tests (Files): Likewise.
33303         * modules/bitrotate-tests (Files): Likewise.
33304         * modules/btowc-tests (Files): Likewise.
33305         * modules/byteswap-tests (Files): Likewise.
33306         * modules/c-ctype-tests (Files): Likewise.
33307         * modules/c-stack-tests (Files): Likewise.
33308         * modules/c-strcase-tests (Files): Likewise.
33309         * modules/c-strcasestr-tests (Files): Likewise.
33310         * modules/c-strstr-tests (Files): Likewise.
33311         * modules/canonicalize-lgpl-tests (Files): Likewise.
33312         * modules/canonicalize-tests (Files): Likewise.
33313         * modules/carray-list-tests (Files): Likewise.
33314         * modules/ceilf-tests (Files): Likewise.
33315         * modules/ceill-tests (Files): Likewise.
33316         * modules/chown-tests (Files): Likewise.
33317         * modules/cloexec-tests (Files): Likewise.
33318         * modules/copy-file-tests (Files): Likewise.
33319         * modules/count-one-bits-tests (Files): Likewise.
33320         * modules/dprintf-posix-tests (Files): Likewise.
33321         * modules/dup2-tests (Files): Likewise.
33322         * modules/dup3-tests (Files): Likewise.
33323         * modules/duplocale-tests (Files): Likewise.
33324         * modules/fbufmode-tests (Files): Likewise.
33325         * modules/fchdir-tests (Files): Likewise.
33326         * modules/fcntl-safer-tests (Files): Likewise.
33327         * modules/fcntl-tests (Files): Likewise.
33328         * modules/fdopendir-tests (Files): Likewise.
33329         * modules/fdutimensat-tests (Files): Likewise.
33330         * modules/fflush-tests (Files): Likewise.
33331         * modules/filevercmp-tests (Files): Likewise.
33332         * modules/flock-tests (Files): Likewise.
33333         * modules/floorf-tests (Files): Likewise.
33334         * modules/floorl-tests (Files): Likewise.
33335         * modules/fnmatch-tests (Files): Likewise.
33336         * modules/fopen-safer-tests (Files): Likewise.
33337         * modules/fopen-tests (Files): Likewise.
33338         * modules/fpending-tests (Files): Likewise.
33339         * modules/fprintf-posix-tests (Files): Likewise.
33340         * modules/fpurge-tests (Files): Likewise.
33341         * modules/freadable-tests (Files): Likewise.
33342         * modules/freadahead-tests (Files): Likewise.
33343         * modules/freading-tests (Files): Likewise.
33344         * modules/freadptr-tests (Files): Likewise.
33345         * modules/freadseek-tests (Files): Likewise.
33346         * modules/freopen-tests (Files): Likewise.
33347         * modules/frexp-nolibm-tests (Files): Likewise.
33348         * modules/frexp-tests (Files): Likewise.
33349         * modules/frexpl-nolibm-tests (Files): Likewise.
33350         * modules/frexpl-tests (Files): Likewise.
33351         * modules/fseek-tests (Files): Likewise.
33352         * modules/fseeko-tests (Files): Likewise.
33353         * modules/fstrcmp-tests (Files): Likewise.
33354         * modules/fsync-tests (Files): Likewise.
33355         * modules/ftell-tests (Files): Likewise.
33356         * modules/ftello-tests (Files): Likewise.
33357         * modules/func-tests (Files): Likewise.
33358         * modules/futimens-tests (Files): Likewise.
33359         * modules/fwritable-tests (Files): Likewise.
33360         * modules/fwriting-tests (Files): Likewise.
33361         * modules/getcwd-tests (Files): Likewise.
33362         * modules/getdate-tests (Files): Likewise.
33363         * modules/getdelim-tests (Files): Likewise.
33364         * modules/getdtablesize-tests (Files): Likewise.
33365         * modules/getgroups-tests (Files): Likewise.
33366         * modules/getline-tests (Files): Likewise.
33367         * modules/getndelim2-tests (Files): Likewise.
33368         * modules/glob-tests (Files): Likewise.
33369         * modules/hash-tests (Files): Likewise.
33370         * modules/i-ring-tests (Files): Likewise.
33371         * modules/iconv-tests (Files): Likewise.
33372         * modules/iconv_open-utf-tests (Files): Likewise.
33373         * modules/idpriv-drop-tests (Files): Likewise.
33374         * modules/idpriv-droptemp-tests (Files): Likewise.
33375         * modules/inet_ntop-tests (Files): Likewise.
33376         * modules/inet_pton-tests (Files): Likewise.
33377         * modules/isblank-tests (Files): Likewise.
33378         * modules/isfinite-tests (Files): Likewise.
33379         * modules/isinf-tests (Files): Likewise.
33380         * modules/isnan-tests (Files): Likewise.
33381         * modules/isnand-nolibm-tests (Files): Likewise.
33382         * modules/isnand-tests (Files): Likewise.
33383         * modules/isnanf-nolibm-tests (Files): Likewise.
33384         * modules/isnanf-tests (Files): Likewise.
33385         * modules/isnanl-nolibm-tests (Files): Likewise.
33386         * modules/isnanl-tests (Files): Likewise.
33387         * modules/lchown-tests (Files): Likewise.
33388         * modules/ldexpl-tests (Files): Likewise.
33389         * modules/link-tests (Files): Likewise.
33390         * modules/linkat-tests (Files): Likewise.
33391         * modules/linked-list-tests (Files): Likewise.
33392         * modules/linkedhash-list-tests (Files): Likewise.
33393         * modules/localename-tests (Files): Likewise.
33394         * modules/lseek-tests (Files): Likewise.
33395         * modules/lstat-tests (Files): Likewise.
33396         * modules/mbmemcasecmp-tests (Files): Likewise.
33397         * modules/mbmemcasecoll-tests (Files): Likewise.
33398         * modules/mbrtowc-tests (Files): Likewise.
33399         * modules/mbscasecmp-tests (Files): Likewise.
33400         * modules/mbscasestr-tests (Files): Likewise.
33401         * modules/mbschr-tests (Files): Likewise.
33402         * modules/mbscspn-tests (Files): Likewise.
33403         * modules/mbsinit-tests (Files): Likewise.
33404         * modules/mbsncasecmp-tests (Files): Likewise.
33405         * modules/mbsnrtowcs-tests (Files): Likewise.
33406         * modules/mbspbrk-tests (Files): Likewise.
33407         * modules/mbspcasecmp-tests (Files): Likewise.
33408         * modules/mbsrchr-tests (Files): Likewise.
33409         * modules/mbsrtowcs-tests (Files): Likewise.
33410         * modules/mbsspn-tests (Files): Likewise.
33411         * modules/mbsstr-tests (Files): Likewise.
33412         * modules/memchr-tests (Files): Likewise.
33413         * modules/memchr2-tests (Files): Likewise.
33414         * modules/memcmp-tests (Files): Likewise.
33415         * modules/memmem-tests (Files): Likewise.
33416         * modules/memrchr-tests (Files): Likewise.
33417         * modules/mkdir-tests (Files): Likewise.
33418         * modules/mkfifo-tests (Files): Likewise.
33419         * modules/mkfifoat-tests (Files): Likewise.
33420         * modules/mknod-tests (Files): Likewise.
33421         * modules/nanosleep-tests (Files): Likewise.
33422         * modules/nl_langinfo-tests (Files): Likewise.
33423         * modules/obstack-printf-tests (Files): Likewise.
33424         * modules/open-tests (Files): Likewise.
33425         * modules/openat-tests (Files): Likewise.
33426         * modules/pipe-filter-gi-tests (Files): Likewise.
33427         * modules/pipe-filter-ii-tests (Files): Likewise.
33428         * modules/pipe2-tests (Files): Likewise.
33429         * modules/popen-safer-tests (Files): Likewise.
33430         * modules/popen-tests (Files): Likewise.
33431         * modules/posixtm-tests (Files): Likewise.
33432         * modules/pread-tests (Files): Likewise.
33433         * modules/printf-frexp-tests (Files): Likewise.
33434         * modules/printf-frexpl-tests (Files): Likewise.
33435         * modules/printf-posix-tests (Files): Likewise.
33436         * modules/priv-set-tests (Files): Likewise.
33437         * modules/quotearg-tests (Files): Likewise.
33438         * modules/random_r-tests (Files): Likewise.
33439         * modules/rawmemchr-tests (Files): Likewise.
33440         * modules/rbtree-list-tests (Files): Likewise.
33441         * modules/rbtree-oset-tests (Files): Likewise.
33442         * modules/rbtreehash-list-tests (Files): Likewise.
33443         * modules/readlink-tests (Files): Likewise.
33444         * modules/remove-tests (Files): Likewise.
33445         * modules/rename-tests (Files): Likewise.
33446         * modules/renameat-tests (Files): Likewise.
33447         * modules/rmdir-tests (Files): Likewise.
33448         * modules/round-tests (Files): Likewise.
33449         * modules/roundf-tests (Files): Likewise.
33450         * modules/roundl-tests (Files): Likewise.
33451         * modules/safe-alloc-tests (Files): Likewise.
33452         * modules/setenv-tests (Files): Likewise.
33453         * modules/sigaction-tests (Files): Likewise.
33454         * modules/signbit-tests (Files): Likewise.
33455         * modules/sleep-tests (Files): Likewise.
33456         * modules/snprintf-posix-tests (Files): Likewise.
33457         * modules/snprintf-tests (Files): Likewise.
33458         * modules/sprintf-posix-tests (Files): Likewise.
33459         * modules/stat-tests (Files): Likewise.
33460         * modules/stat-time-tests (Files): Likewise.
33461         * modules/strcasestr-tests (Files): Likewise.
33462         * modules/strchrnul-tests (Files): Likewise.
33463         * modules/strerror-tests (Files): Likewise.
33464         * modules/striconv-tests (Files): Likewise.
33465         * modules/striconveh-tests (Files): Likewise.
33466         * modules/striconveha-tests (Files): Likewise.
33467         * modules/strsignal-tests (Files): Likewise.
33468         * modules/strstr-tests (Files): Likewise.
33469         * modules/strtod-tests (Files): Likewise.
33470         * modules/strverscmp-tests (Files): Likewise.
33471         * modules/symlink-tests (Files): Likewise.
33472         * modules/symlinkat-tests (Files): Likewise.
33473         * modules/trunc-tests (Files): Likewise.
33474         * modules/truncf-tests (Files): Likewise.
33475         * modules/truncl-tests (Files): Likewise.
33476         * modules/uname-tests (Files): Likewise.
33477         * modules/unicase/cased-tests (Files): Likewise.
33478         * modules/unicase/ignorable-tests (Files): Likewise.
33479         * modules/unicase/locale-language-tests (Files): Likewise.
33480         * modules/unicase/tolower-tests (Files): Likewise.
33481         * modules/unicase/totitle-tests (Files): Likewise.
33482         * modules/unicase/toupper-tests (Files): Likewise.
33483         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33484         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33485         * modules/unicase/u8-casefold-tests (Files): Likewise.
33486         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33487         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33488         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33489         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33490         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33491         * modules/unicase/u8-tolower-tests (Files): Likewise.
33492         * modules/unicase/u8-totitle-tests (Files): Likewise.
33493         * modules/unicase/u8-toupper-tests (Files): Likewise.
33494         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33495         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33496         * modules/unicase/u16-casefold-tests (Files): Likewise.
33497         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33498         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33499         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33500         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33501         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33502         * modules/unicase/u16-tolower-tests (Files): Likewise.
33503         * modules/unicase/u16-totitle-tests (Files): Likewise.
33504         * modules/unicase/u16-toupper-tests (Files): Likewise.
33505         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33506         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33507         * modules/unicase/u32-casefold-tests (Files): Likewise.
33508         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33509         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33510         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33511         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33512         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33513         * modules/unicase/u32-tolower-tests (Files): Likewise.
33514         * modules/unicase/u32-totitle-tests (Files): Likewise.
33515         * modules/unicase/u32-toupper-tests (Files): Likewise.
33516         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33517         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33518         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33519         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33520         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33521         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33522         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33523         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33524         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33525         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33526         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33527         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33528         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33529         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33530         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33531         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33532         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33533         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33534         * modules/unictype/block-list-tests (Files): Likewise.
33535         * modules/unictype/block-of-tests (Files): Likewise.
33536         * modules/unictype/block-test-tests (Files): Likewise.
33537         * modules/unictype/category-C-tests (Files): Likewise.
33538         * modules/unictype/category-Cc-tests (Files): Likewise.
33539         * modules/unictype/category-Cf-tests (Files): Likewise.
33540         * modules/unictype/category-Cn-tests (Files): Likewise.
33541         * modules/unictype/category-Co-tests (Files): Likewise.
33542         * modules/unictype/category-Cs-tests (Files): Likewise.
33543         * modules/unictype/category-L-tests (Files): Likewise.
33544         * modules/unictype/category-Ll-tests (Files): Likewise.
33545         * modules/unictype/category-Lm-tests (Files): Likewise.
33546         * modules/unictype/category-Lo-tests (Files): Likewise.
33547         * modules/unictype/category-Lt-tests (Files): Likewise.
33548         * modules/unictype/category-Lu-tests (Files): Likewise.
33549         * modules/unictype/category-M-tests (Files): Likewise.
33550         * modules/unictype/category-Mc-tests (Files): Likewise.
33551         * modules/unictype/category-Me-tests (Files): Likewise.
33552         * modules/unictype/category-Mn-tests (Files): Likewise.
33553         * modules/unictype/category-N-tests (Files): Likewise.
33554         * modules/unictype/category-Nd-tests (Files): Likewise.
33555         * modules/unictype/category-Nl-tests (Files): Likewise.
33556         * modules/unictype/category-No-tests (Files): Likewise.
33557         * modules/unictype/category-P-tests (Files): Likewise.
33558         * modules/unictype/category-Pc-tests (Files): Likewise.
33559         * modules/unictype/category-Pd-tests (Files): Likewise.
33560         * modules/unictype/category-Pe-tests (Files): Likewise.
33561         * modules/unictype/category-Pf-tests (Files): Likewise.
33562         * modules/unictype/category-Pi-tests (Files): Likewise.
33563         * modules/unictype/category-Po-tests (Files): Likewise.
33564         * modules/unictype/category-Ps-tests (Files): Likewise.
33565         * modules/unictype/category-S-tests (Files): Likewise.
33566         * modules/unictype/category-Sc-tests (Files): Likewise.
33567         * modules/unictype/category-Sk-tests (Files): Likewise.
33568         * modules/unictype/category-Sm-tests (Files): Likewise.
33569         * modules/unictype/category-So-tests (Files): Likewise.
33570         * modules/unictype/category-Z-tests (Files): Likewise.
33571         * modules/unictype/category-Zl-tests (Files): Likewise.
33572         * modules/unictype/category-Zp-tests (Files): Likewise.
33573         * modules/unictype/category-Zs-tests (Files): Likewise.
33574         * modules/unictype/category-and-not-tests (Files): Likewise.
33575         * modules/unictype/category-and-tests (Files): Likewise.
33576         * modules/unictype/category-byname-tests (Files): Likewise.
33577         * modules/unictype/category-name-tests (Files): Likewise.
33578         * modules/unictype/category-none-tests (Files): Likewise.
33579         * modules/unictype/category-of-tests (Files): Likewise.
33580         * modules/unictype/category-or-tests (Files): Likewise.
33581         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33582         * modules/unictype/combining-class-tests (Files): Likewise.
33583         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33584         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33585         * modules/unictype/ctype-blank-tests (Files): Likewise.
33586         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33587         * modules/unictype/ctype-digit-tests (Files): Likewise.
33588         * modules/unictype/ctype-graph-tests (Files): Likewise.
33589         * modules/unictype/ctype-lower-tests (Files): Likewise.
33590         * modules/unictype/ctype-print-tests (Files): Likewise.
33591         * modules/unictype/ctype-punct-tests (Files): Likewise.
33592         * modules/unictype/ctype-space-tests (Files): Likewise.
33593         * modules/unictype/ctype-upper-tests (Files): Likewise.
33594         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33595         * modules/unictype/decimal-digit-tests (Files): Likewise.
33596         * modules/unictype/digit-tests (Files): Likewise.
33597         * modules/unictype/mirror-tests (Files): Likewise.
33598         * modules/unictype/numeric-tests (Files): Likewise.
33599         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33600         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33601         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33602         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33603         Likewise.
33604         * modules/unictype/property-bidi-block-separator-tests (Files):
33605         Likewise.
33606         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33607         Likewise.
33608         * modules/unictype/property-bidi-common-separator-tests (Files):
33609         Likewise.
33610         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33611         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33612         Likewise.
33613         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33614         Likewise.
33615         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33616         Likewise.
33617         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33618         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33619         Likewise.
33620         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33621         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33622         Likewise.
33623         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33624         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33625         * modules/unictype/property-bidi-segment-separator-tests (Files):
33626         Likewise.
33627         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33628         * modules/unictype/property-byname-tests (Files): Likewise.
33629         * modules/unictype/property-combining-tests (Files): Likewise.
33630         * modules/unictype/property-composite-tests (Files): Likewise.
33631         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33632         * modules/unictype/property-dash-tests (Files): Likewise.
33633         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33634         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33635         Likewise.
33636         * modules/unictype/property-deprecated-tests (Files): Likewise.
33637         * modules/unictype/property-diacritic-tests (Files): Likewise.
33638         * modules/unictype/property-extender-tests (Files): Likewise.
33639         * modules/unictype/property-format-control-tests (Files): Likewise.
33640         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33641         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33642         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33643         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33644         * modules/unictype/property-hyphen-tests (Files): Likewise.
33645         * modules/unictype/property-id-continue-tests (Files): Likewise.
33646         * modules/unictype/property-id-start-tests (Files): Likewise.
33647         * modules/unictype/property-ideographic-tests (Files): Likewise.
33648         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33649         * modules/unictype/property-ids-trinary-operator-tests (Files):
33650         Likewise.
33651         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33652         * modules/unictype/property-iso-control-tests (Files): Likewise.
33653         * modules/unictype/property-join-control-tests (Files): Likewise.
33654         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33655         * modules/unictype/property-line-separator-tests (Files): Likewise.
33656         * modules/unictype/property-logical-order-exception-tests (Files):
33657         Likewise.
33658         * modules/unictype/property-lowercase-tests (Files): Likewise.
33659         * modules/unictype/property-math-tests (Files): Likewise.
33660         * modules/unictype/property-non-break-tests (Files): Likewise.
33661         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33662         * modules/unictype/property-numeric-tests (Files): Likewise.
33663         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33664         * modules/unictype/property-other-default-ignorable-code-point-tests
33665         (Files): Likewise.
33666         * modules/unictype/property-other-grapheme-extend-tests (Files):
33667         Likewise.
33668         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33669         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33670         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33671         * modules/unictype/property-other-math-tests (Files): Likewise.
33672         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33673         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33674         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33675         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33676         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33677         * modules/unictype/property-private-use-tests (Files): Likewise.
33678         * modules/unictype/property-punctuation-tests (Files): Likewise.
33679         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33680         * modules/unictype/property-radical-tests (Files): Likewise.
33681         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33682         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33683         * modules/unictype/property-space-tests (Files): Likewise.
33684         * modules/unictype/property-terminal-punctuation-tests (Files):
33685         Likewise.
33686         * modules/unictype/property-test-tests (Files): Likewise.
33687         * modules/unictype/property-titlecase-tests (Files): Likewise.
33688         * modules/unictype/property-unassigned-code-value-tests (Files):
33689         Likewise.
33690         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33691         * modules/unictype/property-uppercase-tests (Files): Likewise.
33692         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33693         * modules/unictype/property-white-space-tests (Files): Likewise.
33694         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33695         * modules/unictype/property-xid-start-tests (Files): Likewise.
33696         * modules/unictype/property-zero-width-tests (Files): Likewise.
33697         * modules/unictype/scripts-tests (Files): Likewise.
33698         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33699         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33700         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33701         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33702         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33703         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33704         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33705         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33706         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33707         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33708         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33709         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33710         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33711         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33712         * modules/uninorm/composition-tests (Files): Likewise.
33713         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33714         * modules/uninorm/decomposition-tests (Files): Likewise.
33715         * modules/uninorm/filter-tests (Files): Likewise.
33716         * modules/uninorm/nfc-tests (Files): Likewise.
33717         * modules/uninorm/nfd-tests (Files): Likewise.
33718         * modules/uninorm/nfkc-tests (Files): Likewise.
33719         * modules/uninorm/nfkd-tests (Files): Likewise.
33720         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33721         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33722         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33723         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33724         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33725         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33726         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33727         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33728         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33729         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33730         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33731         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33732         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33733         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33734         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33735         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33736         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33737         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33738         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33739         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33740         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33741         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33742         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33743         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33744         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33745         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33746         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33747         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33748         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33749         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33750         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33751         * modules/uniwidth/u8-width-tests (Files): Likewise.
33752         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33753         * modules/uniwidth/u16-width-tests (Files): Likewise.
33754         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33755         * modules/uniwidth/u32-width-tests (Files): Likewise.
33756         * modules/uniwidth/width-tests (Files): Likewise.
33757         * modules/unlink-tests (Files): Likewise.
33758         * modules/unsetenv-tests (Files): Likewise.
33759         * modules/usleep-tests (Files): Likewise.
33760         * modules/utimens-tests (Files): Likewise.
33761         * modules/utimensat-tests (Files): Likewise.
33762         * modules/vasnprintf-posix-tests (Files): Likewise.
33763         * modules/vasnprintf-tests (Files): Likewise.
33764         * modules/vasprintf-posix-tests (Files): Likewise.
33765         * modules/vasprintf-tests (Files): Likewise.
33766         * modules/vdprintf-posix-tests (Files): Likewise.
33767         * modules/vfprintf-posix-tests (Files): Likewise.
33768         * modules/vprintf-posix-tests (Files): Likewise.
33769         * modules/vsnprintf-posix-tests (Files): Likewise.
33770         * modules/vsnprintf-tests (Files): Likewise.
33771         * modules/vsprintf-posix-tests (Files): Likewise.
33772         * modules/wcrtomb-tests (Files): Likewise.
33773         * modules/wcsnrtombs-tests (Files): Likewise.
33774         * modules/wcsrtombs-tests (Files): Likewise.
33775         * modules/wctype-tests (Files): Likewise.
33776         * modules/wcwidth-tests (Files): Likewise.
33777         * modules/xmemdup0-tests (Files): Likewise.
33778         * modules/xprintf-posix-tests (Files): Likewise.
33779         * modules/xvasprintf-tests (Files): Likewise.
33780
33781 2009-12-24  Eric Blake  <ebb9@byu.net>
33782
33783         test-nanosleep: fix typo
33784         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33785         patch.
33786         Reported by Bruno Haible.
33787
33788 2009-12-24  Bruno Haible  <bruno@clisp.org>
33789
33790         Reduce namespace pollution on glibc systems.
33791         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33792         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33793         systems.
33794         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33795         <getopt.h> on glibc systems.
33796         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33797         systems.
33798         * lib/fcntl.c: Include <unistd.h> here instead.
33799
33800 2009-12-24  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33803
33804 2009-12-24  Eric Blake  <ebb9@byu.net>
33805
33806         tests: add signature checks
33807         * tests/signature.h (SIGNATURE_CHECK): New file.
33808         * modules/atexit-tests (Files): Use it.
33809         * modules/btowc-tests (Files): Likewise.
33810         * modules/canonicalize-lgpl-tests (Files): Likewise.
33811         * modules/ceilf-tests (Files): Likewise.
33812         * modules/ceill-tests (Files): Likewise.
33813         * modules/chown-tests (Files): Likewise.
33814         * modules/dprintf-posix-tests (Files): Likewise.
33815         * modules/dup2-tests (Files): Likewise.
33816         * modules/dup3-tests (Files): Likewise.
33817         * modules/duplocale-tests (Files): Likewise.
33818         * modules/fchdir-tests (Files): Likewise.
33819         * modules/fcntl-tests (Files): Likewise.
33820         * modules/fdopendir-tests (Files): Likewise.
33821         * modules/fflush-tests (Files): Likewise.
33822         * modules/flock-tests (Files): Likewise.
33823         * modules/floorf-tests (Files): Likewise.
33824         * modules/floorl-tests (Files): Likewise.
33825         * modules/fnmatch-tests (Files): Likewise.
33826         * modules/fopen-tests (Files): Likewise.
33827         * modules/fprintf-posix-tests (Files): Likewise.
33828         * modules/freopen-tests (Files): Likewise.
33829         * modules/frexp-nolibm-tests (Files): Likewise.
33830         * modules/frexp-tests (Files): Likewise.
33831         * modules/frexpl-nolibm-tests (Files): Likewise.
33832         * modules/frexpl-tests (Files): Likewise.
33833         * modules/fseek-tests (Files): Likewise.
33834         * modules/fseeko-tests (Files): Likewise.
33835         * modules/fsync-tests (Files): Likewise.
33836         * modules/ftell-tests (Files): Likewise.
33837         * modules/ftello-tests (Files): Likewise.
33838         * modules/futimens-tests (Files): Likewise.
33839         * modules/getaddrinfo-tests (Files): Likewise.
33840         * modules/getcwd-tests (Files): Likewise.
33841         * modules/getdelim-tests (Files): Likewise.
33842         * modules/getdtablesize-tests (Files): Likewise.
33843         * modules/getgroups-tests (Files): Likewise.
33844         * modules/gethostname-tests (Files): Likewise.
33845         * modules/getline-tests (Files): Likewise.
33846         * modules/getopt-posix-tests (Files): Likewise.
33847         * modules/gettimeofday-tests (Files): Likewise.
33848         * modules/glob-tests (Files): Likewise.
33849         * modules/iconv-tests (Files): Likewise.
33850         * modules/inet_ntop-tests (Files): Likewise.
33851         * modules/inet_pton-tests (Files): Likewise.
33852         * modules/isblank-tests (Files): Likewise.
33853         * modules/lchown-tests (Files): Likewise.
33854         * modules/ldexpl-tests (Files): Likewise.
33855         * modules/link-tests (Files): Likewise.
33856         * modules/linkat-tests (Files): Likewise.
33857         * modules/lseek-tests (Files): Likewise.
33858         * modules/lstat-tests (Files): Likewise.
33859         * modules/mbrtowc-tests (Files): Likewise.
33860         * modules/mbsinit-tests (Files): Likewise.
33861         * modules/mbsnrtowcs-tests (Files): Likewise.
33862         * modules/mbsrtowcs-tests (Files): Likewise.
33863         * modules/memchr-tests (Files): Likewise.
33864         * modules/memcmp-tests (Files): Likewise.
33865         * modules/memmem-tests (Files): Likewise.
33866         * modules/memrchr-tests (Files): Likewise.
33867         * modules/mkdir-tests (Files): Likewise.
33868         * modules/mkfifo-tests (Files): Likewise.
33869         * modules/mkfifoat-tests (Files): Likewise.
33870         * modules/mknod-tests (Files): Likewise.
33871         * modules/nanosleep-tests (Files): Likewise.
33872         * modules/nl_langinfo-tests (Files): Likewise.
33873         * modules/obstack-printf-tests (Files): Likewise.
33874         * modules/open-tests (Files): Likewise.
33875         * modules/openat-tests (Files): Likewise.
33876         * modules/perror-tests (Files): Likewise.
33877         * modules/pipe2-tests (Files): Likewise.
33878         * modules/poll-tests (Files): Likewise.
33879         * modules/popen-tests (Files): Likewise.
33880         * modules/posix_spawn-tests (Files): Likewise.
33881         * modules/posix_spawnp-tests (Files): Likewise.
33882         * modules/pread-tests (Files): Likewise.
33883         * modules/printf-posix-tests (Files): Likewise.
33884         * modules/pty-tests (Files): Likewise.
33885         * modules/random_r-tests (Files): Likewise.
33886         * modules/rawmemchr-tests (Files): Likewise.
33887         * modules/readlink-tests (Files): Likewise.
33888         * modules/remove-tests (Files): Likewise.
33889         * modules/rename-tests (Files): Likewise.
33890         * modules/renameat-tests (Files): Likewise.
33891         * modules/rmdir-tests (Files): Likewise.
33892         * modules/round-tests (Files): Likewise.
33893         * modules/roundf-tests (Files): Likewise.
33894         * modules/roundl-tests (Files): Likewise.
33895         * modules/select-tests (Files): Likewise.
33896         * modules/setenv-tests (Files): Likewise.
33897         * modules/sigaction-tests (Files): Likewise.
33898         * modules/sleep-tests (Files): Likewise.
33899         * modules/snprintf-posix-tests (Files): Likewise.
33900         * modules/snprintf-tests (Files): Likewise.
33901         * modules/sprintf-posix-tests (Files): Likewise.
33902         * modules/stat-tests (Files): Likewise.
33903         * modules/strcasestr-tests (Files): Likewise.
33904         * modules/strchrnul-tests (Files): Likewise.
33905         * modules/strerror-tests (Files): Likewise.
33906         * modules/strsignal-tests (Files): Likewise.
33907         * modules/strstr-tests (Files): Likewise.
33908         * modules/strtod-tests (Files): Likewise.
33909         * modules/strverscmp-tests (Files): Likewise.
33910         * modules/symlink-tests (Files): Likewise.
33911         * modules/symlinkat-tests (Files): Likewise.
33912         * modules/times-tests (Files): Likewise.
33913         * modules/trunc-tests (Files): Likewise.
33914         * modules/truncf-tests (Files): Likewise.
33915         * modules/truncl-tests (Files): Likewise.
33916         * modules/tsearch-tests (Files): Likewise.
33917         * modules/uname-tests (Files): Likewise.
33918         * modules/unlink-tests (Files): Likewise.
33919         * modules/unsetenv-tests (Files): Likewise.
33920         * modules/usleep-tests (Files): Likewise.
33921         * modules/utimensat-tests (Files): Likewise.
33922         * modules/vasprintf-tests (Files): Likewise.
33923         * modules/vdprintf-posix-tests (Files): Likewise.
33924         * modules/vfprintf-posix-tests (Files): Likewise.
33925         * modules/vprintf-posix-tests (Files): Likewise.
33926         * modules/vsnprintf-posix-tests (Files): Likewise.
33927         * modules/vsnprintf-tests (Files): Likewise.
33928         * modules/vsprintf-posix-tests (Files): Likewise.
33929         * modules/wcrtomb-tests (Files): Likewise.
33930         * modules/wcsnrtombs-tests (Files): Likewise.
33931         * modules/wcsrtombs-tests (Files): Likewise.
33932         * modules/wcwidth-tests (Files): Likewise.
33933         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33934         * tests/test-isinf.c (isinf): Likewise.
33935         * tests/test-isnan.c (isnan): Likewise.
33936         * tests/test-signbit.c (signbit): Likewise.
33937         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33938         declaration, either as macro or with correct signature.
33939         (select): Ensure function under test is declared with correct
33940         signature in correct header.
33941         * tests/test-atexit.c (atexit): Likewise.
33942         * tests/test-btowc.c (btowc): Likewise.
33943         * tests/test-canonicalize-lgpl.c (realpath)
33944         (canonicalize_file_name): Likewise.
33945         * tests/test-ceilf1.c (ceilf): Likewise.
33946         * tests/test-ceill.c (ceill): Likewise.
33947         * tests/test-chown.c (chown): Likewise.
33948         * tests/test-dprintf-posix.c (dprintf): Likewise.
33949         * tests/test-dup2.c (dup2): Likewise.
33950         * tests/test-dup3.c (dup3): Likewise.
33951         * tests/test-duplocale.c (duplocale): Likewise.
33952         * tests/test-fchdir.c (fchdir): Likewise.
33953         * tests/test-fchownat.c (fchownat): Likewise.
33954         * tests/test-fcntl.c (fcntl): Likewise.
33955         * tests/test-fdopendir.c (fdopendir): Likewise.
33956         * tests/test-fflush.c (fflush): Likewise.
33957         * tests/test-flock.c (flock): Likewise.
33958         * tests/test-floorf1.c (floorf): Likewise.
33959         * tests/test-floorl.c (floorl): Likewise.
33960         * tests/test-fnmatch.c (fnmatch): Likewise.
33961         * tests/test-fopen.c (fopen): Likewise.
33962         * tests/test-fprintf-posix.c (fprintf): Likewise.
33963         * tests/test-freopen.c (freopen): Likewise.
33964         * tests/test-frexp.c (frexp): Likewise.
33965         * tests/test-frexpl.c (frexpl): Likewise.
33966         * tests/test-fseek.c (fseek): Likewise.
33967         * tests/test-fseeko.c (fseeko): Likewise.
33968         * tests/test-fstatat.c (fstatat): Likewise.
33969         * tests/test-fsync.c (fsync): Likewise.
33970         * tests/test-ftell.c (ftell): Likewise.
33971         * tests/test-ftello.c (ftello): Likewise.
33972         * tests/test-futimens.c (futimens): Likewise.
33973         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33974         (gai_strerror): Likewise.
33975         * tests/test-getcwd.c (getcwd): Likewise.
33976         * tests/test-getdelim.c (getdelim): Likewise.
33977         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33978         * tests/test-getgroups.c (getgroups): Likewise.
33979         * tests/test-gethostname.c (gethostname): Likewise.
33980         * tests/test-getline.c (getline): Likewise.
33981         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33982         Likewise.
33983         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33984         * tests/test-glob.c (glob, globfree): Likewise.
33985         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33986         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33987         * tests/test-inet_pton.c (inet_pton): Likewise.
33988         * tests/test-isblank.c (isblank): Likewise.
33989         * tests/test-lchown.c (lchown): Likewise.
33990         * tests/test-ldexpl.c (ldexpl): Likewise.
33991         * tests/test-link.c (link): Likewise.
33992         * tests/test-linkat.c (linkat): Likewise.
33993         * tests/test-lseek.c (lseek): Likewise.
33994         * tests/test-lstat.c (lstat): Likewise.
33995         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33996         * tests/test-mbsinit.c (mbsinit): Likewise.
33997         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33998         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33999         * tests/test-memchr.c (memchr): Likewise.
34000         * tests/test-memcmp.c (memcmp): Likewise.
34001         * tests/test-memmem.c (memmem): Likewise.
34002         * tests/test-memrchr.c (memrchr): Likewise.
34003         * tests/test-mkdir.c (mkdir): Likewise.
34004         * tests/test-mkdirat.c (mkdirat): Likewise.
34005         * tests/test-mkfifo.c (mkfifo): Likewise.
34006         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
34007         * tests/test-mknod.c (mknod): Likewise.
34008         * tests/test-nanosleep.c (nanosleep): Likewise.
34009         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
34010         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
34011         Likewise.
34012         * tests/test-open.c (open): Likewise.
34013         * tests/test-openat.c (openat): Likewise.
34014         * tests/test-perror.c (perror): Likewise.
34015         * tests/test-pipe2.c (pipe2): Likewise.
34016         * tests/test-poll.c (poll): Likewise.
34017         * tests/test-popen.c (popen, pclose): Likewise.
34018         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
34019         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
34020         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
34021         (posix_spawn_file_actions_destroy)
34022         (posix_spawn_file_actions_addclose)
34023         (posix_spawn_file_actions_addopen)
34024         (posix_spawn_file_actions_adddup2): Likewise.
34025         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
34026         * tests/test-pread.c (pread): Likewise.
34027         * tests/test-printf-posix.c (printf): Likewise.
34028         * tests/test-pty.c (openpty, forkpty): Likewise.
34029         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
34030         (random_r): Likewise.
34031         * tests/test-rawmemchr.c (rawmemchr): Likewise.
34032         * tests/test-readlink.c (readlink): Likewise.
34033         * tests/test-remove.c (remove): Likewise.
34034         * tests/test-rename.c (rename): Likewise.
34035         * tests/test-renameat.c (renameat): Likewise.
34036         * tests/test-rmdir.c (rmdir): Likewise.
34037         * tests/test-round1.c (round): Likewise.
34038         * tests/test-roundf1.c (roundf): Likewise.
34039         * tests/test-roundl.c (roundl): Likewise.
34040         * tests/test-setenv.c (setenv): Likewise.
34041         * tests/test-sigaction.c (sigaction): Likewise.
34042         * tests/test-sleep.c (sleep): Likewise.
34043         * tests/test-snprintf.c (snprintf): Likewise.
34044         * tests/test-sprintf-posix.c (sprintf): Likewise.
34045         * tests/test-stat.c (stat): Likewise.
34046         * tests/test-stpncpy.c (stpncpy): Likewise.
34047         * tests/test-strcasestr.c (strcasestr): Likewise.
34048         * tests/test-strchrnul.c (strchrnul): Likewise.
34049         * tests/test-strerror.c (strerror): Likewise.
34050         * tests/test-strsignal.c (strsignal): Likewise.
34051         * tests/test-strstr.c (strstr): Likewise.
34052         * tests/test-strtod.c (strtod): Likewise.
34053         * tests/test-strverscmp.c (strverscmp): Likewise.
34054         * tests/test-symlink.c (symlink): Likewise.
34055         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
34056         * tests/test-times.c (times): Likewise.
34057         * tests/test-trunc1.c (trunc): Likewise.
34058         * tests/test-truncf1.c (truncf): Likewise.
34059         * tests/test-truncl.c (truncl): Likewise.
34060         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
34061         Likewise.
34062         * tests/test-uname.c (uname): Likewise.
34063         * tests/test-unlink.c (unlink): Likewise.
34064         * tests/test-unlinkat.c (unlinkat): Likewise.
34065         * tests/test-unsetenv.c (unsetenv): Likewise.
34066         * tests/test-usleep.c (usleep): Likewise.
34067         * tests/test-utimensat.c (utimensat): Likewise.
34068         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
34069         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
34070         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
34071         * tests/test-vprintf-posix.c (vprintf): Likewise.
34072         * tests/test-vsnprintf.c (vsnprintf): Likewise.
34073         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
34074         * tests/test-wcrtomb.c (wcrtomb): Likewise.
34075         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
34076         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
34077         * tests/test-wcwidth.c (wcwidth): Likewise.
34078
34079         build: pull in conditional headers during GNULIB_POSIXCHECK
34080         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
34081         definitions from any conditionally-included headers.
34082         * lib/stdlib.in.h (includes): Likewise.
34083         * lib/unistd.in.h (includes): Likewise.
34084
34085 2009-12-24  Bruno Haible  <bruno@clisp.org>
34086
34087         * tests/test-argv-iter.c: Include header file being tested immediately
34088         after config.h.
34089         * tests/test-base64.c: Likewise.
34090         * tests/test-flock.c: Likewise.
34091         * tests/test-fsync.c: Likewise.
34092         * tests/test-getdate.c: Likewise.
34093         * tests/test-getndelim2.c: Likewise.
34094         * tests/test-isfinite.c: Likewise.
34095         * tests/test-isinf.c: Likewise.
34096         * tests/test-strerror.c: Likewise.
34097         * tests/test-strsignal.c: Likewise.
34098
34099 2009-12-23  Eric Blake  <ebb9@byu.net>
34100
34101         unistd: work around cygwin bug
34102         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
34103         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
34104         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34105
34106 2009-12-23  Bruno Haible  <bruno@clisp.org>
34107
34108         localename: More tests.
34109         * tests/test-localename.c (SIZEOF): New macro.
34110         (categories): New variable.
34111         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
34112         test_locale_name_default): Add test w.r.t. thread locale.
34113         (test_locale_name_thread): New function.
34114         (main): Invoke it.
34115
34116         localename: Make aware of thread locale.
34117         * lib/localename.h (gl_locale_name_thread): New declaration.
34118         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
34119         behaviour with respect to thread locale.
34120         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
34121         <langinfo.h>, glthread/lock.h.
34122         (SIZE_BITS): New macro.
34123         (string_hash): New function.
34124         (struct hash_node): New type.
34125         (HASH_TABLE_SIZE): New macro.
34126         (struniq_hash_table, struniq_lock): New variables.
34127         (struniq): New function.
34128         (gl_locale_name_thread): New function.
34129         (gl_locale_name): Invoke it.
34130         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
34131         * modules/localename (Depends-on): Add lock.
34132         Reported by Mike Gran <spk121@yahoo.com>.
34133
34134 2009-12-23  Eric Blake  <ebb9@byu.net>
34135
34136         va-args: new module
34137         * modules/va-args: New file.
34138         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
34139         * MODULES.html.sh (Core language properties): Mention it.
34140
34141         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
34142         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
34143         named alias for __attribute__((__unused__)).
34144         * lib/chown.c: Update client.
34145         * lib/fchmodat.c: Likewise.
34146         * lib/fts.c: Likewise.
34147         * lib/getdate.y: Likewise.
34148         * lib/getgroups.c: Likewise.
34149         * lib/getopt.c: Likewise.
34150         * lib/getugroups.c: Likewise.
34151         * lib/mkdir.c: Likewise.
34152         * lib/mkfifo.c: Likewise.
34153         * lib/mkfifoat.c: Likewise.
34154         * lib/mknod.c: Likewise.
34155         * lib/mknodat.c: Likewise.
34156         * lib/readlink.c: Likewise.
34157         * lib/se-context.in.h: Likewise.
34158         * lib/se-selinux.in.h: Likewise.
34159         * lib/sockets.c: Likewise.
34160         * lib/symlink.c: Likewise.
34161         * lib/symlinkat.c: Likewise.
34162         * lib/unicodeio.c: Likewise.
34163         * lib/unistr.h: Likewise.
34164         * tests/test-areadlink.c: Likewise.
34165         * tests/test-areadlinkat.c: Likewise.
34166         * tests/test-filenamecat.c: Likewise.
34167         * tests/test-fseeko.c: Likewise.
34168         * tests/test-ftello.c: Likewise.
34169         * tests/test-getdate.c: Likewise.
34170         * tests/test-getgroups.c: Likewise.
34171         * tests/test-gethostname.c: Likewise.
34172         * tests/test-quotearg.c: Likewise.
34173         * tests/test-version-etc.c: Likewise.
34174         * tests/test-xalloc-die.c: Likewise.
34175         * tests/test-xfprintf-posix.c: Likewise.
34176         * tests/test-xprintf-posix.c: Likewise.
34177         * tests/test-xvasprintf.c: Likewise.
34178
34179         tests: avoid compiler warnings
34180         * tests/test-fcntl.c (main): Delete unused parameters.
34181         * tests/test-freopen-safer.c (main): Likewise.
34182         * tests/test-xalloc-die.c (main): Mark unused parameters.
34183         * tests/test-fseeko.c (main): Likewise.
34184         * tests/test-ftello.c (main): Likewise.
34185         * tests/test-nanosleep.c (main): Avoid declaration warning.
34186         * tests/test-sleep.c (main): Likewise.
34187         * tests/test-unsetenv.c (main): Silence warning about string
34188         literal.
34189         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34190
34191 2009-12-23  Bruno Haible  <bruno@clisp.org>
34192
34193         * tests/test-localename.c (test_locale_name): New function, extracted
34194         from main. Also test mixed situations.
34195         (test_locale_name_posix, test_locale_name_environ,
34196         test_locale_name_default): New functions.
34197         (main): Invoke them all.
34198         * modules/localename-tests (configure.ac): Test for newlocale.
34199
34200 2009-12-23  Bruno Haible  <bruno@clisp.org>
34201
34202         unistd: Ensure getcwd gets declared before being overridden.
34203         * lib/unistd.in.h: Conditionally include <io.h>.
34204
34205 2009-12-22  Bruno Haible  <bruno@clisp.org>
34206
34207         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34208         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34209         (gl_WCHAR_H): Invoke it.
34210         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34211         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34212         Reported by Karl Berry <karl@freefriends.org>.
34213
34214 2009-12-22  Eric Blake  <ebb9@byu.net>
34215
34216         math, unistd: avoid redundant includes
34217         * lib/math.in.h (isnan): No need to re-include <math.h>.
34218         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34219
34220         getsubopt: work around cygwin bug
34221         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34222         avoid conflicting with system getsubopt.
34223         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34224         bug.
34225
34226         getopt: synchronize from glibc
34227         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34228         parameter order.  Adjust all callers.
34229         (_getopt_internal_r, main): Adjust quoting in error messages.
34230         Drop considerations for outdated POSIX 1003.2 error message.
34231         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34232         callers.
34233         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34234
34235         test-getopt: test stderr behavior
34236         * modules/getopt-posix-tests (Depends-on): Add dup2.
34237         * tests/test-getopt.c (ASSERT): Avoid stderr.
34238         (main): Move stderr to a temporary file.
34239         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34240         Instead, add parameter to inform caller if output occurred.
34241         (test_getopt): Adjust all existing tests to expect silence, and
34242         add new tests of leading ":".
34243         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34244         glibc shortcomings with leading "-:" or "+:" in optstring.
34245         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34246         Likewise.
34247         * doc/posix-functions/getopt.texi (getopt): Likewise.
34248
34249         test-getopt: enhance test
34250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34251         supports optind=0.
34252         * tests/test-getopt.c (OPTIND_MIN): Move...
34253         * tests/test-getopt.h (OPTIND_MIN): ...here.
34254         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34255         Require that optind=0 works, since modern BSD supports it in
34256         addition to optreset, and since coreutils expects it.
34257         (test_getopt_long_only): New test.
34258         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34259         glibc shortcomings with 'W;', and enforcement of optind=0.
34260         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34261         Likewise.
34262
34263 2009-12-21  Bruno Haible  <bruno@clisp.org>
34264
34265         localename: Improvements for MacOS X and Cygwin.
34266         * lib/localename.h (gl_locale_name_environ): New declaration.
34267         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34268         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34269         (gl_locale_name_posix): Invoke it.
34270         (gl_locale_name_default): Add comments. Use Windows native API also on
34271         Cygwin.
34272
34273 2009-12-21  Bruno Haible  <bruno@clisp.org>
34274
34275         Update list of Win32 locale ids.
34276         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34277         (LANG_SAMI): Renamed from LANG_SAAMI.
34278         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34279         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34280         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34281         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34282         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34283         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34284         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34285         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34286         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34287         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34288         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34289         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34290         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34291         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34292         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34293         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34294         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34295         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34296         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34297         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34298         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34299         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34300         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34301         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34302         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34303         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34304         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34305         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34306         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34307         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34308         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34309         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34310         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34311         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34312         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34313         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34314         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34315         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34316         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34317         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34318         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34319         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34320         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34321         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34322         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34323         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34324         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34325         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34326         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34327         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34328         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34329         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34330         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34331         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34332         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34333         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34334         Add more languages and countries for Sami, Sorbian. Add more countries
34335         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34336         for Pashto. Change country for Syriac, Tswana.
34337
34338 2009-12-21  Eric Blake  <ebb9@byu.net>
34339
34340         test-utimens: avoid spurious failure
34341         * tests/test-chown.h (nap): Factor...
34342         * tests/nap.h: ...into new file.
34343         * tests/test-lchown.h (nap): Avoid duplication.
34344         * tests/test-utimens-common.h (nap): Use shared implementation,
34345         necessary on file systems with 1-second resolution.
34346         * modules/chown-tests (Files): Include new file.
34347         * modules/fdutimensat-tests (Files): Likewise.
34348         * modules/futimens-tests (Files): Likewise.
34349         * modules/lchown-tests (Files): Likewise.
34350         * modules/openat-tests (Files): Likewise.
34351         * modules/utimens-tests (Files): Likewise.
34352         * modules/utimensat-tests (Files): Likewise.
34353
34354 2009-12-19  Eric Blake  <ebb9@byu.net>
34355
34356         futimens, utimensat: work around Linux bug
34357         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34358         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34359         * lib/utimensat.c (rpl_utimensat): Work around it.
34360         * lib/futimens.c (rpl_futimens): Adjust comment.
34361
34362         utimens: work around Linux ctime bug
34363         * lib/utimens.c (detect_ctime_bug): New helper function.
34364         (update_timespec): Differentiate between workaround needed for
34365         this bug vs. what is needed for systems that lack utimensat.
34366         (fdutimens, lutimens): Work around bug.
34367
34368         utimens: check for ctime update
34369         * tests/test-utimens-common.h (check_ctime): Define.
34370         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34371         * tests/test-futimens.h (test_futimens): Likewise.
34372         * tests/test-lutimens.h (test_lutimens): Likewise.
34373         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34374         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34375
34376 2009-12-19  Bruno Haible  <bruno@clisp.org>
34377
34378         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34379         * tests/test-dprintf-posix2.sh: New file.
34380         * tests/test-dprintf-posix2.c: New file.
34381         * modules/dprintf-posix-tests (Files): Add them.
34382         (configure.ac): Check for getrlimit and setrlimit.
34383         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34384
34385 2009-12-19  Bruno Haible  <bruno@clisp.org>
34386
34387         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34388         * tests/test-fprintf-posix3.sh: New file.
34389         * tests/test-fprintf-posix3.c: New file.
34390         * modules/fprintf-posix-tests (Files): Add them.
34391         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34392
34393 2009-12-19  Eric Blake  <ebb9@byu.net>
34394
34395         dirfd: fix prototype
34396         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34397         * lib/dirfd.c (dirfd): Likewise.
34398
34399         canonicalize: reduce memory usage
34400         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34401         allocation to size.
34402         Reported by Solar Designer <solar@openwall.com>.
34403
34404 2009-12-19  Bruno Haible  <bruno@clisp.org>
34405
34406         New module attribute 'Applicability'.
34407         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34408         * gnulib-tool: New option --extract-applicability.
34409         (func_usage): Document it.
34410         (sed_extract_prog): Recognize it.
34411         (func_get_applicability): New function.
34412         (func_import): Generalize handling of 'link-warning' module.
34413         * modules/link-warning (Applicability): New section.
34414         * modules/arg-nonnull (Applicability): New section.
34415         Repoted by Simon Josefsson <simon@josefsson.org>.
34416
34417 2009-12-19  Bruno Haible  <bruno@clisp.org>
34418
34419         fflush: tweak
34420         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34421         * lib/fseeko.c (rpl_fseeko): Likewise.
34422
34423 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34424
34425         * lib/gl_list.h: Fix typo in comment.
34426
34427 2009-12-16  Eric Blake  <ebb9@byu.net>
34428
34429         fcntl: use to simplify other modules
34430         * modules/cloexec (Depends-on): Add fcntl.
34431         * modules/fchdir (Depends-on): Likewise.
34432         * modules/fd-safer-flag (Depends-on): Likewise.
34433         * modules/unistd-safer (Depends-on): Likewise.
34434         * modules/dup3 (configure.ac): Set module indicator.
34435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34436         missing.
34437         * lib/fchdir.c (_gl_register_dup): Fix comment.
34438         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34439         * lib/dup-safer.c (dup_safer): Likewise.
34440         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34441         * lib/dup3.c (dup3): Likewise.
34442         * tests/test-fchdir.c (main): Enhance test.
34443         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34444
34445         fcntl: port portions of fcntl to mingw
34446         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34447         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34448         replacement for mingw.
34449         * modules/fcntl (Description): Update.
34450         (Depends-on): Add dup2.
34451         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34452         * modules/fcntl-h (Makefile.am): Substitute it.
34453         * lib/fcntl.in.h (fcntl): Update declaration.
34454         (F_DUPFD, F_GETFD): New macros, when needed.
34455         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34456         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34457         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34458         we now guarantee.
34459
34460         fcntl: work around cygwin bug in F_DUPFD
34461         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34462         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34463         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34464         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34465         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34466
34467         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34468         * modules/fcntl (Files): List new files.
34469         (configure.ac): Run a test.
34470         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34471         * lib/fcntl.c (rpl_fcntl): Likewise.
34472         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34473         (gl_FCNTL_H): Always replace fcntl.h.
34474         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34475         * lib/fcntl.in.h (fcntl): Declare replacement.
34476         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34477         needed, plus a witness.
34478         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34479         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34480         * tests/test-fcntl.c: New file.
34481         * modules/fcntl-tests: Likewise.
34482
34483         binary-io: avoid potential compilation warning
34484         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34485         directives.
34486
34487         fflush: avoid compilation error on NetBSD
34488         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34489         between off_t and fpos_t, since the latter is sometimes a struct.
34490         * lib/fseeko.c (rpl_fseeko): Likewise.
34491         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34492
34493 2009-12-15  Eric Blake  <ebb9@byu.net>
34494
34495         fcntl-h, stdio, sys_ioctl: fix declarations
34496         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34497         function must not take arguments.
34498         * lib/sys_ioctl.in.h (ioctl): Likewise.
34499         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34500         (open): Add a link warning.
34501
34502 2009-12-15  Jim Meyering  <meyering@redhat.com>
34503
34504         areadlink, areadlink-with-size: relax license to LGPLv2+
34505         * modules/areadlink (License): Relax to LGPLv2+.
34506         * modules/areadlink-with-size (License): Likewise.
34507
34508 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34509             Bruno Haible  <bruno@clisp.org>
34510
34511         *printf: Fix memory leak.
34512         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34513         * lib/vfprintf.c (vfprintf): Likewise.
34514         * lib/dprintf.c (dprintf): Likewise.
34515         * lib/vdprintf.c (vdprintf): Likewise.
34516
34517 2009-12-14  Eric Blake  <ebb9@byu.net>
34518
34519         accept4: adjust module dependencies
34520         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34521
34522         utimens: one more try at avoiding compiler warning
34523         * lib/utimens.c (lutimens): Lower scope of result.
34524
34525 2009-12-13  Bruno Haible  <bruno@clisp.org>
34526
34527         Move the malloc checking from module 'list' to new module 'xlist'.
34528         * modules/xlist: New file.
34529         * lib/gl_xlist.h: New file.
34530         * lib/gl_xlist.c: New file.
34531         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34532         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34533         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34534         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34535         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34536         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34537         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34538         gl_sortedlist_nx_add): New declarations.
34539         (struct gl_list_implementation): Rename and change methods accordingly.
34540         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34541         (gl_list_nx_create): Renamed from gl_list_create.
34542         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34543         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34544         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34545         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34546         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34547         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34548         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34549         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34550         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34551         gl_list_create_empty.
34552         (gl_list_nx_create): Renamed from gl_list_create.
34553         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34554         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34555         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34556         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34557         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34558         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34559         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34560         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34561         * lib/gl_array_list.c: Don't include xalloc.h.
34562         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34563         NULL upon out-of-memory.
34564         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34565         out-of-memory.
34566         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34567         Change return type to 'int'.
34568         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34569         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34570         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34571         upon out-of-memory.
34572         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34573         upon out-of-memory.
34574         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34575         upon out-of-memory.
34576         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34577         upon out-of-memory.
34578         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34579         out-of-memory.
34580         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34581         Update.
34582         (gl_array_list_implementation): Update.
34583         * lib/gl_carray_list.c: Don't include xalloc.h.
34584         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34585         Return NULL upon out-of-memory.
34586         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34587         out-of-memory.
34588         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34589         Change return type to 'int'.
34590         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34591         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34592         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34593         upon out-of-memory.
34594         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34595         upon out-of-memory.
34596         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34597         out-of-memory.
34598         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34599         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34600         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34601         Update.
34602         (gl_carray_list_implementation): Update.
34603         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34604         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34605         gl_linked_create_empty. Return NULL upon out-of-memory.
34606         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34607         out-of-memory.
34608         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34609         Change return type to 'int'. Return -1 upon out-of-memory.
34610         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34611         out-of-memory.
34612         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34613         upon out-of-memory.
34614         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34615         upon out-of-memory.
34616         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34617         NULL upon out-of-memory.
34618         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34619         upon out-of-memory.
34620         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34621         out-of-memory.
34622         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34623         Update.
34624         * lib/gl_linked_list.c: Don't include xalloc.h.
34625         (gl_linked_list_implementation): Update.
34626         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34627         (add_to_bucket): Change return type to 'int'.
34628         (gl_linkedhash_list_implementation): Update.
34629         * lib/gl_anytree_list1.h (free_subtree): New function.
34630         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34631         gl_tree_create_empty. Return NULL upon out-of-memory.
34632         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34633         Change return type to 'int'. Return -1 upon out-of-memory.
34634         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34635         out-of-memory.
34636         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34637         (gl_tree_remove_node): New function, moved here from
34638         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34639         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34640         Update.
34641         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34642         malloc, not xmalloc. Return NULL upon out-of-memory.
34643         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34644         out-of-memory.
34645         (gl_tree_remove_node_from_tree): New function, extracted from
34646         gl_tree_remove_node.
34647         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34648         upon out-of-memory.
34649         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34650         out-of-memory.
34651         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34652         upon out-of-memory.
34653         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34654         upon out-of-memory.
34655         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34656         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34657         not xmalloc. Return NULL upon out-of-memory.
34658         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34659         out-of-memory.
34660         (gl_tree_remove_node_from_tree): New function, extracted from
34661         gl_tree_remove_node.
34662         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34663         upon out-of-memory.
34664         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34665         out-of-memory.
34666         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34667         upon out-of-memory.
34668         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34669         upon out-of-memory.
34670         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34671         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34672         gl_anytree_list1.h before gl_anyavltree_list2.h.
34673         (gl_avltree_list_implementation): Update.
34674         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34675         gl_anytree_list1.h before gl_anyavltree_list2.h.
34676         (gl_rbtree_list_implementation): Update.
34677         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34678         Change return type to 'int'. Return -1 upon out-of-memory. Use
34679         __builtin_expect.
34680         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34681         (gl_avltreehash_list_implementation): Update.
34682         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34683         (gl_rbtreehash_list_implementation): Update.
34684         * modules/array-list (Depends-on): Remove xalloc.
34685         * modules/carray-list (Depends-on): Likewise.
34686         * modules/linked-list (Depends-on): Likewise.
34687         * modules/linkedhash-list (Depends-on): Likewise.
34688         * modules/avltree-list (Depends-on): Likewise.
34689         * modules/rbtree-list (Depends-on): Likewise.
34690         * modules/avltreehash-list (Depends-on): Likewise.
34691         * modules/rbtreehash-list (Depends-on): Likewise.
34692
34693         * modules/xsublist: New file.
34694         * lib/gl_xsublist.h: New file.
34695         * lib/gl_xsublist.c: New file.
34696         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34697         (gl_sublist_nx_create): New declaration.
34698         * lib/gl_sublist.c: Don't include xalloc.h.
34699         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34700         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34701         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34702         Change return type to 'int'. Return -1 upon out-of-memory.
34703         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34704         upon out-of-memory.
34705         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34706         NULL upon out-of-memory.
34707         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34708         upon out-of-memory.
34709         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34710         NULL upon out-of-memory.
34711         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34712         NULL upon out-of-memory.
34713         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34714         upon out-of-memory.
34715         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34716         (gl_sublist_list_implementation): Update.
34717         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34718         upon out-of-memory.
34719         * modules/sublist (Depends-on): Remove xalloc.
34720
34721         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34722         * tests/test-carray_list.c: Likewise.
34723         * tests/test-linked_list.c: Likewise.
34724         * tests/test-linkedhash_list.c: Likewise.
34725         * tests/test-avltree_list.c: Likewise.
34726         * tests/test-rbtree_list.c: Likewise.
34727         * tests/test-avltreehash_list.c: Likewise.
34728         * tests/test-rbtreehash_list.c: Likewise.
34729         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34730         * modules/carray-list-tests (Makefile.am): Likewise.
34731         * modules/linked-list-tests (Makefile.am): Likewise.
34732         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34733         * modules/avltree-list-tests (Makefile.am): Likewise.
34734         * modules/rbtree-list-tests (Makefile.am): Likewise.
34735         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34736         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34737
34738         * NEWS: Mention the changes.
34739
34740         * lib/clean-temp.c: Include gl_xlist.h.
34741         * modules/clean-temp (Depends-on): Add xlist.
34742
34743         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34744         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34745
34746         * tests/test-array_oset.c: Include gl_xlist.h.
34747         * modules/array-oset-tests (Depends-on): Add xlist.
34748
34749         Reported by José E. Marchesi <jemarch@gnu.org>.
34750
34751 2009-12-13  Bruno Haible  <bruno@clisp.org>
34752
34753         Move the malloc checking from module 'oset' to new module 'xoset'.
34754         * modules/xoset: New file.
34755         * lib/gl_xoset.h: New file.
34756         * lib/gl_xoset.c: New file.
34757         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34758         declarations.
34759         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34760         (struct gl_oset_implementation): Rename and change methods accordingly.
34761         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34762         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34763         'int'. Mark as __warn_unused_result__.
34764         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34765         gl_oset_create_empty.
34766         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34767         'int'.
34768         * lib/gl_array_oset.c: Don't include xalloc.h.
34769         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34770         malloc, not xmalloc.
34771         (grow): Change return type to 'int'. Don't call xalloc_die.
34772         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34773         to 'int'.
34774         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34775         'int'.
34776         (gl_array_oset_implementation): Update.
34777         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34778         gl_tree_create_empty.
34779         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34780         'int'.
34781         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34782         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34783         xmalloc.
34784         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34785         not xmalloc.
34786         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34787         xmalloc.
34788         (gl_avltree_oset_implementation): Update.
34789         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34790         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34791         xmalloc.
34792         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34793         not xmalloc.
34794         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34795         xmalloc.
34796         (gl_rbtree_oset_implementation): Update.
34797         * modules/array-oset (Depends-on): Remove xalloc.
34798         * modules/avltree-oset (Depends-on): Likewise.
34799         * modules/rbtree-oset (Depends-on): Likewise.
34800         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34801         * tests/test-avltree_oset.c: Likewise.
34802         * tests/test-rbtree_oset.c: Likewise.
34803         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34804         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34805         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34806         * NEWS: Mention the change.
34807
34808 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34809
34810         maint.mk: allow a project to override release-prep commands
34811         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34812         commands into a new rule.
34813         (release-prep): New rule.
34814         (release-prep-hook): New overridable variable.
34815
34816 2009-12-13  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34819
34820 2009-12-13  Jim Meyering  <meyering@redhat.com>
34821
34822         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34823         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34824
34825 2009-12-12  Bruno Haible  <bruno@clisp.org>
34826
34827         duplocale: Tweak.
34828         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34829
34830 2009-12-12  Karl Berry  <karl@gnu.org>
34831
34832         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34833
34834 2009-12-12  Bruno Haible  <bruno@clisp.org>
34835
34836         * m4/po.m4: Undo incorrect untabification.
34837
34838 2009-12-12  Bruno Haible  <bruno@clisp.org>
34839
34840         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34841         * modules/c-strtod (Depends-on): Add locale.
34842         * modules/c-strtold (Depends-on): Likewise.
34843
34844 2009-12-12  Bruno Haible  <bruno@clisp.org>
34845
34846         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34847
34848 2009-12-11  Eric Blake  <ebb9@byu.net>
34849
34850         setenv: relax requirement in light of POSIX ruling
34851         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34852         not NULL.
34853         * tests/test-setenv.c (main): Relax test.
34854         * tests/test-unsetenv.c (main): Likewise.
34855         * doc/posix-functions/setenv.texi (setenv): Document this.
34856         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34857
34858 2009-12-11  Bruno Haible  <bruno@clisp.org>
34859
34860         New module 'fd-safer-flag'.
34861         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34862         * lib/dup-safer.c (dup_safer_flag): Remove function.
34863         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34864         * lib/fd-safer.c (fd_safer_flag): Remove function.
34865         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34866         * modules/cloexec (configure.ac): Drop indicator macro.
34867         * modules/fd-safer-flag: New file.
34868         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34869         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34870         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34871
34872 2009-12-11  Bruno Haible  <bruno@clisp.org>
34873
34874         Tests for module 'nl_langinfo'.
34875         * modules/nl_langinfo-tests: New file.
34876         * tests/test-nl_langinfo.sh: New file.
34877         * tests/test-nl_langinfo.c: New file.
34878
34879         New module 'nl_langinfo'.
34880         * lib/nl_langinfo.c: New file.
34881         * m4/nl_langinfo.m4: New file.
34882         * modules/nl_langinfo: New file.
34883         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34884
34885 2009-12-11  Bruno Haible  <bruno@clisp.org>
34886
34887         Tests for module 'langinfo'.
34888         * modules/langinfo-tests: New file.
34889         * tests/test-langinfo.c: New file.
34890
34891         New module 'langinfo'.
34892         * lib/langinfo.in.h: New file.
34893         * m4/langinfo_h.m4: New file.
34894         * modules/langinfo: New file.
34895         * doc/posix-headers/langinfo.texi: Mention the new module.
34896
34897 2009-12-11  Bruno Haible  <bruno@clisp.org>
34898
34899         * lib/config.charset: Untabify.
34900
34901 2009-12-11  Bruno Haible  <bruno@clisp.org>
34902
34903         * modules/unistd-safer (configure.ac): Drop indicator macro.
34904
34905 2009-12-11  Bruno Haible  <bruno@clisp.org>
34906
34907         Move pipe2-safer code to its own file.
34908         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34909         * lib/pipe-safer.c (pipe2_safer): Remove function.
34910         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34911         (Makefile.am): Add it to lib_SOURCES.
34912
34913 2009-12-10  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34916
34917 2009-12-10  Bruno Haible  <bruno@clisp.org>
34918
34919         Declare which arguments expect non-NULL values, for GCC and clang.
34920         * build-aux/arg-nonnull.h: New file.
34921         * modules/arg-nonnull: New file.
34922         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34923         (inet_ntop, inet_pton): Use it.
34924         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34925         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34926         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34927         (open, openat): Use it.
34928         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34929         (fnmatch): Use it.
34930         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34931         (getopt, getopt_long, getopt_long_only): Use it.
34932         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34933         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34934         Use it.
34935         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34936         (iconv_open): Use it.
34937         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34938         (strtoimax, strtoumax): Use it.
34939         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34940         (duplocale): Use it.
34941         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34942         (frexp, frexpl): Use it.
34943         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34944         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34945         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34946         (tsearch, tfind, tdelete, twalk): Use it.
34947         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34948         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34949         sigpending): Use it.
34950         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34951         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34952         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34953         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34954         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34955         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34956         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34957         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34958         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34959         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34960         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34961         Use it.
34962         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34963         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34964         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34965         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34966         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34967         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34968         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34969         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34970         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34971         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34972         strtoull, unsetenv): Use it.
34973         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34974         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34975         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34976         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34977         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34978         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34979         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34980         (strcasecmp, strncasecmp): Use it.
34981         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34982         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34983         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34984         rpl_setsockopt): Use it.
34985         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34986         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34987         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34988         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34989         (gettimeofday): Use it.
34990         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34991         (times): Use it.
34992         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34993         (uname): Use it.
34994         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34995         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34996         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34997         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34998         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34999         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
35000         unlinkat, write): Use it.
35001         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
35002         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
35003         * lib/argv-iter.h: Include arg-nonnull.h.
35004         (_ATTRIBUTE_NONNULL_): Remove macro.
35005         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
35006         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
35007         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
35008         optimization.
35009         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
35010         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
35011         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
35012         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
35013         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
35014         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
35015         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
35016         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
35017         * modules/arpa_inet (Depends-on): Add arg-nonnull.
35018         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
35019         * modules/dirent (Depends-on): Add arg-nonnull.
35020         (Makefile.am): Insert arg-nonnull.h into dirent.h.
35021         * modules/fcntl-h (Depends-on): Add arg-nonnull.
35022         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
35023         * modules/fnmatch (Depends-on): Add arg-nonnull.
35024         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
35025         * modules/getopt-posix (Depends-on): Add arg-nonnull.
35026         (Makefile.am): Insert arg-nonnull.h into getopt.h.
35027         * modules/glob (Depends-on): Add arg-nonnull.
35028         (Makefile.am): Insert arg-nonnull.h into glob.h.
35029         * modules/iconv_open (Depends-on): Add arg-nonnull.
35030         (Makefile.am): Insert arg-nonnull.h into iconv.h.
35031         * modules/inttypes (Depends-on): Add arg-nonnull.
35032         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
35033         * modules/locale (Depends-on): Add arg-nonnull.
35034         (Makefile.am): Insert arg-nonnull.h into locale.h.
35035         * modules/math (Depends-on): Add arg-nonnull.
35036         (Makefile.am): Insert arg-nonnull.h into math.h.
35037         * modules/netdb (Depends-on): Add arg-nonnull.
35038         (Makefile.am): Insert arg-nonnull.h into netdb.h.
35039         * modules/search (Depends-on): Add arg-nonnull.
35040         (Makefile.am): Insert arg-nonnull.h into search.h.
35041         * modules/signal (Depends-on): Add arg-nonnull.
35042         (Makefile.am): Insert arg-nonnull.h into signal.h.
35043         * modules/spawn (Depends-on): Add arg-nonnull.
35044         (Makefile.am): Insert arg-nonnull.h into spawn.h.
35045         * modules/stdio (Depends-on): Add arg-nonnull.
35046         (Makefile.am): Insert arg-nonnull.h into stdio.h.
35047         * modules/stdlib (Depends-on): Add arg-nonnull.
35048         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
35049         * modules/string (Depends-on): Add arg-nonnull.
35050         (Makefile.am): Insert arg-nonnull.h into string.h.
35051         * modules/strings (Depends-on): Add arg-nonnull.
35052         (Makefile.am): Insert arg-nonnull.h into strings.h.
35053         * modules/sys_socket (Depends-on): Add arg-nonnull.
35054         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
35055         * modules/sys_stat (Depends-on): Add arg-nonnull.
35056         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
35057         * modules/sys_time (Depends-on): Add arg-nonnull.
35058         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
35059         * modules/sys_times (Depends-on): Add arg-nonnull.
35060         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
35061         * modules/sys_utsname (Depends-on): Add arg-nonnull.
35062         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
35063         * modules/time (Depends-on): Add arg-nonnull.
35064         (Makefile.am): Insert arg-nonnull.h into time.h.
35065         * modules/unistd (Depends-on): Add arg-nonnull.
35066         (Makefile.am): Insert arg-nonnull.h into unistd.h.
35067         * modules/wchar (Depends-on): Add arg-nonnull.
35068         (Makefile.am): Insert arg-nonnull.h into wchar.h.
35069         * modules/argv-iter (Depends-on): Add arg-nonnull.
35070         * tests/test-canonicalize.c (null_ptr): New function.
35071         (main): Use it.
35072         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
35073         (main): Use it.
35074         * tests/test-memmem.c (null_ptr): New function.
35075         (main): Use it.
35076         Reported by Jim Meyering.
35077
35078 2009-12-10  Bruno Haible  <bruno@clisp.org>
35079
35080         Use spaces for indentation, not tabs.
35081         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
35082         * m4/*.m4: Untabify.
35083         * build-aux/*.h: Untabify.
35084         * tests/**/*.[hc]: Untabify.
35085         * README: New section "Indent with spaces, not TABs", based on
35086         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
35087         * NEWS: Mention the change.
35088
35089 2009-12-10  Bruno Haible  <bruno@clisp.org>
35090
35091         pty test: Fix link error.
35092         * modules/pty-tests (Makefile.am): Add the default LDADD value to
35093         test_pty_LDADD.
35094
35095 2009-12-07  Simon Josefsson  <simon@josefsson.org>
35096
35097         * modules/pty: New file.
35098         * modules/pty-tests: New file.
35099         * m4/pty.m4: New file.
35100         * tests/test-pty.c: New file.
35101         * doc/glibc-headers/pty.texi: Modified.
35102         * doc/glibc-functions/forkpty.texi: Modified.
35103         * doc/glibc-functions/openpty.texi: Modified.
35104
35105 2009-12-10  Bruno Haible  <bruno@clisp.org>
35106
35107         Avoid syntax error in C++ mode.
35108         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
35109
35110 2009-12-10  Bruno Haible  <bruno@clisp.org>
35111
35112         Use sed with option -e.
35113         * gnulib-tool (func_version, func_emit_copyright_notice,
35114         func_emit_initmacro_end, func_import, func_create_testdir): Pass
35115         option -e to sed.
35116         * modules/link-warning (Makefile.am): Likewise.
35117
35118 2009-12-10  Jim Meyering  <meyering@redhat.com>
35119
35120         mgetgroups: do not write bytes beyond end of malloc'd buffer
35121         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
35122         username, we call getgroups with a one-element-shorter buffer,
35123         but still told it the length was original, max_n_groups.
35124
35125 2009-12-09  Eric Blake  <ebb9@byu.net>
35126
35127         cloexec: relax license
35128         * modules/cloexec (Maintainer): Add myself.
35129         (License): Use LGPL, not GPL.
35130
35131         link-warning: optimize generation
35132         * modules/link-warning (Makefile.am): Reduce process usage.
35133
35134 2009-12-09  Bruno Haible  <bruno@clisp.org>
35135
35136         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
35137         workaround was added on 2009-11-17.
35138
35139 2009-12-09  Jim Meyering  <meyering@redhat.com>
35140             Bruno Haible  <bruno@clisp.org>
35141
35142         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
35143         * modules/link-warning (Makefile.am): Make the comment-removing sed
35144         command more robust in the face of bootstrap-prepended comment lines.
35145
35146 2009-12-09  Bruno Haible  <bruno@clisp.org>
35147
35148         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35149         most one group.
35150
35151 2009-12-09  Simon Josefsson <simon@josefsson.org>
35152             Bruno Haible  <bruno@clisp.org>
35153
35154         * build-aux/link-warning.h: Add copyright notice.
35155         * modules/link-warning (Makefile.am): Generate link-warning.h from
35156         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35157         * NEWS: Mention change in link-warning module.
35158         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35159         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35160         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35161         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35162         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35163         * modules/math (Makefile.am): Add dependency to math.h.
35164         * modules/search (Makefile.am): Add dependency to search.h.
35165         * modules/signal (Makefile.am): Add dependency to signal.h.
35166         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35167         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35168         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35169         * modules/string (Makefile.am): Add dependency to string.h.
35170         * modules/strings (Makefile.am): Add dependency to strings.h.
35171         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35172         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35173         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35174         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35175         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35176         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35177         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35178         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35179         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35180
35181 2009-12-09  Bruno Haible  <bruno@clisp.org>
35182
35183         fchdir: Optimize away rpl_fstat when possible.
35184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35185         REPLACE_OPEN_DIRECTORY.
35186         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35187
35188 2009-12-09  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/fchdir.c: Update comment.
35191
35192 2009-12-09  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35195
35196 2009-12-08  Eric Blake  <ebb9@byu.net>
35197
35198         fchdir: avoid memory leak on re-registration.
35199         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35200
35201 2009-12-08  Jim Meyering  <meyering@redhat.com>
35202
35203         init.sh: avoid Solaris 10 /bin/sh portability problem
35204         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35205         sourced script:
35206           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35207           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35208           bar
35209         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35210         and two tests used that idiom.
35211         * tests/init.sh: Update suggested usage comments.
35212         (path_prepend_): New function, to be used in place
35213         of the --src-path=DIR option.
35214         (setup_): Move PATH-prepending code into path_prepend_.
35215         * tests/test-pread.sh: Adapt to new usage.
35216         * tests/test-xalloc-die.sh: Likewise.
35217
35218 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35219
35220         * doc/gnulib.texi (Glibc pty.h): Add.
35221         * doc/glibc-functions/forkpty.texi: Add.
35222         * doc/glibc-functions/openpty.texi: Add.
35223         Suggested by Bruno Haible.
35224
35225 2009-12-08  Eric Blake  <ebb9@byu.net>
35226
35227         fchdir: fix logic bugs
35228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35229         * tests/test-fchdir.c (main): Enhance test.
35230         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35231         is in use.
35232
35233         dup2: fix logic bugs
35234         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35235         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35236         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35237         exists.
35238         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35239
35240 2009-12-07  Eric Blake  <ebb9@byu.net>
35241
35242         unlink: fix m4 detection
35243         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35244
35245         unistd-safer: add unit test
35246         * modules/unistd-safer-tests: New file.
35247         * tests/test-dup-safer.c: Likewise.
35248         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35249         * tests/test-dup2.c (setmode): Likewise.
35250         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35251
35252         cloexec: preserve text vs. binary across dup_cloexec
35253         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35254         mode.
35255         * modules/dup2-tests (Depends-on): Add binary-io.
35256         * modules/cloexec-tests (Depends-on): Likewise.
35257         * tests/test-dup2.c (setmode, is_mode): New helpers.
35258         (main): Add tests that translation mode is preserved.
35259         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35260         Reported by Bruno Haible.
35261
35262         mgetgroups: reduce duplicate listings
35263         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35264         resulting array.
35265         * tests/test-chown.h (test_chown): Simplify client.
35266         * tests/test-lchown.h (test_lchown): Likewise.
35267
35268 2009-12-06  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35271         value.
35272
35273 2009-12-06  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/progname.c: Include stdio.h, stdlib.h.
35276         (set_program_name): Reject a NULL argument.
35277
35278 2009-12-05  Eric Blake  <ebb9@byu.net>
35279
35280         pipe2-safer: new module
35281         * modules/pipe2-safer: New file.
35282         * lib/unistd-safer.h (pipe2_safer): New prototype.
35283         * lib/unistd--.h (pipe2): New wrapper.
35284         * lib/pipe-safer.c (pipe2_safer): New function.
35285         * modules/pipe (Depends-on): Add pipe2-safer.
35286         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35287
35288         stdlib-safer: preserve cloexec flag for mkostemp[s]
35289         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35290         fd_safer_flag.
35291
35292         unistd-safer: allow preservation of cloexec status via flag
35293         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35294         prototypes.
35295         * lib/dup-safer.c (dup_safer_flag): New function.
35296         * lib/fd-safer.c (fd_safer_flag): Likewise.
35297         * modules/cloexec (configure.ac): Set witness.
35298
35299         test-dup2: enhance test
35300         * modules/dup2-tests (Depends-on): Add cloexec.
35301         * tests/test-dup2.c (main): Enhance test.
35302
35303         cloexec: add dup_cloexec
35304         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35305         header and comments.
35306         * lib/cloexec.c (set_cloexec_flag): Add comments.
35307         (dup_cloexec): New function, with mingw implementation borrowed
35308         from...
35309         * lib/w32spawn.h (dup_noinherit): ...here.
35310         * modules/execute (Depends-on): Add cloexec.
35311         * modules/pipe (Depends-on): Likewise.
35312         * modules/cloexec (Depends-on): Add dup2.
35313         * modules/cloexec-tests (Files): New file.
35314         * tests/test-cloexec.c: Likewise.
35315
35316         test-xalloc-die: fix test for mingw
35317         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35318         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35319         directory and .exe suffix off argv[0] output.
35320
35321         test-fseeko: fix test for mingw
35322         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35323         than undefining fseek, so test will pass on mingw.
35324
35325 2009-12-05  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/progname.h (set_program_name): Clarify specification.
35328         * lib/progname.c (set_program_name): Likewise.
35329         Reported by Jim Meyering.
35330
35331 2009-12-05  Jim Meyering  <meyering@redhat.com>
35332
35333         maint.mk: backslash-escape parens in default regexp
35334         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35335         backslash-escape the literal parentheses.
35336
35337         maint.mk: news-date-check: use grep -E
35338         * top/maint.mk (today): Define a Make variable, not a...
35339         (news-date-check): ...shell variable.
35340         (news-date-regexp): Use the Make variable.
35341         Use grep's -E option.  Change the failing diagnostic to mention
35342         the variable, $(news-date-regexp).
35343
35344 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35345
35346         maintainer-makefile: allow customization of NEWS entry format
35347         * top/maint.mk (news-date-regexp): New overridable variable.
35348         (news-date-check): Use it.
35349
35350 2009-12-04  Eric Blake  <ebb9@byu.net>
35351
35352         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35353         * lib/mgetgroups.h (xgetgroups): New prototype.
35354         * lib/mgetgroups.c (xgetgroups): New wrapper.
35355         (mgetgroups): Handle ENOSYS.
35356         * modules/mgetgroups (Depends-on): Add realloc.
35357         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35358
35359         mgetgroups: avoid argument promotion issues with -1
35360         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35361         for invalid gid_t.
35362         * tests/test-chown.h (getegid, test_chown): Likewise.
35363         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35364
35365 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35366
35367         exclude: Fix header file problems.
35368         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35369
35370 2009-12-01  Jim Meyering  <meyering@redhat.com>
35371
35372         fts: fts_open: do not let an empty string cause immediate failure
35373         This is required in support of GNU rm, for which the command
35374         "rm A '' B" must process and remove both A and B, in spite of
35375         the empty string argument.
35376         * lib/fts.c (fts_open): Do not let the presence of an empty string
35377         cause fts_open to fail immediately.  Most fts-using tools must be
35378         able to process all arguments, in order, and can be expected to
35379         diagnose such arguments themselves.
35380
35381 2009-11-30  Eric Blake  <ebb9@byu.net>
35382
35383         utimens: fix compilation error
35384         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35385         Declare variable at right scope.
35386
35387 2009-11-29  Jim Meyering  <meyering@redhat.com>
35388
35389         bootstrap: handle perl-5.11's changed --version output
35390         * build-aux/bootstrap (get_version): Handle perl separately,
35391         since perl-5.11's --version output is different.
35392
35393 2009-11-28  Jim Meyering  <meyering@redhat.com>
35394
35395         userspec: depend on the inttostr module, too
35396         * modules/userspec (Depends-on): Add inttostr.
35397
35398         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35399         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35400         number of MAXUID when it evaluates to (uid_t) -1.
35401         Likewise for group ID.  Reported by Matt McCutchen in
35402         <http://savannah.gnu.org/bugs/?28113>
35403
35404         userspec: reformat to use spaces, not TABs
35405         * lib/userspec.c: Expand TABs to spaces.
35406         Add Emacs' "indent-tabs-mode: nil" hint.
35407
35408 2009-11-27  Eric Blake  <ebb9@byu.net>
35409
35410         getopt-gnu: flush out another BSD bug
35411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35412         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35413         flush out BSD bug.
35414         * tests/test-getopt.h (test_getopt): End lists with NULL.
35415         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35416         (test_getopt_long_posix): Enhance test.
35417         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35418         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35419         getopt-gnu.
35420         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35421         Likewise.
35422
35423 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35424
35425         * modules/idpriv-droptemp-tests (Notice): Fix text.
35426
35427 2009-11-27  Jim Meyering  <meyering@redhat.com>
35428
35429         test-xalloc-die: avoid spurious failure due to libtool argv difference
35430         In a libtool-enabled project, this test would fail due to a difference
35431         in the emitted program name, e.g.,
35432         -test-xalloc-die: memory exhausted
35433         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35434         Use program to avoid that.
35435         * modules/xalloc-die-tests (Depends-on): Add progname.
35436         * tests/test-xalloc-die.c: Include progname.h".
35437         (program_name): Remove decl.
35438         (main): Call set_program_name.
35439         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35440
35441 2009-11-26  Richard Jones  <rjones@redhat.com>
35442
35443         w32sock: leave win32 error in place.
35444         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35445
35446 2009-11-26  Eric Blake  <ebb9@byu.net>
35447
35448         init.sh: suggest to use skip_ and fail_ functions in comments
35449         * tests/init.sh: Add a sentence.
35450
35451 2009-11-25  Bruno Haible  <bruno@clisp.org>
35452
35453         init.sh: add documentation in comments
35454         * tests/init.sh: Add some developer and user documentation.
35455
35456 2009-11-26  Jim Meyering  <meyering@redhat.com>
35457
35458         init.sh: accommodate even those who specify bogus srcdir manually
35459         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35460         configure-time tests to be sanitized, so that there is no need to
35461         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35462         (with no double quotes) suffices.  However, since tests may be
35463         invoked manually, and since you may explicitly set srcdir to the
35464         name of a directory containing spaces, do quote its uses here.
35465         * tests/test-pread.sh: Likewise.
35466         Suggested by Bruno Haible.
35467
35468         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35469         * tests/test-pread.sh: Write no data into the pipe, because
35470         test-pread actually reads none.  This avoids a diagnostic,
35471         "bash: echo: write error: Broken pipe", that arises in the unusual
35472         event something is ignoring SIGPIPE, and might be interpreted
35473         as some sort of failure.  Reported by Bruno Haible.
35474
35475 2009-11-25  Jim Meyering  <meyering@redhat.com>
35476
35477         test-pread: cover failure with ESPIPE and EINVAL
35478         * tests/test-pread.c (main): Test for failure, too.
35479         * tests/test-pread.sh: Invoke with stdin on a pipe.
35480         Suggested by Eric Blake.
35481
35482         pread: improvement and fix
35483         * modules/pread (Depends-on): Depend on lseek, for portability to
35484         e.g., mingw.  Suggested by Eric Blake.
35485         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35486
35487         unistd.in.h: correct declaration of pread
35488         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35489         Reported by Richard W.M. Jones.
35490
35491         test-pread.sh: distribute the test script
35492         * modules/pread-tests (Files): Include test-pread.sh.
35493
35494         test-pread.sh: clean up
35495         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35496         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35497         That is unnecessary, since it's always ".".
35498         Suggestion from Eric Blake.
35499
35500         test-pread.sh: make executable
35501         * tests/test-pread.sh: Set executable bit.
35502         Reported by Eric Blake.
35503
35504         correct typo in test-pread.sh
35505         * tests/test-pread.sh: Add #! line.
35506
35507         test pread
35508         * tests/test-pread.c: New file.
35509         * tests/test-pread.sh: Likewise.
35510         * modules/pread-tests: Likewise.
35511
35512         pread: new module
35513         * modules/pread: New file.
35514         * lib/unistd.in.h (pread): Define/declare.
35515         * lib/pread.c (pread): New file.
35516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35517         * modules/unistd (Makefile.am): Substitute witnesses.
35518         * doc/posix-functions/pread.texi (pread): Update.
35519         * MODULES.html.sh: Add pread.
35520
35521 2009-11-25  Jim Meyering  <meyering@redhat.com>
35522
35523         tests/init.sh: new file to be used via most *.sh tests
35524         * tests/init.sh: New file.
35525
35526 2009-11-25  Eric Blake  <ebb9@byu.net>
35527
35528         utimens: work around older Linux failure with symlinks
35529         * lib/utimens.c (lutimensat_works_really): New variable.
35530         (fdutimens, lutimens): Use it to manage kernels that support
35531         nanosecond times on files, but not on symlinks.
35532         Reported by OndÅ™ej Vašík.
35533
35534         utimes: fix configure grammar
35535         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35536
35537 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35538
35539         regex: Fix fastmap for multibyte character ranges.
35540         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35541         characters when a multibyte character range is included.
35542
35543 2009-11-22  Andy Wingo  <wingo@pobox.com>
35544
35545         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35546         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35547
35548 2009-11-24  Bruno Haible  <bruno@clisp.org>
35549
35550         doc: Most *_l functions exist in MacOS X 10.5.
35551         * doc/posix-functions/duplocale.texi: Update platforms list.
35552         * doc/posix-functions/freelocale.texi: Likewise.
35553         * doc/posix-functions/newlocale.texi: Likewise.
35554         * doc/posix-functions/uselocale.texi: Likewise.
35555         * doc/posix-functions/isalnum_l.texi: Likewise.
35556         * doc/posix-functions/isalpha_l.texi: Likewise.
35557         * doc/posix-functions/isblank_l.texi: Likewise.
35558         * doc/posix-functions/iscntrl_l.texi: Likewise.
35559         * doc/posix-functions/isdigit_l.texi: Likewise.
35560         * doc/posix-functions/isgraph_l.texi: Likewise.
35561         * doc/posix-functions/islower_l.texi: Likewise.
35562         * doc/posix-functions/isprint_l.texi: Likewise.
35563         * doc/posix-functions/ispunct_l.texi: Likewise.
35564         * doc/posix-functions/isspace_l.texi: Likewise.
35565         * doc/posix-functions/isupper_l.texi: Likewise.
35566         * doc/posix-functions/iswalnum_l.texi: Likewise.
35567         * doc/posix-functions/iswalpha_l.texi: Likewise.
35568         * doc/posix-functions/iswblank_l.texi: Likewise.
35569         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35570         * doc/posix-functions/iswctype_l.texi: Likewise.
35571         * doc/posix-functions/iswdigit_l.texi: Likewise.
35572         * doc/posix-functions/iswgraph_l.texi: Likewise.
35573         * doc/posix-functions/iswlower_l.texi: Likewise.
35574         * doc/posix-functions/iswprint_l.texi: Likewise.
35575         * doc/posix-functions/iswpunct_l.texi: Likewise.
35576         * doc/posix-functions/iswspace_l.texi: Likewise.
35577         * doc/posix-functions/iswupper_l.texi: Likewise.
35578         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35579         * doc/posix-functions/isxdigit_l.texi: Likewise.
35580         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35581         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35582         * doc/posix-functions/strcoll_l.texi: Likewise.
35583         * doc/posix-functions/strfmon_l.texi: Likewise.
35584         * doc/posix-functions/strftime_l.texi: Likewise.
35585         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35586         * doc/posix-functions/strxfrm_l.texi: Likewise.
35587         * doc/posix-functions/tolower_l.texi: Likewise.
35588         * doc/posix-functions/toupper_l.texi: Likewise.
35589         * doc/posix-functions/towctrans_l.texi: Likewise.
35590         * doc/posix-functions/towlower_l.texi: Likewise.
35591         * doc/posix-functions/towupper_l.texi: Likewise.
35592         * doc/posix-functions/wcscoll_l.texi: Likewise.
35593         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35594         * doc/posix-functions/wctrans_l.texi: Likewise.
35595         * doc/posix-functions/wctype_l.texi: Likewise.
35596         * doc/glibc-functions/strptime_l.texi: Likewise.
35597         * doc/glibc-functions/strtod_l.texi: Likewise.
35598         * doc/glibc-functions/strtof_l.texi: Likewise.
35599         * doc/glibc-functions/strtol_l.texi: Likewise.
35600         * doc/glibc-functions/strtold_l.texi: Likewise.
35601         * doc/glibc-functions/strtoll_l.texi: Likewise.
35602         * doc/glibc-functions/strtoul_l.texi: Likewise.
35603         * doc/glibc-functions/strtoull_l.texi: Likewise.
35604         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35605         * doc/glibc-functions/wcstod_l.texi: Likewise.
35606         * doc/glibc-functions/wcstof_l.texi: Likewise.
35607         * doc/glibc-functions/wcstol_l.texi: Likewise.
35608         * doc/glibc-functions/wcstold_l.texi: Likewise.
35609         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35610         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35611         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35612
35613 2009-11-24  Bruno Haible  <bruno@clisp.org>
35614
35615         duplocale: Fix logic bug.
35616         * lib/duplocale.c: Don't include <langinfo.h>.
35617         (_NL_LOCALE_NAME): Remove macro.
35618         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35619         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35620
35621 2009-11-23  Jim Meyering  <meyering@redhat.com>
35622
35623         test-update-copyright: don't hard-code /usr/bin/perl
35624         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35625         perl to print the current year.  Gilles Espinasse reported that
35626         the replaced use of perl was hard-coded as /usr/bin/perl.
35627
35628 2009-11-23  Bruno Haible  <bruno@clisp.org>
35629
35630         duplocale: Add support for glibc 2.3.x.
35631         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35632
35633 2009-11-22  Bruno Haible  <bruno@clisp.org>
35634
35635         vasnprintf: Tiny optimization.
35636         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35637         MacOS X.
35638
35639 2009-11-22  Bruno Haible  <bruno@clisp.org>
35640
35641         Tests for module 'duplocale'.
35642         * modules/duplocale-tests: New file.
35643         * tests/test-duplocale.c: New file.
35644
35645         New module 'duplocale'.
35646         * m4/duplocale.m4: New file.
35647         * lib/locale.in.h (duplocale): New declaration.
35648         * lib/duplocale.c: New file.
35649         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35650         gl_LOCALE_H_DEFAULTS): New macros.
35651         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35652         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35653         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35654         REPLACE_DUPLOCALE.
35655         * modules/duplocale: New file.
35656         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35657
35658 2009-11-22  Bruno Haible  <bruno@clisp.org>
35659
35660         * modules/locale-tests (configure.ac): Test for newlocale function.
35661         * tests/test-locale.c: When the system has extended locale functions,
35662         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35663
35664         locale: Make locale_t available when possible.
35665         * lib/locale.in.h: Include <xlocale.h> when it exists.
35666         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35667         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35668         * modules/locale (Depends-on): Add extensions.
35669         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35670         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35671
35672 2009-11-22  Bruno Haible  <bruno@clisp.org>
35673
35674         Add comments.
35675         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35676         invocation.
35677         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35678         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35679         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35680
35681 2009-11-22  Bruno Haible  <bruno@clisp.org>
35682
35683         error: account for the possibility of freopen (stdout).
35684         * lib/error.c: Include <unistd.h>.
35685         (flush_stdout): New function, extracted from error and error_at_line.
35686         Determine stdout's fd dynamically.
35687         (error, error_at_line): Invoke flush_stdout.
35688         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35689         * modules/error (Depends-on): Add unistd.
35690
35691 2009-11-22  Bruno Haible  <bruno@clisp.org>
35692
35693         diffseq: Add comment.
35694         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35695
35696 2009-11-22  Jim Meyering  <meyering@redhat.com>
35697
35698         c-stack: avoid defining an unused static function
35699         * lib/c-stack.c (find_stack_direction): Do not define this function
35700         when it will not be used.
35701
35702         diffseq: avoid spurious gcc warnings
35703         * lib/diffseq.h (IF_LINT2): Define.
35704         (compareseq): Use it to initialize two members of "part".
35705         This avoids two used-uninitialized warnings.
35706
35707 2009-11-21  Jim Meyering  <meyering@redhat.com>
35708
35709         c-stack: avoid "ignoring return value of `write'" warning
35710         * lib/c-stack.c: Include "ignore-value.h".
35711         (die): Explicitly ignore each write return value.
35712         * modules/c-stack (Depends-on): Add ignore-value.
35713
35714 2009-11-21  Bruno Haible  <bruno@clisp.org>
35715
35716         diffseq: reduce scope of variable 'best'.
35717         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35718         variable, earlier used for two different purposes.
35719
35720 2009-11-21  Jim Meyering  <meyering@redhat.com>
35721
35722         diffseq: remove useless assignment to "best"
35723         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35724         assignment.  At that point "best" is already guaranteed to be zero.
35725
35726 2009-11-20  Eric Blake  <ebb9@byu.net>
35727
35728         build: mention ftp redirector in release announcements
35729         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35730         values that used to come from cfg.mk; mention FTP redirect URL.
35731         * build-aux/announce-gen: Mention the mirror list.
35732         Suggested by Karl Berry.
35733
35734         nanosleep: improve port to mingw
35735         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35737         LIB_NANOSLEEP, but only when needed.
35738         * modules/select (Link): Document LIBSOCKET.
35739         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35740         enough.
35741
35742         nanosleep: work around cygwin bug
35743         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35744         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35745         bug.
35746         (getnow): Delete, not needed.
35747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35748         LIB_CLOCK_GETTIME.
35749         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35750         clock-time, gettime.
35751         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35752         bug.
35753         * modules/nanosleep-tests: New test.
35754         * tests/test-nanosleep.c: New file.
35755
35756         sleep: work around cygwin bug
35757         * lib/sleep.c (rpl_sleep): Work around the bug.
35758         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35759         (gl_PREREQ_SLEEP): Delete unused macro.
35760         * modules/sleep (Depends-on): Add verify.
35761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35762         * modules/unistd (Makefile.am): Substitute witness.
35763         * lib/unistd.in.h (sleep): Update prototype.
35764         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35765         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35766         * modules/sleep-tests (Depends-on): Check for alarm.
35767
35768 2009-11-20  Jim Meyering  <meyering@redhat.com>
35769
35770         maint.mk: improve sc_prohibit_magic_number_exit
35771         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35772         so it does not match uses like System.exit(1).
35773         Add comments showing how to correct all offenders.
35774
35775 2009-11-19  Eric Blake  <ebb9@byu.net>
35776
35777         xalloc-die-tests: add missing library
35778         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35779
35780         test-xvasprintf: silence compiler warnings
35781         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35782         empty string from gcc.
35783
35784 2009-11-19  Jim Meyering  <meyering@redhat.com>
35785
35786         xfreopen: new module, from coreutils
35787         * modules/xfreopen: New module.
35788         * lib/xfreopen.c: New file.
35789         * lib/xfreopen.h: New file.
35790         * MODULES.html.sh (File stream based Input/Output"): Add it.
35791
35792 2009-11-19  Eric Blake  <ebb9@byu.net>
35793
35794         manywarnings: depend on warnings
35795         * modules/manywarnings (Depends-on): Add warnings.
35796
35797         build: avoid compiler warnings
35798         * lib/select.c (rpl_select): Delete unused variable.
35799         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35800
35801 2009-11-18  Eric Blake  <ebb9@byu.net>
35802
35803         tests: avoid false negative with --with-packager
35804         * tests/test-version-etc.sh: Discard packager information.
35805         * tests/test-argp-version-etc-1.sh: Likewise.
35806         Reported by Mike Frysinger.
35807
35808         utimens: fix regression on Solaris
35809         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35810         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35811         can only change fd timestamps via futimesat.  Instead, use an
35812         additional witness macro to avoid BSD bug.
35813         Reported by Jim Meyering.
35814
35815 2009-11-17  Eric Blake  <ebb9@byu.net>
35816
35817         usleep: use it to simplify tests
35818         * modules/stat-time-tests (Depends-on): Add usleep.
35819         (configure.ac): Drop usleep check.
35820         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35821         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35822         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35823         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35824         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35825         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35826         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35827         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35828         Likewise.
35829         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35830         * tests/test-lchown.h (nap): Likewise.
35831         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35832         * tests/test-stat-time.c (nap): Likewise.
35833         * tests/test-utimens-common.h (nap): Update comments.
35834
35835         usleep: new module
35836         * modules/usleep: New file.
35837         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35838         * lib/usleep.c (usleep): Likewise.
35839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35840         * modules/unistd (Makefile.am): Substitute witnesses.
35841         * lib/unistd.in.h (usleep): Add declaration.
35842         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35843         * MODULES.html.sh (Date and time): Likewise.
35844         * modules/usleep-tests (Depends-on): New test.
35845         * tests/test-usleep.c: New file.
35846
35847         chown: work around OpenBSD bug
35848         * lib/chown.c (rpl_chown): Work around the bug.
35849         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35850         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35851         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35852         * modules/chown (Depends-on): Add stdbool.
35853         * modules/lchown (Depends-on): Likewise.
35854         * doc/posix-functions/chown.texi (chown): Document the bug.
35855         * doc/posix-functions/lchown.texi (lchown): Likewise.
35856         * tests/test-lchown.h (test_chown): Relax test.
35857
35858         mkstemp: avoid conflict with C++ keyword template
35859         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35860         * lib/mkostemp.c (mkostemp): Likewise.
35861         * lib/mkostemps.c (mkostemps): Likewise.
35862         * lib/mkstemp.c (mkstemp): Likewise.
35863         * lib/mkstemps.c (mkstemps): Likewise.
35864
35865         xalloc-die-tests: optimize
35866         * tests/test-xalloc-die.sh: Reduce number of processes.
35867
35868 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35869
35870         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35871         patch from ludo@gnu.org (Ludovic Courtès).
35872
35873 2009-11-17  Jim Meyering  <meyering@redhat.com>
35874
35875         version-etc: use proper license string
35876         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35877         * modules/version-etc-fsf: Likewise.
35878
35879 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35880
35881         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35882         printed to stdout.  Deal with EOL differences.
35883
35884 2009-11-17  Eric Blake  <ebb9@byu.net>
35885
35886         unsetenv: work around Solaris bug
35887         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35888         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35889         Reported by Jim Meyering.
35890
35891         vasnprintf: avoid compiler warnings
35892         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35893         variables.
35894         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35895
35896 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35897
35898         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35899         settings since xalloc-die is no longer the self test,
35900         xalloc-die.sh is.
35901
35902 2009-11-17  Jim Meyering  <meyering@redhat.com>
35903
35904         test-xalloc-die.sh: make the code agree with the commit log
35905         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35906         at the end, just in case you happen to have a test-xalloc-die
35907         program in some other PATH directory.
35908
35909         test-xalloc-die.sh: fix a portability bug
35910         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35911         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35912         Otherwise, argv[0] (as often seen in diagnostics) would be too
35913         system-dependent, sometimes with, and sometimes without the leading "./".
35914
35915         version-etc-fsf: relax license to LGPLv3+
35916         * modules/version-etc-fsf (License): Relax license.
35917
35918 2009-11-16  Eric Blake  <ebb9@byu.net>
35919
35920         xalloc-die-tests: avoid printing null pointer
35921         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35922         shell script.
35923         * tests/test-xalloc-die.c (program_name): Declare.
35924         * tests/test-xalloc-die.sh (tmpfiles): New file.
35925
35926         setenv, unsetenv: work around various bugs
35927         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35928         (setenv) [HAVE_SETENV]: Work around bugs.
35929         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35930         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35931         for bugs.
35932         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35933         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35935         * modules/stdlib (Makefile.am): Update substitutions.
35936         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35937         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35938         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35939         * modules/setenv-tests: New test.
35940         * modules/unsetenv-tests: Likewise.
35941         * tests/test-setenv.c: New file.
35942         * tests/test-unsetenv.c: Likewise.
35943
35944 2009-11-16  Jim Meyering  <meyering@redhat.com>
35945
35946         version-etc: relax license to LGPLv3+
35947         * modules/version-etc (License): Relax license.
35948
35949         better AC_REQUIRE expanded-before-required-warning avoidance
35950         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35951         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35952         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35953         which is no longer needed.
35954
35955 2009-11-16  Eric Blake  <ebb9@byu.net>
35956
35957         test-freading: clean up temporary file
35958         * tests/test-freading.c (main): Remove file on success, and use
35959         ASSERT more liberally.
35960         Reported by Jim Meyering.
35961
35962 2009-11-16  Jim Meyering  <meyering@redhat.com>
35963
35964         avoid new AC_REQUIRE expanded-before-required warnings
35965         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35966         merely using it.
35967         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35968         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35969
35970 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35971
35972         * tests/test-xalloc-die.c: New file.
35973         * modules/xalloc-die-tests: New file.
35974         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35975         XFAIL_TESTS so it can be appended by modules.
35976
35977 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35978
35979         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35980         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35981
35982 2009-11-14  Eric Blake  <ebb9@byu.net>
35983
35984         fnmatch: avoid compiler warning
35985         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35986         to silence compiler warning about mismatch signedness in ?:.
35987         Reported by Robert Millan.
35988
35989         intprops: add double-inclusion guard
35990         * lib/intprops.h: Allow idempotent includes.
35991         Suggested by Bruce Korb.
35992
35993         openat: detect Solaris fchownat bug
35994         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35995         penalizing glibc chownat when only lchownat is broken.
35996         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35997         trailing slash bugs.
35998         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35999         * modules/openat-tests (Files): Include more files.
36000         (Depends-on): Add mgetgroups, sleep, stat-time.
36001         (configure.ac): Add additional checks.
36002         (Makefile.am): Build new test.
36003         * tests/test-fchownat.c: New file.
36004
36005         lchown: detect Solaris and FreeBSD bug
36006         * lib/lchown.c (rpl_lchown): Work around bug.
36007         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
36008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36009         * modules/unistd (Makefile.am): Populate it.
36010         * lib/unistd.in.h (lchown): Update declaration.
36011         * doc/posix-functions/lchown.texi (lchown): Document the bug.
36012         * modules/lchown-tests: New file.
36013         * tests/test-lchown.h (test_lchown): Likewise.
36014         * tests/test-lchown.c (main): Likewise.
36015
36016         chown: detect Solaris and FreeBSD bug
36017         * lib/chown.c (rpl_chown): Work around bug.
36018         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
36019         (gl_PREREQ_CHOWN): Delete.
36020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36021         * modules/unistd (Makefile.am): Populate it.
36022         * lib/unistd.in.h (chown): Update declaration.
36023         * lib/lchown.c (chown): Update client.
36024         * modules/lchown (Depends-on): Add lstat.
36025         * doc/posix-functions/chown.texi (chown): Document the bug.
36026         * doc/posix-functions/getgroups.texi (getgroups): Document
36027         getgroups pitfall.
36028         * modules/chown-tests: New file.
36029         * tests/test-chown.h (test_chown): Likewise.
36030         * tests/test-chown.c (main): Likewise.
36031
36032 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
36033
36034         gnulib-tool: correctly detect absence of m4 directories
36035         * gnulib-tool: Avoid extra newline on data passed to wc -l.
36036
36037 2009-11-14  Jim Meyering  <meyering@redhat.com>
36038
36039         maint.mk: Prohibit inclusion of "xalloc.h" without use.
36040         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36041
36042 2009-11-14  John W. Eaton  <jwe@gnu.org>
36043
36044         strftime.h: wrap funtion declaration in extern "C" block
36045         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
36046
36047 2009-11-13  Eric Blake  <ebb9@byu.net>
36048
36049         getgroups: avoid compiler warning
36050         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
36051
36052         getgroups: work around FreeBSD bug
36053         * lib/getgroups.c (rpl_getgroups): Work around the bug.
36054         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
36055         * doc/posix-functions/getgroups.texi (getgroups): Document it.
36056         * tests/test-getgroups.c (main): Fix buffer overrun.
36057
36058         getgroups: avoid compilation failure
36059         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
36060         * modules/getgroups (Depends-on): Add stdint.
36061
36062 2009-11-13  Jim Meyering  <meyering@redhat.com>
36063
36064         test-getgroups: avoid compilation failure
36065         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
36066
36067 2009-11-13  Eric Blake  <ebb9@byu.net>
36068
36069         mgetgroups: new module, taken from coreutils
36070         * modules/mgetgroups: New file.
36071         * lib/mgetgroups.h: Likewise.
36072         * lib/mgetgroups.c (mgetgroups): Likewise.
36073         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
36074         * MODULES.html.sh (Users and groups): Mention it.
36075
36076         getgroups: don't expose GETGROUPS_T to user
36077         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
36078         an element at a time if GETGROUPS_T is wrong size.
36079         * lib/getugroups.h (getugroups): Change signature.
36080         * lib/unistd.in.h (getgroups): Likewise.
36081         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
36082         signature needs fixing.
36083         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
36084         AC_TYPE_GETGROUPS.
36085         * modules/group-member (Depends-on): Add getgroups.
36086         * lib/group-member.c (group_info, get_group_info): Use gid_t.
36087         (group_member): Rely on getgroups replacement.
36088         * lib/getugroups.c (getugroups): Use gid_t.
36089         * tests/test-getgroups.c (main): Likewise.
36090         * NEWS: Mention the signature change.
36091         * doc/posix-functions/getgroups.texi (getgroups): Mention the
36092         problem with signature.
36093         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
36094         GETGROUPS_T is still useful for setgroups.
36095
36096         getgroups, getugroups: provide stubs for mingw
36097         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
36098         * lib/getugroups.c (getugroups): Likewise.
36099         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
36100         function.  Modernize replacement scheme.
36101         (gl_PREREQ_GETGROUPS): Delete.
36102         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
36103         * modules/getgroups (configure.ac): Declare witness.
36104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36105         * modules/unistd (Depends-on): Substitute witness.
36106         * lib/unistd.in.h (getgroups): Declare replacement.
36107
36108         getgroups: avoid calling exit
36109         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
36110         drop xalloc.
36111         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
36112         dependencies.
36113         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
36114         exiting, in the rare case of malloc failure.
36115
36116         getgroups: fix logic error
36117         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
36118         has more than 20 groups.
36119         * modules/getgroups-tests: New test.
36120         * tests/test-getgroups.c: New file.
36121
36122 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36123
36124         * tests/test-base64.c: Improve.
36125
36126 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36127
36128         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
36129         Blake <ebb9@byu.net>.
36130
36131 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36132
36133         * tests/test-xvasprintf.c: Add %s%s related checks.
36134
36135 2009-11-12  Eric Blake  <ebb9@byu.net>
36136
36137         version-etc: match standards.texi style
36138         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
36139         and use <> only for URLs.
36140
36141 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
36142
36143         fts: do not fail on a submount during traversal
36144         * lib/fts.c (fts_build): Read the stat info again after opening
36145         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
36146         Original report at http://bugzilla.redhat.com/501848.
36147
36148 2009-11-12  Jim Meyering  <meyering@redhat.com>
36149
36150         bootstrap: sync from coreutils
36151         * build-aux/bootstrap (bootstrap_epilogue): New function.
36152         Use git_modules_config in one more place.  This make bootstrap's
36153         --gnulib-srcdir option more useful for testing.
36154
36155         bootstrap: generalize autoheader check
36156         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36157         AC_CONFIG_HEADERS.
36158
36159 2009-11-11  Eric Blake  <ebb9@byu.net>
36160
36161         mkfifoat: use new modules for Solaris and BSD bugs
36162         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36163         * lib/mkfifoat.c (mknodat): Split...
36164         * lib/mknodat.c (mknodat): ...into new file.
36165         * modules/mkfifoat (Files): Ship new file.
36166         (Depends-on): Add mkfifo, mknod.
36167         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36168         (Depends-on): Add symlink.
36169         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36170         redundant with test_mkfifo.h.
36171         (do_mkfifoat, do_mknodat): New helpers.
36172
36173         mknod: new module
36174         * modules/mknod: New file.
36175         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36176         * lib/mknod.c (mknod): Likewise.
36177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36178         defaults.
36179         * modules/sys_stat (Makefile.am): Substitute them.
36180         * lib/sys_stat.in.h (mknod): Declare replacement.
36181         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36182         Document it.
36183         * doc/posix-functions/mknod.texi (mknod): Likewise.
36184         * modules/mknod-tests: New test.
36185         * tests/test-mknod.c: Likewise.
36186
36187         mkfifo: new module
36188         * modules/mkfifo: New file.
36189         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36190         * lib/mkfifo.c (mkfifo): Likewise.
36191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36192         defaults.
36193         * modules/sys_stat (Makefile.am): Substitute them.
36194         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36195         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36196         Document it.
36197         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36198         * modules/mkfifo-tests: New test.
36199         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36200         from test-mkfifoat.c.
36201         * tests/test-mkfifo.c: New file.
36202
36203         readlink: detect FreeBSD bug
36204         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36205         slash on symlink.
36206         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36207         * tests/test-readlink.h (test_readlink): Enhance test.
36208
36209         symlink: detect FreeBSD bug
36210         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36211         slash on symlink.
36212         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36213         * tests/test-symlink.h (test_symlink): Enhance test.
36214
36215 2009-11-10  Eric Blake  <ebb9@byu.net>
36216
36217         link: detect FreeBSD bug
36218         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36219         symlink.
36220         * doc/posix-functions/link.texi (link): Document the bug.
36221         * tests/test-link.h (test_link): Enhance test.
36222         * tests/test-linkat.c (main): Update caller.
36223
36224         unlink, remove: detect FreeBSD bug
36225         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36226         slash on symlink.
36227         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36228         * doc/posix-functions/remove.texi (remove): Likewise.
36229         * tests/test-unlink.h (test_unlink): Enhance test.
36230         * tests/test-remove.c (main): Likewise.
36231
36232 2009-11-09  Eric Blake  <ebb9@byu.net>
36233
36234         rename: detect FreeBSD bug
36235         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36236         slash on symlink.
36237         * modules/renameat-tests (Depends-on): Add filenamecat.
36238         * tests/test-rename.h (test_rename): Allow one more errno.
36239         * tests/test-renameat.c (main): Likewise.
36240         * doc/posix-functions/rename.texi (rename): Document the bug.
36241
36242         open: detect FreeBSD bug
36243         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36244         symlink.
36245         * doc/posix-functions/open.texi (open): Document the bug.
36246         * doc/posix-functions/utimes.texi (utimes): Likewise.
36247         * tests/test-open.h (test_open): Add parameters, and test symlink
36248         handling.
36249         * tests/test-open.c (main): Adjust caller.
36250         * tests/test-fcntl-safer.c (main): Likewise.
36251         * modules/open-tests (Depends-on): Add stdbool, symlink.
36252         * modules/fcntl-safer-tests (Depends-on): Likewise.
36253         * tests/test-openat.c (main): Add test-open tests.
36254
36255         stat: detect FreeBSD bug
36256         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36257         symlink.
36258         * doc/posix-functions/stat.texi (stat): Document the bug.
36259         * tests/test-stat.h (test_stat_func): Add argument.
36260         * tests/test-stat.c (main): Adjust caller.
36261         * tests/test-fstatat.c (main): Likewise.
36262         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36263         Reported by Jim Meyering.
36264
36265 2009-11-09  James Youngman  <jay@gnu.org>
36266
36267         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36268         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36269
36270 2009-11-08  Jim Meyering  <meyering@redhat.com>
36271
36272         utimens: remove invalid futimesat call
36273         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36274         It used the file descriptor of the target file as the DIR_FD
36275         parameter and NULL as the file name.  That caused failure with
36276         errno == EFAULT on FreeBSD-8.0-rc2
36277
36278 2009-11-07  Eric Blake  <ebb9@byu.net>
36279
36280         fflush, freadseek: use fseeko, not fseek
36281         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36282         (clear_ungetc_buffer): Avoid potential problems on large files.
36283         * lib/freadseek.c (freadseek): Likewise.
36284         * modules/freadseek (Depends-on): Add fseeko.
36285         * modules/fseek (configure.ac): Set a witness.
36286         * tests/test-fflush.c (main): Use fseeko.
36287         * tests/test-fpurge.c (fseek): Disable link warning.
36288         * tests/test-freadable.c (fseek): Likewise.
36289         * tests/test-freading.c (fseek): Likewise.
36290         * tests/test-fseeko.c (fseek): Likewise.
36291         * tests/test-ftell.c (fseek): Likewise.
36292         * tests/test-ftello.c (fseek): Likewise.
36293         * tests/test-fwritable.c (fseek): Likewise.
36294         * tests/test-fwriting.c (fseek): Likewise.
36295
36296 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36297
36298         * modules/memchr (Depends-on): Drop getpagesize dependency.
36299
36300 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36301
36302         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36303         Reported by Ludovic Courtès.
36304         * build-aux/pmccabe2html: Improve example usage.
36305         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36306
36307 2009-11-06  Jim Meyering  <meyering@redhat.com>
36308
36309         do-release-commit-and-tag: New module.
36310         Automate the release-commit and tag process.
36311         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36312         * modules/do-release-commit-and-tag: New file.
36313         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36314
36315 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36316
36317         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36318         because test-select.c uses inet_pton.
36319
36320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36321
36322         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36323         GETADDRINFO_LIB.  Bump serial number.
36324         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36325         Suggested by Eric Blake <ebb9@byu.net>.
36326
36327 2009-11-05  Eric Blake  <ebb9@byu.net>
36328
36329         strtod: detect darwin bug
36330         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36331         Reported by Leo Davis.
36332
36333         freopen-safer: new module
36334         * modules/freopen-safer: New module.
36335         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36336         * lib/freopen-safer.c (freopen_safer): New file.
36337         * lib/stdio-safer.h (freopen_safer): New declaration.
36338         * lib/stdio--.h (freopen): New override.
36339         * MODULES.html.sh (File stream based Input/Output): Mention it.
36340         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36341         freopen-safer module.
36342         * doc/posix-functions/stderr.texi (stderr): Likewise.
36343         * doc/posix-functions/stdin.texi (stdin): Likewise.
36344         * doc/posix-functions/stdout.texi (stdout): Likewise.
36345         * modules/freopen-safer-tests: New test.
36346         * tests/test-reopen-safer.c: New file.
36347
36348 2009-11-05  Jim Meyering  <meyering@redhat.com>
36349
36350         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36351         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36352
36353 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36354
36355         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36356
36357 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36358
36359         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36360
36361 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36362
36363         Fix link error.
36364         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36365         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36366
36367 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36368
36369         * tests/test-func.c: Also test value of __func__.
36370
36371 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36372
36373         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36374         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36375
36376 2009-11-05  Bruno Haible  <bruno@clisp.org>
36377
36378         Fix link error.
36379         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36380         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36381         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36382
36383 2009-11-05  Bruno Haible  <bruno@clisp.org>
36384
36385         Tests for module 'inet_pton'.
36386         * modules/inet_pton-tests: New file.
36387         * tests/test-inet_pton.c: New file.
36388
36389 2009-11-05  Bruno Haible  <bruno@clisp.org>
36390
36391         Tests for module 'inet_ntop'.
36392         * modules/inet_ntop-tests: New file.
36393         * tests/test-inet_ntop.c: New file.
36394
36395 2009-11-04  Eric Blake  <ebb9@byu.net>
36396
36397         stdlib-safer: wrap all mkstemp variants
36398         * modules/mkostemp (configure.ac): Set witness.
36399         * modules/mkostemps (configure.ac): Likewise.
36400         * modules/mkstemps (configure.ac): Likewise.
36401         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36402         (mkstemps_safer): Wrap more functions.
36403         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36404         wrapping.
36405         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36406         (mkstemps_safer): Implement the wrappers.
36407
36408         mkstemps, mkostemps: new modules
36409         * modules/mkostemps: New module.
36410         * modules/mkstemps: Likewise.
36411         * lib/mkostemps.c (mkostemps): New file.
36412         * lib/mkstemps.c (mkstemps): Likewise.
36413         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36414         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36416         * modules/stdlib (Makefile.am): Substitute them.
36417         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36418         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36419         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36420         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36421         * MODULES.html.sh (File system functions): Mention them.
36422
36423         tempname: resync from glibc
36424         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36425         same values for __GT_FILE as glibc.  Abort even when assertions
36426         are disabled.
36427         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36428         match its value otherwise.  Allow idempotent inclusion.
36429         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36430         * lib/mkostemp.c (mkostemp): Likewise.
36431         * lib/mkstemp.c (mkstemp): Likewise.
36432         * lib/tmpfile.c (tmpfile): Likewise.
36433         * NEWS: Document this.
36434
36435         utimens: fix use of futimens on older Linux
36436         * lib/utimens.c (fdutimens): Use updated, rather than original,
36437         timespec to avoid bug in older Linux kernel.
36438         Reported by Simon Josefsson.
36439
36440 2009-11-04  Bruno Haible  <bruno@clisp.org>
36441
36442         Make num_processors more flexible and consistent.
36443         * lib/nproc.h (enum nproc_query): New type.
36444         (num_processors): Add a 'query' argument.
36445         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36446         (num_processors): Add a 'query' argument. Test the value of the
36447         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36448         mingw, count the number of CPUs available for the current process.
36449         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36450         Check for sched_getaffinity and sched_getaffinity_np.
36451         * modules/nproc (Depends-on): Add c-ctype, extensions.
36452         * NEWS: Mention the change.
36453
36454 2009-11-03  Bruno Haible  <bruno@clisp.org>
36455
36456         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36457
36458 2009-11-03  Jim Meyering  <meyering@redhat.com>
36459
36460         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36461         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36462         if it is defined.
36463
36464 2009-11-02  Eric Blake  <ebb9@byu.net>
36465
36466         mktime, timegm: share common declaration
36467         * lib/mktime-internal.h: New file.
36468         * lib/mktime.c: Use it rather than open-coding a declaration.
36469         * lib/timegm.c: Likewise.
36470         * modules/mktime (Files): Ship it.
36471         * modules/timegm (Files): Likewise.
36472         Suggested by Bruno Haible.
36473
36474         test-update-copyright: update test to match script changes
36475         * tests/test-update-copyright.sh: Avoid hard-coding perl
36476         location.  Don't update *.bak created by earlier runs.
36477
36478 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36479             Simon Josefsson  <simon@josefsson.org>
36480             Bruno Haible  <bruno@clisp.org>
36481
36482         Fix link error on Solaris 8.
36483         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36484         also in libnsl. Define also INET_PTON_LIB.
36485         * modules/inet_pton (Link): New section.
36486
36487 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36488             Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36491         * modules/inet_ntop (Link): New section.
36492         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36493
36494 2009-11-02  Eric Blake  <ebb9@byu.net>
36495
36496         maint: avoid compiler warnings in m4 macros
36497         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36499
36500 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36501
36502         * m4/pmccabe2html.m4: Remove file.
36503         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36504         function.  Change maintainer.
36505         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36506         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36507         Courtès).
36508
36509 2009-10-31  Eric Blake  <ebb9@byu.net>
36510
36511         fseeko: fix m4 regression
36512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36513         regression from 2009-10-27.
36514         Reported by Ralf Wildenhues.
36515
36516 2009-10-31  Jim Meyering  <meyering@redhat.com>
36517
36518         inttostr: aesthetics and improved (compile-time) safety
36519         Define inttype_is_signed rather than inttype_is_unsigned,
36520         since the sole use is via "#if inttype_is_signed".
36521         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36522         inttype_is_unsigned.
36523         * lib/offtostr.c (inttype_is_signed): Likewise.
36524         * lib/uinttostr.c (inttype_is_signed): Likewise.
36525         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36526         * lib/inttostr.c (inttostr): Use verify to cross-check the
36527         inttype_is_signed value and the signedness of the actual type.
36528         * modules/inttostr (Depends-on): Add verify.
36529
36530 2009-10-30  Eric Blake  <ebb9@byu.net>
36531
36532         build: avoid compiler warnings
36533         * lib/fchmodat.c (lchmod): Mark unused variables.
36534         * lib/getopt.c (_getopt_initialize): Likewise.
36535         * lib/mktime.c (__mktime_internal): Provide prototype.
36536         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36537         older gcc that do not understand #pragma GCC diagnostic.
36538         * lib/uinttostr.c (inttype_is_unsigned): Define.
36539         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36540
36541 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36542
36543         stat: fix compilation on AIX
36544         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36545         only see struct stat64.
36546
36547 2009-10-30  Eric Blake  <ebb9@byu.net>
36548
36549         exclude: make more robust
36550         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36551         rather than masking a coding bug.
36552         Suggested by Bruno Haible.
36553
36554 2009-10-30  Jim Meyering  <meyering@redhat.com>
36555
36556         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36557         Rather than putting #!/usr/bin/perl on the first line,
36558         start with a variant of what's recommended by "man perlrun" that
36559         invokes the first "perl" program from your shell's search path.
36560         * build-aux/gitlog-to-changelog: Replace #!... as above.
36561         Add a "Local Variables" perl mode setting.
36562         Prompted by a patch from Ludovic Courtès.
36563         Improved by Eric Blake.
36564         * build-aux/useless-if-before-free: Likewise.
36565         * build-aux/announce-gen: Likewise.
36566         * build-aux/update-copyright: Likewise.
36567
36568 2009-10-29  Eric Blake  <ebb9@byu.net>
36569
36570         filenamecat-lgpl: adjust clients
36571         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36572         filenamecat.
36573         * modules/renameat (Depends-on): Likewise.
36574
36575         filenamecat: split into filenamecat-lgpl
36576         * modules/filenamecat-lgpl: New module.
36577         * modules/filenamecat (Files): Move library-safe files into
36578         filenamecat-lgpl.
36579         (Depends-on): Add filenamecat-lgpl.
36580         (configure.ac): Declare witness.
36581         * lib/filenamecat.h (file_name_concat): Only declare when using
36582         GPL module.
36583         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36584         Move...
36585         * lib/filenamecat-lgpl.c: ...into new file.
36586         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36587         (gl_FILE_NAME_CONCAT): Use it.
36588         * MODULES.html.sh (File system functions): Mention new module.
36589
36590         argp: avoid memory leak
36591         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36592         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36593         base_name, since the latter malloc()s and can call exit().
36594         Leak introduced 2006-07-03.
36595
36596         dirname-lgpl: adjust clients that don't need full dirname
36597         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36598         * modules/filenamecat (Depends-on): Likewise.
36599         * modules/linkat (Depends-on): Likewise.
36600         * modules/mkancesdirs (Depends-on): Likewise.
36601         * modules/mkdir (Depends-on): Likewise.
36602         * modules/openat (Depends-on): Likewise.
36603         * modules/savewd (Depends-on): Likewise.
36604         * modules/rename (Depends-on): Likewise.
36605         (License): Relax license.
36606         * modules/mkdir-tests (Depends-on): Drop progname.
36607         (Makefile.am): Delete unneeded LDADD.
36608         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36609
36610         dirname: split into dirname-lgpl
36611         * modules/dirname-lgpl: New module.
36612         * modules/dirname (Files): Move library-safe files into
36613         dirname-lgpl.
36614         (Depends-on): Add dirname-lgpl.
36615         (configure.ac): Declare witness.
36616         * modules/double-slash-root (License): Relax license.
36617         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36618         module.
36619         * lib/dirname.c (dir_len, mdir_name): Move...
36620         * lib/dirname-lgpl.c: ...into new file.
36621         * lib/basename.c (last_component, base_len): Move...
36622         * lib/basename-lgpl.c: ...into new file.
36623         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36624         (gl_DIRNAME): Use it.
36625         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36626         Mention new module.
36627         * modules/dirname-tests (Depends-on): Add progname.
36628         * tests/test-dirname.c (program_name): Delete.
36629
36630         mkdir: make safe for libraries
36631         * modules/mkdir (Depends-on): Drop xalloc.
36632         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36633         exit.
36634
36635         tests: avoid some compiler warnings
36636         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36637         literals.
36638         * tests/test-memchr.c (main): Avoid type mismatch.
36639         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36640         * tests/test-base64.c (main): Likewise.
36641         * tests/test-getdelim.c (main): Likewise.
36642         * tests/test-gethostname.c (main): Likewise.
36643         * tests/test-getline.c (main): Likewise.
36644         * tests/test-netinet_in.c (main): Likewise.
36645         * tests/test-select.c (open_server_socket, main): Likewise.
36646         * tests/test-select-stdin.c (main): Likewise.
36647         * tests/test-sockets.c (main): Likewise.
36648         * tests/test-strsignal.c (main): Likewise.
36649         * tests/test-sys_select.c (main): Likewise.
36650         * tests/test-sys_socket.c (main): Likewise.
36651         * tests/test-u64.c (main): Likewise.
36652         * tests/test-xfprintf-posix.c (main): Likewise.
36653         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36654
36655         sockets: avoid compiler warning
36656         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36657
36658         maint: detect usage(1) and other suspicious exits
36659         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36660
36661 2009-10-29  Jim Meyering  <meyering@redhat.com>
36662
36663         timespec: long-to-int truncation could make timespec_cmp malfunction
36664         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36665         a multiple of 2^32 nanoseconds as no difference.
36666
36667 2009-10-28  Jim Meyering  <meyering@redhat.com>
36668
36669         fprintftime: wrap macro code argument in "do {...} while(0)"
36670         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36671         cpy macro must be a statement that can be followed by a semicolon.
36672         Now that the else clause contains a comment and is hence longer
36673         than one line, I require curly braces.  That in turn requires
36674         that we wrap this code block in the standard do...while(0).
36675
36676         fprintftime: remove stray semicolon from previous change
36677         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36678
36679         fprintftime: avoid a warning about ignored fwrite return value
36680         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36681         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36682         that is unsafe.
36683         * modules/fprintftime (Depends-on): Add ignore-value.
36684
36685         exclude: avoid an unwarranted warning
36686         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36687
36688 2009-10-27  Eric Blake  <ebb9@byu.net>
36689
36690         fseek: avoid compilation failure when fflush is replaced
36691         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36692         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36693         module is in use.
36694         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36695         module is not in use; since REPLACE_FSEEK worked otherwise.
36696         (GNULIB_FTELLO): Likewise for ftell.
36697         Reported by Ian Beckwith and others.
36698
36699 2009-10-27  Bruno Haible  <bruno@clisp.org>
36700
36701         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36702         Reported by Jim Meyering.
36703
36704 2009-10-27  Jim Meyering  <jim@meyering.net>
36705             Bruno Haible  <bruno@clisp.org>
36706
36707         Avoid warning despite dropping the return value of fwrite.
36708         * lib/unicodeio.c: Include ignore-value.h.
36709         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36710         * modules/unicodeio (Depends-on): Add ignore-value.
36711
36712 2009-10-26  Eric Blake  <ebb9@byu.net>
36713
36714         areadlinkat: fix fallback path
36715         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36716         pointer and zero.
36717
36718 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36719
36720         Use a better IO block size for modern systems
36721         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36722         * lib/md2.c: Likewise.
36723         * lib/md4.c: Likewise.
36724         * lib/md5.c: Likewise.
36725         * lib/sha1.c: Likewise.
36726         * lib/sha256.c: Likewise.
36727         * lib/sha512.c: Likewise.
36728
36729 2009-10-22  Eric Blake  <ebb9@byu.net>
36730
36731         tests: avoid several compiler warnings
36732         * tests/test-getcwd.c (main): Avoid buffer underflow.
36733         * tests/test-getdate.c (main): String literals are not safe with
36734         putenv, so use setenv.  Declare unused argument.
36735         * modules/getdate-tests (Depends-on): Add setenv.
36736         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36737         problems with string literals in char *.
36738         * tests/test-hash.c (main): Avoid shadowing declaration.
36739         (insert_new): Treat string literals as char const *.
36740         * tests/test-getopt.h (test_getopt): Likewise.
36741         (getopt_loop): Alter types to minimize casting elsewhere.
36742         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36743         (test_getopt_long_posix): Likewise.
36744         (do_getopt_long): Add wrapper to minimize casting.
36745         * tests/test-atexit.c (clear_temp_file): Use void.
36746         * tests/test-areadlink-with-size.c (main): Declare unused
36747         arguments.
36748         * tests/test-areadlink.c (main): Likewise.
36749         * tests/test-areadlinkat-with-size.c (main): Likewise.
36750         * tests/test-areadlinkat.c (main): Likewise.
36751         * tests/test-canonicalize-lgpl.c (main): Likewise.
36752         * tests/test-canonicalize.c (main): Likewise.
36753         * tests/test-dirent-safer.c (main): Likewise.
36754         * tests/test-dirname.c (main): Likewise.
36755         * tests/test-dup2.c (main): Likewise.
36756         * tests/test-fchdir.c (main): Likewise.
36757         * tests/test-fcntl-h.c (main): Likewise.
36758         * tests/test-fcntl-safer.c (main): Likewise.
36759         * tests/test-fdopendir.c (main): Likewise.
36760         * tests/test-fdutimensat.c (main): Likewise.
36761         * tests/test-fflush.c (main): Likewise.
36762         * tests/test-filenamecat.c (main): Likewise.
36763         * tests/test-filevercmp.c (main): Likewise.
36764         * tests/test-fopen-safer.c (main): Likewise.
36765         * tests/test-fopen.c (main): Likewise.
36766         * tests/test-fpending.c (main): Likewise.
36767         * tests/test-fpurge.c (main): Likewise.
36768         * tests/test-freading.c (main): Likewise.
36769         * tests/test-fstatat.c (main): Likewise.
36770         * tests/test-fsync.c (main): Likewise.
36771         * tests/test-futimens.c (main): Likewise.
36772         * tests/test-getndelim2.c (main): Likewise.
36773         * tests/test-gettimeofday.c (main): Likewise.
36774         * tests/test-getopt.c (main): Likewise.
36775         * tests/test-i-ring.c (main): Likewise.
36776         * tests/test-inttypes.c (main): Likewise.
36777         * tests/test-link.c (main): Likewise.
36778         * tests/test-lstat.c (main): Likewise.
36779         * tests/test-math.c (main): Likewise.
36780         * tests/test-md5.c (main): Likewise.
36781         * tests/test-memchr2.c (main): Likewise.
36782         * tests/test-memrchr.c (main): Likewise.
36783         * tests/test-mkdir.c (main): Likewise.
36784         * tests/test-mkdirat.c (main): Likewise.
36785         * tests/test-mkfifoat.c (main): Likewise.
36786         * tests/test-open.c (main): Likewise.
36787         * tests/test-openat-safer.c (main): Likewise.
36788         * tests/test-openat.c (main): Likewise.
36789         * tests/test-quotearg.c (main): Likewise.
36790         * tests/test-rawmemchr.c (main): Likewise.
36791         * tests/test-readlink.c (main): Likewise.
36792         * tests/test-remove.c (main): Likewise.
36793         * tests/test-rename.c (main): Likewise.
36794         * tests/test-renameat.c (main): Likewise.
36795         * tests/test-rmdir.c (main): Likewise.
36796         * tests/test-sha1.c (main): Likewise.
36797         * tests/test-signal.c (main): Likewise.
36798         * tests/test-sigaction.c (main): Likewise.
36799         * tests/test-stat.c (main): Likewise.
36800         * tests/test-stat-time.c (main): Likewise.
36801         * tests/test-stddef.c (main): Likewise.
36802         * tests/test-stdint.c (main): Likewise.
36803         * tests/test-stdio.c (main): Likewise.
36804         * tests/test-stdlib.c (main): Likewise.
36805         * tests/test-strchrnul.c (main): Likewise.
36806         * tests/test-strerror.c (main): Likewise.
36807         * tests/test-string.c (main): Likewise.
36808         * tests/test-strtod.c (main): Likewise.
36809         * tests/test-strverscmp.c (main): Likewise.
36810         * tests/test-symlink.c (main): Likewise.
36811         * tests/test-symlinkat.c (main): Likewise.
36812         * tests/test-sys_stat.c (main): Likewise.
36813         * tests/test-sys_time.c (main): Likewise.
36814         * tests/test-time.c (main): Likewise.
36815         * tests/test-unistd.c (main): Likewise.
36816         * tests/test-unlink.c (main): Likewise.
36817         * tests/test-unlinkat.c (main): Likewise.
36818         * tests/test-utimens.c (main): Likewise.
36819         * tests/test-utimensat.c (main): Likewise.
36820         * tests/test-version-etc.c (main): Likewise.
36821         * tests/test-wchar.c (main): Likewise.
36822         * tests/test-wctype.c (main): Likewise.
36823         * tests/test-xprintf-posix.c (main): Likewise.
36824         * tests/test-posixtm.c (main): Likewise.
36825         (STREQ): Delete unused macro.
36826         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36827         shadowed variables.
36828         * tests/test-memchr.c (main): Likewise.
36829
36830 2009-10-21  Eric Blake  <ebb9@byu.net>
36831
36832         areadlinkat: avoid failure on older glibc
36833         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36834         rather than mis-comparing 0 against FUNC_RESULT of char*.
36835
36836 2009-10-21  Bruno Haible  <bruno@clisp.org>
36837
36838         * modules/stpncpy (License): Relicense under LGPLv2+.
36839         Reported by David Lutterkort <lutter@redhat.com>.
36840
36841 2009-10-20  Eric Blake  <ebb9@byu.net>
36842
36843         utimensat: work around Solaris 9 bug
36844         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36845         has trailing slash bugs.
36846         * tests/test-lutimens.h (test_lutimens): Enhance test.
36847         * tests/test-utimens.h (test_utimens): Likewise.
36848         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36849         * doc/posix-functions/utimes.texi (utimes): Likewise.
36850         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36851         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36852         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36853         * doc/posix-functions/futimens.texi (futimens): Likewise.
36854
36855         fdutimensat: new module
36856         * modules/fdutimensat: New file.
36857         * lib/fdutimensat.c (fdutimensat): Likewise.
36858         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36859         * MODULES.html.sh (File system functions): Mention module.
36860         * modules/fdutimensat-tests: New test.
36861         * tests/test-fdutimensat.c: Likewise.
36862
36863         doc: regenerate INSTALL
36864         * doc/INSTALL: Reflect recent autoconf update.
36865         * doc/INSTALL.ISO: Likewise.
36866         * doc/INSTALL.UTF-8: Likewise.
36867
36868 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36869
36870         acl: warn if ACL support is not detected
36871         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36872
36873 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36874
36875         * lib/nproc.h: Add extern "C" block for C++.
36876
36877 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36878             Bruno Haible  <bruno@clisp.org>
36879
36880         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36881         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36882         * doc/posix-functions/isalpha.texi: Likewise.
36883         * doc/posix-functions/isblank.texi: Likewise.
36884         * doc/posix-functions/iscntrl.texi: Likewise.
36885         * doc/posix-functions/isdigit.texi: Likewise.
36886         * doc/posix-functions/isgraph.texi: Likewise.
36887         * doc/posix-functions/islower.texi: Likewise.
36888         * doc/posix-functions/isprint.texi: Likewise.
36889         * doc/posix-functions/ispunct.texi: Likewise.
36890         * doc/posix-functions/isspace.texi: Likewise.
36891         * doc/posix-functions/isupper.texi: Likewise.
36892         * doc/posix-functions/isxdigit.texi: Likewise.
36893
36894 2009-10-18  Bruno Haible  <bruno@clisp.org>
36895
36896         Tests for module 'isblank'.
36897         * modules/isblank-tests: New file.
36898         * tests/test-isblank.c: New file.
36899
36900         New module 'isblank'.
36901         * lib/isblank.c: New file.
36902         * m4/isblank.m4: New file.
36903         * modules/isblank: New file.
36904         * doc/posix-functions/isblank.texi: Mention the new module.
36905
36906 2009-10-18  Bruno Haible  <bruno@clisp.org>
36907
36908         New module 'ctype'.
36909         * lib/ctype.in.h: New file.
36910         * m4/ctype.m4: New file.
36911         * modules/ctype: New file.
36912         * doc/posix-headers/ctype.texi: Mention the new module.
36913
36914 2009-10-18  Jim Meyering  <meyering@redhat.com>
36915
36916         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36917         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36918         right after its initialization, rather than farther down.
36919         Keeping these in close proximity makes it easier to ensure
36920         that each such variable is initialized.  E.g.,
36921
36922             LIB_CLOCK_GETTIME=
36923             AC_SUBST([LIB_CLOCK_GETTIME])
36924
36925         This change also increments these serial numbers.
36926         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36927         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36929
36930 2009-10-18  Bruno Haible  <bruno@clisp.org>
36931
36932         Don't let environment variables perturb build.
36933         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36934         (gl_PREREQ_GETHRXTIME): ... not here.
36935
36936 2009-10-18  Bruno Haible  <bruno@clisp.org>
36937
36938         Avoid symlink attack in localcharset module.
36939         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36940         (O_NOFOLLOW): Define fallback.
36941         (get_charset_aliases): Don't open the file if it is a symbolic link.
36942         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36943         gl_FCNTL_H.
36944         (gl_FCNTL_H): Require it.
36945         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36946         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36947         Reported by Fergal Glynn <fglynn@veracode.com>.
36948
36949 2009-10-18  Bruno Haible  <bruno@clisp.org>
36950
36951         Implement nproc for mingw.
36952         * lib/nproc.c: Include <windows.h>
36953         (num_processors): On native Windows platforms, try GetSystemInfo.
36954
36955 2009-10-18  Bruno Haible  <bruno@clisp.org>
36956
36957         Implement nproc for IRIX.
36958         * lib/nproc.c: Include <sys/sysmp.h>.
36959         (num_processors): On IRIX systems, try sysmp.
36960         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36961
36962 2009-10-18  Bruno Haible  <bruno@clisp.org>
36963
36964         Implement nproc for HP-UX.
36965         * lib/nproc.c: Include <sys/pstat.h>
36966         (num_processors): On HP-UX systems, try pstat_getdynamic.
36967         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36968         pstat_getdynamic.
36969
36970 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36971             Bruno Haible  <bruno@clisp.org>
36972
36973         Implement nproc for NetBSD, OpenBSD.
36974         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36975         (ARRAY_SIZE): New macro.
36976         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36977         * m4/nproc.m4: New file.
36978         * modules/nproc (Files): Add m4/nproc.m4.
36979         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36980         (Makefile.am): Instead, augment lib_SOURCES.
36981
36982 2009-10-18  Bruno Haible  <bruno@clisp.org>
36983
36984         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36985         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36986         sys/param.h.
36987
36988 2009-10-16  Eric Blake  <ebb9@byu.net>
36989
36990         utimensat: new module
36991         * modules/utimensat: New file.
36992         * lib/utimensat.c (utimensat): Likewise.
36993         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36994         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36995         so we can work around Linux bugs.
36996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36997         * modules/sys_stat (Makefile.am): Substitute them.
36998         * lib/sys_stat.in.h (utimensat): Declare it.
36999         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37000         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37001         * modules/utimensat-tests: New test.
37002         * tests/test-utimensat.c: Likewise.
37003
37004         utimens: let lutimens work on non-symlinks
37005         * lib/utimens.c (lutimens): Fall back to utimens rather than
37006         failing with ENOSYS, when file is not a symlink.
37007         (utimens): Reduce redirection.
37008         * tests/test-lutimens.h (test_lutimens): Update test to cover
37009         non-symlinks.
37010         * tests/test-utimens.h (test_utimens): Update test to cover
37011         symlinks.
37012         * tests/test-utimens.c (main): Update caller.
37013
37014         utimens: cache whether utimensat syscall works
37015         * lib/utimens.c (utimensat_works_really): New cache variable.
37016         (fdutimens, lutimens): Use it to avoid failing syscall.
37017
37018         test-stat-time, test-utimens: improve portability
37019         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
37020         ext4 on alpha, and for cygwin.
37021         * tests/test-utimens-common.h: New file.
37022         (nap): Factor delays into single function.
37023         * tests/test-lutimens.h (test_lutimens): Use new header.
37024         * tests/test-futimens.h (test_futimens): Likewise.
37025         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
37026         timestamps to occur from same machine, as was done previously for
37027         test_utimens.
37028         * modules/utimens-tests (Files): Ship new file.
37029         * modules/futimens-tests (Files): Likewise.
37030         Reported in part by Jim Meyering.
37031
37032         sys_stat: sort replacement declarations
37033         * lib/sys_stat.in.h: Sort declarations.
37034         * lib/futimens.c (futimens): Fix typo.
37035
37036 2009-10-15  Jim Meyering  <meyering@redhat.com>
37037
37038         don't let environment settings perturb build
37039         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
37040         could cause a configure-time and/or build-time malfunction.
37041         Typically, a configure-time function-in-library test is performed
37042         via code like this:
37043
37044           LIB_VAR=
37045           AC_SUBST([LIB_VAR])
37046           prefix_saved_LIBS=$LIBS
37047             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
37048                        [test "$ac_cv_search_FUNC" = "none required" ||
37049                         LIB_VAR=$ac_cv_search_FUNC])
37050           LIBS=$prefix_saved_LIBS
37051
37052         However, in each of the files affected by this change, the LIB_VAR=
37053         initialization was omitted.  Thus, when set in the environment, its
37054         value would propagate into generated Makefiles when FUNC is not found
37055         in LIB_NAME.
37056         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
37057         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37059
37060 2009-10-14  Eric Blake  <ebb9@byu.net>
37061
37062         fchdir: avoid infinite recursion in mingw
37063         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
37064         recursing.
37065
37066         test-stat-time: port to mingw
37067         * tests/test-stat-time.c (force_unlink): Return a value.
37068         (test_ctime) [W32]: Fix compilation error.
37069         (nap): Don't call usleep with too large an argument.  Use
37070         force_unlink.
37071         * doc/pastposix-functions/usleep.texi (usleep): Document the
37072         portability issue.
37073
37074 2009-10-13  Jim Meyering  <meyering@redhat.com>
37075
37076         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
37077         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
37078         * modules/pipe-filter-ii: Likewise.
37079         * modules/sys_socket-tests: Likewise.
37080         * modules/tsearch-tests: Likewise.
37081         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
37082         (check): Depend on it.
37083
37084 2009-10-12  Eric Blake  <ebb9@byu.net>
37085
37086         utimens-tests: port to NFS file systems
37087         * tests/test-utimens.h (test_utimens): Refactor utimecmp
37088         comparisons to avoid spurious failures from timestamp drift
37089         between NFS machines.
37090
37091 2009-10-12  Eric Blake  <ebb9@byu.net>
37092
37093         stat-time-tests: minor cleanups
37094         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
37095         * tests/test-stat-time.c (nap): Separate assignment from call.
37096         Suggested by Paolo Bonzini and Bruno Haible.
37097
37098         sys_stat: guarantee struct timespec
37099         * lib/sys_stat.in.h (includes): Always include <time.h>
37100         * modules/sys_stat (Depends-on): Add time.
37101         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
37102         mode_t permission values.
37103         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
37104         get at subsecond timestamps.
37105
37106 2009-10-10  Eric Blake  <ebb9@byu.net>
37107
37108         futimens: new module
37109         * modules/futimens: New file.
37110         * lib/futimens.c (futimens): Likewise.
37111         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
37112         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
37113         we can work around Linux bugs.
37114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37115         * modules/sys_stat (Makefile.am): Substitute them.
37116         * lib/sys_stat.in.h (futimens): Declare it.
37117         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37118         * doc/posix-functions/futimens.texi (futimens): Likewise.
37119         * modules/futimens-tests: New test.
37120         * tests/test-futimens.c: Likewise.
37121
37122         utimens: introduce fdutimens
37123         * lib/utimens.h (fdutimens): New prototype.
37124         * lib/utimens.c (gl_futimens): Move guts...
37125         (fdutimens): ...to new interface.
37126         * tests/test-utimens.c (do_fdutimens): Use it.
37127
37128         utimens: add UTIME_NOW and UTIME_OMIT support
37129         * lib/utimens.c (validate_timespec, update_timespec): New helper
37130         functions.
37131         (gl_futimens, lutimens): Use them.
37132         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
37133         stdbool, sys_stat.
37134         (Link): Mention resulting library dependency.
37135         * modules/utimecmp (Link): Likewise.
37136         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
37137         (Makefile.am): Pick up library dependency.
37138         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
37139         definition.
37140         * tests/test-sys_stat.c: Test the definitions.
37141         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
37142         * NEWS: Document library dependency.
37143
37144         utimecmp: support symlink timestamps
37145         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
37146         hashing when possible.  Use pathconf when available.
37147         (SYSCALL_RESOLUTION): Recognize tighter resolution.
37148         * modules/utimecmp (Depends-on): Add lstat.
37149
37150         utimens: add lutimens interface
37151         * lib/utimens.c (lutimens): New function.
37152         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37153         * lib/utimens.h (lutimens): Declare new interface.
37154         * tests/test-utimens.c (main): Enhance test.
37155         * tests/test-lutimens.h (test_lutimens): New file.
37156         * modules/utimens-tests (Files): Distribute it.
37157         (Depends-on): Add symlink.
37158         (configure.ac): Check for usleep.
37159
37160         utimens: validate futimens usage
37161         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37162         fewer syscalls on failure later on.  Avoid compiler warning on
37163         mingw.
37164         * modules/utimens (Depends-on): Add dup2.
37165
37166         utimens: add test
37167         * modules/utimens-tests: New test.
37168         * tests/test-utimens.h: New file.
37169         * tests/test-futimens.h: Likewise.
37170         * tests/test-utimens.c: Likewise.
37171
37172         doc: mention timestamp portability issues
37173         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37174         instead.
37175         * doc/posix-functions/utime.texi (utime): Likewise.
37176         * doc/posix-functions/utimes.texi (utimes): Likewise.
37177         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37178         instead.
37179         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37180         module.
37181         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37182         Mention weakness with symlink timestamps.
37183         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37184         to utimensat/futimens instead.
37185         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37186
37187         test-dup2: enhance test
37188         * tests/test-dup2.c (main): Also check AT_FDCWD.
37189
37190         test-stat-time: avoid more spurious failures
37191         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37192         xfs; and avoid race if the two timestamps cross quantization edge.
37193
37194         relocatable: prefer 'file system' over 'filesystem'
37195         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37196         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37197         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37198         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37199         * lib/relocatable.c (compute_curr_prefix): Likewise.
37200
37201 2009-10-10  Jim Meyering  <meyering@redhat.com>
37202
37203         stat-time-tests: check for the usleep function
37204         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37205
37206 2009-10-10  Bruno Haible  <bruno@clisp.org>
37207
37208         * modules/xnanosleep: Put the Link section after the Include section.
37209
37210 2009-10-09  Eric Blake  <ebb9@byu.net>
37211
37212         dup2: work around FreeBSD 6.1 bug
37213         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37214         * doc/posix-functions/dup2.texi (dup2): Document it.
37215         Reported by Nelson H. F. Beebe and Jim Meyering.
37216
37217         test-stat-time: port to buggy NFS clients
37218         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37219         (test_ctime): Also skip test if mtime and ctime are skewed.
37220
37221         maint: prefer 'file system' over 'filesystem'
37222         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37223         * doc/posix-functions/lstat.texi (lstat): Likewise.
37224         * lib/file-has-acl.c (file_has_acl): Likewise.
37225         * lib/fwriteerror.c [TEST]: Likewise.
37226         * tests/test-areadlink.h (test_areadlink): Likewise.
37227         * tests/test-areadlinkat-with-size.c (main): Likewise.
37228         * tests/test-areadlinkat.c (main): Likewise.
37229         * tests/test-canonicalize-lgpl.c (main): Likewise.
37230         * tests/test-canonicalize.c (main): Likewise.
37231         * tests/test-fstatat.c (main): Likewise.
37232         * tests/test-linkat.c (main): Likewise.
37233         * tests/test-lstat.h (test_lstat_func): Likewise.
37234         * tests/test-mkdir.h (test_mkdir): Likewise.
37235         * tests/test-readlink.h (test_readlink): Likewise.
37236         * tests/test-remove.c (main): Likewise.
37237         * tests/test-rename.h (test_rename): Likewise.
37238         * tests/test-renameat.c (main): Likewise.
37239         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37240         * tests/test-symlink.h (test_symlink): Likewise.
37241         * tests/test-symlinkat.c (main): Likewise.
37242         * tests/test-unlink.h (test_unlink_func): Likewise.
37243         * tests/test-unlinkat.c (main): Likewise.
37244
37245         maint: make realtime library usage explicit
37246         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37247         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37248         * modules/settime (Link): Likewise.
37249         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37250
37251         test-stat-time: speed up execution
37252         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37253         warning on mingw.
37254         (nap): New helper function.
37255         (prepare_test): Use it to reduce sleep time.
37256         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37257         execution.
37258         * modules/stat-time-tests (configure.ac): Check for usleep.
37259
37260 2009-10-09  Jim Meyering  <meyering@redhat.com>
37261
37262         selinux-h: always use getfilecon wrappers
37263         * lib/getfilecon.c: New file.
37264         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37265         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37266         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37267         (fgetfilecon): Provide a stub.
37268         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37269         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37270         file unconditionally.
37271         When <selinux/selinux.h> is found, arrange to use wrappers.
37272         * modules/selinux-h (Files): Add getfilecon.c.
37273         (Makefile.am): Substitute include-next-related bits
37274         into the now-always-generated selinux/selinux.h file.
37275         * doc/glibc-functions/lgetfilecon.texi: New file.
37276         * doc/glibc-functions/fgetfilecon.texi: New file.
37277         * doc/glibc-functions/getfilecon.texi: New file.
37278         * doc/glibc-functions/getfilecon-desc.texi: New file.
37279         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37280         which to pull in the new files.
37281         * MODULES.html.sh (Misc): Add selinux-h.
37282
37283 2009-10-08  Jim Meyering  <meyering@redhat.com>
37284
37285         unistd: fix comment typo
37286         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37287
37288 2009-10-08  Eric Blake  <ebb9@byu.net>
37289
37290         areadlink: use SIZE_MAX consistently
37291         * modules/areadlink (Depends-on): Add stdint.
37292         * modules/areadlink-with-size (Depends-on): Likewise.
37293         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37294         gives NULL; drop sys/types, since unistd gives size_t; and add
37295         stdint for SIZE_MAX.
37296         (SIZE_MAX): Rely on headers.
37297         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37298         and add stdint.
37299         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37300         (SIZE_MAX): Likewise.
37301         (INITIAL_BUF_SIZE): Turn into enum.
37302         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37303
37304 2009-10-08  Jim Meyering  <meyering@redhat.com>
37305
37306         areadlinkat: avoid compilation failure
37307         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37308         Fix typo in comment.
37309
37310 2009-10-07  Eric Blake  <ebb9@byu.net>
37311
37312         areadlinkat-with-size: new module
37313         * modules/areadlinkat-with-size: New module.
37314         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37315         * lib/areadlink.h (areadlinkat): Declare it.
37316         * MODULES.html.sh (File system functions): Mention it.
37317         * modules/areadlinkat-with-size-tests: New test.
37318         * tests/test-areadlinkat-with-size.c: New file.
37319
37320         xreadlinkat: new module
37321         * modules/xreadlinkat: New module.
37322         * lib/xreadlinkat.c (xreadlinkat): New file.
37323         * lib/xreadlink.h (xreadlinkat): Declare it.
37324         * MODULES.html.sh (File system functions): Mention it.
37325
37326         areadlinkat: new module
37327         * lib/at-func.c (FUNC_FAIL): New define.
37328         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37329         * modules/areadlinkat: New module.
37330         * lib/linkat.c (areadlinkat): Move...
37331         * lib/areadlinkat.c (areadlinkat): ...to new file.
37332         * lib/areadlink.h (areadlinkat): Declare it.
37333         * modules/linkat (Depends-on): Add areadlinkat.
37334         * MODULES.html.sh (File system functions): Mention it.
37335         * modules/areadlinkat-tests: New test.
37336         * tests/test-areadlinkat.c: New file.
37337
37338         areadlink, areadlink-with-size: add tests
37339         * modules/areadlink-tests: New test.
37340         * modules/areadlink-with-size-tests: Likewise.
37341         * tests/test-areadlink.h: New file.
37342         * tests/test-areadlink.c: Likewise.
37343         * tests/test-areadlink-with-size.c: Likewise.
37344
37345         maint: minor cleanups
37346         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37347         _UNUSED_PARAMETER_ instead.
37348         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37349         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37350         * modules/linkat-tests (Files): Distribute test-link.h.
37351
37352         openat, utimens: whitespace cleanup
37353         * lib/openat.c: Prefer space throughout, rather than mix of 8
37354         spaces vs. tabs.
37355         * lib/at-func.c: Likewise.
37356         * lib/utimens.c: Likewise.
37357
37358         openat: avoid using wrong fd
37359         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37360         working directory chooses same fd.
37361         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37362
37363         mkdir, mkdirat: fix cygwin 1.5.x bug
37364         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37365         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37366         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37367         bug.
37368         (gl_PREREQ_MKDIR): Delete unused macro.
37369         * modules/mkdir (Files): Track file rename.
37370         (configure.ac): Update macro name.
37371         * modules/openat (Depends-on): Add mkdir.
37372         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37373
37374         mkdir, mkdirat: add tests
37375         * modules/mkdir-tests: New test.
37376         * tests/test-mkdir.h: New file.
37377         * tests/test-mkdir.c: Likewise.
37378         * tests/test-mkdirat.c: Likewise.
37379         * modules/openat-tests (Files): Add new files.
37380         (Makefile.am): Run new test.
37381
37382 2009-10-06  Eric Blake  <ebb9@byu.net>
37383
37384         doc: tweak *at function documentation
37385         * doc/posix-functions/faccessat.texi (faccessat): Mention
37386         known issue with replacement.
37387         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37388         * doc/posix-functions/linkat.texi (linkat): Likewise.
37389         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37390         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37391         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37392         * doc/posix-functions/renameat.texi (renameat): Likewise.
37393         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37394
37395         openat: fix GNU/Hurd bug in unlinkat
37396         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37397         broken.
37398         * doc/posix-functions/unlink.texi (unlink): Document this.
37399         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37400
37401         fdopendir: fix GNU/Hurd bug
37402         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37403         allowing non-directory fds.
37404         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37405         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37406         * modules/dirent (Makefile.am): Substitute it.
37407         * lib/dirent.in.h (fdopendir): Declare replacement.
37408         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37409         * tests/test-fdopendir.c (main): Test something other than
37410         /dev/null, since on Hurd that behaves like a directory.
37411
37412         test-symlink: port to GNU/Hurd
37413         * tests/test-symlink.h (test_symlink): Relax expected errno.
37414
37415         doc: tweak more cygwin information
37416         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37417         now compatible with glibc.
37418         * doc/posix-functions/getopt.texi (getopt): Likewise.
37419
37420         getopt-gnu: add another test
37421         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37422         guarantee behavior relied on by m4.
37423         * tests/test-getopt.c (main): Use it.
37424         * modules/getopt-posix-tests (Depends-on): Add setenv.
37425         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37426
37427         getopt: fix compilation on darwin
37428         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37429         include.
37430         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37431         Reported by Ludovic Courtès.
37432
37433 2009-10-06  Bruno Haible  <bruno@clisp.org>
37434
37435         * modules/size_max (Description): Discourage its use.
37436         Reported by Simon Josefsson.
37437
37438 2009-10-06  Jim Meyering  <meyering@redhat.com>
37439
37440         linkat: avoid compilation failure
37441         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37442
37443 2009-10-05  Eric Blake  <ebb9@byu.net>
37444
37445         linkat: support Linux 2.6.17
37446         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37447         linkat on Linux, but allow cache variable override.
37448         * lib/linkat.c (rpl_linkat): Define override.
37449         * modules/linkat (Depends-on): Add symlinkat.
37450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37451         * modules/unistd (Makefile.am): Substitute it.
37452         * lib/unistd.in.h (linkat): Declare replacement.
37453         Reported by Pádraig Brady.
37454
37455         quotearg: port test to systems with C.UTF-8 locale
37456         * tests/test-quotearg.c (struct result_strings): Add another
37457         member, differentiating between C.ASCII and C.UTF-8 handling.
37458         (compare_strings): Add parameter.
37459         (main): Adjust all callers.
37460
37461         getopt: avoid clash with FreeBSD _getopt_internal
37462         * lib/getopt.in.h (_getopt_internal): Override the name.
37463         * lib/getopt_int.h (includes): Pick up any overrides.
37464         Reported by Reuben Thomas.
37465
37466         hash: allow C89 compilation
37467         * lib/hash.c (check_tuning): Move declaration before statement.
37468         Reported by Reuben Thomas.
37469
37470 2009-10-05  Karl Berry  <karl@gnu.org>
37471
37472         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37473
37474 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37475             Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/uname.c (uname): Use a table-driven algorithm to compute
37478         Windows NT versions.
37479
37480 2009-10-04  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37483         program_invocation_short_name.
37484         * modules/progname (configure.ac): Test for presence of
37485         program_invocation_short_name.
37486         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37487
37488 2009-10-04  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/progname.c (set_program_name): Fix comment.
37491         Reported by Jim Meyering.
37492
37493 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37494             Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/uname.c: Include <string.h>.
37497         (uname): Do only one call to GetVersionEx in the common case.
37498
37499 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37500             Bruno Haible  <bruno@clisp.org>
37501
37502         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37503         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37504         (uname): Add support for Windows CE and various non-x86 CPU types.
37505
37506 2009-10-03  Bruno Haible  <bruno@clisp.org>
37507
37508         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37509         invocation to tests/configure.ac.
37510         Reported by Ian Beckwith <ianb@erislabs.net>.
37511
37512 2009-10-02  Eric Blake  <ebb9@byu.net>
37513
37514         fchdir: avoid compiler warning
37515         * lib/fchdir.c (canonicalize_file_name)
37516         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37517
37518         test-open: support mingw errno values
37519         * tests/test-open.h (test_open): Relax test.
37520         * tests/test-fopen.h (test_fopen): Likewise.
37521         * tests/test-openat-safer.c (main): Likewise.
37522
37523         open: fix opening directory on mingw
37524         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37525
37526         test-open: on GNU/Hurd, /dev/null is a directory
37527         * tests/test-fopen.h (main): Rename...
37528         (test_fopen): ...to this.  Use a guaranteed non-directory when
37529         confirming open behavior on trailing slash.
37530         * tests/test-openat-safer.c (main): Likewise.
37531         * tests/test-open.h (main): Likewise....
37532         (test_open): ...to this.
37533         * tests/test-fopen.c (main): Adjust caller.
37534         * tests/test-fopen-safer.c (main): Likewise.
37535         * tests/test-open.c (main): Likewise.
37536         * tests/test-fcntl-safer.c (main): Likewise.
37537         Reported by Samuel Thibault.
37538
37539         rename, fchdir: don't ignore chdir failure
37540         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37541         * lib/rename.c (rpl_rename) [W32]: Likewise.
37542         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37543         an empty destination directory if source cannot be renamed,
37544         although there is still possibility for failure.
37545         * doc/posix-functions/rename.texi (rename): Document the race.
37546         Reported by Jim Meyering.
37547
37548         maint: cleanup whitespace in recent commits
37549         * lib/rename.c (rpl_rename): Remove tabs.
37550         * tests/test-link.h (test_link): Likewise.
37551         * lib/fchdir.c (get_name): Likewise.
37552         Reported by Jim Meyering.
37553
37554 2009-10-02  Ben Pfaff  <blp@gnu.org>
37555
37556         relocatable-prog-wrapper: Add missing dependency on
37557         double-slash-root.
37558         * modules/relocatable-prog-wrapper: Add dependency.
37559         Reported by Ian Beckwith <ianb@erislabs.net>.
37560
37561 2009-10-02  Eric Blake  <ebb9@byu.net>
37562
37563         renameat: fix Solaris bugs
37564         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37565         needed fixing.
37566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37567         * modules/stdio (Makefile.am): Substitute it.
37568         * lib/stdio.in.h (renameat): Declare replacement.
37569         * lib/renameat.c (rpl_renameat): Implement fix.
37570
37571         renameat: new module
37572         * modules/renameat: New file.
37573         * lib/renameat.c (renameat): Likewise.
37574         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37576         * modules/stdio (Makefile.am): Substitute them.
37577         * lib/stdio.in.h (renameat): Declare it.
37578         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37579         * doc/posix-functions/renameat.texi (renameat): Likewise.
37580         * modules/renameat-tests: New test.
37581         * tests/test-renameat.c: Likewise.
37582
37583         rename: fix mingw bugs
37584         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37585         directory overwrite bugs.
37586
37587         rename: fix another cygwin 1.5 bug
37588         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37589         checks.
37590         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37591         unnecessary cygwin workarounds.  Also work around bug with moving
37592         full directory onto an empty one.
37593         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37594
37595         rename-dest-slash: merge into rename module
37596         * modules/rename-dest-slash (Status): Mark obsolete.
37597         (Depends-on): Add rename.
37598         (Files): Let rename do it all.
37599         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37600         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37601         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37602         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37603         * lib/rename.c (rpl_rename): Update comments.
37604
37605         rename: fix cygwin 1.5.x bugs
37606         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37607         * lib/rename.c (rpl_rename): Work around them.
37608         * modules/rename (Depends-on): Add same-inode.
37609
37610         rename: fix Solaris 10 bug
37611         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37612         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37613         was the only bug.
37614
37615         rename: fix Solaris 9 bug
37616         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37617         on non-directory.  Avoid calling exit.
37618         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37619         strdup.
37620         * modules/rename-tests (Depends-on): Drop lstat.
37621         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37622         (gl_PREREQ_RENAME): Delete unused macro.
37623
37624         rename-dest-slash: fix NetBSD bug
37625         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37626         links.
37627         * modules/rename-dest-slash (Depends-on): Add same-inode.
37628
37629         rename-tests: new test, exposes several platform bugs
37630         * modules/rename-tests: New file.
37631         * tests/test-rename.h: Likewise.
37632         * tests/test-rename.c: Likewise.
37633         * doc/posix-functions/rename.texi (rename): Improve documentation,
37634         including bugs that will eventually be fixed in gnulib.
37635
37636 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37637
37638         * lib/uname.c: Include <stdlib.h>
37639         (uname): Assume version info is available.
37640
37641 2009-10-02  Jim Meyering  <meyering@redhat.com>
37642
37643         gnu-web-doc-update: correct --help output
37644         * build-aux/gnu-web-doc-update: Make --help output relevant.
37645
37646         gnu-web-doc-update: add standard options
37647         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37648
37649         gnu-web-doc-update: New module.
37650         Use this script to automatically update the on-line web documentation
37651         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37652         * modules/gnu-web-doc-update: New file, from coreutils.
37653         * build-aux/gnu-web-doc-update: New script.
37654
37655 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37656
37657         link: LoadLibrary is not needed.
37658         * lib/link.c: Use GetModuleHandle.
37659
37660 2009-10-01  Eric Blake  <ebb9@byu.net>
37661
37662         getopt: bump serial number
37663         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37664         change.
37665
37666         tests: tighten link, rmdir, and remove tests
37667         * tests/test-link.h (includes): No need to use <config.h> here.
37668         Clean up if directory hard link was created, otherwise test for
37669         trailing '.'.
37670         * tests/test-linkat.c (main): Simplify.
37671         * tests/test-remove.c (main): Enhance test for trailing '.'.
37672         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37673
37674 2009-10-01  Jim Meyering  <meyering@redhat.com>
37675
37676         maint.mk: requiring "make major" was annoying, for a "minor" release.
37677         What is intended is "stable", to contrast with alpha and beta,
37678         so require "make stable", not "make major".
37679         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37680         (get_tool_versions): Likewise.
37681         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37682
37683 2009-09-30  Ben Pfaff  <blp@gnu.org>
37684
37685         Fix broken build of replacement for Windows tmpfile().
37686         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37687         flags argument added along with the 'mkostemp' module.
37688
37689 2009-09-28  Bruno Haible  <bruno@clisp.org>
37690
37691         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37692         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37693         to 'remove_elt'.
37694         (gl_list_remove): Update.
37695         * lib/gl_list.c (gl_list_remove): Update.
37696         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37697         to 'remove_elt'.
37698         (gl_oset_remove): Update.
37699         * lib/gl_list.c (gl_oset_remove): Update.
37700         Reported by Eric Blake.
37701
37702 2009-09-28  Eric Blake  <ebb9@byu.net>
37703
37704         doc: mention yet more cygwin 1.7 status
37705         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37706         cygwin.
37707         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37708         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37709
37710         argp: fix test failure
37711         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37712         that are not upper-case.  Pass correct range to tolower.
37713
37714 2009-09-27  Jim Meyering  <meyering@redhat.com>
37715
37716         test-yesno: work around sparc-dash here-document infelicity
37717         Without this change, the literal \177 byte in a here document
37718         would make dash 0.5.5.1-3 access uninitialized memory.
37719         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37720         Instead, use a marker, "@", and filter through tr to create the desired
37721         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37722
37723 2009-09-27  Bruno Haible  <bruno@clisp.org>
37724
37725         Disable untested support for new flavours of ACLs on AIX.
37726         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37727         progress.
37728         * lib/set-mode-acl.c (qset_acl): Likewise.
37729
37730 2008-12-07  Bruno Haible  <bruno@clisp.org>
37731
37732         Add support for new flavours of ACLs on AIX. (Untested.)
37733         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37734         (file_has_acl): Add support for newer AIX.
37735         * lib/set-mode-acl.c (qset_acl): Likewise.
37736         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37737         Rainer Tammer <tammer@tammer.net>.
37738
37739 2009-09-26  Eric Blake  <ebb9@byu.net>
37740
37741         argp: fix compilation of getopt
37742         * lib/getopt.in.h (includes): Use different guard than glibc.
37743         Reported by Sergey Poznyakoff.
37744
37745         doc: mention more cygwin 1.7 status
37746         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37747         bug.
37748         * doc/posix-functions/execl.texi (execl): Likewise.
37749         * doc/posix-functions/execle.texi (execle): Likewise.
37750         * doc/posix-functions/execlp.texi (execlp): Likewise.
37751         * doc/posix-functions/execv.texi (execv): Likewise.
37752         * doc/posix-functions/execve.texi (execve): Likewise.
37753         * doc/posix-functions/execvp.texi (execvp): Likewise.
37754         * doc/glibc-functions/canonicalize_file_name.texi
37755         (canonicalize_file_name): Cygwin 1.7 now provides this.
37756         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37757         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37758         on AT_SYMLINK_NOFOLLOW.
37759
37760 2009-09-24  Eric Blake  <ebb9@byu.net>
37761
37762         test-linkat: make test more robust
37763         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37764
37765         getopt: fix inclusion guards for cygwin
37766         * modules/getopt-posix (Depends-on): Add include-next.
37767         (Makefile.am): Substitute more items in replacement header.
37768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37769         <getopt.h>.
37770         * lib/getopt.in.h (includes): Use split inclusion guard, and
37771         prefer <getopt.h> over include <unistd.h> when one is present.
37772         (option): Also override name of 'struct option'.
37773
37774         same-inode: revert prior change; it is not yet ready
37775         * NEWS: Undo mention of this change.
37776         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37777         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37778         * lib/cycle-check.c (cycle_check): Likewise.
37779         * lib/same.c (same_name): Likewise.
37780         * lib/at-func2.c (at_func2): Likewise.
37781
37782 2009-09-23  Eric Blake  <ebb9@byu.net>
37783
37784         linkat: new module
37785         * modules/linkat: New file.
37786         * lib/at-func2.c (at_func2): Likewise.
37787         * lib/linkat.c (linkat): Likewise.
37788         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37789         * lib/openat-priv.h (at_func2): Add declaration.
37790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37791         * modules/unistd (Makefile.am): Substitute them.
37792         * lib/unistd.in.h (linkat): Declare it.
37793         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37794         * doc/posix-functions/linkat.texi (linkat): Likewise.
37795         * doc/posix-functions/link.texi (link): Tweak wording.
37796         * tests/test-link.c (main): Move guts...
37797         * tests/test-link.h (test_link): ...into new file.
37798         * modules/linkat-tests: New test.
37799         * tests/test-linkat.c: Likewise.
37800         * modules/link-tests (Files): Ship new file.
37801         (Depends-on): Add stdbool.
37802
37803         dirname: add library-safe mdir_name
37804         * lib/dirname.h (mdir_name): New prototype.
37805         * lib/dirname.c (dir_name): Move guts...
37806         (mdir_name): ...to new function that avoids xalloc_die.
37807
37808         fchdir: another mingw fix
37809         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37810         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37811         on mingw (where it has not yet been ported), and make it optional
37812         elsewhere.
37813         (_gl_register_fd): Use it.
37814
37815         same-inode: make SAME_INODE tri-state, to port to mingw
37816         * NEWS: Mention this change.
37817         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37818         st_ino always being 0.
37819         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37820         * lib/cycle-check.c (cycle_check): Likewise.
37821         * lib/same.c (same_name): Likewise.
37822
37823         lstat: avoid mingw compilation error
37824         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37825         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37826         lstat ourselves.
37827         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37828         was adequate.
37829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37830         the checks for lstat.
37831         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37832
37833         link: fix test failure on Solaris 9
37834         * lib/link.c (rpl_link): Don't assume link will catch bogus
37835         trailing slash on source.
37836
37837         test-symlinkat: enhance test
37838         * tests/test-readlink.c (main): Move guts...
37839         * tests/test-readlink.h (test_readlink): ...into new file.
37840         * tests/test-symlink.c (main): Move guts...
37841         * tests/test-symlink.h (test_symlink): ...into new file.
37842         * tests/test-symlinkat.c (main): Use new files for further
37843         coverage.
37844         (do_symlink, do_readlink): New helper functions.
37845         * modules/symlink-tests (Files): Ship new file.
37846         (Depends-on): Add stdbool.
37847         * modules/readlink-tests (Files): Ship new file.
37848         (Depends-on): Add stdbool.
37849         * modules/symlinkat-tests (Files): Use new files.
37850
37851 2009-09-23  Eric Blake  <ebb9@byu.net>
37852
37853         readlink: document portability issue with symlink length
37854         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37855         systems have bogus st_size on symlinks, and mention the
37856         areadlink-with-size module.
37857         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37858         * doc/posix-functions/readlink.texi (readlink): Mention the
37859         areadlink module, and ERANGE failure.
37860         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37861         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37862
37863         readlink: fix Solaris 9 bug with trailing slash
37864         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37865         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37866         * doc/posix-functions/readlink.texi (readlink): Document this.
37867         * modules/readlink-tests: New test.
37868         * tests/test-readlink.c: Likewise.
37869
37870         readlink: fix cygwin 1.5.x bug with return type
37871         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37872         * lib/unistd.in.h (readlink): Use ssize_t.
37873         * lib/readlink.c (readlink): Likewise.
37874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37875         * modules/unistd (Makefile.am): Substitute it.
37876         * lib/unistd.in.h (readlink): Declare replacement.
37877         * doc/posix-functions/readlink.texi (readlink): Document this.
37878
37879         symlink: use throughout gnulib
37880         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37881         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37882         symlink is not used.
37883         * modules/symlinkat (Depends-on): Add symlink.
37884         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37885         * modules/canonicalize-tests (Depends-on): Likewise.
37886         * modules/lstat-tests (Depends-on): Likewise.
37887         * modules/openat-tests (Depends-on): Likewise.
37888         * modules/remove-tests (Depends-on): Likewise.
37889         * modules/rmdir-tests (Depends-on): Likewise.
37890         * modules/unlink-tests (Depends-on): Likewise.
37891         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37892         * tests/test-canonicalize.c (symlink): Likewise.
37893         * tests/test-fstatat.c (symlink): Likewise.
37894         * tests/test-lstat.c (symlink): Likewise.
37895         * tests/test-remove.c (symlink): Likewise.
37896         * tests/test-rmdir.c (symlink): Likewise.
37897         * tests/test-unlink.c (symlink): Likewise.
37898         * tests/test-unlinkat.c (symlink): Likewise.
37899
37900         symlink: new module, for Solaris 9 bug
37901         * modules/symlink: New file.
37902         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37903         * lib/symlink.c: Likewise.
37904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37905         * modules/unistd (Makefile.am): Substitute them.
37906         * lib/unistd.in.h (symlink): Declare replacement.
37907         * MODULES.html.sh (File system functions): Mention it.
37908         * doc/posix-functions/symlink.texi (symlink): Likewise.
37909         * modules/symlink-tests: New test.
37910         * tests/test-symlink.c: Likewise.
37911
37912 2009-09-23  Bruno Haible  <bruno@clisp.org>
37913
37914         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37915         when needed.
37916         Test case: gnulib-tool --import --with-tests atexit inttypes.
37917         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37918
37919 2009-09-23  Bruno Haible  <bruno@clisp.org>
37920
37921         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37922         subcommand, not in a subshell.
37923
37924 2009-09-22  Eric Blake  <ebb9@byu.net>
37925
37926         unistd: sort replacement declarations
37927         * lib/unistd.in.h: Sort declarations.
37928
37929         open, openat: minor optimization
37930         * lib/open.c (open): If open succeeded, len is non-zero.
37931         * lib/openat.c (rpl_openat): Likewise.
37932
37933         link-follow: ensure correct result
37934         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37935         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37936         distinguish between possible failures.
37937
37938 2009-09-21  Eric Blake  <ebb9@byu.net>
37939
37940         fts: avoid compiler warning
37941         * lib/fts.c (dirent_inode_sort_may_be_useful)
37942         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37943
37944 2009-09-19  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/progreloc.c (canonicalize_file_name): New declaration.
37947
37948 2009-09-19  Eric Blake  <ebb9@byu.net>
37949
37950         link: fix quoting
37951         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37952
37953         openat: fix openat bugs on Solaris 9
37954         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37955         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37956         * modules/openat (Depends-on): Add open.
37957         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37958         * modules/fcntl-h (Makefile.am): Substitute it.
37959         * lib/fcntl.in.h (openat): Declare replacement.
37960         * doc/posix-functions/openat.texi (openat): Document this.
37961
37962         openat: move fstatat and unlinkat into correct files
37963         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37964         compiled.
37965         * lib/openat.c (fstatat, unlinkat): Move...
37966         * lib/fstatat.c (fstatat): ...into correct files.
37967         * lib/unlinkat.c (unlinkat): Likewise.
37968
37969         openat: fix unlinkat bugs on Solaris 9
37970         * lib/unlinkat.c (unlinkat): New file.
37971         * modules/openat (Depends-on): Add unlink.
37972         (Files): Distribute it.
37973         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37974         trailing slash behavior is broken.
37975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37976         * modules/unistd (Makefile.am): Substitute it.
37977         * lib/unistd.in.h (unlinkat): Declare replacement.
37978         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37979
37980         openat: fix fstatat bugs on Solaris 9
37981         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37982         stat.
37983         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37984
37985         test-unlinkat: enhance test, to expose Solaris 9 bug
37986         * tests/test-unlink.c (main): Factor guts...
37987         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37988         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37989         * tests/test-rmdir.c (main): Adjust caller.
37990         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37991         (unlinker): New helper function.
37992         (rmdirat): Enhance check.
37993         * modules/rmdir-tests (Depends-on): Add stdbool.
37994         * modules/unlink-tests (Depends-on): Likewise.
37995         (Files): Add test-unlink.h.
37996         * modules/openat-tests (Files): Likewise.
37997         (Depends-on): Add unlinkdir.
37998
37999         test-fstatat: new test, to expose Solaris 9 bugs
38000         * tests/test-stat.c (main): Factor guts...
38001         * tests/test-stat.h (test_stat_func): ...into new file.
38002         * tests/test-lstat.c (main): Factor guts...
38003         * tests/test-lstat.h (test_lstat_func): ...into new file.
38004         * tests/test-fstatat.c: New file.
38005         * modules/stat-tests (Files): Add test-stat.h.
38006         * modules/lstat-tests (Files): Add test-lstat.h.
38007         (Depends-on): Add stdbool.
38008         * modules/openat-tests (Depends-on): Add pathmax.
38009         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
38010         (Makefile.am): Run new test.
38011
38012         remove: new module, for mingw and Solaris 9 bugs
38013         * modules/remove: New file.
38014         * lib/remove.c: Likewise.
38015         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
38016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38017         * modules/stdio (Makefile.am): Use them.
38018         * lib/stdio.in.h (remove): Declare replacement.
38019         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38020         * doc/posix-functions/remove.texi (remove): Likewise.
38021         * modules/remove-tests: New test.
38022         * tests/test-remove.c: Likewise.
38023
38024         unlink: new module, for Solaris 9 bug
38025         * modules/unlink: New file.
38026         * lib/unlink.c: Likewise.
38027         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38029         * modules/unistd (Makefile.am): Use them.
38030         * lib/unistd.in.h (stat): Declare replacement.
38031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38032         * doc/posix-functions/unlink.texi (unlink): Likewise.
38033         * modules/unlink-tests: New test.
38034         * tests/test-unlink.c: Likewise.
38035
38036         lstat: fix Solaris 9 bug
38037         * lib/lstat.c (lstat): Also check for trailing slash on
38038         non-symlink, non-directories.  Use stat module to simplify logic.
38039         * doc/posix-functions/lstat.texi (lstat): Document it.
38040         * modules/lstat-tests (Depends-on): Add errno, same-inode.
38041         (configure.ac): Check for symlink.
38042         * tests/test-lstat.c (main): Add more tests.
38043
38044         stat: add as dependency to other modules
38045         * modules/chown (Depends-on): Add stat.
38046         * modules/euidaccess (Depends-on): Likewise.
38047         * modules/fchdir (Depends-on): Likewise.
38048         * modules/isdir (Depends-on): Likewise.
38049         * modules/link (Depends-on): Likewise.
38050         * modules/lstat (Depends-on): Likewise.
38051         * modules/mkdir-p (Depends-on): Likewise.
38052         * modules/modechange (Depends-on): Likewise.
38053         * modules/open (Depends-on): Likewise.
38054         * modules/readlink (Depends-on): Likewise.
38055         * modules/same (Depends-on): Likewise.
38056
38057         stat: fix Solaris 9 bug
38058         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
38059         slash.
38060         * lib/stat.c (rpl_stat): Work around it.
38061         * doc/posix-functions/stat.texi (stat): Update documentation.
38062
38063         stat: new module, for mingw bug
38064         * modules/stat: New file.
38065         * lib/stat.c: Likewise.
38066         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38067         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38068         * modules/sys_stat (Makefile.am): Use them.
38069         * lib/sys_stat.in.h (stat): Declare replacement.
38070         * lib/openat.c (fstatat): Deal with lstat and stat being function
38071         macros.
38072         * modules/openat (Depends-on): Add inline.
38073         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38074         * doc/posix-functions/stat.texi (stat): Likewise.
38075         * modules/stat-tests: New test.
38076         * tests/test-stat.c: Likewise.
38077
38078 2009-09-19  Jim Meyering  <meyering@redhat.com>
38079
38080         syntax-check: detect unnecessary inclusion of canonicalize.h
38081         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
38082
38083 2009-09-19  Eric Blake  <ebb9@byu.net>
38084
38085         canonicalize-lgpl: adjust clients to use correct header
38086         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38087         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
38088         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
38089         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
38090         * lib/progreloc.c (includes): Likewise.
38091
38092 2009-09-19  Jim Meyering  <meyering@redhat.com>
38093
38094         test-posixtm.c: correct a comment
38095         * tests/test-posixtm.c: Correct first-line comment.
38096         Spotted by Eric Blake.
38097
38098 2009-09-16  Jim Meyering  <meyering@redhat.com>
38099
38100         posixtm-tests: make T const-correct; add a test case
38101         * tests/test-posixtm.c (T): Declare const.
38102         Add a test for -(2^31+1).
38103         Remove useless can-succeed-only-in-2002 test.
38104
38105         posixtm-tests: adjust the sole failing test
38106         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
38107         expected output matches what mktime now produces.  Cross-checked via
38108         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
38109
38110         posixtm: move #ifdef'd tests into a new module
38111         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
38112         * tests/test-posixtm.c: ... this new file.
38113         * modules/posixtm-tests: New module.
38114
38115 2009-09-19  Eric Blake  <ebb9@byu.net>
38116
38117         openat: simplify use of at-func.c
38118         * lib/at-func.c (includes): Include prerequisites here, to
38119         simplify requirements on client files.
38120         * lib/openat-priv.h: Add double-inclusion guard.
38121         * lib/faccessat.c (includes): Simplify.
38122         * lib/fchmodat.c (includes): Likewise.
38123         * lib/fchownat.c (includes): Likewise.
38124         * lib/mkdirat.c (includes): Likewise.
38125         * lib/mkfifoat.c (includes): Likewise.
38126         * lib/symlinkat.c (includes): Likewise.
38127
38128         openat: allow return of fd 0
38129         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
38130         * modules/save-cwd (Depends-on): Replace fcntl-safer with
38131         unistd-safer.
38132         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
38133         <fcntl.h>; this module does not leak fds.
38134         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
38135         must be allowed to return 0, leaving openat_safer to add the
38136         safety.
38137         (openat_permissive): Avoid writing to just-opened fd 2 if
38138         restoring the current directory fails.
38139         * lib/openat-die.c (openat_restore_fail): Add comment.
38140         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
38141         (save_cwd): Guarantee safe fd, but without use of open_safer.
38142         * tests/test-openat.c: New test.
38143         * modules/openat-tests (Files, Makefile.am): Distribute and build
38144         new file.
38145
38146         relocatable-prog-wrapper: fix build
38147         * modules/relocatable-prog-wrapper (Files): Update name of
38148         canonicalize m4 file, broken on 2009-09-17.
38149         Reported by emad hajjar <aleppos@hotmail.com>.
38150
38151 2009-09-19  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38154         * lib/safe-alloc.c: Likewise.
38155         Reported by Ian Beckwith <ianb@erislabs.net>.
38156
38157 2009-09-18  Bruno Haible  <bruno@clisp.org>
38158
38159         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38160         Reported by <erobles@sensacd.com.mx>.
38161
38162 2009-09-17  Eric Blake  <ebb9@byu.net>
38163
38164         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38165         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38166         slashes when checking if last component is missing.
38167         * tests/test-canonicalize.c (main): Test this.
38168
38169         canonicalize, canonicalize-lgpl: honor // if distinct from /
38170         * modules/canonicalize (Files): Add double-slash-root.m4.
38171         * modules/canonicalize-lgpl (Files): Likewise.
38172         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38173         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38174         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38175         fallback definition.
38176         (canonicalize_filename_mode): Use it to protect //.
38177         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38178         (__realpath): Likewise.
38179         * tests/test-canonicalize.c (main): Test this.
38180         * tests/test-canonicalize-lgpl.c (main): Likewise.
38181         * modules/canonicalize-tests (Depends-on): Add same-inode.
38182         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38183
38184         canonicalize-lgpl: fix glibc bug with trailing slash
38185         * m4/canonicalize-lgpl.m4: Move contents...
38186         * m4/canonicalize.m4: ...here.
38187         (gl_CANONICALIZE_LGPL): Factor realpath check...
38188         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38189         glibc 2.3.5 bug, fixed 2005-04-27.
38190         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38191         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38192         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38193         * modules/canonicalize-lgpl (Files): Manage file rename.
38194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38195         * modules/stdlib (Makefile.am): Substitute witness.
38196         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38197         is needed.
38198         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38199         replacement is required.
38200         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38201         * doc/glibc-functions/canonicalize_file_name.texi
38202         (canonicalize_file_name): Document this.
38203         * doc/posix-functions/realpath.texi (realpath): Likewise.
38204
38205         canonicalize-lgpl: reject non-directory with trailing slash
38206         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38207         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38208         catches failures in glibc 2.3.5.
38209         * tests/test-canonicalize.c (main): Likewise.
38210
38211         canonicalize-lgpl: use native realpath if it works
38212         * lib/canonicalize-lgpl.c (realpath): Guard with
38213         FUNC_REALPATH_WORKS.
38214         * lib/stdlib.in.h (realpath): Make declaration optional based on
38215         HAVE_REALPATH.
38216         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38217         native realpath works.
38218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38219         * modules/stdlib (Makefile.am): Substitute witness.
38220
38221         canonicalize, canonicalize-lgpl: use <stdlib.h>
38222         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38223         (Include): Mention <stdlib.h>.
38224         (configure.ac): Mention functions we provide.
38225         * modules/canonicalize (configure.ac): Likewise.
38226         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38227         realpath if canonicalize_file_name is missing.
38228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38229         * modules/stdlib (Makefile.am): Substitute witnesses.
38230         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38231         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38232         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38233         * NEWS: Document this.
38234         * doc/glibc-functions/canonicalize_file_name.texi
38235         (canonicalize_file_name): Likewise.
38236         * doc/posix-functions/realpath.texi (realpath): Likewise.
38237         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38238
38239         test-canonicalize: consolidate into single C program
38240         * tests/test-canonicalize.sh: Delete; move setup into...
38241         * tests/test-canonicalize.c (main): ...the program, making it
38242         easier to run in debugger.  Add some tests.
38243         * modules/canonicalize-tests (Files): Remove unused file.
38244         (Depends-on): Add progname.
38245         (configure.ac, Makefile.am): Simplify.
38246
38247         test-canonicalize-lgpl: consolidate into single C program
38248         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38249         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38250         easier to run in debugger.  Add some tests.
38251         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38252         (configure.ac, Makefile.am): Simplify.
38253
38254         canonicalize: avoid resolvepath
38255         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38256         unnecessary checks.
38257         * lib/canonicalize.c (includes): Simplify.
38258         (canonicalize_file_name): Drop resolvepath implementation.
38259         * modules/canonicalize (Depends-on): Drop filenamecat.
38260
38261         canonicalize: don't lose errno
38262         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38263         over calls to free.
38264
38265         canonicalize: simplify errno handling
38266         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38267         assignment.
38268
38269         canonicalize, canonicalize-lgpl: update module dependencies
38270         * modules/canonicalize (Depends-on): Add extensions, lstat,
38271         pathmax, stdlib.
38272         (Files): Drop pathmax.h.
38273         (configure.ac): Adjust macro name.
38274         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38275         lstat, stdlib, sys_stat.
38276         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38277         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38278         extensions.
38279         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38280         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38281         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38282         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38283         declaration, if available.
38284         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38285         we can rely on the readlink module.
38286         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38287         (includes): Use <unistd.h> unconditionally.
38288
38289 2009-09-17  Eric Blake  <ebb9@byu.net>
38290
38291         maint: make Include sections of modules consistent
38292         * modules/alloca: Use only header name; no need to list #include.
38293         * modules/alloca-opt: Likewise.
38294         * modules/arpa_inet: Likewise.
38295         * modules/canon-host: Likewise.
38296         * modules/configmake: Likewise.
38297         * modules/dirent: Likewise.
38298         * modules/eealloc: Likewise.
38299         * modules/environ: Likewise.
38300         * modules/fchdir: Likewise.
38301         * modules/fcntl: Likewise.
38302         * modules/fcntl-h: Likewise.
38303         * modules/gethrxtime: Likewise.
38304         * modules/gettime: Likewise.
38305         * modules/ignore-value: Likewise.
38306         * modules/inet_ntop: Likewise.
38307         * modules/inet_pton: Likewise.
38308         * modules/inttypes: Likewise.
38309         * modules/isnand-nolibm: Likewise.
38310         * modules/isnanf-nolibm: Likewise.
38311         * modules/mbchar: Likewise.
38312         * modules/mbfile: Likewise.
38313         * modules/mbiter: Likewise.
38314         * modules/mbuiter: Likewise.
38315         * modules/netdb: Likewise.
38316         * modules/netinet_in: Likewise.
38317         * modules/nproc: Likewise.
38318         * modules/pagealign_alloc: Likewise.
38319         * modules/poll: Likewise.
38320         * modules/printf-frexp: Likewise.
38321         * modules/pthread: Likewise.
38322         * modules/putenv: Likewise.
38323         * modules/random_r: Likewise.
38324         * modules/relocatable-prog: Likewise.
38325         * modules/search: Likewise.
38326         * modules/select: Likewise.
38327         * modules/selinux-h: Likewise.
38328         * modules/settime: Likewise.
38329         * modules/signal: Likewise.
38330         * modules/size_max: Likewise.
38331         * modules/socklen: Likewise.
38332         * modules/ssize_t: Likewise.
38333         * modules/stdarg: Likewise.
38334         * modules/stdbool: Likewise.
38335         * modules/stddef: Likewise.
38336         * modules/stdint: Likewise.
38337         * modules/stdio: Likewise.
38338         * modules/stdlib: Likewise.
38339         * modules/string: Likewise.
38340         * modules/strings: Likewise.
38341         * modules/sys_file: Likewise.
38342         * modules/sys_ioctl: Likewise.
38343         * modules/sys_select: Likewise.
38344         * modules/sys_socket: Likewise.
38345         * modules/sys_stat: Likewise.
38346         * modules/sys_time: Likewise.
38347         * modules/sys_times: Likewise.
38348         * modules/sys_utsname: Likewise.
38349         * modules/sys_wait: Likewise.
38350         * modules/sysexits: Likewise.
38351         * modules/time: Likewise.
38352         * modules/times: Likewise.
38353         * modules/tmpfile: Likewise.
38354         * modules/trim: Likewise.
38355         * modules/unistd: Likewise.
38356         * modules/wchar: Likewise.
38357         * modules/wctype: Likewise.
38358
38359 2009-09-17  Bruno Haible  <bruno@clisp.org>
38360
38361         Make getdate.y compile on QNX and NetBSD 5 / i386.
38362         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38363         TIME_T_FITS_IN_LONG_INT.
38364         * lib/getdate.y (long_time_t): New type.
38365         (relative_time): Change type of 'seconds' field to long_time_t.
38366         (get_date): Update types of local variables. Check against overflow
38367         during conversion from long_time_t to time_t.
38368         Reported by Matt Kraai <kraai@ftbfs.org>
38369         and Hasso Tepper <hasso@netbsd.org>.
38370
38371 2009-09-17  Bruno Haible  <bruno@clisp.org>
38372
38373         * modules/COPYING: Update copyright years.
38374         * modules/README: Likeiwse.
38375         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38376         Reported by Ian Beckwith <ianb@erislabs.net>.
38377
38378 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38379
38380         * users.txt: Update references for gnuit package.
38381
38382 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38383
38384         * m4/getdelim.m4: Fix typo in copyright line.
38385
38386 2009-09-17  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/atoll.c: Use the standard header with GPL copyright.
38389         * lib/argz.in.h: Likewise.
38390         * lib/glob.c: Likewise.
38391         * lib/glob-libc.h: Likewise.
38392         * lib/random_r.c: Likewise.
38393         * lib/siglist.h: Likewise.
38394         * lib/strsignal.c: Likewise.
38395         Reported by Ian Beckwith <ianb@erislabs.net>.
38396
38397 2009-09-17  Eric Blake  <ebb9@byu.net>
38398
38399         rmdir: ensure correct dependency order
38400         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38401
38402 2009-09-17  Bruno Haible  <bruno@clisp.org>
38403
38404         Disable assertion that fails on NetBSD 5 / i386.
38405         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38406         Reported by Sam Steingold <sds@gnu.org>
38407         and Hasso Tepper <hasso@netbsd.org>.
38408
38409 2009-09-16  Eric Blake  <ebb9@byu.net>
38410
38411         unlinkdir: port to mingw
38412         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38413         on which no one can unlink a directory.
38414
38415         stdlib: sort witness names
38416         * modules/stdlib (Makefile.am): Sort replacements.
38417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38418         * lib/stdlib.in.h: Likewise.
38419
38420         parse-duration-tests: avoid link failure
38421         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38422         LIBINTL.
38423         Reported by Tom G. Christensen.
38424
38425         openat-tests: ensure unlinkat behaves like rmdir
38426         * tests/test-rmdir.c (main): Factor guts...
38427         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38428         * modules/rmdir-tests (Files): Ship new file.
38429         * modules/openat-tests: New test.
38430         * tests/test-unlinkat.c: Likewise.
38431
38432         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38433         * modules/rmdir-errno (Status, Notice): Now obsolete.
38434
38435         rmdir: work around cygwin 1.5.x and mingw bugs
38436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38437         * lib/rmdir.c (rmdir): Work around it.
38438         * modules/rmdir (Status, Notice): No longer obsolete.
38439         (Files): Add dos.m4.
38440         (Depends-on): Add unistd.
38441         (configure.ac): Set witnesses.
38442         (License): Relax to LGPLv2+.
38443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38444         * modules/unistd (Makefile.am): Substitute witnesses.
38445         * lib/unistd.in.h (rmdir): Declare replacement.
38446         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38447         * modules/rmdir-tests: New tests.
38448         * tests/test-rmdir.c: Likewise.
38449
38450 2009-09-15  Eric Blake  <ebb9@byu.net>
38451
38452         fchdir: improve use of replacement functions
38453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38455         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38456         REPLACE_CLOSEDIR.
38457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38458         * modules/sys_stat (Makefile.am): Substitute correct witness.
38459         * modules/dirent (Makefile.am): Likewise.
38460         * modules/unistd (Makefile.am): Likewise.
38461         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38462         * lib/unistd.in.h (dup): Likewise.
38463         * lib/sys_stat.in.h (fstat): Likewise.
38464
38465         maint: ignore gnulib-tool temp files
38466         * .gitignore: Ignore files created during gnulib-tool --test.
38467
38468 2009-09-13  Jim Meyering  <meyering@redhat.com>
38469
38470         posixtm: don't reject a time that specify "60" as the number of seconds
38471         * lib/posixtm.c (posixtime): The code to reject invalid dates
38472         would also reject a time specified with the .60 suffix.
38473         But POSIX allows that, in order to accommodate leap seconds.
38474         So don't reject it.
38475         (main): Adjust tests accordingly.
38476         * modules/posixtm (Depends-on): Add stpcpy.
38477
38478 2009-09-11  Jim Meyering  <meyering@redhat.com>
38479
38480         announce-gen: include [$release_type] in emitted Subject:
38481         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38482         e.g., [stable] in the emitted Subject: line.
38483
38484 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38485
38486         Remove obsolete macros from several modules.
38487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38488         obsolete Autoconf macros with their modern counterparts.
38489         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38490         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38492         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38493         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38494         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38496         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38497         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38498         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38499         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38501         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38502         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38503         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38504         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38505         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38506         * m4/time_r.m4 (gl_TIME_R): Likewise.
38507         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38508         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38509         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38510
38511         Fix copyright header in build-aux scripts.
38512         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38513         recommendation.
38514         * build-aux/ncftpput-ftp: Likewise.
38515         * build-aux/update-copyright: Likewise.
38516
38517 2009-09-09  Eric Blake  <ebb9@byu.net>
38518
38519         test-link: allow Linux choice of errno
38520         * tests/test-link.c (main): Relax test for alternate error.
38521
38522         strndup: fix improper m4 caching
38523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38524         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38525         (gl_PREREQ_STRNDUP): Delete.
38526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38527         * modules/string (Makefile.am): Substitute it.
38528         * lib/string.in.h (strndup): Modernize prototype.
38529
38530         getcwd: port to mingw
38531         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38532         different from the POSIX assumptions made throughout the getcwd
38533         module; fortunately, the mingw getcwd does not need replacement.
38534         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38535         * modules/getcwd-tests: New test.
38536         * tests/test-getcwd.c: Likewise.
38537
38538         link: fix platform bugs
38539         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38540         * lib/link.c (link): Work around them.  Fix related mingw bug.
38541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38542         * modules/unistd (Makefile.am): Substitute it.
38543         * lib/unistd.in.h (link): Declare replacement.
38544         * doc/posix-functions/link.texi (link): Document this.
38545         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38546
38547         test-link: consolidate into single C program, test more cases
38548         * tests/test-link.sh: Delete.
38549         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38550         at least Cygwin and Solaris.
38551         * modules/link-tests (Files): Remove unused file.
38552         (Depends-on): Add errno, sys_stat.
38553         (Makefile.am): Simplify.
38554
38555 2009-09-08  Bruno Haible  <bruno@clisp.org>
38556
38557         Work around towlower, towupper bug on mingw.
38558         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38559         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38560         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38561         * doc/posix-functions/towupper.texi: Likewise.
38562         Reported by Eric Blake.
38563
38564 2009-09-08  Jim Meyering  <meyering@redhat.com>
38565
38566         build: don't try to run autoheader if we don't use it
38567         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38568         is not used in configure.ac.
38569
38570 2009-09-08  Eric Blake  <ebb9@byu.net>
38571
38572         euidaccess: fix compilation error
38573         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38574
38575         rawmemchr: relax license
38576         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38577         okay.
38578         Reported by Jim Meyering.
38579
38580         mkfifoat: new module
38581         * modules/mkfifoat: New file.
38582         * lib/mkfifoat.c: Likewise.
38583         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38585         * modules/sys_stat (Makefile.am): Use them.
38586         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38587         * MODULES.html.sh (File system functions): Mention module.
38588         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38589         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38590         * modules/mkfifoat-tests: New test.
38591         * tests/test-mkfifoat.c: Likewise.
38592
38593         strchrnul: relax license
38594         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38595         okay.
38596         Reported by Jim Meyering.
38597
38598 2009-09-08  Eric Blake  <ebb9@byu.net>
38599
38600         fstatat: fix compilation on Solaris
38601         * lib/fstatat.c (includes): Add fcntl.h.
38602         Reported by Pádraig Brady.
38603
38604 2009-09-07  Eric Blake  <ebb9@byu.net>
38605
38606         rename: modernize replacement
38607         * modules/rename (Depends-on): Add stdio.
38608         (configure.ac): Declare witness.
38609         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38610         stdio take care of replacement.
38611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38612         * modules/stdio (Makefile.am): Substitute them.
38613         * lib/stdio.in.h (rename): Declare replacement.
38614         * lib/rename.c (includes): Allow cross-compilation to non-windows
38615         machines.
38616         * doc/posix-functions/rename.texi (rename): Improve
38617         documentation.
38618
38619         stdio: sort witness names
38620         * modules/stdio (Makefile.am): Sort replacements.
38621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38622         * lib/stdio.in.h: Likewise.
38623
38624         getcwd: minor cleanups
38625         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38626         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38627
38628         openat: provide more convenience names
38629         * modules/faccessat (configure.ac): Add C witness.
38630         * lib/unistd.in.h (readlinkat): Fix typo.
38631         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38632         convenience wrappers.
38633         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38634         wrappers in syntax checks.
38635
38636 2009-09-06  Eric Blake  <ebb9@byu.net>
38637
38638         doc: fix comments in recent patches
38639         * lib/faccessat.c: Mention correct function.
38640         * lib/fchmodat.c: Likewise.
38641         * lib/fchownat.c: Likewise.
38642         * lib/symlinkat.c: Likewise.
38643         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38644         constants.
38645
38646         faccessat, symlinkat: continue cleanup of previous patch
38647         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38648         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38649         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38651         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38652         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38653         set.
38654
38655 2009-09-06  Bruno Haible  <bruno@clisp.org>
38656
38657         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38658         (fstatat): Declare if GNULIB_FSTATAT is set.
38659         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38660         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38661         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38662         * modules/fcntl-h (Files): Remove m4/openat.m4.
38663         * modules/sys_stat (Files): Remove m4/openat.m4.
38664         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38665         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38666         * modules/unistd (Files): Remove m4/openat.m4.
38667         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38668         GNULIB_OPENAT.
38669         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38670         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38671         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38672         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38673         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38674         gl_OPENAT_DEFAULTS.
38675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38676         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38677         Don't require gl_OPENAT_DEFAULTS.
38678         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38679         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38680         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38681         (gl_OPENAT_DEFAULTS): Remove macro.
38682
38683 2009-09-06  Bruno Haible  <bruno@clisp.org>
38684
38685         * modules/openat (configure.ac): Remove unneeded witness.
38686
38687 2009-09-06  Bruno Haible  <bruno@clisp.org>
38688
38689         Set errno to ENOSYS when a function is entirely unsupported.
38690         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38691         EOPNOTSUPP.
38692         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38693         * modules/chown (Depends-on): Remove errno.
38694
38695 2009-09-06  Bruno Haible  <bruno@clisp.org>
38696
38697         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38698
38699 2009-09-06  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38702
38703 2009-09-06  Ben Pfaff  <blp@gnu.org>
38704             Bruno Haible  <bruno@clisp.org>
38705
38706         Work around a glibc bug in strtok_r.
38707         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38708         Undefine if UNDEFINE_STRTOK_R is set.
38709         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38711         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38713         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38714         UNDEFINE_STRTOK_R.
38715         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38716
38717 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38718
38719         exclude: minor fix
38720         * lib/exclude.c: Include wctype.h
38721
38722 2009-09-06  Akim Demaille  <demaille@gostai.com>
38723
38724         bootstrap: improve error message
38725         * build-aux/bootstrap (find_tool): Upon failure, report the list
38726         of candidates.
38727         Honor the initial value of the envvar.
38728
38729 2009-09-05  Eric Blake  <ebb9@byu.net>
38730
38731         symlinkat: new module
38732         * modules/symlinkat: New file.
38733         * lib/symlinkat.c: Likewise.
38734         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38736         * modules/unistd (Makefile.am): Use them.
38737         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38738         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38739         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38740         * MODULES.html.sh (File system functions): Mention module.
38741         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38742         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38743         * modules/symlinkat-tests: New test.
38744         * tests/test-symlinkat.c: Likewise.
38745
38746         test-openat-safer: add more checks
38747         * tests/test-openat-safer.c (main): Check more code paths.
38748
38749 2009-09-05  Jim Meyering  <meyering@redhat.com>
38750
38751         syntax-check: detect unnecessary inclusion of openat.h
38752         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38753
38754 2009-09-05  Bruno Haible  <bruno@clisp.org>
38755
38756         Support towlower, towupper.
38757         * doc/posix-functions/towlower.texi: Mention module wctype.
38758         * doc/posix-functions/towupper.texi: Likewise.
38759         * lib/wctype.in.h (towlower, towupper): New functions.
38760         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38761         (ASSERT): New macro.
38762         (e): New variable.
38763         (main): Test also towlower, towupper. Test WEOF argument.
38764         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38765
38766 2009-09-05  Bruno Haible  <bruno@clisp.org>
38767
38768         Fix conversion behaviour when the input is invalid.
38769         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38770         mark occurring in first pass of indirect conversion.
38771         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38772         input.
38773         Found by clang's static analyzer.
38774
38775 2009-09-05  Bruno Haible  <bruno@clisp.org>
38776
38777         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38778         where direct conversion is possible.
38779
38780 2009-09-04  Eric Blake  <ebb9@byu.net>
38781
38782         openat: fail with ENOENT on empty name
38783         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38784         buffer.
38785
38786         link-follow: fix logic bug in prior patch
38787         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38788         reversed sense of yes and no in prior patch.  Avoid confusing
38789         compilation failure with desired semantics.
38790
38791         link-follow: accomodate mingw and cross-compilation
38792         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38793         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38794         cross-compilation results to -1, to make linkat easier to
38795         implement when cross-compiling.  Trivially support mingw.
38796         * modules/link-follow (configure.ac): Call new name.
38797         * NEWS: Mention this.
38798
38799 2009-09-03  Eric Blake  <ebb9@byu.net>
38800
38801         faccessat: compile replacement
38802         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38803         needed.
38804
38805         fts: fix compilation error
38806         * lib/fts.c (includes): Re-add "openat.h", for
38807         openat_needs_fchdir.
38808
38809         faccessat: new module
38810         * modules/faccessat: New file.
38811         * lib/faccessat.c: Likewise.
38812         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38814         * modules/unistd (Makefile.am): Use it.
38815         * lib/unistd.in.h (faccessat): Declare it.
38816         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38817         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38818         * MODULES.html.sh (File system functions): Mention it.
38819         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38820         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38821
38822         euidaccess: prefer POSIX over non-standard implementation
38823         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38824         * lib/euidaccess.c (euidaccess): Use it if available.
38825
38826         openat: make template easier to use
38827         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38828         AT_FUNC_F2 to be undefined.
38829         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38830         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38831         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38832         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38833         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38834         Likewise.
38835         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38836         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38837         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38838         Likewise.
38839
38840         openat: declare in POSIX headers
38841         * NEWS: Mention this.
38842         * modules/openat (configure.ac): Declare witnesses.
38843         (Depends-on): Add fcntl-h, sys_stat, unistd.
38844         (Include): Mention correct headers.
38845         * modules/fcntl-h (Depends-on): Add link-warning.
38846         (Files): Add openat.m4.
38847         (Makefile.am): Substitute witnesses.
38848         * modules/sys_stat (Files, Makefile.am): Likewise.
38849         * modules/unistd (Files, Makefile.am): Likewise.
38850         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38851         (gl_OPENAT_DEFAULTS): New macro.
38852         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38854         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38855         (SYS_STAT_H): Remove unused variable.
38856         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38857         * lib/fcntl--.h (includes): Remove unneeded header.
38858         * lib/openat-safer.c (includes): Likewise.
38859         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38860         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38861         appropriate headers.
38862         (__OPENAT_PREFIX): Delete.
38863         * lib/fcntl.in.h (openat): Provide declaration.
38864         (AT_FDCWD): Fix Solaris bug.
38865         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38866         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38867         * lib/fchmodat.c (includes):  Adjust to find declaration.
38868         * lib/fchownat.c (includes): Likewise.
38869         * lib/mkdirat.c (includes): Likewise.
38870         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38871         still visible.
38872
38873 2009-09-02  Eric Blake  <ebb9@byu.net>
38874
38875         errno: use consistently
38876         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38877         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38878         * lib/canonicalize.c (ELOOP): Likewise.
38879         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38880         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38881         * lib/lchown.c (EOPNOTSUPP): Likewise.
38882         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38883         * lib/savewd.c (ESTALE): Likewise.
38884         * lib/settime.c (ENOSYS): Likewise.
38885         * lib/utimens.c (ENOSYS): Likewise.
38886         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38887         * lib/chdir-safer.c (ELOOP): Likewise.
38888         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38889         * modules/c-stack (Depends-on): Add errno.
38890         * modules/canonicalize (Depends-on): Likewise.
38891         * modules/chdir-safer (Depends-on): Likewise.
38892         * modules/fdopendir (Depends-on): Likewise.
38893         * modules/inet_ntop (Depends-on): Likewise.
38894         * modules/inet_pton (Depends-on): Likewise.
38895         * modules/lchown (Depends-on): Likewise.
38896         * modules/openat (Depends-on): Likewise.
38897         * modules/savewd (Depends-on): Likewise.
38898         * modules/settime (Depends-on): Likewise.
38899         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38900
38901         fts: avoid leaking fds
38902         * modules/fts (Depends-on): Add cloexec.
38903         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38904         flag.
38905
38906         fts: make directory fds more robust
38907         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38908         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38909
38910         backupfile, chdir-long, fts, savedir: make safer
38911         * lib/backupfile.c (includes): Use "dirent--.h", since
38912         numbered_backup can write to stderr during readdir.
38913         * lib/savedir.c (includes): Likewise.
38914         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38915         emulation can write to stderr on failure.
38916         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38917         * lib/getcwd.c: Document why opendir_safer is unused.
38918         * lib/glob.c: Likewise.
38919         * lib/scandir.c: Likewise.
38920         * lib/openat-proc.c: Likewise, for open_safer.
38921         * modules/backupfile (Depends-on): Add dirent-safer.
38922         * modules/savedir (Depends-on): Likewise.
38923         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38924         * modules/chdir-long (Depends-on): Add openat-safer.
38925
38926         openat-safer: new module
38927         * modules/openat-safer: New file.
38928         * lib/openat-safer.c: Likewise.
38929         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38930         * lib/fcntl-safer.h (openat_safer): Declare.
38931         * lib/fcntl--.h (openat): Override.
38932         * MODULES.html.sh (File descriptor based I/O): Mention it.
38933         * lib/openat.h: Add double-inclusion guards.
38934         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38935         "fcntl--.h", so we can implement openat.
38936         * modules/openat-safer-tests: New test.
38937         * tests/test-openat-safer.c: New file.
38938
38939         dirent-safer: new module
38940         * modules/dirent-safer: New file.
38941         * lib/dirent--.h: Likewise.
38942         * lib/dirent-safer.h: Likewise.
38943         * lib/opendir-safer.c: Likewise.
38944         * m4/dirent-safer.m4: Likewise.
38945         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38946         * modules/dirent-safer-tests: New test.
38947         * tests/test-dirent-safer.c: New file.
38948         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38949
38950         fdopendir: optimize on mingw
38951         * lib/unistd.in.h (_gl_directory_name): New prototype.
38952         * lib/fchdir.c (_gl_directory_name): Implement it.
38953         (fchdir): Use it to simplify implementation.
38954         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38955         fchdir, when available, to avoid calling [f]chdir().
38956
38957         fdopendir: split into its own module
38958         * lib/openat.c (fdopendir): Move...
38959         * lib/fdopendir.c: ...into new file.
38960         * modules/fdopendir: New module.
38961         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38962         * modules/openat (Depends-on): Add fdopendir.
38963         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38964         fdopendir here.
38965         * modules/savedir (Depends-on): Only need fdopendir, not full
38966         openat.
38967         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38968         * lib/openat.h (fdopendir): Drop prototype.
38969         * lib/dirent.in.h (fdopendir): Provide prototype.
38970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38971         * modules/dirent (Makefile.am): Substitute them.
38972         * MODULES.html.sh (File system functions): Mention it.
38973         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38974         * modules/fdopendir-tests: New file.
38975         * tests/test-fdopendir.c: Likewise.
38976
38977         fchdir: use more consistent macro convention
38978         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38979         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38980         REPLACE_FCHDIR, rather than relying on config.h macros.
38981         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38982         inside a single make-time REPLACE_FCHDIR block, rather than using
38983         the config.h FCHDIR_REPLACEMENT.
38984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38985         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38986         Manage fstat replacement.
38987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38988         REPLACE_FCHDIR.
38989         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38990         (Makefile.am): Substitute REPLACE_FCHDIR.
38991         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38992         FCHDIR_REPLACEMENT.
38993         * lib/dup-safer.c (dup_safer): Likewise.
38994         * lib/dup2.c (rpl_dup2): Likewise.
38995         * lib/dup3.c (rpl_dup3): Likewise.
38996         * lib/open.c (rpl_open): Likewise.
38997
38998         fchdir: simplify error handling, and support dup3
38999         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
39000         stdbool, malloc-posix, realloc-posix.
39001         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
39002         (ensure_dirs_slot): Return false on allocation failure.
39003         (rpl_dup2): Delete.
39004         (_gl_register_dup): New function.
39005         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
39006         (_gl_register_fd): Close fd on allocation failure.
39007         * lib/fcntl.in.h (_gl_register_fd): Update signature.
39008         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
39009         prototype.
39010         (rpl_dup2_fchdir): Delete prototype.
39011         * lib/open.c (open): Update caller.
39012         * lib/dup2.c (dup2): Track fchdir metadata.
39013         * lib/dup3.c (dup3): Likewise.
39014         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
39015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
39016
39017 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39018
39019         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
39020         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
39021         don't pass arguments to AC_OUTPUT.
39022
39023 2009-09-02  Bruno Haible  <bruno@clisp.org>
39024
39025         * modules/mkdtemp (License): Relicense under LGPLv2+.
39026         Reported by Paolo Bonzini.
39027
39028 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39029
39030         Replace uses of obsolete autoconf macros in Jim's modules.
39031         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
39032         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
39033         can evoke a warning from autoconf when run with -Wobsolete
39034         enabled.  They were declared obsolete for good reasons (see
39035         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
39036         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
39037         should not continue using the deprecated macros.
39038         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
39039         obsolete Autoconf macros with modern counterparts.
39040         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39041         * m4/dos.m4 (gl_AC_DOS): Likewise.
39042         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
39043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39044         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
39045         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
39046         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
39047         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
39048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
39049         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
39050         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39051         Likewise.
39052         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39053         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39054         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39055         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
39056         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39057         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39058
39059 2009-09-01  Eric Blake  <ebb9@byu.net>
39060
39061         fchdir: fix off-by-one bug in previous patch
39062         * lib/fchdir.c (rpl_fstat): Use correct bounds.
39063         (_gl_unregister_fd): Delete useless if.
39064
39065 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
39066
39067         maint.mk: sort the list of syntax-check rules
39068         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
39069         easier to get a sense of progress when the rules are run sequentially
39070         and take a long time.
39071
39072 2009-09-01  Simon Josefsson  <simon@josefsson.org>
39073
39074         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
39075         * modules/netinet_in: Likewise.
39076         * modules/sys_file: Likewise.
39077         * modules/sys_ioctl: Likewise.
39078         * modules/sys_select: Likewise.
39079         * modules/sys_socket: Likewise.
39080         * modules/sys_stat: Likewise.
39081         * modules/sys_time: Likewise.
39082         * modules/sys_times: Likewise.
39083         * modules/sys_utsname: Likewise.
39084         * modules/sys_wait: Likewise.
39085
39086 2009-09-01  Jim Meyering  <meyering@redhat.com>
39087
39088         fts: help ensure that return values are not ignored
39089         * lib/fts_.h (__GNUC_PREREQ): Define.
39090         (__attribute_warn_unused_result__): Define.
39091         (fts_children, fts_close, fts_open, fts_read): Declare with
39092         __attribute_warn_unused_result__.
39093
39094         fts: fts_close now fails also when closing a dir file descriptor fails
39095         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
39096         and propagate to caller, along with errno.
39097
39098         announce-gen: correct formatting in --help output
39099         * build-aux/announce-gen (usage): Move the one-line description in
39100         --help output "up", to where it belongs, just after Usage:.
39101
39102 2009-08-31  Eric Blake  <ebb9@byu.net>
39103
39104         fchdir: port to mingw
39105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
39106         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
39107         opened, then use a substitute.
39108         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
39109         replacement.
39110         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
39111         (_gl_register_fd): No need to check stat if open already filters
39112         all directories.
39113         (fchdir): Fix error condition to match POSIX.
39114         * modules/fchdir (Depends-on): Add sys_stat.
39115         * doc/posix-functions/open.texi (open): Document the limitation.
39116         * modules/fchdir-tests: New file.
39117         * tests/test-fchdir.c: Likewise.
39118
39119         canonicalize: allow cross-testing from cygwin to mingw
39120         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
39121         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
39122         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
39123         Likewise.
39124         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
39125         target does not support symlinks.
39126         * tests/test-canonicalize-lgpl.sh: Likewise.
39127
39128         chown: avoid compilation warning on mingw
39129         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
39130         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
39131         mingw.
39132         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39133         * modules/chown (Depends-on): Add errno.
39134
39135 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39136
39137         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
39138         command.
39139
39140 2009-08-31  Jim Meyering  <meyering@redhat.com>
39141
39142         canonicalize: remove useless initialization
39143         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
39144         initialization of local, "end".
39145
39146 2009-08-30  Bruno Haible  <bruno@clisp.org>
39147
39148         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39149         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39150         ENOSYS.
39151
39152 2009-08-30  Bruno Haible  <bruno@clisp.org>
39153
39154         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39155         /usr/xpg4/bin/tr when it exists.
39156         * tests/test-pipe-filter-gi1.sh: Likewise.
39157
39158 2009-08-30  Bruno Haible  <bruno@clisp.org>
39159
39160         Work around deficient /usr/bin/id program on Solaris.
39161         * tests/test-file-has-acl.sh (ID): New variable.
39162         * tests/test-set-mode-acl.sh (ID): Likewise.
39163         * tests/test-copy-acl.sh (ID): Likewise.
39164         * tests/test-copy-file.sh (ID): Likewise.
39165
39166 2009-08-30  Bruno Haible  <bruno@clisp.org>
39167
39168         New module 'xstriconveh'.
39169         * lib/xstriconveh.h: New file.
39170         * lib/xstriconveh.c: New file.
39171         * modules/xstriconveh: New file.
39172
39173 2009-08-30  Bruno Haible  <bruno@clisp.org>
39174
39175         Make it easier to use mem_cd_iconveh.
39176         * lib/striconveh.h (iconveh_t): New type.
39177         (iconveh_open, iconveh_close): New declarations.
39178         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39179         with a single 'const iconveh_t *' argument.
39180         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39181         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39182         with a single 'const iconveh_t *' argument.
39183         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39184         * tests/test-striconveh.c (main): Update.
39185         * NEWS: Mention the change.
39186
39187 2009-08-30  Bruno Haible  <bruno@clisp.org>
39188
39189         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39190         problem.
39191
39192 2009-08-30  Bruno Haible  <bruno@clisp.org>
39193
39194         Work around iconv_open problem on Solaris.
39195         * lib/iconv_open-solaris.gperf: New file.
39196         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39197         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39198         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39199         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39200         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39201         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39202
39203 2009-08-29  Jim Meyering  <meyering@redhat.com>
39204
39205         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39206         * top/maint.mk (cvs-check): Remove target; it was just an alias
39207         to the better-named vc-diff-check.
39208         (maintainer-distcheck): Remove rule.  It was used only from
39209         the (alpha/beta/major) target, and all of its commands but one
39210         were coreutils-specific.
39211         (vc-dist): Remove rule.
39212         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39213         Run vc-diff-check, not vc-dist.
39214         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39215
39216 2009-08-27  Bruno Haible  <bruno@clisp.org>
39217
39218         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39219         of 0.
39220
39221 2009-08-27  Bruno Haible  <bruno@clisp.org>
39222
39223         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39224         compilers.
39225         * doc/func.texi: Document the SunPRO C bug.
39226
39227 2009-08-27  Bruno Haible  <bruno@clisp.org>
39228
39229         Fix link error on Solaris.
39230         * tests/test-parse-duration.c (xstrdup): Remove function.
39231
39232 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39233
39234         ignore-value: handle pointer types, too
39235         * lib/ignore-value.h (__attribute__): Remove definition.
39236         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39237         of a more concise and more-often effective "(void) i" statement.
39238         (ignore_ptr): New function to suppress warnings from functions that
39239         return pointers, and to make it explicit that one function doesn't
39240         handle all cases.
39241
39242 2009-08-25  Bruno Haible  <bruno@clisp.org>
39243
39244         dup2: work around a Linux bug.
39245         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39246         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39247         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39248         Reported by Simon Josefsson.
39249
39250 2009-08-25  Jim Meyering  <meyering@redhat.com>
39251
39252         libguestfs uses gnulib
39253         * users.txt: Add libguestfs.
39254
39255 2009-08-24  Eric Blake  <ebb9@byu.net>
39256
39257         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39258         * lib/pipe2.c (includes): Add binary-io.h.
39259         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39260
39261 2009-08-24  Bruno Haible  <bruno@clisp.org>
39262
39263         Tolerate declared but missing accept4 syscall.
39264         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39265         available.
39266         * lib/sys_socket.in.h (accept4): If the function is already present,
39267         override it.
39268         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39269         * modules/accept4 (Makefile.am): Compile accept4.c always.
39270         Reported by Paolo Bonzini and Eric Blake.
39271
39272 2009-08-23  Bruno Haible  <bruno@clisp.org>
39273
39274         New module 'accept4'.
39275         * lib/sys_socket.in.h (accept4): New declaration.
39276         * lib/accept4.c: New file.
39277         * m4/accept4.m4: New file.
39278         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39279         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39280         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39281         HAVE_ACCEPT4.
39282         * modules/accept4: New file.
39283         * doc/glibc-functions/accept4.texi: Mention the new module.
39284
39285 2009-08-24  Jim Meyering  <meyering@redhat.com>
39286
39287         progname: also set global program_invocation_name, when possible
39288         Before this change, a libtool-enabled program that calls glibc's
39289         error function would report the program name as
39290         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39291         * modules/progname (configure.ac): Check for a declaration of
39292         program_invocation_name.
39293         * lib/progname.c:  Include <errno.h>.
39294         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39295         Set program_invocation_name.
39296
39297 2009-08-23  Bruno Haible  <bruno@clisp.org>
39298
39299         * lib/dup3.c: Include <string.h>.
39300
39301 2009-08-23  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39304         * lib/pipe2.c (pipe2): Likewise.
39305         Suggested by Eric Blake.
39306
39307 2009-08-23  Bruno Haible  <bruno@clisp.org>
39308
39309         Tolerate declared but missing dup3 syscall.
39310         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39311         * lib/unistd.in.h (dup3): If the function is already present,
39312         override it.
39313         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39314         * modules/dup3 (Makefile.am): Compile dup3.c always.
39315         Reported by Paolo Bonzini.
39316
39317 2009-08-23  Bruno Haible  <bruno@clisp.org>
39318
39319         Tolerate declared but missing pipe2 syscall.
39320         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39321         available.
39322         * lib/unistd.in.h (pipe2): If the function is already present,
39323         override it.
39324         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39325         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39326         Reported by Paolo Bonzini.
39327
39328 2009-08-23  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/pipe2.c (pipe2): Move #ifs inside function.
39331
39332 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39333
39334         quotearg: document limitations of quote_these_too
39335         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39336         those limitations are created.
39337         * lib/quotearg.h (set_char_quoting): Document that digits and
39338         letters that are special after backslash are not permitted.
39339         (quotearg_char): Cross-reference set_char_quoting documentation.
39340
39341 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39342
39343         quotearg: implement custom_quoting_style
39344         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39345         right_quote fields.
39346         (set_custom_quoting): New public function.
39347         (quotearg_buffer_restyled): Add left_quote and right_quote
39348         arguments, handle them very much like locale quoting, and update
39349         all uses.
39350         (quotearg_n_custom): New public function.
39351         (quotearg_n_custom_mem): New public function.
39352         (quotearg_custom): New public function.
39353         (quotearg_custom_mem): New public function.
39354         * lib/quotearg.h: Prototype and document new public functions.
39355         (enum quoting_style): For escape_quoting_style and
39356         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39357         ignored even though they're otherwise like c_quoting_style.
39358         Add custom_quoting_style member and document with comparison to
39359         clocale_quoting_style.
39360         * tests/test-quotearg.c (custom_quotes): New array.
39361         (custom_results): New array.
39362         (main): Extend to test custom quoting.
39363
39364 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39365
39366         quotearg: fix right quote escaping when it's in quote_these_too
39367         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39368         quote, be sure to prepend only one backslash.
39369         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39370         (main): Test it.
39371
39372 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39373
39374         quotearg-tests: test escaping of embedded locale quotes
39375         * tests/test-quotearg.c (struct result_strings): Add member for
39376         new input.
39377         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39378         (inputs): Add new input.
39379         (results_g): Add expected results.
39380         (flag_results): Likewise.
39381         (locale_results): Likewise.
39382         (compare_strings): Check those.
39383
39384 2009-08-23  Bruno Haible  <bruno@clisp.org>
39385
39386         Tests for module 'dup3'.
39387         * modules/dup3-tests: New file.
39388         * tests/test-dup3.c: New file.
39389
39390         New module 'dup3'.
39391         * lib/unistd.in.h (dup3): New declaration.
39392         * lib/dup3.c: New file.
39393         * m4/dup3.m4: New file.
39394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39395         HAVE_DUP3.
39396         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39397         * modules/dup3: New file.
39398         * doc/glibc-functions/dup3.texi: Mention the new module.
39399
39400 2009-08-23  Bruno Haible  <bruno@clisp.org>
39401
39402         Tweak the dup2 test.
39403         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39404         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39405         the test file is still empty. Fix argument order of lseek.
39406
39407 2009-08-23  Bruno Haible  <bruno@clisp.org>
39408
39409         Avoid test link errors when the modules getopt-gnu, gettext are used.
39410         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39412
39413 2009-08-23  Bruno Haible  <bruno@clisp.org>
39414
39415         Fix getdtablesize() on mingw.
39416         * lib/getdtablesize.c (getdtablesize): Implement differently.
39417         * lib/unistd.in.h (getdtablesize): Improve comment.
39418
39419 2009-08-23  Bruno Haible  <bruno@clisp.org>
39420
39421         New module 'mkostemp'.
39422         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39423         * lib/stdlib.in.h (mksotemp): New declaration.
39424         * lib/mkostemp.c: New file, from glibc with modifications.
39425         * lib/tempname.h (GT_FILE): Remove outdated comment.
39426         (gen_tempname): Add flags argument.
39427         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39428         (__GT_FILE): Map to 1.
39429         (small_open, large_open): Remove macros.
39430         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39431         * lib/mkstemp.c (mkstemp): Update.
39432         * lib/mkdtemp.c (mkdtemp): Likewise.
39433         * m4/mkostemp.m4: New file.
39434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39435         HAVE_MKOSTEMP.
39436         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39437         HAVE_MKOSTEMP.
39438         * modules/mkostemp: New file, based on modules/mkstemp.
39439         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39440         * NEWS: Mention the change.
39441
39442 2009-08-23  Bruno Haible  <bruno@clisp.org>
39443
39444         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39445         Reported by Eric Blake.
39446
39447 2009-08-23  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39450         Reported by Eric Blake.
39451
39452 2009-08-23  Bruno Haible  <bruno@clisp.org>
39453
39454         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39455         * modules/pipe2 (Depends-on): Likewise.
39456
39457 2009-08-23  Eric Blake  <ebb9@byu.net>
39458
39459         fcntl-h: add O_TTY_INIT support
39460         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39461         * tests/test-fcntl-h.c (o): Test it.
39462         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39463
39464         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39465         * modules/fcntl: Move <fcntl.h> header replacement...
39466         * modules/fcntl-h: ...to new name, so as not to collide with
39467         like-named function.
39468         * tests/test-fcntl.c: Rename...
39469         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39470         * modules/fcntl-tests: Rename...
39471         * modules/fcntl-h-tests: ...to this.  Update test file name.
39472         * modules/chdir-long (Depends-on): Update clients.
39473         * modules/chdir-safer (Depends-on): Likewise.
39474         * modules/fcntl-safer (Depends-on): Likewise.
39475         * modules/fts (Depends-on): Likewise.
39476         * modules/mkancesdirs (Depends-on): Likewise.
39477         * modules/mkdir-p (Depends-on): Likewise.
39478         * modules/open (Depends-on): Likewise.
39479         * modules/savewd (Depends-on): Likewise.
39480         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39481         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39482
39483 2009-08-22  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/binary-io (License): Relicense under LGPL.
39486         * modules/pipe2 (License): Likewise.
39487
39488 2009-08-22  Bruno Haible  <bruno@clisp.org>
39489
39490         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39491         return value.
39492         * lib/pipe-filter-gi.c (filter_init): Likewise.
39493         Reported by Eric Blake.
39494
39495 2009-08-22  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39498         * modules/pipe (Depends-on): Add pipe2.
39499
39500 2009-08-22  Bruno Haible  <bruno@clisp.org>
39501
39502         Tests for module 'pipe2'.
39503         * modules/pipe2-tests: New file.
39504         * tests/test-pipe2.c: New file.
39505
39506         New module 'pipe2'.
39507         * lib/unistd.in.h (pipe2): New declaration.
39508         * lib/pipe2.c: New file.
39509         * m4/pipe2.m4: New file.
39510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39511         HAVE_PIPE2.
39512         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39513         * modules/pipe2: New file.
39514         * doc/glibc-functions/pipe2.texi: Mention the new module.
39515
39516 2009-08-22  Bruno Haible  <bruno@clisp.org>
39517
39518         Reference some new glibc functions.
39519         * doc/glibc-functions/accept4.texi: New file.
39520         * doc/glibc-functions/dup3.texi: New file.
39521         * doc/glibc-functions/mkostemp.texi: New file.
39522         * doc/glibc-functions/pipe2.texi: New file.
39523         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39524         (Glibc sys/socket.h): Refer to accept4.
39525         (Glibc unistd.h): Refer to dup3, pipe2.
39526         Reported by Eric Blake.
39527
39528 2009-08-22  Jim Meyering  <meyering@redhat.com>
39529             Bruno Haible  <bruno@clisp.org>
39530
39531         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39532         This makes it so packages using automake-1.11's silent-rules option
39533         can print e.g., a single "GEN    configmake.h" line, rather than
39534         the 30+ statements that perform the job.  If you want to see the
39535         actual commands, you can still run "make V=1".
39536         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39537         so that make output is abbreviated when those variables are defined
39538         appropriately.
39539         * modules/argz: Likewise.
39540         * modules/arpa_inet: Likewise.
39541         * modules/byteswap: Likewise.
39542         * modules/configmake: Likewise.
39543         * modules/dirent: Likewise.
39544         * modules/errno: Likewise.
39545         * modules/fcntl: Likewise.
39546         * modules/float: Likewise.
39547         * modules/fnmatch: Likewise.
39548         * modules/getopt-posix: Likewise.
39549         * modules/glob: Likewise.
39550         * modules/iconv_open: Likewise.
39551         * modules/inttypes: Likewise.
39552         * modules/localcharset: Likewise.
39553         * modules/locale: Likewise.
39554         * modules/math: Likewise.
39555         * modules/netdb: Likewise.
39556         * modules/netinet_in: Likewise.
39557         * modules/poll: Likewise.
39558         * modules/posix_spawnp-tests: Likewise.
39559         * modules/sched: Likewise.
39560         * modules/search: Likewise.
39561         * modules/selinux-h: Likewise.
39562         * modules/signal: Likewise.
39563         * modules/spawn: Likewise.
39564         * modules/stdarg: Likewise.
39565         * modules/stdbool: Likewise.
39566         * modules/stddef: Likewise.
39567         * modules/stdint: Likewise.
39568         * modules/stdio: Likewise.
39569         * modules/stdlib: Likewise.
39570         * modules/string: Likewise.
39571         * modules/strings: Likewise.
39572         * modules/sys_file: Likewise.
39573         * modules/sys_ioctl: Likewise.
39574         * modules/sys_select: Likewise.
39575         * modules/sys_socket: Likewise.
39576         * modules/sys_stat: Likewise.
39577         * modules/sys_time: Likewise.
39578         * modules/sys_times: Likewise.
39579         * modules/sys_utsname: Likewise.
39580         * modules/sys_wait: Likewise.
39581         * modules/sysexits: Likewise.
39582         * modules/time: Likewise.
39583         * modules/unistd: Likewise.
39584         * modules/wchar: Likewise.
39585         * modules/wctype: Likewise.
39586
39587 2009-08-22  Jim Meyering  <meyering@redhat.com>
39588
39589         announce-gen: detect write failure
39590         * build-aux/announce-gen: Add Coda at end.
39591         Remove equivalent-but-more-verbose block at top.
39592
39593 2009-08-19  Akim Demaille  <demaille@gostai.com>
39594
39595         bootstrap: --help to stdout.
39596         * bootstrap (usage): Don't send --help to stderr.
39597         Use a here doc instead of a long string.
39598
39599 2009-08-21  Eric Blake  <ebb9@byu.net>
39600
39601         test-popen-safer: split from test-popen
39602         * tests/test-popen.c (main): Move...
39603         * tests/test-popen.h: ...into new file.
39604         * tests/test-popen-safer2.c: New file.
39605         * modules/popen-tests (Files): Add test-popen.h.
39606         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39607         Suggested by Bruno Haible.
39608
39609         test-fcntl-safer: split from test-open
39610         * tests/test-open.c (main): Move...
39611         * tests/test-open.h: ...into new file.
39612         * tests/test-fcntl-safer.c: New file.
39613         * modules/open-tests (Files): Add test-open.h.
39614         * modules/fcntl-safer-tests: New file.
39615         Suggested by Bruno Haible.
39616
39617         test-fopen-safer: split from test-fopen
39618         * tests/test-fopen.c (main): Move...
39619         * tests/test-fopen.h: ...into new file.
39620         * tests/test-fopen-safer.c: New file.
39621         * modules/fopen-tests (Files): Add test-fopen.h.
39622         * modules/fopen-safer-tests: New file.
39623         Suggested by Bruno Haible.
39624
39625 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39626
39627         popen-safer: test O_CLOEXEC at run-time.
39628         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39629
39630 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39631
39632         fcntl: move more flags to the header
39633         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39634         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39635         * lib/fcntl.in.h: Do both things here.
39636
39637 2009-08-21  Jim Meyering  <meyering@redhat.com>
39638
39639         consistently remove $@-t before redirecting to it
39640         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39641         * modules/alloca-opt: Likewise.
39642         * modules/byteswap: Likewise.
39643         * modules/fnmatch: Likewise.
39644         * modules/getopt-posix: Likewise.
39645         * modules/glob: Likewise.
39646         * modules/poll: Likewise.
39647         * modules/posix_spawnp-tests: Likewise.
39648         * modules/sys_socket: Likewise.
39649         * modules/sysexits: Likewise.
39650
39651 2009-08-21  Eric Blake  <ebb9@byu.net>
39652
39653         popen: simplify access to original popen
39654         * lib/popen.c (rpl_popen): No need to worry about popen being a
39655         macro.
39656         Reported by Bruno Haible.
39657
39658 2009-08-20  Eric Blake  <ebb9@byu.net>
39659
39660         build: avoid some compiler warnings
39661         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39662         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39663         type.
39664         (new_exclude_segment, excluded_file_pattern_p)
39665         (excluded_file_name_p): Reduce scope.
39666         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39667         old-style declaration.
39668
39669 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39670
39671         * tests/test-exclude1.sh: Handle Windows EOL.
39672         * tests/test-exclude2.sh: Likewise.
39673         * tests/test-exclude3.sh: Likewise.
39674         * tests/test-exclude4.sh: Likewise.
39675         * tests/test-exclude5.sh: Likewise.
39676         * tests/test-exclude6.sh: Likewise.
39677         * tests/test-exclude7.sh: Likewise.
39678
39679 2009-08-19  Akim Demaille  <demaille@gostai.com>
39680
39681         bootstrap: find sha1sum when named gsha1sum.
39682         * bootstrap (find_tool): New.
39683         ($SHA1SUM): New.
39684         Use it.
39685
39686 2009-08-20  Jim Meyering  <meyering@redhat.com>
39687
39688         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39689         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39690         expression that converts "." in a file name to "\." in the resulting
39691         regexp.  Start with a dummy statement, so that prior shell variable
39692         definitions are expanded portably.  Reported by Simon Josefsson.
39693
39694 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39695
39696         Fix polling for writeability of a screen buffer.
39697         * lib/poll.c: Distinguish input and screen buffers for the
39698         Win32 implementation.
39699         * lib/select.c: Likewise.
39700
39701 2009-08-19  Eric Blake  <ebb9@byu.net>
39702
39703         popen-safer: prevent popen from clobbering std descriptors
39704         * modules/popen-safer: New file.
39705         * lib/popen-safer.c: Likewise.
39706         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39707         * lib/stdio--.h (popen): Provide override.
39708         * lib/stdio-safer.h (popen_safer): Provide declaration.
39709         * tests/test-popen.c (includes): Partially test this.
39710         * modules/popen-safer-tests: New file, for more tests.
39711         * tests/test-popen-safer.c: Likewise.
39712         * MODULES.html.sh (file stream based Input/Output): Mention it.
39713
39714         tests: test some of the *-safer modules
39715         * modules/fopen-safer (Depends-on): Add fopen.
39716         * modules/fcntl-safer (Depends-on): Add fcntl.
39717         * modules/stdlib-safer (Depends-on): Add stdlib.
39718         (configure.ac): Set indicator.
39719         * modules/unistd-safer (configure.ac): Likewise.
39720         * modules/tmpfile-safer (configure.ac): Likewise.
39721         (Depends-on): Add tmpfile.
39722         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39723         active.
39724         * tests/test-fopen.c (includes): Test safer versions when they are
39725         in use.
39726         * tests/test-open.c (includes): Likewise.
39727
39728         popen: fix cygwin 1.5 bug when stdin closed
39729         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39730         * modules/popen: New file.
39731         * modules/popen-tests: Likewise.
39732         * tests/test-popen.c: Likewise.
39733         * m4/popen.m4: Likewise.
39734         * lib/popen.c: Likewise.
39735         * lib/stdio.in.h (popen): New declaration.
39736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39737         * modules/stdio (Makefile.am): Likewise.
39738         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39739
39740 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39741
39742         maint.mk: give full control over update-copyright exclusions
39743         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39744         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39745         (update-copyright): Don't force inclusion of top-level
39746         ChangeLog.  Don't force exclusion of all COPYING files, but make
39747         them the default exclusion instead.
39748
39749 2009-08-16  Bruno Haible  <bruno@clisp.org>
39750
39751         Fix test failures on Solaris 10.
39752         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39753         tests when Solaris iconv() is used.
39754         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39755         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39756         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39757         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39758         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39759
39760 2009-08-16  Bruno Haible  <bruno@clisp.org>
39761
39762         Fix test failures on Solaris 10.
39763         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39764         'tr' program and pass it as first argument.
39765         * tests/test-pipe-filter-gi1.sh: Likewise.
39766         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39767         program as first argument.
39768         * tests/test-pipe-filter-gi1.c (main): Likewise.
39769
39770 2009-08-16  Eric Blake  <ebb9@byu.net>
39771
39772         fpurge: fix previous commits
39773         * modules/fpurge (Makefile.am): Make replacement conditional,
39774         partially reverting 2007-04-29 change; missed in previous
39775         attempt.
39776         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39777         is missing.
39778
39779 2009-08-16  Bruno Haible  <bruno@clisp.org>
39780
39781         Clarify fpurge's effect on the file position.
39782         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39783         * tests/test-fpurge.c (main): Make a second pass for checking the file
39784         position.
39785
39786 2009-08-16  Bruno Haible  <bruno@clisp.org>
39787
39788         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39789         declaration of fpurge is missing.
39790         * tests/test-fpurge.c (main): Check that the file has not more contents
39791         than expected. Close the file before removing it.
39792
39793 2009-08-15  Eric Blake  <ebb9@byu.net>
39794
39795         fpurge: don't wrap working cygwin implementation
39796         * lib/fpurge.c (fpurge): Fix comment typo.
39797         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39798         1.7 to avoid replacement.
39799         * tests/test-fpurge.c (main): Enhance test.
39800
39801 2009-08-15  Eric Blake  <ebb9@byu.net>
39802         and Jim Meyering  <meyering@redhat.com>
39803
39804         test-update-copyright: skip if perl is insufficient
39805         * tests/test-update-copyright.sh: Failure to run maintainer tool
39806         should not cause testsuite failure on cygwin 1.5.
39807
39808 2009-08-14  Eric Blake  <ebb9@byu.net>
39809
39810         doc: mention more functions added in cygwin 1.7.0
39811         * doc/posix-headers/limits.texi (limits.h): Update for recent
39812         cygwin additions.
39813         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39814         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39815         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39816         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39817         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39818
39819 2009-08-14  Eric Blake  <ebb9@byu.net>
39820
39821         maint.mk: simplify update-copyright rule
39822         * top/maint.mk (update-copyright-local): Delete, and document how
39823         to do it in cfg.mk instead.
39824         (update-copyright-exclude-regexp): Delete, and document how to do
39825         it in .x-update-copyright instead.
39826         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39827         exclude ChangeLog.
39828
39829 2009-08-14  Bruno Haible  <bruno@clisp.org>
39830
39831         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39832
39833 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39834
39835         maint.mk: support update-copyright-env
39836         * top/maint.mk (update-copyright-env): Define place-holder.
39837         (update-copyright): Expand $(update-copyright-env) before
39838         invoking update-copyright.
39839
39840 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39841
39842         update-copyright: implement forced reformatting
39843         * build-aux/update-copyright: Implement and document
39844         UPDATE_COPYRIGHT_FORCE.
39845         * tests/test-update-copyright.sh: Test it.
39846
39847 2009-08-14  Eric Blake  <ebb9@byu.net>
39848         and Bruno Haible  <bruno@clisp.org>
39849
39850         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39851         * tests/test-locale.c: Revert previous patch related to NULL.
39852         * tests/test-stdio.c: Likewise.
39853         * tests/test-stdlib.c: Likewise.
39854         * tests/test-string.c: Likewise.
39855         * tests/test-unistd.c: Likewise.
39856         * modules/time-tests (Depends-on): Add verify.
39857         * modules/wchar-tests (Depends-on): Likewise.
39858         * tests/test-time.c: Test for NULL compliance.
39859         * tests/test-wchar.c: Likewise.
39860         * modules/locale (Depends-on): Add stddef.
39861         * modules/stdio (Depends-on): Likewise.
39862         * modules/stdlib (Depends-on): Likewise.
39863         * modules/string (Depends-on): Likewise.
39864         * modules/time (Depends-on): Likewise.
39865         * modules/unistd (Depends-on): Likewise.
39866         * modules/wchar (Depends-on): Likewise.
39867         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39868         * lib/stdlib.in.h (includes): Likewise.
39869         * lib/string.in.h (includes): Likewise.
39870         * lib/time.in.h (includes): Likewise.
39871         * lib/unistd.in.h (includes): Likewise.
39872         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39873         replaced.
39874         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39875         * m4/stddef_h.m4: New file.
39876         * modules/stddef: Likewise.
39877         * lib/stddef.in.h: Likewise.
39878         * modules/stddef-tests: Likewise.
39879         * tests/test-stddef.c: Likewise.
39880         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39881         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39882         * doc/posix-headers/locale.texi (locale.h): Likewise.
39883         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39884         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39885         * doc/posix-headers/string.texi (string.h): Likewise.
39886         * doc/posix-headers/time.texi (time.h): Likewise.
39887         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39888         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39889
39890 2009-08-14  Eric Blake  <ebb9@byu.net>
39891
39892         doc: improve git diff of texinfo files
39893         * .gitattributes: Add rule for *.texi files, with hint on how to
39894         use it.
39895         Copied from m4, and based on a report by Bruno Haible.
39896
39897 2009-08-14  Bruno Haible  <bruno@clisp.org>
39898
39899         Disable multithread support by default on Cygwin 1.5.x for real.
39900         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39901
39902 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39903
39904         update-copyright: much ado about intervals
39905         * build-aux/update-copyright: Implement and document
39906         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39907         of copyright year intervals.
39908         Also, document UPDATE_COPYRIGHT_YEAR.
39909         * tests/test-update-copyright.sh: Test it.
39910
39911         update-copyright: convert 2-digit to 4-digit years
39912         * build-aux/update-copyright: Implement and document.
39913         * tests/test-update-copyright.sh: Update.
39914
39915 2009-08-14  Jim Meyering  <meyering@redhat.com>
39916
39917         test-exclude: avoid coreutils "make check" failure
39918         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39919         just as in test-argmatch.c.
39920
39921 2009-08-13  Eric Blake  <ebb9@byu.net>
39922
39923         test-dup2: fix bad assumption
39924         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39925         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39926
39927         test-version-etc: fix CRLF portability issue
39928         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39929         recognize \r.
39930         * tests/test-argp-version-etc-1.sh: Likewise.
39931
39932         getopt: update client modules
39933         * modules/argp (Depends-on): Use getopt-gnu.
39934         * modules/git-merge-changelog (Depends-on): Likewise.
39935         * modules/long-options (Depends-on): Likewise.
39936         * modules/xstrtol (Depends-on): Likewise.
39937
39938 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39939
39940         * tests/test-version-etc.sh: Don't fail on different
39941         project/version.  Don't fail on CRLF differences.  Rewrite to use
39942         multiple -e instead of multiple sed forks, suggested by Eric Blake
39943         <ebb9@byu.net>.
39944         * tests/test-argp-version-etc-1.sh: Likewise.
39945
39946 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39947
39948         * tests/test-version-etc.sh: Don't fail on different
39949         project/version.
39950
39951 2009-08-12  Bruno Haible  <bruno@clisp.org>
39952
39953         Tests for modules 'getopt-posix', 'getopt-gnu'.
39954         * modules/getopt-posix-tests: New file.
39955         * tests/test-getopt.c: New file.
39956         * tests/test-getopt.h: New file.
39957         * tests/test-getopt_long.h: New file.
39958
39959         New modules 'getopt-posix', 'getopt-gnu'.
39960         * modules/getopt-gnu: New file, renamed from modules/getopt.
39961         * modules/getopt-posix: New file.
39962         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39963         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39964         (gl_GETOPT): Remove macro.
39965         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39966         Disable the test against BSD systems that declare optreset. Test
39967         against mingw bug. Test against lack of support of optional arguments
39968         on many platforms.
39969         * doc/glibc-headers/getopt.texi: Update module name and list of
39970         relevant platforms.
39971         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39972         'getopt-gnu' and more portability problems.
39973         * NEWS: Mention the changes.
39974
39975 2009-08-12  Bruno Haible  <bruno@clisp.org>
39976
39977         Ensure that optarg etc. get declared by <unistd.h>.
39978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39979         AC_USE_SYSTEM_EXTENSIONS.
39980         * modules/getopt (Depends-on): Add 'extensions'.
39981
39982 2009-08-12  Bruno Haible  <bruno@clisp.org>
39983
39984         Avoid test link errors.
39985         * modules/pipe-filter-ii-tests (Makefile.am): Define
39986         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39987         * modules/pipe-filter-gi-tests (Makefile.am): Define
39988         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39990
39991 2009-08-12  Bruno Haible  <bruno@clisp.org>
39992
39993         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39994         gl_GETOPT_SUBSTITUTE before.
39995         (gl_GETOPT): Use it.
39996         * m4/argp.m4 (gl_ARGP): Update.
39997         Reported by Sergey Poznyakoff.
39998
39999         * m4/getopt.m4: Reorder macros.
40000         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
40001         (gl_GETOPT_SUBSTITUTE): Remove macro.
40002
40003 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40004
40005         Minor improvement in gitlog-to-changelog
40006
40007         * build-aux/gitlog-to-changelog: New option `--format' makes
40008         output format string configurable.
40009
40010 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40011
40012         Optimize exclude: use hash tables for non-wildcard patterns.
40013
40014         * lib/exclude.c: Include hash.h and mbuiter.h
40015         (struct exclude_pattern, exclude_segment): New data types.
40016         (struct exclude): Rewrite.
40017         (fnmatch_pattern_has_wildcards): New function.
40018         (new_exclude_segment, free_exclude_segment): New functions.
40019         (excluded_file_pattern_p, excluded_file_name_p): New functions.
40020         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
40021         * lib/exclude.h (is_fnmatch_pattern): New prototype.
40022         * modules/exclude: Depend on hash and mbuiter.
40023
40024         * modules/exclude-tests: New file.
40025         * tests/test-exclude.c: New file.
40026         * tests/test-exclude1.sh: New file.
40027         * tests/test-exclude2.sh: New file.
40028         * tests/test-exclude3.sh: New file.
40029         * tests/test-exclude4.sh: New file.
40030         * tests/test-exclude5.sh: New file.
40031         * tests/test-exclude6.sh: New file.
40032         * tests/test-exclude7.sh: New file.
40033
40034 2009-08-12  Bruno Haible  <bruno@clisp.org>
40035
40036         Ensure that getopt() gets declared by <unistd.h>.
40037         * lib/unistd.in.h: Conditionally include getopt.h.
40038         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
40039         Set GNULIB_UNISTD_H_GETOPT.
40040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40041         GNULIB_UNISTD_H_GETOPT.
40042         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
40043
40044 2009-08-12  Bruno Haible  <bruno@clisp.org>
40045
40046         Clarify logic.
40047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
40048         gl_replace_getopt instead of GETOPT_H.
40049
40050 2009-08-12  Bruno Haible  <bruno@clisp.org>
40051
40052         * m4/getopt.m4: Add comments.
40053
40054 2009-08-12  Bruno Haible  <bruno@clisp.org>
40055
40056         Disable multithread support by default on Cygwin 1.5.x.
40057         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
40058         set gl_use_threads=no if not specified otherwise.
40059
40060 2009-08-11  Bruno Haible  <bruno@clisp.org>
40061
40062         Avoid compilation error on NetBSD 5.0.
40063         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
40064         * tests/test-stdio.c: Likewise.
40065         * tests/test-stdlib.c: Likewise.
40066         * tests/test-string.c: Likewise.
40067         * tests/test-unistd.c: Likewise.
40068         Reported by Greg Troxel <gdt@ir.bbn.com>
40069         at <https://savannah.gnu.org/support/?106973>.
40070
40071 2009-08-11  Bruno Haible  <bruno@clisp.org>
40072
40073         * modules/dup2-tests (Depends-on): Remove close.
40074
40075         Undo 2009-07-19 commit.
40076         * modules/acl-tests (Depends-on): Remove close.
40077         * modules/binary-io-tests (Depends-on): Likewise.
40078         * modules/closein-tests (Depends-on): Likewise.
40079         * modules/flock-tests (Depends-on): Likewise.
40080         * modules/fsync-tests (Depends-on): Likewise.
40081         * modules/lseek-tests (Depends-on): Likewise.
40082         * modules/pipe-tests (Depends-on): Likewise.
40083         * modules/posix_spawn-tests (Depends-on): Likewise.
40084         * modules/posix_spawnp-tests (Depends-on): Likewise.
40085         * modules/stat-time-tests (Depends-on): Likewise.
40086         * modules/yesno-tests (Depends-on): Likewise.
40087
40088 2009-08-10  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
40091
40092 2009-08-10  Bruno Haible  <bruno@clisp.org>
40093
40094         Fix a gcc warning.
40095         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
40096
40097 2009-08-10  Bruno Haible  <bruno@clisp.org>
40098
40099         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
40100         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
40101         not only the first time.
40102         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
40103         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
40104         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
40105         is 1, not only the the first time.
40106
40107 2009-08-10  Bruno Haible  <bruno@clisp.org>
40108
40109         Make it possible to use module 'gethostname' without module 'close'.
40110         * lib/unistd.in.h (close): Evoke a link error only if
40111         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40113         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40114         * modules/unistd (Makefile.am): Substitute
40115         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40116         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
40117         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40118         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
40119         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40120         * modules/sys_ioctl (Makefile.am): Substitute
40121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40122         * modules/socket (configure.ac): On native Windows, set
40123         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
40124         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40125         Reported by Sam Steingold <sds@gnu.org>.
40126
40127 2009-08-10  Bruno Haible  <bruno@clisp.org>
40128
40129         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
40130         * modules/ioctl (configure.ac): Likewise.
40131
40132 2009-08-10  Bruno Haible  <bruno@clisp.org>
40133
40134         Avoid collision between gnulib wrapper and libintl wrapper.
40135         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
40136         already defined in intl/printf.c.
40137         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
40138         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
40139
40140 2009-08-09  Bruno Haible  <bruno@clisp.org>
40141
40142         Make <sys/select.h> really self-contained, also on Solaris 10.
40143         * lib/sys_select.in.h: Include <string.h>.
40144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
40145         Solaris 10 problem.
40146         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
40147         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
40148         Reported by Jim Meyering.
40149
40150 2009-08-09  Bruno Haible  <bruno@clisp.org>
40151
40152         Avoid warnings from 'aclocal' that are due to a use of macro name
40153         AM_XGETTEXT_OPTION that is not defined in automake.
40154         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40155         automake.
40156         * modules/error (configure.ac): Likewise.
40157         * modules/propername (configure.ac): Likewise.
40158         * modules/vasprintf (configure.ac): Likewise.
40159         * modules/verror (configure.ac): Likewise.
40160         * modules/xprintf (configure.ac): Likewise.
40161         * modules/xvasprintf (configure.ac): Likewise.
40162
40163 2009-08-08  Bruno Haible  <bruno@clisp.org>
40164
40165         Avoid compilation error in C++ mode.
40166         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40167         Reported by Sam Steingold <sds@gnu.org>.
40168
40169 2009-08-08  Bruno Haible  <bruno@clisp.org>
40170
40171         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40172         for the various Unix platforms.
40173         * doc/posix-headers/limits.texi: Update platforms list regarding
40174         HOST_NAME_MAX.
40175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40176
40177 2009-08-07  Jim Meyering  <meyering@redhat.com>
40178
40179         selinux-at: fix typo in a comment
40180         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40181         Spotted by Paolo Bonzini.
40182
40183         selinux-at: remove redundant m4 code, add documentation
40184         * modules/selinux-at (configure.ac): Remove redundant code.
40185         LIB_SELINUX is already set via the dependent module, selinux-h.
40186         (Include): Add quotes around selinux-at.h.
40187         * lib/selinux-at.h: Add documentation.
40188         Reported by Bruno Haible in
40189         http://marc.info/?l=gnulib-bug&m=124958988300749
40190
40191 2009-08-07  Bruno Haible  <bruno@clisp.org>
40192
40193         Avoid link error on MacOS X 10.3 and 10.4.
40194         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40195         on non-ELF systems.
40196         * lib/argp-pv.c (argp_program_version): Likewise.
40197         Reported by Simon Josefsson.
40198
40199 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40200
40201         * tests/test-version-etc.sh: Use $EXEEXT.
40202
40203 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40204
40205         update-copyright: update documentation to point to maint.mk
40206         * build-aux/update-copyright: Here.
40207
40208 2009-08-06  Jim Meyering  <meyering@redhat.com>
40209
40210         maint.mk: support update-copyright-local
40211         * top/maint.mk (update-copyright-local): Define place-holder.
40212         (update-copyright): Depend on $(update-copyright-local).
40213
40214 2009-08-06  Jim Meyering  <meyering@redhat.com>
40215
40216         selinux-at: new module
40217         Initially written for coreutils, this module will soon be
40218         used by findutils, too.
40219         * MODULES.html.sh [Misc]: Add selinux-at.
40220         * lib/selinux-at.h: New file, from coreutils.
40221         * lib/selinux-at.c: Likewise.
40222         * modules/selinux-at: Likewise.
40223         (License): Change from LGPL to GPL, since it depends
40224         on the GPL'd openat module.
40225
40226         doc: update README
40227         * README: Remove references to cogito.
40228         Remove cvs-repo-updating instructions from 2007.
40229         Don't imply that CVS is better if you have limited disk space.
40230
40231 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40232
40233         update-copyright: support C-style comments
40234         * build-aux/update-copyright: Implement and document.
40235         * tests/test-update-copyright.sh: Test.
40236
40237 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40238
40239         update-copyright: support omitted "(C)"
40240         * build-aux/update-copyright: Implement and document.  Also,
40241         allow variable whitespace before "(C)".
40242         * tests/test-update-copyright.sh: Test.
40243
40244 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40245
40246         update-copyright: don't trip on non-FSF copyright statements
40247         * build-aux/update-copyright: Fix so that the first correctly
40248         formatted FSF copyright statement is recognized no matter what
40249         appears before it.  Update documentation.
40250         * tests/test-update-copyright.sh: Test that.
40251
40252 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40253
40254         update-copyright: clean up code a little
40255         * build-aux/update-copyright: Append "_re" to the name of any
40256         variable holding a regular expression.
40257         Replace "old" and "new" with "stmt" in variable names.
40258         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40259         handled correctly.
40260         Format code more consistently.
40261
40262 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40263
40264         update-copyright-tests: improve portability
40265         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40266         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40267
40268 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40269
40270         update-copyright: support @copyright{} and &copy;
40271         * build-aux/update-copyright: Implement and document.
40272         * tests/test-update-copyright.sh: Test.
40273
40274 2009-08-04  Jim Meyering  <meyering@redhat.com>
40275
40276         update-copyright-tests: correctly test EOL=\r\n handling
40277         * tests/test-update-copyright.sh: Put \r at the end of some lines
40278         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40279
40280         maint.mk: make update-copyright exclusion list more configurable
40281         * top/maint.mk (update-copyright): Default to excluding COPYING,
40282         but allow an override, in case someone does want to update that file.
40283
40284         maint.mk: don't update copyright date in COPYING
40285         * top/maint.mk (update-copyright): Exclude COPYING.
40286
40287         maint.mk: add a copyright-updating rule
40288         * top/maint.mk (update-copyright): New rule.
40289         Derived from coreutils/Makefile.am.
40290
40291         update-copyright: rename some variables
40292         * build-aux/update-copyright: Rename a few variables for clarity.
40293         Tweak syntax.  List Joel E. Denny as coauthor.
40294
40295 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40296
40297         update-copyright: fix bug for 2-digit last year and add tests
40298         * build-aux/update-copyright: Fix bug.
40299         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40300         specified.
40301         * modules/update-copyright-tests: New
40302         * tests/test-update-copyright.sh: New.
40303
40304 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40305
40306         update-copyright: handle leading tabs in line prefix
40307         * build-aux/update-copyright: Count leading tabs as 8 spaces
40308         when computing margin.  This helps with the formatting of
40309         ChangeLogs, for example.
40310         Fix documentation a little.
40311
40312 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40313
40314         update-copyright: support EOL=\r\n
40315         * build-aux/update-copyright: Implement that.
40316
40317 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40318
40319         update-copyright: automatically format copyright statements
40320         * build-aux/update-copyright: Implement that.
40321         Also, be a little more predictable and safer by always failing
40322         when the full copyright format is not perfectly recognized as an
40323         unbroken whole.  Discussed at
40324         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40325         Rewrite documentation.
40326
40327 2009-08-03  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40330
40331 2009-08-02  Bruno Haible  <bruno@clisp.org>
40332
40333         Tests for module 'uname'.
40334         * modules/uname-tests: New file.
40335         * tests/test-uname.c: New file.
40336
40337         New module 'uname'.
40338         * lib/uname.c: New file.
40339         * m4/uname.m4: New file.
40340         * modules/uname: New file.
40341         * doc/posix-functions/uname.texi: Mention the new module.
40342
40343 2009-08-02  Bruno Haible  <bruno@clisp.org>
40344
40345         Tests for module 'sys_utsname'.
40346         * modules/sys_utsname-tests: New file.
40347         * tests/test-sys_utsname.c: New file.
40348
40349         New module 'sys_utsname'.
40350         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40351         * m4/sys_utsname_h.m4: New file.
40352         * modules/sys_utsname: New file.
40353         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40354
40355 2009-08-02  Bruno Haible  <bruno@clisp.org>
40356
40357         Implicitly initialize the sockets library.
40358         * lib/gethostname.c: Include sockets.h.
40359         (rpl_gethostname): Invoke gl_sockets_startup.
40360         * lib/socket.c: Include sockets.h.
40361         (rpl_socket): Invoke gl_sockets_startup.
40362         * modules/gethostname (Depends-on): Add sockets.
40363         * modules/socket (Depends-on): Likewise.
40364         * tests/test-poll.c: Don't include sockets.h.
40365         (main): Don't invoke gl_sockets_startup.
40366         * tests/test-select.c: Don't include sockets.h.
40367         (main): Don't invoke gl_sockets_startup.
40368
40369 2009-08-02  Bruno Haible  <bruno@clisp.org>
40370
40371         Allow multiple calls to gl_sockets_startup.
40372         * lib/sockets.c (initialized_sockets_version): New variable.
40373         (gl_sockets_startup): Do nothing if already called for this or a higher
40374         version.
40375         (gl_sockets_cleanup): Reset initialized_sockets_version.
40376
40377 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40378
40379         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40380         different project/version.
40381
40382 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40383             Bruno Haible  <bruno@clisp.org>
40384
40385         Tests for module 'pipe-filter-gi'.
40386         * modules/pipe-filter-gi-tests: New file.
40387         * tests/test-pipe-filter-gi1.sh: New file.
40388         * tests/test-pipe-filter-gi1.c: New file.
40389         * tests/test-pipe-filter-gi2.sh: New file.
40390         * tests/test-pipe-filter-gi2-main.c: New file.
40391         * tests/test-pipe-filter-gi2-child.c: New file.
40392
40393         New module 'pipe-filter-gi'.
40394         * lib/pipe-filter-gi.c: New file.
40395         * modules/pipe-filter-gi: New file.
40396
40397 2009-08-02  Bruno Haible  <bruno@clisp.org>
40398             Paolo Bonzini  <bonzini@gnu.org>
40399
40400         Tests for module 'pipe-filter-ii'.
40401         * modules/pipe-filter-ii-tests: New file.
40402         * tests/test-pipe-filter-ii1.sh: New file.
40403         * tests/test-pipe-filter-ii1.c: New file.
40404         * tests/test-pipe-filter-ii2.sh: New file.
40405         * tests/test-pipe-filter-ii2-main.c: New file.
40406         * tests/test-pipe-filter-ii2-child.c: New file.
40407
40408         New module 'pipe-filter-ii'.
40409         * lib/pipe-filter.h: New file.
40410         * lib/pipe-filter-ii.c: New file.
40411         * lib/pipe-filter-aux.h: New file.
40412         * modules/pipe-filter-ii: New file.
40413
40414 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40415
40416         * lib/gc-libgcrypt.c: Change copyright to FSF.
40417         * lib/gc-gnulib.c: Likewise.
40418
40419 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40420
40421         * lib/gethostname.c: Include limits.h.
40422
40423 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40424             Bruno Haible  <bruno@clisp.org>
40425
40426         Ensure HOST_NAME_MAX as part of the gethostname module.
40427         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40428         define also HOST_NAME_MAX.
40429         * tests/test-gethostname.c: Include <limits.h>.
40430         (main): Check also HOST_NAME_MAX.
40431         * doc/posix-headers/limits.texi: Document the mingw problem.
40432
40433 2009-08-02  Bruno Haible  <bruno@clisp.org>
40434
40435         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40436         Add comments.
40437
40438 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40439
40440         * lib/gethostname.c: Add Windows wrapper.
40441         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40442         * modules/gethostname: Depend on sys_socket & errno, for also
40443         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40444         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40445
40446 2009-07-31  Jim Meyering  <meyering@redhat.com>
40447
40448         getloadavg: fix symbol name in comment
40449         * lib/getloadavg.c: Correct a typo I introduced when adding
40450         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40451         Matt Kraai spotted the problem.
40452
40453 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40454
40455         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40456         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40457         code also if ! defined N_NAME_POINTER.
40458         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40459         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40460         but the n_name member is a 12-byte array.
40461
40462 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40463
40464         update-copyright: generalize comment handling
40465         * build-aux/update-copyright: Handle copyright statements
40466         within more comment styles.
40467         Document usage.
40468         Report any file with an external copyright holder or parse failure.
40469
40470 2009-07-29  Jim Meyering  <meyering@redhat.com>
40471
40472         mktime: correct setting of REPLACE_MKTIME
40473         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40474
40475         update-copyright: new module
40476         * modules/update-copyright: New file.
40477         * build-aux/update-copyright: New file.
40478         * MODULES.html.sh (maint+release support): Add update-copyright.
40479
40480 2009-07-27  Bruno Haible  <bruno@clisp.org>
40481
40482         Fix compilation error when <ctime> is used and mktime is replaced.
40483         * lib/time.in.h (mktime): New declaration.
40484         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40485         REPLACE_MKTIME instead of defining mktime in config.h.
40486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40487         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40488         Reported by Ross McFarland <rwmcfa1@neces.com>.
40489
40490 2009-07-27  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40493         Reported by Matt Kraai <mkraai@beckman.com>.
40494
40495 2009-07-25  Jim Meyering  <meyering@redhat.com>
40496
40497         maint.mk: avoid warnings about missing files
40498         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40499         diagnostic when .prev-version does not exist.
40500         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40501         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40502         nonexistent cfg.mk.
40503         Suggestions from Simon Josefsson.
40504
40505 2009-07-25  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40508         defined as macros. Needed on QNX 6.4.1.
40509         Reported by Matt Kraai <mkraai@beckman.com>.
40510
40511 2009-07-23  Jim Meyering  <meyering@redhat.com>
40512
40513         maint.mk: invoke "make dist" with a working value of XZ_OPT
40514         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40515
40516 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40517
40518         Make fseeko.c compile on QNX.
40519         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40520
40521 2009-07-22  Peter Simons  <simons@cryp.to>
40522
40523         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40524         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40525         * lib/md4.h: Likewise.
40526         * lib/md5.h: Likewise.
40527         * lib/sha1.h: Likewise.
40528         * lib/sha256.h: Likewise.
40529         * lib/sha512.h: Likewise.
40530
40531         tests-sha1: don't assign literal string to 'char *' variable
40532         * tests/test-sha1.c (main): Declare locals with "const" to match
40533         attributes of the right hand side.
40534
40535 2009-07-21  Eric Blake  <ebb9@byu.net>
40536
40537         dup2: fix more mingw problems
40538         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40539         fd to itself.
40540         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40541         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40542         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40543         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40544         care of mingw bugs.
40545
40546 2009-07-21  Jim Meyering  <meyering@redhat.com>
40547
40548         vc-list-files: avoid failure when /bin/sh is dash
40549         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40550         On some Debian based systems, /bin/sh is a symlink to dash, and running
40551         this command would omit the "/" following each 'tests' prefix:
40552           dash -x build-aux/vc-list-files -C . tests
40553         That is because bash and dash work differently:
40554           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40555           bash ok
40556           dash odd
40557
40558 2009-07-21  Eric Blake  <ebb9@byu.net>
40559
40560         dup2-tests: test previous patch
40561         * modules/dup2-tests: New file.
40562         * tests/test-dup2.c: Likewise.
40563         * tests/test-open.c (main): Avoid unspecified behavior.
40564         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40565         test.
40566
40567         dup2: work around mingw and cygwin 1.5 bug
40568         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40570         * modules/unistd (Makefile.am): Substitute it.
40571         * lib/unistd.in.h (dup2): Declare the replacement.
40572         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40573         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40574         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40575         * modules/execute (Depends-on): Add dup2.
40576         * modules/fseterr (Depends-on): Likewise.
40577         * modules/pipe (Depends-on): Likewise.
40578         * modules/posix_spawn-internal (Depends-on): Likewise.
40579
40580 2009-07-21  Bruno Haible  <bruno@clisp.org>
40581
40582         * modules/.gitattributes: New file.
40583
40584 2009-07-20  Bruno Haible  <bruno@clisp.org>
40585
40586         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40587         (main): Use it.
40588
40589 2009-07-20  Eric Blake  <ebb9@byu.net>
40590
40591         test-pipe: make a bit more robust.
40592         * tests/test-pipe.c (myerr): Allow error messages regardless of
40593         what we do to stderr.
40594         (test_pipe): Rearrange to avoid deadlock.
40595         (child_main): Try a larger read, to ensure we avoided deadlock.
40596         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40597         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40598         if misused.
40599
40600 2009-07-19  Jim Meyering  <meyering@redhat.com>
40601
40602         fts: avoid false-positive cycle-detection
40603         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40604         for each new command line argument.
40605
40606 2009-07-19  Bruno Haible  <bruno@clisp.org>
40607
40608         Fix build error on mingw with the modules sys_select and unistd.
40609         * modules/acl-tests (Depends-on): Add close.
40610         * modules/binary-io-tests (Depends-on): Likewise.
40611         * modules/closein-tests (Depends-on): Likewise.
40612         * modules/flock-tests (Depends-on): Likewise.
40613         * modules/fsync-tests (Depends-on): Likewise.
40614         * modules/lseek-tests (Depends-on): Likewise.
40615         * modules/pipe-tests (Depends-on): Likewise.
40616         * modules/posix_spawn-tests (Depends-on): Likewise.
40617         * modules/posix_spawnp-tests (Depends-on): Likewise.
40618         * modules/stat-time-tests (Depends-on): Likewise.
40619         * modules/yesno-tests (Depends-on): Likewise.
40620
40621 2009-07-19  Bruno Haible  <bruno@clisp.org>
40622
40623         Unify conditionals.
40624         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40625         macros, not at the compiler macros.
40626         * lib/pipe.c: Likewise.
40627         * lib/execute.c: Likewise.
40628         * lib/spawni.c: Likewise.
40629
40630 2009-07-19  Bruno Haible  <bruno@clisp.org>
40631
40632         Fix handling of closed stdin/stdout/stderr on mingw.
40633         * lib/w32spawn.h: Include unistd.h.
40634         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40635         file descriptor with O_NOINHERIT flag.
40636         (fd_safer_noinherit): New function, based on fd-safer.c.
40637         (dup_safer_noinherit): New function, based on dup-safer.c.
40638         (undup_safer_noinherit): New function.
40639         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40640         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40641         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40642         instead of fd_safer.
40643         * tests/test-pipe.c: Include <windows.h>.
40644         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40645         result.
40646
40647         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40648         from main.
40649         (test_pipe): Pass an extra argument for disambiguation.
40650         (main): Invoke parent_main or child_main.
40651
40652         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40653         consistently.
40654
40655 2009-07-18  Eric Blake  <ebb9@byu.net>
40656
40657         test-pipe: fix mingw build
40658         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40659
40660 2009-07-18  Bruno Haible  <bruno@clisp.org>
40661
40662         * modules/pipe-tests (Makefile.am): Fix typo.
40663
40664 2009-07-18  Eric Blake  <ebb9@byu.net>
40665
40666         error: fix mingw build
40667         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40668         Reported by Bruno Haible.
40669
40670         error: avoid undefined use of stdout
40671         * lib/error.c (error, error_at_line): Check that fd 1 is open
40672         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40673         is handling faults and the close_stdout module wants to report the
40674         detection of closed stdout as an error.
40675
40676 2009-07-17  Eric Blake  <ebb9@byu.net>
40677
40678         pipe: be robust in face of closed fds
40679         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40680         should cause child to misbehave.
40681         * modules/pipe-tests: New module.
40682         * tests/test-pipe.c: New file.
40683         * tests/test-pipe.sh: New file.
40684         Reported by Akim Demaille.
40685
40686 2009-07-14  Bruno Haible  <bruno@clisp.org>
40687
40688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40689         Reported by anonymous kc.
40690
40691 2009-07-07  Jim Meyering  <meyering@redhat.com>
40692
40693         maint.mk: don't look for translatable strings in *.m4 or *.mk
40694         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40695         when searching for translatable strings.
40696
40697 2009-07-05  Jim Meyering  <meyering@redhat.com>
40698
40699         remove superfluous parentheses in STREQ definition
40700         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40701         * lib/getugroups.c (STREQ): Likewise.
40702         * lib/fnmatch.c (STREQ): Likewise.
40703         Spotted by Bruno Haible.
40704
40705 2009-07-04  Jim Meyering  <meyering@redhat.com>
40706
40707         argv-iter: new module
40708         * MODULES.html.sh: Add argv-iter.
40709         * lib/argv-iter.c, lib/argv-iter.h: New files.
40710         * modules/argv-iter: New file.
40711         * modules/argv-iter-tests: New file.
40712         * tests/test-argv-iter.c: Test it.
40713
40714 2009-07-04  Bruno Haible  <bruno@clisp.org>
40715
40716         Fix assertion.
40717         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40718         contains more exact copies of a given entry than file2, leave the extra
40719         copies unpaired rather than aborting.
40720         Reported by Eric Blake.
40721
40722 2009-07-02  Bruno Haible  <bruno@clisp.org>
40723
40724         Speedup git-merge-changelog for git cherry-pick.
40725         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40726         (entries_mapping_get): New function, extracted from compute_mapping.
40727         (entries_mapping_reverse_get): New function.
40728         (compute_mapping): Add a 'full' argument. Return the result in a
40729         'struct entries_mapping'.
40730         (main): Update. Access the mappings through entries_mapping_get.
40731         Reported by Eric Blake.
40732
40733 2009-07-02  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40736         best_i.
40737
40738 2009-07-02  Bruno Haible  <bruno@clisp.org>
40739
40740         Speed up approximate search for matching ChangeLog entries.
40741         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40742         argument. Call fstrcmp_bounded instead of fstrcmp.
40743         (compute_mapping, try_split_merged_entry, main): Update callers.
40744
40745 2009-07-02  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40748
40749 2009-06-30  Bruno Haible  <bruno@clisp.org>
40750
40751         Reduce the number of uc_is_cased calls.
40752         * lib/unicase.h (casing_suffix_context_t): Add
40753         'first_char_except_ignorable' field.
40754         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40755         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40756         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40757         Update initializer.
40758         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40759         case-ignorable characters.
40760         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40761         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40762         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40763         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40764         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40765
40766 2009-06-30  Bruno Haible  <bruno@clisp.org>
40767
40768         Tests for module 'unicase/ignorable'.
40769         * modules/unicase/ignorable-tests: New file.
40770         * tests/unicase/test-ignorable.c: New file, generated by
40771         gen-uni-tables.
40772
40773         Tests for module 'unicase/cased'.
40774         * modules/unicase/cased-tests: New file.
40775         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40776         * tests/unicase/test-predicate-part1.h: New file, derived from
40777         tests/unictype/test-predicate-part1.h.
40778         * tests/unicase/test-predicate-part2.h: New file, same as
40779         tests/unictype/test-predicate-part2.h.
40780
40781         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40782         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40783         (output_casing_properties): New function.
40784         (main): Call it.
40785         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40786         * lib/unicase/cased.c: Include unictype/bitmap.h.
40787         (uc_is_cased): Define through a bitmap lookup.
40788         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40789         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40790         (uc_is_case_ignorable): Define through a bitmap lookup.
40791         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40792         lib/unictype/bitmap.h.
40793         (Depends-on): Add inline. Clean up.
40794         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40795         lib/unictype/bitmap.h.
40796         (Depends-on): Add inline. Clean up.
40797         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40798         recognition.
40799         * tests/unicase/test-u16-tolower.c (main): Likewise.
40800         * tests/unicase/test-u32-tolower.c (main): Likewise.
40801
40802 2009-06-30  Bruno Haible  <bruno@clisp.org>
40803
40804         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40805         * lib/unicase/u16-casemap.c: Likewise.
40806         * lib/unicase/u32-casemap.c: Likewise.
40807
40808 2009-06-29  Bruno Haible  <bruno@clisp.org>
40809
40810         Define u32_casefold as a wrapper around u32_ct_casefold.
40811         * lib/unicase/u32-casefold.c: Update.
40812         * modules/unicase/u32-casefold (Depends-on): Add
40813         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40814         unicase/empty-suffix-context. Clean up.
40815
40816         Define u16_casefold as a wrapper around u16_ct_casefold.
40817         * lib/unicase/u16-casefold.c: Update.
40818         * modules/unicase/u16-casefold (Depends-on): Add
40819         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40820         unicase/empty-suffix-context. Clean up.
40821
40822         Define u8_casefold as a wrapper around u8_ct_casefold.
40823         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40824         * lib/unicase/u8-casefold.c: Update.
40825         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40826         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40827
40828         Define u32_totitle as a wrapper around u32_ct_totitle.
40829         * lib/unicase/u32-totitle.c: Update.
40830         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40831         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40832
40833         Define u16_totitle as a wrapper around u16_ct_totitle.
40834         * lib/unicase/u16-totitle.c: Update.
40835         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40836         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40837
40838         Define u8_totitle as a wrapper around u8_ct_totitle.
40839         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40840         functions.
40841         (FUNC): Delegate to U_CT_TOTITLE.
40842         * lib/unicase/u8-totitle.c: Update.
40843         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40844         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40845
40846         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40847         invocation.
40848         * modules/unicase/u32-tolower (Depends-on): Add
40849         unicase/empty-prefix-context, unicase/empty-suffix-context.
40850
40851         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40852         invocation.
40853         * modules/unicase/u16-tolower (Depends-on): Add
40854         unicase/empty-prefix-context, unicase/empty-suffix-context.
40855
40856         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40857         * modules/unicase/u8-tolower (Depends-on): Add
40858         unicase/empty-prefix-context, unicase/empty-suffix-context.
40859
40860         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40861         invocation.
40862         * modules/unicase/u32-toupper (Depends-on): Add
40863         unicase/empty-prefix-context, unicase/empty-suffix-context.
40864
40865         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40866         invocation.
40867         * modules/unicase/u16-toupper (Depends-on): Add
40868         unicase/empty-prefix-context, unicase/empty-suffix-context.
40869
40870         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40871         * modules/unicase/u8-toupper (Depends-on): Add
40872         unicase/empty-prefix-context, unicase/empty-suffix-context.
40873
40874         New module 'unicase/u32-ct-casefold'.
40875         * lib/unicase/u32-ct-casefold.c: New file.
40876         * modules/unicase/u32-ct-casefold: New file.
40877
40878         New module 'unicase/u16-ct-casefold'.
40879         * lib/unicase/u16-ct-casefold.c: New file.
40880         * modules/unicase/u16-ct-casefold: New file.
40881
40882         New module 'unicase/u8-ct-casefold'.
40883         * lib/unicase/u8-ct-casefold.c: New file.
40884         * lib/unicase/u-ct-casefold.h: New file, derived from
40885         lib/unicase/u-casefold.h.
40886         * modules/unicase/u8-ct-casefold: New file.
40887
40888         New module 'unicase/u32-ct-totitle'.
40889         * lib/unicase/u32-ct-totitle.c: New file.
40890         * modules/unicase/u32-ct-totitle: New file.
40891
40892         New module 'unicase/u16-ct-totitle'.
40893         * lib/unicase/u16-ct-totitle.c: New file.
40894         * modules/unicase/u16-ct-totitle: New file.
40895
40896         New module 'unicase/u8-ct-totitle'.
40897         * lib/unicase/u8-ct-totitle.c: New file.
40898         * lib/unicase/u-ct-totitle.h: New file, derived from
40899         lib/unicase/u-totitle.h.
40900         * modules/unicase/u8-ct-totitle: New file.
40901
40902         New module 'unicase/u32-ct-tolower'.
40903         * lib/unicase/u32-ct-tolower.c: New file.
40904         * modules/unicase/u32-ct-tolower: New file.
40905
40906         New module 'unicase/u16-ct-tolower'.
40907         * lib/unicase/u16-ct-tolower.c: New file.
40908         * modules/unicase/u16-ct-tolower: New file.
40909
40910         New module 'unicase/u8-ct-tolower'.
40911         * lib/unicase/u8-ct-tolower.c: New file.
40912         * modules/unicase/u8-ct-tolower: New file.
40913
40914         New module 'unicase/u32-ct-toupper'.
40915         * lib/unicase/u32-ct-toupper.c: New file.
40916         * modules/unicase/u32-ct-toupper: New file.
40917
40918         New module 'unicase/u16-ct-toupper'.
40919         * lib/unicase/u16-ct-toupper.c: New file.
40920         * modules/unicase/u16-ct-toupper: New file.
40921
40922         New module 'unicase/u8-ct-toupper'.
40923         * lib/unicase/u8-ct-toupper.c: New file.
40924         * modules/unicase/u8-ct-toupper: New file.
40925
40926         Add context arguments to u*_casemap functions.
40927         * lib/unicase/unicasemap.h: Include unicase.h.
40928         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40929         suffix_context arguments.
40930         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40931         functions.
40932         (FUNC): Add prefix_context and suffix_context arguments. Use
40933         uc_is_cased and uc_is_case_ignorable.
40934         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40935         * lib/unicase/u16-casemap.c: Likewise.
40936         * lib/unicase/u32-casemap.c: Likewise.
40937         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40938         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40939         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40940         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40941         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40942         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40943
40944         New module 'unicase/u32-suffix-context'.
40945         * lib/unicase/u32-suffix-context.c: New file.
40946         * modules/unicase/u32-suffix-context: New file.
40947
40948         New module 'unicase/u16-suffix-context'.
40949         * lib/unicase/u16-suffix-context.c: New file.
40950         * modules/unicase/u16-suffix-context: New file.
40951
40952         New module 'unicase/u8-suffix-context'.
40953         * lib/unicase/u8-suffix-context.c: New file.
40954         * lib/unicase/u-suffix-context.h: New file.
40955         * modules/unicase/u8-suffix-context: New file.
40956
40957         New module 'unicase/empty-suffix-context'.
40958         * lib/unicase/empty-suffix-context.c: New file.
40959         * modules/unicase/empty-suffix-context: New file.
40960
40961         New module 'unicase/u32-prefix-context'.
40962         * lib/unicase/u32-prefix-context.c: New file.
40963         * modules/unicase/u32-prefix-context: New file.
40964
40965         New module 'unicase/u16-prefix-context'.
40966         * lib/unicase/u16-prefix-context.c: New file.
40967         * modules/unicase/u16-prefix-context: New file.
40968
40969         New module 'unicase/u8-prefix-context'.
40970         * lib/unicase/u8-prefix-context.c: New file.
40971         * lib/unicase/u-prefix-context.h: New file.
40972         * lib/unicase/context.h: New file.
40973         * modules/unicase/u8-prefix-context: New file.
40974
40975         New module 'unicase/empty-prefix-context'.
40976         * lib/unicase/empty-prefix-context.c: New file.
40977         * modules/unicase/empty-prefix-context: New file.
40978
40979         New module 'unicase/ignorable'.
40980         * lib/unicase/ignorable.c: New file.
40981         * modules/unicase/ignorable: New file.
40982
40983         New module 'unicase/cased'.
40984         * lib/unicase/caseprop.h: New file.
40985         * lib/unicase/cased.c: New file.
40986         * modules/unicase/cased: New file.
40987
40988         New functions for case mapping of substrings.
40989         * lib/unicase.h (casing_prefix_context_t): New type.
40990         (unicase_empty_prefix_context): New variable.
40991         (u8_casing_prefix_context, u16_casing_prefix_context,
40992         u32_casing_prefix_context, u8_casing_prefixes_context,
40993         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40994         declarations.
40995         (casing_suffix_context_t): New type.
40996         (unicase_empty_suffix_context): New variable.
40997         (u8_casing_suffix_context, u16_casing_suffix_context,
40998         u32_casing_suffix_context, u8_casing_suffixes_context,
40999         u16_casing_suffixes_context, u32_casing_suffixes_context,
41000         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
41001         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
41002         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
41003         declarations.
41004
41005 2009-06-28  Jim Meyering  <meyering@redhat.com>
41006
41007         boostrap: indent only with spaces
41008         * build-aux/bootstrap: Indent only with spaces, never TABs.
41009
41010         bootstrap: split long lines
41011         * build-aux/bootstrap: Keep line length < 80.
41012
41013         bootstrap: sync from coreutils
41014         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
41015         just as autoreconf does.  Verify a list of prerequisite
41016         package-name,version-number pairs if defined in bootstrap.conf.
41017         Refer to README-prereq, if prerequisites are not satisfied.
41018
41019 2009-06-27  Eric Blake  <ebb9@byu.net>
41020
41021         tests: add test for bogus NULL definition
41022         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
41023         * tests/test-stdlib.c: Likewise.
41024         * tests/test-string.c: Likewise.
41025         * tests/test-locale.c: Likewise.
41026         * tests/test-unistd.c: Likewise.
41027         * modules/stdio-tests (Depends-on): Add verify.
41028         * modules/stdlib-tests (Depends-on): Likewise.
41029         * modules/string-tests (Depends-on): Likewise.
41030         * modules/locale-tests (Depends-on): Likewise.
41031         * modules/unistd-tests (Depends-on): Likewise.
41032
41033 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
41034
41035         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
41036         self-explaining comment.
41037         * m4/selinux-selinux-h: Update serial.
41038         (gl_LIBSELINUX): New macro, adding a warning for missing development
41039         packages to code extracted from...
41040         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
41041         Add warning for missing development packages here, too.
41042
41043 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
41044
41045         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
41046
41047 2009-06-25  Eric Blake  <ebb9@byu.net>
41048
41049         version-etc: fix regression
41050         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
41051         gcc.
41052         (version_etc): Use it, to catch bugs with trailing NULL.
41053         * lib/version-etc.c (version_etc_arn): Delete unused argument.
41054         (version_etc_va): Fix logic bug.
41055         * modules/version-etc-tests: Add test.
41056         * tests/test-version-etc.c: New file.
41057         * tests/test-version-etc.sh: Likewise.
41058
41059 2009-06-25  Sam Steingold  <sds@gnu.org>
41060
41061         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
41062         mbtowc declaration.
41063
41064 2009-06-25  Eric Blake  <ebb9@byu.net>
41065
41066         fpurge: migrate into <stdio.h>
41067         * lib/fpurge.h: Delete...
41068         * lib/stdio.in.h (fpurge): ...and declare here, instead.
41069         * lib/fpurge.c (fpurge): Change declaring header.
41070         * modules/fpurge (Files): Drop deleted file.
41071         (Depends-on): Add stdio.
41072         (configure.ac): Set witness.
41073         * modules/stdio (Makefile.am): Support fpurge macros.
41074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
41076         * lib/fflush.c: Update client.
41077         * tests/test-fpurge.c: Likewise.
41078         * NEWS: Mention the change.
41079
41080 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41081
41082         * lib/argp-version-etc.c (program_authors): Add const
41083         qualifier.
41084         * lib/version-etc.c: Fix typos in the comments.
41085         * modules/argp-version-etc: Depends on version-etc.
41086
41087 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41088
41089         argp-version-etc: new module.
41090
41091         * lib/argp-version-etc.c: New file.
41092         * lib/argp-version-etc.h: New file.
41093         * modules/argp-version-etc: New file.
41094         * modules/argp-version-etc-tests: New file.
41095         * tests/test-argp-version-etc.c: New test.
41096         * tests/test-argp-version-etc-1.sh: New test.
41097
41098 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41099
41100         Provide additional interfaces and documentation for version-etc
41101         module.
41102
41103         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
41104         interfaces.
41105         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
41106         prototypes.
41107
41108 2009-06-24  Bruno Haible  <bruno@clisp.org>
41109
41110         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
41111         HAVE_LIB${NAME} macro.
41112         Reported by Sam Steingold <sds@gnu.org>.
41113
41114 2009-06-23  Simon Josefsson  <simon@josefsson.org>
41115
41116         * modules/hash-tests (test_hash_LDADD): Link to libintl when
41117         needed.
41118
41119 2009-06-21  Bruno Haible  <bruno@clisp.org>
41120
41121         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
41122         work.
41123         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
41124         together with LIB${NAME}, LTLIB${NAME}.
41125         Reported by Sam Steingold <sds@gnu.org>.
41126
41127 2009-06-20  Jim Meyering  <meyering@redhat.com>
41128
41129         tests: make sc_require_test_exit_idiom more generic
41130         * top/maint.mk (Exit_witness_file): New overridable variable.
41131         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
41132         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
41133
41134 2009-06-19  Jim Meyering  <meyering@redhat.com>
41135
41136         hash: reverse order of src/dst parameters in an internal interface
41137         * lib/hash.c (transfer_entries): Reverse order of parameters to
41138         put DST before SRC.  Adjust callers.
41139
41140         tests: test-hash: avoid wholesale duplication
41141         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
41142         Instead, use a loop and add a single conditional.
41143
41144         tests: test-hash: allow seed selection via a command line argument
41145         * tests/test-hash.c (get_seed): New function.
41146         (main): Use it.
41147
41148 2009-06-19  Eric Blake  <ebb9@byu.net>
41149
41150         hash: avoid memory leak on allocation failure
41151         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41152         failure.  Factor repeated algorithm...
41153         (transfer_entries): ...into new helper routine.
41154         (hash_delete): React to hash_rehash return value.
41155
41156         hash: reduce memory pressure in hash_rehash no-op case
41157         * lib/hash.c (next_prime): Avoid overflow.
41158         (hash_initialize): Factor bucket size computation...
41159         (compute_bucket_size): ...into new helper function.
41160         (hash_rehash): Use new function and open coding to reduce memory
41161         pressure, and avoid a memory leak in USE_OBSTACK code.
41162         Reported by Jim Meyering.
41163
41164 2009-06-18  Eric Blake  <ebb9@byu.net>
41165
41166         hash: make rotation more obvious
41167         * modules/hash (Depends-on): Add bitrotate and stdint.
41168         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41169         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41170         (SIZE_MAX): Rely on headers for definition.
41171         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41172         (raw_hasher): Use rotr_sz.
41173         Suggested by Jim Meyering.
41174
41175         hash: fix memory leak in last patch
41176         * lib/hash.c (hash_rehash): Avoid memory leak.
41177
41178         hash: avoid no-op rehashing
41179         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41180
41181         hash: provide default callback functions
41182         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41183         (hash_initialize): Use them as defaults.
41184         * tests/test-hash.c (main): Test this.
41185
41186         hash: minor optimization
41187         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41188         when possible.
41189         (hash_initialize): Document this promise.
41190         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41191         * tests/test-hash.c (hash_compare_strings): Test this.
41192
41193 2009-06-18  Bruno Haible  <bruno@clisp.org>
41194
41195         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41196         going to be replaced anyway.
41197
41198 2009-06-18  Bruno Haible  <bruno@clisp.org>
41199
41200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41201         in one place.
41202         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41203         be replaced anyway.
41204
41205 2009-06-18  Eric Blake  <ebb9@byu.net>
41206
41207         hash: check for resize before insertion
41208         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41209         threshold before insertion, so that a pathological hash_rehash
41210         that fills every bucket can still trigger another rehash.
41211
41212 2009-06-18  Jim Meyering  <meyering@redhat.com>
41213
41214         hash-tests: add a loop around the small tests
41215         * tests/test-hash.c (main): Repeat small tests with selected
41216         small initial table sizes.
41217
41218 2009-06-17  Eric Blake  <ebb9@byu.net>
41219
41220         hash: minor cleanups
41221         * lib/hash.h (hash_entry): Make opaque, by moving...
41222         * lib/hash.c (hash_entry): ...here.
41223         (hash_insert): Clarify restrictions on what can be inserted.
41224         (hash_get_next): Clarify when it is safe to remove an element
41225         during traversal.
41226         (check_tuning): Skip verification when tuning is known safe.
41227         (hash_initialize): Clarify restrictions on tuning.
41228
41229 2009-06-17  Jim Meyering  <jim@meyering.net>
41230         and Eric Blake  <ebb9@byu.net>
41231
41232         hash-tests: new module
41233         * modules/hash-tests: New file.
41234         * tests/test-hash.c: New file.
41235
41236 2009-06-17  Eric Blake  <ebb9@byu.net>
41237
41238         strstr-simple: document new module
41239         * MODULES.html.sh: Document new module.
41240
41241         strstr, strcasestr: replace on platforms with broken memchr
41242         * modules/strstr: Split into...
41243         * modules/strstr-simple: ...new module that does not care about
41244         performance, but does care about glibc bug.
41245         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41246         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41247         if platform memchr is broken, per Debian bug 521737.
41248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41249         memchr.
41250         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41251         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41252         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41253         * modules/mountlist (Depends-on): Add strstr-simple.
41254         * modules/gen-uni-tables (Depends-on): Likewise.
41255         * modules/argz (Depends-on): Add strstr.
41256
41257 2009-06-17  Bruno Haible  <bruno@clisp.org>
41258
41259         * modules/posix_spawn-internal (Depends-on): Add errno.
41260
41261 2009-06-17  Bruno Haible  <bruno@clisp.org>
41262
41263         Define missing ESTALE on Interix 3.5.
41264         * lib/errno.in.h (ESTALE): Assign a value if missing.
41265         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41267         missing.
41268         * doc/posix-headers/errno.texi: Mention the Interix bug.
41269         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41270
41271 2009-06-15  Eric Blake  <ebb9@byu.net>
41272
41273         memchr, memchr2: add valgrind exception
41274         * lib/memchr.valgrind: New file.
41275         * lib/memchr2.valgrind: New file.
41276         * modules/memchr (Files): Distribute valgrind file.
41277         * modules/memchr2 (Files): Likewise.
41278
41279         docs: memchr is no longer obsolete
41280         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41281         * lib/string.in.h (memchr): Simplify logic.
41282
41283 2009-06-14  Jim Meyering  <meyering@redhat.com>
41284
41285         link-follow: fix the "checking..." message to not mention trailing slash
41286         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41287         never considered trailing slashes.
41288
41289 2009-06-14  Bruno Haible  <bruno@clisp.org>
41290
41291         * m4/memchr.m4: Mention also the bug on IA-64.
41292         * doc/posix-functions/memchr.texi: Likewise.
41293
41294 2009-06-12  Eric Blake  <ebb9@byu.net>
41295
41296         memchr: detect broken x86_64 and alpha implementations
41297         * modules/memchr-tests (Depends-on): Move mmap detection...
41298         * modules/memchr (Depends-on): ...here.
41299         (configure.ac): Set indicator.
41300         * lib/string.in.h (memchr): Declare replacement.
41301         * modules/string (Makefile.am): Trigger replacement.
41302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41303         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41304         bugs.
41305         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41306         * modules/getpagesize (License): Relax license.
41307
41308 2009-06-11  Bruno Haible  <bruno@clisp.org>
41309
41310         * lib/idpriv.h: Add more references.
41311
41312 2009-06-08  Bruno Haible  <bruno@clisp.org>
41313
41314         Tests for module 'idpriv-droptemp'.
41315         * modules/idpriv-droptemp-tests: New file.
41316         * tests/test-idpriv-droptemp.sh: New file.
41317         * tests/test-idpriv-droptemp.su.sh: New file.
41318         * tests/test-idpriv-droptemp.c: New file.
41319
41320         New module 'idpriv-droptemp'.
41321         * lib/idpriv-droptemp.c: New file.
41322         * modules/idpriv-droptemp: New file.
41323
41324 2009-06-08  Bruno Haible  <bruno@clisp.org>
41325
41326         Tests for module 'idpriv-drop'.
41327         * modules/idpriv-drop-tests: New file.
41328         * tests/test-idpriv-drop.sh: New file.
41329         * tests/test-idpriv-drop.su.sh: New file.
41330         * tests/test-idpriv-drop.c: New file.
41331
41332         New module 'idpriv-drop'.
41333         * lib/idpriv.h: New file.
41334         * lib-idpriv-drop.c: New file.
41335         * m4/idpriv.m4: New file.
41336         * modules/idpriv-drop: New file.
41337
41338 2009-06-08  Bruno Haible  <bruno@clisp.org>
41339
41340         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41341         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41342         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41343         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41344         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41345         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41346         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41347
41348 2009-06-08  Eric Blake  <ebb9@byu.net>
41349
41350         test-strstr: use memory fence, when possible
41351         * tests/test-strstr.c (main): Use memory fence, in order to be
41352         more likely to trigger Debian bug 521737.
41353         * modules/strstr-tests (Files): Pull in additional files.
41354
41355         memchr: no longer obsolete, for wider field testing
41356         * modules/memchr (Status, Notice): Delete, this module is no
41357         longer obsolete.
41358         * modules/vasnprintf (Depends-on): Add memchr.
41359
41360 2009-06-07  Jim Meyering  <meyering@redhat.com>
41361
41362         hash: declare some functions with the warn_unused_result attribute
41363         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41364
41365 2009-06-07  Bruno Haible  <bruno@clisp.org>
41366
41367         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41368         Reported by Eric Blake.
41369
41370 2009-06-06  Eric Blake  <ebb9@byu.net>
41371
41372         test-alignof: fix typo with long double
41373         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41374         compiler error.
41375
41376 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41377
41378         Escape non-texinfo { and }s.
41379         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41380         markup error.
41381
41382 2009-06-04  Jim Meyering  <meyering@redhat.com>
41383
41384         gitlog-to-changelog: don't infloop on an empty commit log
41385         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41386         Reported by Boris Petersen <transacid@centerim.org>.
41387
41388 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41389
41390         version-etc: extend for packagers
41391         Add three new configure options, intended for packagers:
41392           --with-packager="packager name"
41393           --with-packager-version="packager-specific version"
41394           --with-packager-bug-reports="packager bug reporting"
41395         An example with coreutils:
41396           $ ./configure \
41397             --with-packager=Gentoo \
41398             --with-packager-bug-report=http://bugs.gentoo.org/ \
41399             --with-packager-version="patchset 1.6"
41400           $ ./src/ls --version | head -n2
41401           ls (GNU coreutils) 7.1-dirty
41402           Packaged by Gentoo (patchset 1.6)
41403         Note that the bug reporting info via --help doesn't show up because
41404         coreutils uses its own custom emit_bug_reporting_address() implementation
41405         in src/system.h.  If it didn't, it'd look like:
41406           $ ./src/ls --help | tail -n4
41407           Report bugs to <bug-coreutils@gnu.org>.
41408           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41409           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41410           General help using GNU software: <http://www.gnu.org/gethelp/>.
41411         * lib/version-etc.c: Print new information, if provided.
41412         * m4/version-etc.m4: New file.
41413         * modules/version-etc (Files): Add m4/version-etc.m4.
41414         (configure.ac): Add gl_VERSION_ETC.
41415
41416 2009-05-31  Bruno Haible  <bruno@clisp.org>
41417
41418         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41419         and 'int64_t'.
41420         * modules/alignof-tests (Dependencies): Add stdint.
41421         Reported by Eric Blake.
41422
41423 2009-05-31  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41426         restriction due to compiler bugs.
41427         Reported by Eric Blake.
41428
41429 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41430             Bruno Haible  <bruno@clisp.org>
41431
41432         Fix test-alignof failure.
41433         * lib/alignof.h (alignof_slot): New macro.
41434         (alignof_type): New macro, with the same semantics as the previous
41435         'alignof'.
41436         (alignof): Alias to alignof_slot.
41437         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41438         check that the results are usable as constant expressions.
41439
41440 2009-05-31  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41443         * tests/test-memchr.c (main): Check that memchr does not read past the
41444         first occurrence of the byte.
41445         * tests/test-strstr.c (main): Update comment.
41446         Suggested by Eric Blake.
41447
41448 2009-05-30  Bruno Haible  <bruno@clisp.org>
41449
41450         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41451         detail how to use dumpbin.
41452         Reported by David Byron <dbyron@dbyron.com>.
41453
41454 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41455
41456         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41457
41458 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41459
41460         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41461
41462 2009-05-28  Bruno Haible  <bruno@clisp.org>
41463
41464         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41465         build-aux/ files.
41466
41467 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41468
41469         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41470
41471 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41472
41473         * gnulib-tool (sed_transform_main_lib_file)
41474         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41475         regexps.
41476
41477 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41478
41479         * tests/test-strstr.c: Add another self-test.
41480         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41481         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41482
41483 2009-05-23  Bruno Haible  <bruno@clisp.org>
41484
41485         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41486         change.
41487
41488 2009-05-21  Bruno Haible  <bruno@clisp.org>
41489
41490         Simplify use of mode_t varargs.
41491         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41492         uses 'mode_t' or 'int'.
41493         * lib/openat.c (openat): Likewise.
41494         * lib/open-safer.c (open_safer): Likewise.
41495         * m4/mode_t.m4: New file.
41496         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41497         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41499         * modules/open (Files): Add m4/mode_t.m4.
41500         * modules/openat (Files): Likewise.
41501         * modules/fcntl-safer (Files): Likewise.
41502         Suggested by Eric Blake.
41503
41504 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41505
41506         * doc/glibc-functions/fallocate.texi: New file.
41507         * doc/gnulib.texi: Include it.
41508
41509 2009-05-21  Eric Blake  <ebb9@byu.net>
41510             Bruno Haible  <bruno@clisp.org>
41511
41512         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41513         invocations.
41514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41515
41516 2009-05-21  Eric Blake  <ebb9@byu.net>
41517             Bruno Haible  <bruno@clisp.org>
41518
41519         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41520         include_next. Fix of 2008-11-20 commit.
41521         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41522         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41523         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41524         NEXT_MATH_H.
41525         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41526         instead of NEXT_MATH_H.
41527
41528 2009-05-21  Bruno Haible  <bruno@clisp.org>
41529
41530         Avoid redefinition warnings for SIZE_MAX.
41531         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41532         Reported by Simon Josefsson.
41533
41534 2009-05-21  Bruno Haible  <bruno@clisp.org>
41535
41536         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41537         AC_CACHE_VAL.
41538
41539 2009-05-20  Bruno Haible  <bruno@clisp.org>
41540
41541         Make zeroptr.h work on mingw.
41542         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41543         mprotect.
41544         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41545         * modules/memchr2-tests (configure.ac): Likewise.
41546         * modules/memcmp-tests (configure.ac): Likewise.
41547         * modules/memmem-tests (configure.ac): Likewise.
41548         * modules/memrchr-tests (configure.ac): Likewise.
41549         Reported by Simon Josefsson.
41550
41551 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41552
41553         * tests/test-glob.c: Include string.h for strcmp prototype.
41554
41555 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41556
41557         * modules/getdelim (Depends-on): Add explicit stdint, although it
41558         was implicitly already pulled in via realloc-posix.
41559         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41560
41561 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41562
41563         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41564         G. Christensen" <tgc@jupiterrise.com>.
41565         * m4/sys_socket_h.m4: Check for sa_family_t.
41566         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41567         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41568         * tests/test-sys_socket.c: Check that sa_family_t works.
41569
41570 2009-05-18  Eric Blake  <ebb9@byu.net>
41571
41572         maint.mk: allow gnulib_dir in VPATH build
41573         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41574
41575 2009-05-15  Jim Meyering  <meyering@redhat.com>
41576
41577         maint.mk: Give gnulib_dir a default definition.
41578         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41579         Thus, most packages no longer need to specify this variable in cfg.mk
41580
41581 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41582
41583         rename.m4: fix typos that would make non-mingw cross-configure fail
41584         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41585
41586 2009-05-13  Eric Blake  <ebb9@byu.net>
41587
41588         mmap-anon: avoid out-of-order autoconf expansion
41589         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41590         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41591         * modules/memchr-tests (Depends-on): Add extensions.
41592         * modules/memchr2-tests (Depends-on): Add extensions.
41593         * modules/memcmp-tests (Depends-on): Add extensions.
41594         * modules/memmem-tests (Depends-on): Add extensions.
41595         * modules/memrchr-tests (Depends-on): Add extensions.
41596
41597 2009-05-13  Bruno Haible  <bruno@clisp.org>
41598
41599         Make some tests ISO C 99 compliant.
41600         * tests/zerosize-ptr.h: New file.
41601         * tests/test-memchr.c: Include zerosize-ptr.h.
41602         (main): Use a zero-size object pointer instead of NULL.
41603         * tests/test-memchr2.c: Include zerosize-ptr.h.
41604         (main): Use a zero-size object pointer instead of NULL.
41605         * tests/test-memcmp.c: Include zerosize-ptr.h.
41606         (main): Use a zero-size object pointer instead of NULL.
41607         * tests/test-memmem.c: Include zerosize-ptr.h.
41608         (main): Use a zero-size object pointer instead of NULL.
41609         * tests/test-memrchr.c: Include zerosize-ptr.h.
41610         (main): Use a zero-size object pointer instead of NULL.
41611         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41612         m4/mmap-anon.m4.
41613         (Depends-on): Add getpagesize.
41614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41615         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41616         m4/mmap-anon.m4.
41617         (Depends-on): Add getpagesize.
41618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41619         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41620         m4/mmap-anon.m4.
41621         (Depends-on): Add getpagesize.
41622         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41623         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41624         m4/mmap-anon.m4.
41625         (Depends-on): Add getpagesize.
41626         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41627         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41628         m4/mmap-anon.m4.
41629         (Depends-on): Add getpagesize.
41630         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41631
41632 2009-05-12  Bruno Haible  <bruno@clisp.org>
41633
41634         Tests for module 'alignof'.
41635         * modules/alignof-tests: New file.
41636         * tests/test-alignof.c: New file.
41637
41638 2009-05-12  Bruno Haible  <bruno@clisp.org>
41639
41640         Fix alignof macro.
41641         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41642         vendor compilers that are always correct.
41643
41644 2009-05-12  Bruno Haible  <bruno@clisp.org>
41645
41646         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41648         not whether its fully works.
41649
41650 2009-05-12  Bruno Haible  <bruno@clisp.org>
41651
41652         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41653
41654 2009-05-12  Jim Meyering  <meyering@redhat.com>
41655
41656         * top/maint.mk: Adjust backslash alignment.
41657
41658 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41659
41660         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41661
41662 2009-05-11  Eric Blake  <ebb9@byu.net>
41663
41664         argp: avoid undefined behavior
41665         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41666         macros.
41667
41668 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41669
41670         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41671         user.name to prevent git commit from complaining.
41672
41673 2009-05-10  Bruno Haible  <bruno@clisp.org>
41674
41675         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41676         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41677         it rewrites every file name only once.
41678         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41679
41680 2009-05-08  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41683         instead of 'max'.
41684
41685 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41686
41687         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41688         sockaddr_storage test.
41689
41690 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41691
41692         * modules/sys_socket (Makefile.am): Substitute
41693         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41694         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41695         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41696         * tests/test-sys_socket.c: Check sockaddr_storage.
41697
41698 2009-05-08  Bruno Haible  <bruno@clisp.org>
41699
41700         New module 'alignof'.
41701         * lib/alignof.h: New file.
41702         * modules/alignof: New file.
41703
41704 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41705             Bruno Haible  <bruno@clisp.org>
41706
41707         Fix test-file-has-acl on FreeBSD.
41708         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41709         mask is implicitly added.
41710         * tests/test-file-has-acl.c: Include <signal.h>.
41711         (main): Terminate the test after 5 seconds.
41712         * modules/acl-tests (configure.ac): Check for alarm function.
41713
41714 2009-05-04  Bruno Haible  <bruno@clisp.org>
41715
41716         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41717         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41718         * modules/errno (configure.ac): Drop AC_REQUIRE.
41719         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41720         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41721
41722 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41723
41724         * modules/glob-tests: New module.
41725         * tests/test-glob.c: Add.
41726
41727 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41728
41729         * modules/fnmatch-tests: New module.
41730         * tests/test-fnmatch.c: Add.
41731
41732 2009-05-04  Eric Blake  <ebb9@byu.net>
41733
41734         maint: make the new no-submodule-changes rule VPATH-safe
41735         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41736
41737 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41738             Bruno Haible  <bruno@clisp.org>
41739
41740         acl: Fix infinite loop on FreeBSD.
41741         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41742         of return value from acl_get_entry.
41743         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41744         Likewise.
41745
41746 2009-05-03  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/acl-internal.h (acl_entries): Clarify return value.
41749         * lib/acl_entries.c (acl_entries): Likewise.
41750
41751 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41752
41753         Bug fix in acl module.
41754         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41755
41756 2009-05-03  Bruno Haible  <bruno@clisp.org>
41757
41758         Create gperf-generated file in the source dir, not in the build dir.
41759         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41760         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41761         * modules/unicase/locale-language (unicase/locale-languages.h):
41762         Likewise.
41763         * modules/unicase/special-casing (unicase/special-casing-table.h):
41764         Likewise.
41765         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41766         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41767         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41768         Reported by Ralf Wildenhues.
41769
41770 2009-05-03  Bruno Haible  <bruno@clisp.org>
41771
41772         * modules/fnmatch (Description, configure.ac): Taken from
41773         fnmatch-posix.
41774         * modules/fnmatch-posix: Turn into a symbolic reference to the
41775         'fnmatch' module, and deprecate.
41776         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41777
41778 2009-05-03  Bruno Haible  <bruno@clisp.org>
41779
41780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41781         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41782         Reported by Ralf Wildenhues.
41783
41784 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41785
41786         * m4/fnmatch.m4: Fix fnmatch re-define.
41787
41788 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41789
41790         priv-set: new module and tests; adapt write-any-file
41791         * lib/priv-set.c: New file.
41792         * lib/priv-set.h: New file.
41793         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41794         * lib/write-any-file.c: Simplify by using priv-set module.
41795         * m4/priv-set.m4: New file.
41796         * modules/priv-set: New file.
41797         * modules/unlinkdir: Add dependency on priv-set module.
41798         * modules/write-any-file: Likewise.
41799
41800         Tests for module 'priv-set'.
41801         * modules/priv-set-tests: New file.
41802         * tests/test-priv-set.c: New file.
41803
41804 2009-05-03  Jim Meyering  <meyering@redhat.com>
41805             Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41808         use the converted UTF-8 variant of the name instead.
41809
41810 2009-05-03  Jim Meyering  <meyering@redhat.com>
41811
41812         tests: tighten some getdate tests
41813         * tests/test-getdate.c (main): Tighten tests: require equality,
41814         not just greater than.  Set TZ envvar to UTC0.
41815
41816 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41817
41818         getdate: correctly interpret "next monday" when run on a Monday
41819         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41820         that e.g., "next tues" (when run on a tuesday) results in a date
41821         that is one week in the future, and not today's date.
41822         I.e., add a week when the wday is the same as the current one.
41823         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41824         and earlier by Martin Bernreuther and Jan Minář.
41825         * tests/test-getdate.c (main): Check that "next DAY" is always in
41826         the future and that "last DAY" is always in the past.
41827
41828 2009-05-02  Jim Meyering  <meyering@redhat.com>
41829
41830         build: ensure that a release build fails when a submodule is unclean
41831         * top/maint.mk (no-submodule-changes): New rule.
41832         (alpha beta major): Depend on it.
41833
41834 2009-05-02  Bruno Haible  <bruno@clisp.org>
41835
41836         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41837         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41838         shell variable gl_fnmatch_required to detect which variant is
41839         requested.
41840         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41841         gl_FUNC_FNMATCH_POSIX.
41842         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41843         exclude fnmatch-posix.
41844
41845 2009-05-02  Bruno Haible  <bruno@clisp.org>
41846
41847         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41848         * modules/mbsrtowcs (License): Change to LGPLv2+.
41849         * modules/strnlen1 (License): Likewise.
41850         Reported by Simon Josefsson.
41851
41852 2009-05-02  Bruno Haible  <bruno@clisp.org>
41853
41854         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41855         "cross".
41856         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41857         gnulib-tool was called with option --source-base=lib.
41858
41859 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41860
41861         Use automake *-local hooks without commands, for extensibility.
41862         * modules/localcharset (Makefile.am): Rename install-exec-local
41863         rule to install-exec-localcharset, and make it a prerequisite of
41864         install-exec-local.  Likewise, rename the uninstall-local rule to
41865         uninstall-localcharset, and make it a prerequisite of the former.
41866
41867 2009-05-01  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41870         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41871         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41873         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41874         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41875         m4/locale-zh.m4, m4/codeset.m4.
41876
41877         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41878         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41879         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41880         m4/locale-zh.m4.
41881
41882         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41883         REPLACE_WCRTOMB if mbstate_t must be replaced.
41884         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41885         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41886
41887 2009-05-01  Bruno Haible  <bruno@clisp.org>
41888
41889         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41890         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41891         dngettext, dcngettext, textdomain, bindtextdomain,
41892         bind_textdomain_codeset): Undefine before redefining.
41893
41894 2009-04-30  Bruno Haible  <bruno@clisp.org>
41895
41896         Fix bug introduced on 2009-04-25.
41897         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41898         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41899         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41900         is defined.
41901         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41902         is defined.
41903         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41904         is defined.
41905         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41906
41907 2009-04-28  Bruno Haible  <bruno@clisp.org>
41908
41909         Comment tweaks.
41910         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41911         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41912         * lib/unicase.h (u*_casexfrm): Likewise.
41913         Reported by Paolo Bonzini.
41914
41915 2009-04-28  Bruno Haible  <bruno@clisp.org>
41916
41917         Fix a compilation error.
41918         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41919         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41920         Reported by Jim Meyering.
41921
41922 2009-04-27  Bruno Haible  <bruno@clisp.org>
41923
41924         New module 'libunistring'.
41925         * modules/libunistring: New file.
41926         * m4/libunistring.m4: New file.
41927         * MODULES.html.sh (Unicode string functions): Add it.
41928
41929 2009-04-27  Eric Blake  <ebb9@byu.net>
41930
41931         maint.mk: allow package-specific header to provide <config.h>
41932         * top/maint.mk (sc_require_config_h): New variable.
41933         (sc_require_config_h, sc_require_config_h_first): Use it.
41934
41935 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41936
41937         * top/maint.mk (sc_avoid_if_before_free): Except
41938         useless-if-before-free script.
41939
41940 2009-04-27  Eric Blake  <ebb9@byu.net>
41941
41942         maintainer-makefile: depend on all required helper scripts
41943         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41944         useless-if-before-free.
41945         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41946         version, rather than assuming gnulib checkout is available.
41947         Reported by Simen Josefsson.
41948
41949 2009-04-26  Bruno Haible  <bruno@clisp.org>
41950
41951         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41953         "../" or "..".
41954
41955 2009-04-26  Bruno Haible  <bruno@clisp.org>
41956
41957         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41958         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41959         AC_LIB_HAVE_LINKFLAGS.
41960
41961 2009-04-26  Bruno Haible  <bruno@clisp.org>
41962
41963         Simplify calling convention of u*_conv_from_encoding.
41964         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41965         u32_conv_from_encoding): Expect a resultbuf argument and return the
41966         result directly as a pointer.
41967         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41968         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41969         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41970         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41971         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41972         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41973         Update.
41974         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41975         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41976         * lib/vasnprintf.c (VASNPRINTF): Update.
41977         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41978         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41979         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41980         * NEWS: Mention the change.
41981
41982 2009-04-26  Bruno Haible  <bruno@clisp.org>
41983
41984         Simplify calling convention of u*_conv_to_encoding.
41985         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41986         u32_conv_to_encoding): Expect a resultbuf argument and return the
41987         result directly as a pointer.
41988         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41989         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41990         freeing scaled_offsets if mem_iconveha failed.
41991         * lib/unicase/u-casexfrm.h (FUNC): Update.
41992         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41993         * lib/vasnprintf.c (VASNPRINTF): Update.
41994         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41995         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41996         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41997         * NEWS: Mention the change.
41998
41999 2009-04-26  Bruno Haible  <bruno@clisp.org>
42000
42001         Avoid test failures on AIX and OSF/1.
42002         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
42003         malloc(0).
42004         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42005         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42006         Likewise.
42007         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
42008         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
42009         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
42010         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
42011         * doc/posix-functions/malloc.texi: Document the portability problem
42012         related to malloc(0).
42013
42014 2009-04-26  Bruno Haible  <bruno@clisp.org>
42015
42016         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
42017         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
42018         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
42019
42020 2009-04-25  Bruno Haible  <bruno@clisp.org>
42021
42022         Avoid link error when creating a namespace clean library.
42023         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
42024         as macro with arguments if already defined as an alias.
42025         * lib/signbitf.c (gl_signbitf): Don't undefine.
42026         * lib/signbitd.c (gl_signbitd): Don't undefine.
42027         * lib/signbitl.c (gl_signbitl): Don't undefine.
42028
42029 2009-04-25  Jim Meyering  <meyering@redhat.com>
42030
42031         vc-list-files: fix another quoting bug
42032         * build-aux/vc-list-files: Avoid sed backslash expansion
42033         of pathological directory names.
42034
42035 2009-04-25  Eric Blake  <ebb9@byu.net>
42036
42037         vc-list-files: fix shell quoting error
42038         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
42039         timestamp.
42040
42041 2009-04-25  Jim Meyering  <meyering@redhat.com>
42042
42043         vc-list-files: restore lost functionality with subdir argument
42044         * build-aux/vc-list-files: When given a non-"." sub-directory
42045         argument, substitute the $dir/ prefix back onto each resulting name.
42046         Otherwise, coreutils' root_tests check would fail.
42047
42048 2009-04-24  Eric Blake  <ebb9@byu.net>
42049
42050         vc-list-files: ignore git symlinks
42051         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
42052         than ls-files, to ignore git symlinks.
42053
42054         maint.mk: import improvements from m4
42055         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
42056         (move_if_change): Delete unused macro.
42057         (news-date-check, vc-diff-check): Support VPATH builds.
42058         (announcement): Likewise.  Split --bootstrap-tools list...
42059         (boostrap-tools): ...into separate list, which can be overridden
42060         in cfg.mk.
42061         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
42062         requiring dependency on useless-if-before-free module.
42063         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
42064         Support VPATH builds.
42065
42066 2009-04-24  Jim Meyering  <meyering@redhat.com>
42067
42068         maint.mk: remove coreutils-specific rules and variables
42069         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
42070         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
42071         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
42072
42073         maint.mk: remove obsolete rule
42074         * top/maint.mk (rel-check): Remove rule.
42075         (WGET, WGETFLAGS): Remove now-unused variables.
42076
42077 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42078
42079         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
42080         consistency.
42081
42082         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
42083         '$(PATH_SEPARATOR)' instead of ':'.
42084
42085 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42086
42087         * lib/getopt1.c (main): Use 'const' for static array.
42088
42089 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42090
42091         * top/maint.mk: Sync with coreutils.
42092         * NEWS: Explain incompatibilities.
42093
42094 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42095             Bruno Haible  <bruno@clisp.org>
42096
42097         Fix cross-compilation results.
42098         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
42099         statement, as third argument of AC_TRY_RUN.
42100         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42101         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42102         Likewise.
42103         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42104         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42105         Likewise.
42106         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42107         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
42108         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
42109
42110 2009-04-20  Bruno Haible  <bruno@clisp.org>
42111
42112         Avoid test failure on mingw.
42113         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
42114
42115 2009-04-20  Bruno Haible  <bruno@clisp.org>
42116
42117         Avoid compilation error on mingw.
42118         * modules/localename-tests (Depends-on): Add locale.
42119
42120 2009-04-19  Bruno Haible  <bruno@clisp.org>
42121
42122         Support for building a shared library on Windows platforms.
42123         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
42124         (main): Test the presence of UNINORM_NFC here.
42125         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
42126         (main): Test the presence of UNINORM_NFD here.
42127         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
42128         (main): Test the presence of UNINORM_NFKC here.
42129         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
42130         (main): Test the presence of UNINORM_NFKD here.
42131
42132 2009-04-19  Bruno Haible  <bruno@clisp.org>
42133
42134         Avoid a compiler warning.
42135         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
42136         Change type of variable 'sequence'.
42137
42138 2009-04-19  Bruno Haible  <bruno@clisp.org>
42139
42140         * modules/configmake (Makefile.am): When the contents of configmake.h
42141         does not change, arrange to preserve its modification time.
42142
42143 2009-04-17  Simon Josefsson  <simon@josefsson.org>
42144
42145         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
42146         gettext domain.
42147
42148 2009-04-16  Jim Meyering  <meyering@redhat.com>
42149
42150         useless-if-before-free: improve conversion code
42151         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42152         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42153
42154 2009-04-14  Bruno Haible  <bruno@clisp.org>
42155
42156         * modules/fcntl (Depends-on): Add extensions.
42157         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42158
42159 2009-04-12  Ben Pfaff  <blp@gnu.org>
42160
42161         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42162         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42163
42164 2009-03-20  Ben Pfaff  <blp@gnu.org>
42165
42166         Make rename replace existing destinations on Windows.
42167         * m4/rename.m4: Add test for Mingw.
42168         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42169         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42170         * doc/posix-functions/rename.texi: Document.
42171
42172 2009-04-10  Bruno Haible  <bruno@clisp.org>
42173
42174         New include file "iconveh.h".
42175         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42176         * lib/striconveh.h: Include it.
42177         (enum iconv_ilseq_handler): Remove definition.
42178         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42179         striconveh.h.
42180         * lib/striconveha.c: Include striconveh.h.
42181         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42182         * modules/striconveh (Files): Add lib/iconveh.h.
42183         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42184         lib/striconveh.h.
42185
42186 2009-04-10  Bruno Haible  <bruno@clisp.org>
42187
42188         * lib/uniconv.h: Update comment.
42189
42190 2009-04-10  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42193         always.
42194         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42195         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42196         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42197         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42198         "unistring-notinline.h", so that the function gets defined always.
42199         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42200         * lib/unistr/u8-uctomb.c: Likewise.
42201         * lib/unistr/u16-mbtouc.c: Likewise.
42202         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42203         * lib/unistr/u16-uctomb.c: Likewise.
42204         * lib/unistr/u32-mbtouc.c: Likewise.
42205         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42206         * lib/unistr/u32-uctomb.c: Likewise.
42207
42208 2009-04-10  Bruno Haible  <bruno@clisp.org>
42209
42210         Mark 'utime' obsolete.
42211         * modules/utime (Status, Notice): New sections.
42212         Suggested by Jim Meyering.
42213
42214         Fix cross-compile guess for utime test.
42215         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42216         autoconf.
42217         * doc/posix-functions/utime.texi: Give more precisions.
42218         Reported by Jan <ipif@ymail.com>.
42219
42220 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42221
42222         filevercmp: correct today's change
42223         * lib/filevercmp.c: Also handle coreutils' test inputs.
42224         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42225
42226         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42227         for reporting it.
42228         * lib/filevercmp.c: Special handle for "", "." and "..".
42229         * tests/test-filevercmp.c: Enlarge the set suite.
42230
42231 2009-04-07  Jim Meyering  <meyering@redhat.com>
42232
42233         useless-if-before-free: show how to remove braced useless free, too
42234         * build-aux/useless-if-before-free: still only in a comment, though.
42235
42236 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42237
42238         maint.mk: import changes to syntax-check macros from coreutils
42239         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42240         Use them in the relevant macros.
42241
42242 2009-04-06  Bruno Haible  <bruno@clisp.org>
42243
42244         Fix unportable use of bit-fields.
42245         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42246         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42247         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42248
42249 2009-04-06  Bruno Haible  <bruno@clisp.org>
42250
42251         Avoid test failures on AIX and OSF/1.
42252         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42253         that malloc(0) = NULL.
42254         * tests/unicase/test-u8-tolower.c (check): Likewise.
42255         * tests/unicase/test-u8-totitle.c (check): Likewise.
42256         * tests/unicase/test-u8-toupper.c (check): Likewise.
42257         * tests/unicase/test-u16-casefold.c (check): Likewise.
42258         * tests/unicase/test-u16-tolower.c (check): Likewise.
42259         * tests/unicase/test-u16-totitle.c (check): Likewise.
42260         * tests/unicase/test-u16-toupper.c (check): Likewise.
42261         * tests/unicase/test-u32-casefold.c (check): Likewise.
42262         * tests/unicase/test-u32-tolower.c (check): Likewise.
42263         * tests/unicase/test-u32-totitle.c (check): Likewise.
42264         * tests/unicase/test-u32-toupper.c (check): Likewise.
42265         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42266         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42267         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42268         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42269         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42270         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42271         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42272         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42273         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42274         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42275         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42276         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42277
42278 2009-04-05  Bruno Haible  <bruno@clisp.org>
42279
42280         Work around an autoconf limitation.
42281         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42282         comment line if it would be longer than 3 KB.
42283
42284 2009-04-05  Bruno Haible  <bruno@clisp.org>
42285
42286         Avoid test failure with libiconv-1.13.
42287         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42288         of the expected test results.
42289
42290 2009-04-05  Bruno Haible  <bruno@clisp.org>
42291
42292         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42293         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42294         that it should be installed.
42295
42296 2009-04-05  Bruno Haible  <bruno@clisp.org>
42297
42298         * gnulib-tool: New option --copy-file.
42299         (func_usage): Document it.
42300         (func_dest_tmpfilename): Moved out of func_import.
42301         (func_add_file, func_update_file): New functions, extracted from
42302         func_import.
42303         (func_import): Update.
42304
42305 2009-04-05  Karl Berry  <karl@gnu.org>
42306
42307         * README: prominently mention gnulib-tool.
42308         Rearrange sections so getting the code is near the top.
42309
42310 2009-04-05  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/unicase.h: Mention u*_cmp2.
42313         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42314         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42315         * lib/unicase/ulc-casecmp.c: Likewise.
42316         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42317         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42318         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42319         unistr/u8-cmp.
42320         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42321         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42322         unistr/u16-cmp.
42323         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42324         unistr/u32-cmp.
42325
42326         * lib/uninorm.h: Mention u*_cmp2.
42327         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42328         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42329         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42330         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42331         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42332         unistr/u8-cmp.
42333         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42334         unistr/u16-cmp.
42335         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42336         unistr/u32-cmp.
42337
42338         New module 'unistr/u32-cmp2'.
42339         * lib/unistr/u32-cmp2.c: New file.
42340         * modules/unistr/u32-cmp2: New file.
42341
42342         New module 'unistr/u16-cmp2'.
42343         * lib/unistr/u16-cmp2.c: New file.
42344         * modules/unistr/u16-cmp2: New file.
42345
42346         New module 'unistr/u8-cmp2'.
42347         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42348         * lib/unistr/u8-cmp2.c: New file.
42349         * lib/unistr/u-cmp2.h: New file.
42350         * modules/unistr/u8-cmp2: New file.
42351
42352 2009-04-05  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/unictype.h (uc_property_is_valid): New macro.
42355         * tests/unictype/test-pr_byname.c (main): Use it.
42356
42357         * lib/unistr.h: Doc fixes.
42358         * lib/uniconv.h: Doc fixes.
42359         * lib/unictype.h: Doc fixes.
42360
42361 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42362
42363         Port coreutils 7.2 to Solaris 8.
42364
42365         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42366         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42367         for Solaris 8.  This is a bit of a hack, as it means it's the
42368         caller's responsibility to add -lnsl if needed, but most likely it
42369         won't be needed since only getaddrinfo uses this and getaddrinfo
42370         isn't needed on Solaris 8.
42371
42372         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42373         problem to Solaris 8 encountered with coreutils 7.2, which
42374         resulted in a message "fnmatch.c:292: warning: passing argument 4
42375         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42376         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42377
42378 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42379
42380         * m4/ld-version-script.m4: Add FIXME comment.
42381
42382 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42383
42384         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42385         SOVERSION variable.
42386
42387 2009-04-02  Bruno Haible  <bruno@clisp.org>
42388
42389         * Makefile (info, html, dvi, pdf): Combine the rules.
42390         Suggested by Jim Meyering.
42391
42392 2009-04-01  Bruno Haible  <bruno@clisp.org>
42393
42394         * Makefile (info, html, dvi, pdf): New targets.
42395         Reported by Reuben Thomas <rrt@sc3d.org>.
42396
42397 2009-04-01  Bruno Haible  <bruno@clisp.org>
42398
42399         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42400         can be put into PATH.
42401         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42402
42403 2009-04-01  Bruno Haible  <bruno@clisp.org>
42404
42405         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42406
42407 2009-04-01  Bruno Haible  <bruno@clisp.org>
42408
42409         Rename module 'visibility'.
42410         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42411         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42412         * doc/gnulib.texi: Update.
42413         * MODULES.html.sh (Misc): Update.
42414         * NEWS: Mention the change.
42415
42416 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42417
42418         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42419         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42420         Eric Blake <ebb9@byu.net> for review.
42421         * MODULES.html.sh: Add lib-msvc-compat.
42422         * doc/gnulib.texi: Link to new section.
42423         * m4/ld-output-def.m4: New file.
42424         * doc/ld-output-def.texi: New file.
42425
42426 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42427
42428         Rename ld-version-script to lib-symbol-versions.  Suggested by
42429         Bruno Haible <bruno@clisp.org>.
42430         * modules/ld-version-script: Renamed to lib-symbol-versions.
42431         * doc/ld-version-script.texi: Fix module name.
42432         * MODULES.html.sh: Add lib-symbol-versions.
42433
42434 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42435
42436         * modules/u64-tests: New file.
42437         * tests/test-u64.c: New file.
42438
42439 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42440
42441         * MODULES.html.sh: Mention u64.
42442         * modules/u64: New module.
42443         * modules/crypto/sha512: Depend on u64 module instead of providing
42444         u64.h.
42445
42446 2009-03-27  Eric Blake  <ebb9@byu.net>
42447
42448         test-strerror: make debugging EAI_SYSTEM easier
42449         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42450         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42451         failure was EAI_SYSTEM.
42452
42453 2009-03-25  Bruno Haible  <bruno@clisp.org>
42454
42455         Fix a problem with --enable-relocatable on Solaris 7.
42456         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42457         since 2008-02-24.
42458
42459 2009-03-25  Eric Blake  <ebb9@byu.net>
42460
42461         test-sockets: avoid gcc warning
42462         * tests/test-sockets.c (main): Silence compiler warning.
42463
42464 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42465
42466         New modules nproc, pthread, contributed by Glen Lenker.
42467
42468         * MODULES.html.sh: Add pthread, nproc.
42469         * lib/nproc.c: New file.
42470         * lib/nproc.h: New file.
42471         * lib/pthread.in.h: New file.
42472         * m4/pthread.m4: New file.
42473         * modules/nproc: New file.
42474         * modules/pthread: New file.
42475
42476 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42477
42478         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42479         New variable.
42480
42481 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42482
42483         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42484         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42485         * tests/test-filevercmp.c: Add tests for backup suffixes.
42486
42487 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42488
42489         * modules/stdlib (Depends-on): Add stdint, needed when defining
42490         struct random_data on, for example, HP-UX 10.20.  Reported by
42491         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42492
42493 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42494
42495         * lib/readline.c (readline): Call fflush on stdout after printing
42496         prompt.
42497
42498 2009-03-20  Bruno Haible  <bruno@clisp.org>
42499
42500         Remove dependency from 'close' module to -lws2_32 on native Windows.
42501         * lib/close-hook.h: New file.
42502         * lib/close-hook.c: New file.
42503         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42504         w32sock.h.
42505         (_gl_close_fd_maybe_socket): Remove function.
42506         (rpl_close): Invoke execute_all_close_hooks instead of
42507         _gl_close_fd_maybe_socket.
42508         * lib/sockets.c: Include close-hook.h, w32sock.h.
42509         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42510         (close_sockets_hook): New variable.
42511         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42512         (gl_sockets_cleanup): Unregister it.
42513         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42514         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42515         * modules/close-hook: New file.
42516         * modules/close (Files): Remove lib/w32sock.h.
42517         (Depends-on): Add close-hook.
42518         (Link): Remove section.
42519         * modules/sockets (Files): Add lib/w32sock.h.
42520         (Depends-on): Add close-hook.
42521         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42522         invocation.
42523         * NEWS: Mention that LIB_CLOSE is gone.
42524
42525 2009-03-23  Eric Blake  <ebb9@byu.net>
42526
42527         signal-tests: test previous patch
42528         * tests/test-signal.c: New file.
42529         * modules/signal-tests: Likewise.
42530
42531         signal.h: always support 'volatile sig_atomic_t'
42532         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42533         (gl_SIGNAL_H_DEFAULTS): Add a default.
42534         * modules/signal (Makefile.am): Substitute if needed.
42535         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42536         users can blindly add volatile.
42537         * doc/posix-headers/signal.texi (signal.h): Document it.
42538         Reported by Matthew Woehlke.
42539
42540 2009-03-23  Jim Meyering  <meyering@redhat.com>
42541
42542         pathmax: PATH_MAX: use pathconf only when available
42543         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42544         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42545         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42546         This avoids a link failure in a PSP cross-compilation environment
42547         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42548
42549         * lib/vasnprintf.c (divide): Fix typo in comment.
42550
42551 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42552
42553         * gnulib-tool (func_filter_filelist): Fix comment.
42554
42555 2009-03-20  Bruno Haible  <bruno@clisp.org>
42556
42557         Make sockets.h self-contained.
42558         * lib/sockets.c: Include sockets.h first.
42559         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42560
42561 2009-03-19  Eric Blake  <ebb9@byu.net>
42562
42563         doc: mention more functions added in cygwin 1.7.0
42564         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42565         addition.
42566         * doc/posix-functions/log2f.texi: Likewise.
42567
42568 2009-03-19  Jim Meyering  <meyering@redhat.com>
42569
42570         fsusage: avoid syntax error due to statement-before-declaration
42571         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42572         after all declarations.  Reported by Matthew Woehlke in
42573         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42574
42575 2009-03-18  Eric Blake  <ebb9@byu.net>
42576
42577         build-aux/compile: sync from automake
42578         * build-aux/compile: New file, from automake.
42579         * config/srclist.txt: Mention build-aux/compile.
42580
42581 2009-03-17  Bruno Haible  <bruno@clisp.org>
42582
42583         * lib/git-merge-changelog.c: Fix typo in comment.
42584         Reported by Reuben Thomas <rrt@sc3d.org>.
42585
42586 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42587
42588         * m4/regex.m4: update and improve help for
42589         --without-included-regex.
42590
42591 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42592
42593         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42594         failure on missing include files.
42595
42596 2009-03-17  Eric Blake  <ebb9@byu.net>
42597
42598         doc: mention more functions added in cygwin 1.7.0
42599         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42600         addition.
42601         * doc/posix-functions/fwscanf.texi: Likewise.
42602         * doc/posix-functions/swprintf.texi: Likewise.
42603         * doc/posix-functions/swscanf.texi: Likewise.
42604         * doc/posix-functions/vfwprintf.texi: Likewise.
42605         * doc/posix-functions/vfwscanf.texi: Likewise.
42606         * doc/posix-functions/vswprintf.texi: Likewise.
42607         * doc/posix-functions/vswscanf.texi: Likewise.
42608         * doc/posix-functions/vwprintf.texi: Likewise.
42609         * doc/posix-functions/vwscanf.texi: Likewise.
42610         * doc/posix-functions/wcscasecmp.texi: Likewise.
42611         * doc/posix-functions/wcsdup.texi: Likewise.
42612         * doc/posix-functions/wcsftime.texi: Likewise.
42613         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42614         * doc/posix-functions/wprintf.texi: Likewise.
42615         * doc/posix-functions/wscanf.texi: Likewise.
42616         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42617
42618 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42619
42620         maint.mk: really add $(AM_MAKEFLAGS)
42621         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42622         was inadvertently omitted in the last commit.
42623         Spotted by Bruno Haible.
42624
42625         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42626         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42627         $(AM_MAKEFLAGS)' rather than plain `make'.
42628
42629         gnulib-tool: execute $MAKE not make
42630         * gnulib-tool: Default $MAKE to 'make'.
42631         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42632         than make.  Initialize $MAKE in the do-autobuild script.
42633
42634         gnulib-tool: use $MAKE not make in generated files
42635         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42636         make, in generated files.  Initialize $MAKE in the do-autobuild
42637         script.
42638
42639         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42640
42641         GNUmakefile: disable parallelism only for multiple, recursive targets
42642         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42643         additions in the Makefile.
42644         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42645         by Automake.
42646         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42647         are listed on the command line and at least one of them is
42648         listed in $(ALL_RECURSIVE_TARGETS).
42649
42650 2009-03-14  Bruno Haible  <bruno@clisp.org>
42651
42652         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42653         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42654         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42655         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42656         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42657         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42658         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42659         unistr/u8-uctomb.
42660         * modules/unistr/u8-strchr (Depends-on): Likewise.
42661         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42662         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42663         unistr/u16-uctomb.
42664         * modules/unistr/u16-strchr (Depends-on): Likewise.
42665         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42666
42667 2009-03-12  Bruno Haible  <bruno@clisp.org>
42668
42669         Work around select() bug on Interix 3.5.
42670         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42671         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42672         * m4/select.m4: New file.
42673         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42674         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42675         * modules/select (Files): Add m4/select.m4.
42676         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42677         * modules/nanosleep (Depends-on): Add select.
42678         * modules/poll (Depends-on): Likewise.
42679         * doc/posix-functions/select.texi: Mention the Interix bug.
42680         Reported by Markus Duft <mduft@gentoo.org>.
42681
42682         * lib/select.c: Renamed from lib/winsock-select.c.
42683         * modules/select (Files): Add lib/select.c, remove
42684         lib/winsock-select.c.
42685         (configure.ac): Update.
42686
42687 2009-03-12  Jim Meyering  <meyering@redhat.com>
42688
42689         avoid gcc warnings about unused macro definitions
42690         * lib/readtokens.c (STREQ): Remove unused definition.
42691         * lib/xmalloc.c (SIZE_MAX): Likewise.
42692         * lib/openat-die.c (N_): Likewise.
42693         * lib/mountlist.c (SIZE_MAX): Remove definition.
42694         Instead, include <stdint.h>.
42695         * lib/readutmp.c: Likewise.
42696         * modules/readutmp (Depends-on): Add stdint.
42697         * modules/mountlist (Depends-on): Add stdint.
42698         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42699
42700 2009-03-10  Bruno Haible  <bruno@clisp.org>
42701
42702         Tests for module 'mbmemcasecoll'.
42703         * modules/mbmemcasecoll-tests: New file.
42704         * tests/test-mbmemcasecoll1.sh: New file.
42705         * tests/test-mbmemcasecoll2.sh: New file.
42706         * tests/test-mbmemcasecoll3.sh: New file.
42707         * tests/test-mbmemcasecoll.c: New file.
42708
42709         New module 'mbmemcasecoll'.
42710         * lib/mbmemcasecoll.h: New file.
42711         * lib/mbmemcasecoll.c: New file.
42712         * modules/mbmemcasecoll: New file.
42713
42714         * tests/test-mbmemcasecmp.h: New file, extracted from
42715         tests/test-mbmemcasecmp.c.
42716         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42717         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42718         (main): Update.
42719         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42720
42721 2009-03-09  Bruno Haible  <bruno@clisp.org>
42722
42723         Tests for module 'mbmemcasecmp'.
42724         * modules/mbmemcasecmp-tests: New file.
42725         * tests/test-mbmemcasecmp1.sh: New file.
42726         * tests/test-mbmemcasecmp2.sh: New file.
42727         * tests/test-mbmemcasecmp3.sh: New file.
42728         * tests/test-mbmemcasecmp.c: New file.
42729
42730         New module 'mbmemcasecmp'.
42731         * lib/mbmemcasecmp.h: New file.
42732         * lib/mbmemcasecmp.c: New file.
42733         * modules/mbmemcasecmp: New file.
42734
42735 2009-03-09  Bruno Haible  <bruno@clisp.org>
42736
42737         Tests for module 'unicase/ulc-casecoll'.
42738         * modules/unicase/ulc-casecoll-tests: New file.
42739         * tests/unicase/test-ulc-casecoll1.sh: New file.
42740         * tests/unicase/test-ulc-casecoll2.sh: New file.
42741         * tests/unicase/test-ulc-casecoll.c: New file.
42742
42743         New module 'unicase/ulc-casecoll'.
42744         * lib/unicase.h (ulc_casecoll): New declaration.
42745         * lib/unicase/ulc-casecoll.c: New file.
42746         * modules/unicase/ulc-casecoll: New file.
42747
42748         New module 'unicase/ulc-casexfrm'.
42749         * lib/unicase.h (ulc_casexfrm): New declaration.
42750         * lib/unicase/ulc-casexfrm.c: New file.
42751         * modules/unicase/ulc-casexfrm: New file.
42752
42753 2009-03-09  Bruno Haible  <bruno@clisp.org>
42754
42755         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42756         invocations.
42757
42758         * m4/mbscasecmp.m4: Remove file.
42759         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42760         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42761
42762         * m4/mbscasestr.m4: Remove file.
42763         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42764         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42765
42766         * m4/mbschr.m4: Remove file.
42767         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42768         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42769
42770         * m4/mbscspn.m4: Remove file.
42771         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42772         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42773
42774         * m4/mbslen.m4: Remove file.
42775         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42776         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42777
42778         * m4/mbsncasecmp.m4: Remove file.
42779         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42780         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42781
42782         * m4/mbsnlen.m4: Remove file.
42783         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42784         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42785
42786         * m4/mbspbrk.m4: Remove file.
42787         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42788         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42789
42790         * m4/mbspcasecmp.m4: Remove file.
42791         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42792         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42793
42794         * m4/mbsrchr.m4: Remove file.
42795         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42796         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42797
42798         * m4/mbssep.m4: Remove file.
42799         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42800         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42801
42802         * m4/mbsspn.m4: Remove file.
42803         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42804         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42805
42806         * m4/mbsstr.m4: Remove file.
42807         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42808         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42809
42810         * m4/mbstok_r.m4: Remove file.
42811         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42812         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42813
42814         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42815
42816         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42817         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42818
42819         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42820
42821 2009-03-08  Bruno Haible  <bruno@clisp.org>
42822
42823         Tests for module 'unicase/ulc-casecmp'.
42824         * modules/unicase/ulc-casecmp-tests: New file.
42825         * tests/unicase/test-ulc-casecmp1.sh: New file.
42826         * tests/unicase/test-ulc-casecmp2.sh: New file.
42827         * tests/unicase/test-ulc-casecmp.c: New file.
42828
42829         New module 'unicase/ulc-casecmp'.
42830         * lib/unicase.h (ulc_casecmp): New declaration.
42831         * lib/unicase/ulc-casecmp.c: New file.
42832         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42833         'const SRC_UNIT *'.
42834         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42835         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42836         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42837         * modules/unicase/ulc-casecmp: New file.
42838
42839         Tests for module 'unicase/u32-is-cased'.
42840         * modules/unicase/u32-is-cased-tests: New file.
42841         * tests/unicase/test-u32-is-cased.c: New file.
42842
42843         Tests for module 'unicase/u16-is-cased'.
42844         * modules/unicase/u16-is-cased-tests: New file.
42845         * tests/unicase/test-u16-is-cased.c: New file.
42846
42847         Tests for module 'unicase/u8-is-cased'.
42848         * modules/unicase/u8-is-cased-tests: New file.
42849         * tests/unicase/test-u8-is-cased.c: New file.
42850         * tests/unicase/test-is-cased.h: New file.
42851
42852         New module 'unicase/u32-is-cased'.
42853         * lib/unicase/u32-is-cased.c: New file.
42854         * modules/unicase/u32-is-cased: New file.
42855
42856         New module 'unicase/u16-is-cased'.
42857         * lib/unicase/u16-is-cased.c: New file.
42858         * modules/unicase/u16-is-cased: New file.
42859
42860         New module 'unicase/u8-is-cased'.
42861         * lib/unicase/u8-is-cased.c: New file.
42862         * lib/unicase/u-is-cased.h: New file.
42863         * modules/unicase/u8-is-cased: New file.
42864
42865         Tests for module 'unicase/u32-is-casefolded'.
42866         * modules/unicase/u32-is-casefolded-tests: New file.
42867         * tests/unicase/test-u32-is-casefolded.c: New file.
42868
42869         Tests for module 'unicase/u16-is-casefolded'.
42870         * modules/unicase/u16-is-casefolded-tests: New file.
42871         * tests/unicase/test-u16-is-casefolded.c: New file.
42872
42873         Tests for module 'unicase/u8-is-casefolded'.
42874         * modules/unicase/u8-is-casefolded-tests: New file.
42875         * tests/unicase/test-u8-is-casefolded.c: New file.
42876         * tests/unicase/test-is-casefolded.h: New file.
42877
42878         New module 'unicase/u32-is-casefolded'.
42879         * lib/unicase/u32-is-casefolded.c: New file.
42880         * modules/unicase/u32-is-casefolded: New file.
42881
42882         New module 'unicase/u16-is-casefolded'.
42883         * lib/unicase/u16-is-casefolded.c: New file.
42884         * modules/unicase/u16-is-casefolded: New file.
42885
42886         New module 'unicase/u8-is-casefolded'.
42887         * lib/unicase/u8-is-casefolded.c: New file.
42888         * modules/unicase/u8-is-casefolded: New file.
42889
42890         Tests for module 'unicase/u32-is-titlecase'.
42891         * modules/unicase/u32-is-titlecase-tests: New file.
42892         * tests/unicase/test-u32-is-titlecase.c: New file.
42893
42894         Tests for module 'unicase/u16-is-titlecase'.
42895         * modules/unicase/u16-is-titlecase-tests: New file.
42896         * tests/unicase/test-u16-is-titlecase.c: New file.
42897
42898         Tests for module 'unicase/u8-is-titlecase'.
42899         * modules/unicase/u8-is-titlecase-tests: New file.
42900         * tests/unicase/test-u8-is-titlecase.c: New file.
42901         * tests/unicase/test-is-titlecase.h: New file.
42902
42903         New module 'unicase/u32-is-titlecase'.
42904         * lib/unicase/u32-is-titlecase.c: New file.
42905         * modules/unicase/u32-is-titlecase: New file.
42906
42907         New module 'unicase/u16-is-titlecase'.
42908         * lib/unicase/u16-is-titlecase.c: New file.
42909         * modules/unicase/u16-is-titlecase: New file.
42910
42911         New module 'unicase/u8-is-titlecase'.
42912         * lib/unicase/u8-is-titlecase.c: New file.
42913         * modules/unicase/u8-is-titlecase: New file.
42914
42915         Tests for module 'unicase/u32-is-lowercase'.
42916         * modules/unicase/u32-is-lowercase-tests: New file.
42917         * tests/unicase/test-u32-is-lowercase.c: New file.
42918
42919         Tests for module 'unicase/u16-is-lowercase'.
42920         * modules/unicase/u16-is-lowercase-tests: New file.
42921         * tests/unicase/test-u16-is-lowercase.c: New file.
42922
42923         Tests for module 'unicase/u8-is-lowercase'.
42924         * modules/unicase/u8-is-lowercase-tests: New file.
42925         * tests/unicase/test-u8-is-lowercase.c: New file.
42926         * tests/unicase/test-is-lowercase.h: New file.
42927
42928         New module 'unicase/u32-is-lowercase'.
42929         * lib/unicase/u32-is-lowercase.c: New file.
42930         * modules/unicase/u32-is-lowercase: New file.
42931
42932         New module 'unicase/u16-is-lowercase'.
42933         * lib/unicase/u16-is-lowercase.c: New file.
42934         * modules/unicase/u16-is-lowercase: New file.
42935
42936         New module 'unicase/u8-is-lowercase'.
42937         * lib/unicase/u8-is-lowercase.c: New file.
42938         * modules/unicase/u8-is-lowercase: New file.
42939
42940         Tests for module 'unicase/u32-is-uppercase'.
42941         * modules/unicase/u32-is-uppercase-tests: New file.
42942         * tests/unicase/test-u32-is-uppercase.c: New file.
42943
42944         Tests for module 'unicase/u16-is-uppercase'.
42945         * modules/unicase/u16-is-uppercase-tests: New file.
42946         * tests/unicase/test-u16-is-uppercase.c: New file.
42947
42948         Tests for module 'unicase/u8-is-uppercase'.
42949         * modules/unicase/u8-is-uppercase-tests: New file.
42950         * tests/unicase/test-u8-is-uppercase.c: New file.
42951         * tests/unicase/test-is-uppercase.h: New file.
42952
42953         New module 'unicase/u32-is-uppercase'.
42954         * lib/unicase/u32-is-uppercase.c: New file.
42955         * modules/unicase/u32-is-uppercase: New file.
42956
42957         New module 'unicase/u16-is-uppercase'.
42958         * lib/unicase/u16-is-uppercase.c: New file.
42959         * modules/unicase/u16-is-uppercase: New file.
42960
42961         New module 'unicase/u8-is-uppercase'.
42962         * lib/unicase/u8-is-uppercase.c: New file.
42963         * modules/unicase/u8-is-uppercase: New file.
42964
42965         New module 'unicase/u32-is-invariant'.
42966         * lib/unicase/u32-is-invariant.c: New file.
42967         * modules/unicase/u32-is-invariant: New file.
42968
42969         New module 'unicase/u16-is-invariant'.
42970         * lib/unicase/u16-is-invariant.c: New file.
42971         * modules/unicase/u16-is-invariant: New file.
42972
42973         New module 'unicase/u8-is-invariant'.
42974         * lib/unicase/u8-is-invariant.c: New file.
42975         * lib/unicase/invariant.h: New file.
42976         * lib/unicase/u-is-invariant.h: New file.
42977         * modules/unicase/u8-is-invariant: New file.
42978
42979         Tests for module 'unicase/u32-casecoll'.
42980         * modules/unicase/u32-casecoll-tests: New file.
42981         * tests/unicase/test-u32-casecoll.c: New file.
42982
42983         Tests for module 'unicase/u16-casecoll'.
42984         * modules/unicase/u16-casecoll-tests: New file.
42985         * tests/unicase/test-u16-casecoll.c: New file.
42986
42987         Tests for module 'unicase/u8-casecoll'.
42988         * modules/unicase/u8-casecoll-tests: New file.
42989         * tests/unicase/test-u8-casecoll.c: New file.
42990
42991         New module 'unicase/u32-casecoll'.
42992         * lib/unicase/u32-casecoll.c: New file.
42993         * modules/unicase/u32-casecoll: New file.
42994
42995         New module 'unicase/u16-casecoll'.
42996         * lib/unicase/u16-casecoll.c: New file.
42997         * modules/unicase/u16-casecoll: New file.
42998
42999         New module 'unicase/u8-casecoll'.
43000         * lib/unicase/u8-casecoll.c: New file.
43001         * lib/unicase/u-casecoll.h: New file.
43002         * modules/unicase/u8-casecoll: New file.
43003
43004         New module 'unicase/u32-casexfrm'.
43005         * lib/unicase/u32-casexfrm.c: New file.
43006         * modules/unicase/u32-casexfrm: New file.
43007
43008         New module 'unicase/u16-casexfrm'.
43009         * lib/unicase/u16-casexfrm.c: New file.
43010         * modules/unicase/u16-casexfrm: New file.
43011
43012         New module 'unicase/u8-casexfrm'.
43013         * lib/unicase/u8-casexfrm.c: New file.
43014         * lib/unicase/u-casexfrm.h: New file.
43015         * modules/unicase/u8-casexfrm: New file.
43016
43017         Tests for module 'unicase/u32-casecmp'.
43018         * modules/unicase/u32-casecmp-tests: New file.
43019         * tests/unicase/test-u32-casecmp.c: New file.
43020
43021         Tests for module 'unicase/u16-casecmp'.
43022         * modules/unicase/u16-casecmp-tests: New file.
43023         * tests/unicase/test-u16-casecmp.c: New file.
43024
43025         Tests for module 'unicase/u8-casecmp'.
43026         * modules/unicase/u8-casecmp-tests: New file.
43027         * tests/unicase/test-u8-casecmp.c: New file.
43028         * tests/unicase/test-casecmp.h: New file.
43029
43030         New module 'unicase/u32-casecmp'.
43031         * lib/unicase/u32-casecmp.c: New file.
43032         * modules/unicase/u32-casecmp: New file.
43033
43034         New module 'unicase/u16-casecmp'.
43035         * lib/unicase/u16-casecmp.c: New file.
43036         * modules/unicase/u16-casecmp: New file.
43037
43038         New module 'unicase/u8-casecmp'.
43039         * lib/unicase/u8-casecmp.c: New file.
43040         * lib/unicase/u-casecmp.h: New file.
43041         * modules/unicase/u8-casecmp: New file.
43042
43043         Tests for module 'unicase/u32-casefold'.
43044         * modules/unicase/u32-casefold-tests: New file.
43045         * tests/unicase/test-u32-casefold.c: New file.
43046
43047         Tests for module 'unicase/u16-casefold'.
43048         * modules/unicase/u16-casefold-tests: New file.
43049         * tests/unicase/test-u16-casefold.c: New file.
43050
43051         Tests for module 'unicase/u8-casefold'.
43052         * modules/unicase/u8-casefold-tests: New file.
43053         * tests/unicase/test-u8-casefold.c: New file.
43054
43055         New module 'unicase/u32-casefold'.
43056         * lib/unicase/u32-casefold.c: New file.
43057         * modules/unicase/u32-casefold: New file.
43058
43059         New module 'unicase/u16-casefold'.
43060         * lib/unicase/u16-casefold.c: New file.
43061         * modules/unicase/u16-casefold: New file.
43062
43063         New module 'unicase/u8-casefold'.
43064         * lib/unicase/u8-casefold.c: New file.
43065         * lib/unicase/u-casefold.h: New file.
43066         * modules/unicase/u8-casefold: New file.
43067
43068         New module 'unicase/tocasefold'.
43069         * lib/unicase/casefold.h: New file.
43070         * lib/unicase/tocasefold.c: New file.
43071         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
43072         * modules/unicase/tocasefold: New file.
43073
43074         Tests for module 'unicase/u32-totitle'.
43075         * modules/unicase/u32-totitle-tests: New file.
43076         * tests/unicase/test-u32-totitle.c: New file.
43077
43078         Tests for module 'unicase/u16-totitle'.
43079         * modules/unicase/u16-totitle-tests: New file.
43080         * tests/unicase/test-u16-totitle.c: New file.
43081
43082         Tests for module 'unicase/u8-totitle'.
43083         * modules/unicase/u8-totitle-tests: New file.
43084         * tests/unicase/test-u8-totitle.c: New file.
43085
43086         New module 'unicase/u32-totitle'.
43087         * lib/unicase/u32-totitle.c: New file.
43088         * modules/unicase/u32-totitle: New file.
43089
43090         New module 'unicase/u16-totitle'.
43091         * lib/unicase/u16-totitle.c: New file.
43092         * modules/unicase/u16-totitle: New file.
43093
43094         New module 'unicase/u8-totitle'.
43095         * lib/unicase/u8-totitle.c: New file.
43096         * lib/unicase/u-totitle.h: New file.
43097         * modules/unicase/u8-totitle: New file.
43098
43099         Tests for module 'unicase/u32-tolower'.
43100         * modules/unicase/u32-tolower-tests: New file.
43101         * tests/unicase/test-u32-tolower.c: New file.
43102
43103         Tests for module 'unicase/u16-tolower'.
43104         * modules/unicase/u16-tolower-tests: New file.
43105         * tests/unicase/test-u16-tolower.c: New file.
43106
43107         Tests for module 'unicase/u8-tolower'.
43108         * modules/unicase/u8-tolower-tests: New file.
43109         * tests/unicase/test-u8-tolower.c: New file.
43110
43111         New module 'unicase/u32-tolower'.
43112         * lib/unicase/u32-tolower.c: New file.
43113         * modules/unicase/u32-tolower: New file.
43114
43115         New module 'unicase/u16-tolower'.
43116         * lib/unicase/u16-tolower.c: New file.
43117         * modules/unicase/u16-tolower: New file.
43118
43119         New module 'unicase/u8-tolower'.
43120         * lib/unicase/u8-tolower.c: New file.
43121         * modules/unicase/u8-tolower: New file.
43122
43123         Tests for module 'unicase/u32-toupper'.
43124         * modules/unicase/u32-toupper-tests: New file.
43125         * tests/unicase/test-u32-toupper.c: New file.
43126
43127         Tests for module 'unicase/u16-toupper'.
43128         * modules/unicase/u16-toupper-tests: New file.
43129         * tests/unicase/test-u16-toupper.c: New file.
43130
43131         Tests for module 'unicase/u8-toupper'.
43132         * modules/unicase/u8-toupper-tests: New file.
43133         * tests/unicase/test-u8-toupper.c: New file.
43134
43135         New module 'unicase/u32-toupper'.
43136         * lib/unicase/u32-toupper.c: New file.
43137         * modules/unicase/u32-toupper: New file.
43138
43139         New module 'unicase/u16-toupper'.
43140         * lib/unicase/u16-toupper.c: New file.
43141         * modules/unicase/u16-toupper: New file.
43142
43143         New module 'unicase/u8-toupper'.
43144         * lib/unicase/u8-toupper.c: New file.
43145         * modules/unicase/u8-toupper: New file.
43146
43147         New module 'unicase/u32-casemap'.
43148         * lib/unicase/u32-casemap.c: New file.
43149         * modules/unicase/u32-casemap: New file.
43150
43151         New module 'unicase/u16-casemap'.
43152         * lib/unicase/u16-casemap.c: New file.
43153         * modules/unicase/u16-casemap: New file.
43154
43155         New module 'unicase/u8-casemap'.
43156         * lib/unicase/unicasemap.h: New file.
43157         * lib/unicase/u8-casemap.c: New file.
43158         * lib/unicase/u-casemap.h: New file.
43159         * modules/unicase/u8-casemap: New file.
43160
43161         New module 'unicase/special-casing'.
43162         * lib/unicase/special-casing.h: New file.
43163         * lib/unicase/special-casing.c: New file.
43164         * lib/unicase/special-casing-table.gperf: New file, generated by
43165         gen-uni-tables.c.
43166         * modules/unicase/special-casing: New file.
43167
43168         Tests for module 'unicase/locale-language'.
43169         * modules/unicase/locale-language-tests: New file.
43170         * tests/unicase/test-locale-language.sh: New file.
43171         * tests/unicase/test-locale-language.c: New file.
43172
43173         New module 'unicase/locale-language'.
43174         * lib/unicase/locale-language.c: New file.
43175         * lib/unicase/locale-languages.gperf: New file.
43176         * modules/unicase/locale-language: New file.
43177
43178         Generate more tables for case conversion and case folding.
43179         * lib/gen-uni-tables.c (SCC_*): New enum items.
43180         (struct special_casing_rule): New type.
43181         (casing_rules, num_casing_rules, allocated_casing_rules): New
43182         variables.
43183         (add_casing_rule, fill_casing_rules): New functions.
43184         (struct casefold_rule): New type.
43185         (casefolding_rules, num_casefolding_rules,
43186         allocated_casefolding_rules): New variables.
43187         (fill_casefolding_rules): New function.
43188         (unicode_casefold): New variable.
43189         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43190         sort_casing_rules, output_casing_rules): New functions.
43191         (main): Accept to more arguments: SpecialCasing.txt and
43192         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43193         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43194         Output mapping for casefolding.
43195
43196         * lib/unicase.h: Include stdbool.h, uninorm.h.
43197         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43198         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43199         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43200         arguments.
43201         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43202         resultp arguments.
43203         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43204         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43205         resultp arguments.
43206         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43207         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43208         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43209         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43210         declarations.
43211         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43212
43213 2009-03-08  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43216         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43217         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43218         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43219
43220 2009-03-07  Bruno Haible  <bruno@clisp.org>
43221
43222         Adjust u*_normcmp, u*_normcoll API.
43223         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43224         u16_normcoll, u32_normcoll): Change failure conventions.
43225         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43226         errno and return -1.
43227         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43228
43229 2009-03-07  Bruno Haible  <bruno@clisp.org>
43230
43231         Tests for module 'uninorm/u32-normcoll'.
43232         * modules/uninorm/u32-normcoll-tests: New file.
43233         * tests/uninorm/test-u32-normcoll.c: New file.
43234
43235         Tests for module 'uninorm/u16-normcoll'.
43236         * modules/uninorm/u16-normcoll-tests: New file.
43237         * tests/uninorm/test-u16-normcoll.c: New file.
43238
43239         Tests for module 'uninorm/u8-normcoll'.
43240         * modules/uninorm/u8-normcoll-tests: New file.
43241         * tests/uninorm/test-u8-normcoll.c: New file.
43242
43243 2009-03-07  Bruno Haible  <bruno@clisp.org>
43244
43245         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43246         tests/uninorm/test-u32-normcmp.c.
43247         * tests/uninorm/test-u32-normcmp.c: Include it.
43248         (test_nonascii): New function, extracted from main. Add some more
43249         tests.
43250         (main): Invoke test_ascii and test_nonascii.
43251         * modules/uninorm/u32-normcmp-tests (Files): Add
43252         tests/uninorm/test-u32-normcmp.h.
43253         (Depends-on): Remove uninorm/u32-normcmp.
43254
43255         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43256         tests/uninorm/test-u16-normcmp.c.
43257         * tests/uninorm/test-u16-normcmp.c: Include it.
43258         (test_nonascii): New function, extracted from main. Add some more
43259         tests.
43260         (main): Invoke test_ascii and test_nonascii.
43261         * modules/uninorm/u16-normcmp-tests (Files): Add
43262         tests/uninorm/test-u16-normcmp.h.
43263         (Depends-on): Remove uninorm/u16-normcmp.
43264
43265         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43266         tests/uninorm/test-u8-normcmp.c.
43267         * tests/uninorm/test-u8-normcmp.c: Include it.
43268         (test_nonascii): New function, extracted from main. Add some more
43269         tests.
43270         (main): Invoke test_ascii and test_nonascii.
43271         * modules/uninorm/u8-normcmp-tests (Files): Add
43272         tests/uninorm/test-u8-normcmp.h.
43273         (Depends-on): Remove uninorm/u8-normcmp.
43274
43275 2009-03-07  Bruno Haible  <bruno@clisp.org>
43276
43277         New module 'uninorm/u32-normcoll'.
43278         * lib/uninorm/u32-normcoll.c: New file.
43279         * modules/uninorm/u32-normcoll: New file.
43280
43281         New module 'uninorm/u16-normcoll'.
43282         * lib/uninorm/u16-normcoll.c: New file.
43283         * modules/uninorm/u16-normcoll: New file.
43284
43285         New module 'uninorm/u8-normcoll'.
43286         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43287         declarations.
43288         * lib/uninorm/u8-normcoll.c: New file.
43289         * lib/uninorm/u-normcoll.h: New file.
43290         * modules/uninorm/u8-normcoll: New file.
43291
43292         New module 'uninorm/u32-normxfrm'.
43293         * lib/uninorm/u32-normxfrm.c: New file.
43294         * modules/uninorm/u32-normxfrm: New file.
43295
43296         New module 'uninorm/u16-normxfrm'.
43297         * lib/uninorm/u16-normxfrm.c: New file.
43298         * modules/uninorm/u16-normxfrm: New file.
43299
43300         New module 'uninorm/u8-normxfrm'.
43301         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43302         declarations.
43303         * lib/uninorm/u8-normxfrm.c: New file.
43304         * lib/uninorm/u-normxfrm.h: New file.
43305         * modules/uninorm/u8-normxfrm: New file.
43306
43307 2009-03-07  Bruno Haible  <bruno@clisp.org>
43308
43309         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43310         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43311         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43312
43313 2009-03-07  Bruno Haible  <bruno@clisp.org>
43314
43315         New module 'memxfrm'.
43316         * lib/memxfrm.h: New file.
43317         * lib/memxfrm.c: New file.
43318         * modules/memxfrm: New file.
43319
43320 2009-03-07  Bruno Haible  <bruno@clisp.org>
43321
43322         New module 'memcmp2'.
43323         * lib/memcmp2.h: New file.
43324         * lib/memcmp2.c: New file.
43325         * modules/memcmp2: New file.
43326
43327 2009-03-07  Bruno Haible  <bruno@clisp.org>
43328
43329         Tests for module 'uninorm/decomposing-form'.
43330         * modules/uninorm/decomposing-form-tests: New file.
43331         * tests/uninorm/test-decomposing-form.c: New file.
43332
43333         New module 'uninorm/decomposing-form'.
43334         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43335         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43336         Add 'decomposing_variant' field.
43337         * lib/uninorm/decomposing-form.c: New file.
43338         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43339         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43340         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43341         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43342         * modules/uninorm/decomposing-form: New file.
43343         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43344         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43345
43346 2009-03-07  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43349         strings.
43350
43351 2009-03-06  Bruno Haible  <bruno@clisp.org>
43352
43353         Tests for module 'uninorm/u32-normcmp'.
43354         * tests/uninorm/test-u32-normcmp.c: New file.
43355         * modules/uninorm/u32-normcmp-tests: New file.
43356
43357         Tests for module 'uninorm/u16-normcmp'.
43358         * tests/uninorm/test-u16-normcmp.c: New file.
43359         * modules/uninorm/u16-normcmp-tests: New file.
43360
43361         Tests for module 'uninorm/u8-normcmp'.
43362         * tests/uninorm/test-u8-normcmp.c: New file.
43363         * modules/uninorm/u8-normcmp-tests: New file.
43364
43365         New module 'uninorm/u32-normcmp'.
43366         * lib/uninorm/u32-normcmp.c: New file.
43367         * modules/uninorm/u32-normcmp: New file.
43368
43369         New module 'uninorm/u16-normcmp'.
43370         * lib/uninorm/u16-normcmp.c: New file.
43371         * modules/uninorm/u16-normcmp: New file.
43372
43373         New module 'uninorm/u8-normcmp'.
43374         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43375         declarations.
43376         * lib/uninorm/u8-normcmp.c: New file.
43377         * lib/uninorm/u-normcmp.h: New file.
43378         * modules/uninorm/u8-normcmp: New file.
43379
43380 2009-03-06  Bruno Haible  <bruno@clisp.org>
43381
43382         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43383         Reported by Eric Blake.
43384
43385 2009-03-06  Eric Blake  <ebb9@byu.net>
43386             Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43389         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43390         condition.
43391         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43392         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43393         condition.
43394         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43395
43396 2009-03-06  Eric Blake  <ebb9@byu.net>
43397
43398         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43399         to avoid compiler warnings.
43400         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43401
43402 2009-03-05  Bruno Haible  <bruno@clisp.org>
43403
43404         * tests/test-ftell.c (main): Disable test beyond end of file on
43405         FreeMiNT.
43406         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43407
43408 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43409
43410         * lib/filevercmp.c: Move hidden files up in ordering.
43411         * tests/test-filevercmp.c: Add tests for hidden files.
43412
43413 2009-03-04  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43416         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43417         AM_CFLAGS.
43418         Reported by Simon Josefsson.
43419
43420 2009-03-03  Bruno Haible  <bruno@clisp.org>
43421
43422         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43423         Reported by Simon Josefsson.
43424
43425         * doc/ld-version-script.texi: Update node reference.
43426
43427 2009-03-03  Bruno Haible  <bruno@clisp.org>
43428
43429         * modules/visibility (License): Change to 'unlimited'.
43430         Suggested by Simon Josefsson.
43431
43432 2009-03-03  Jim Meyering  <meyering@redhat.com>
43433
43434         unlinkdir: cannot_unlink_dir may modify process state
43435         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43436         it's neither thread-safe nor appropriate for use in a library.
43437
43438 2009-03-03  Eric Blake  <ebb9@byu.net>
43439
43440         test-closein: silence test under Darwin
43441         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43442         care if it dies from EPIPE or EBADF.
43443
43444 2009-03-03  Bruno Haible  <bruno@clisp.org>
43445
43446         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43447         earlier.
43448         * doc/visibility.texi: Fix @node and @section.
43449
43450 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43451
43452         * doc/gnulib.texi: Link to sections for ld version script and
43453         visibility.
43454         * doc/visibility.texi: Add @node and @section.
43455         * modules/ld-version-script: New module.
43456         * m4/ld-version-script.m4: New file.
43457         * doc/ld-version-script.texi: New file.
43458
43459 2009-03-02  David Lutterkort  <lutter@redhat.com>
43460
43461         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43463
43464 2009-03-02  Bruno Haible  <bruno@clisp.org>
43465
43466         * doc/visibility.texi: Mention libtool's -export-symbols option.
43467
43468 2009-03-02  Jim Meyering  <meyering@redhat.com>
43469
43470         announce-gen: new option: --no-print-checksums
43471         * build-aux/announce-gen (usage): Describe it.
43472         (print_checksums): Print a newline here, not in the [*] footnote.
43473         (main): Honor it.
43474
43475 2009-03-01  Bruno Haible  <bruno@clisp.org>
43476
43477         Use socklen_t in the native Windows replacements prototypes.
43478         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43479         instead of 'int'.
43480         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43481         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43482         * modules/getsockopt (Depends-on): Add socklen.
43483         * modules/setsockopt (Depends-on): Add socklen.
43484
43485 2009-03-01  Bruno Haible  <bruno@clisp.org>
43486
43487         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43488         least 4.2.
43489
43490 2009-03-01  Eric Blake  <ebb9@byu.net>
43491             Bruno Haible  <bruno@clisp.org>
43492
43493         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43494         error messages.
43495         * lib/wait-process.c (wait_subprocess): Omit error message about
43496         deadly signal sent to the child of termsigp != NULL.
43497
43498 2009-03-01  Eric Blake  <ebb9@byu.net>
43499
43500         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43501
43502 2009-03-01  Bruno Haible  <bruno@clisp.org>
43503
43504         Avoid a gcc warning.
43505         * tests/test-sched.c (b): Make global.
43506         Reported by Eric Blake.
43507
43508 2009-01-19  Martin Lambers  <marlam@marlam.de>
43509
43510         Provide POSIX semantics for socket timeout options on W32.
43511         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43512         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43513         * modules/setsockopt: Depend on sys_time module for struct timeval.
43514         * modules/getsockopt: Depend on sys_time module for struct timeval.
43515
43516 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43517
43518         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43519         __USE_GNU, for consistency with netdb.in.h.
43520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43521
43522 2009-03-01  Bruno Haible  <bruno@clisp.org>
43523
43524         More support for FreeMiNT.
43525         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43526         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43527
43528 2009-03-01  Bruno Haible  <bruno@clisp.org>
43529
43530         More support for FreeMiNT.
43531         * lib/fpurge.c (fpurge): Correct last commit.
43532         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43533
43534 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43535
43536         Fix unportable awk script in vc-list-files.
43537         * build-aux/vc-list-files: In the replacement awk script, use
43538         substr with a second argument of 1, not zero.
43539         Report by Simon Josefsson.
43540
43541 2009-02-28  Bruno Haible  <bruno@clisp.org>
43542
43543         More support for FreeMiNT.
43544         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43545         to FreeMiNT today.
43546         * lib/fwriting.c (fwriting): Likewise.
43547         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43548
43549 2009-02-28  Bruno Haible  <bruno@clisp.org>
43550
43551         * tests/test-freadseek.c (main): Disable test beyond end of file on
43552         FreeMiNT.
43553         * tests/test-ftello.c (main): Likewise.
43554         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43555
43556 2009-02-28  Bruno Haible  <bruno@clisp.org>
43557
43558         Add tentative support for FreeMiNT.
43559         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43560         * lib/fpurge.c (fpurge): Likewise.
43561         * lib/freadable.c (freadable): Likewise.
43562         * lib/freading.c (freading): Likewise.
43563         * lib/freadptr.c (freadptr): Likewise.
43564         * lib/freadseek.c (freadptrinc): Likewise.
43565         * lib/fseeko.c (rpl_fseeko): Likewise.
43566         * lib/fseterr.c (fseterr): Likewise.
43567         * lib/fwritable.c (fwritable): Likewise.
43568         * lib/fwriting.c (fwriting): Likewise.
43569         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43570         Hourihane.
43571         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43572
43573 2009-02-28  Bruno Haible  <bruno@clisp.org>
43574
43575         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43576         SIGCHLD.
43577         Reported by Jim Meyering.
43578
43579 2009-02-28  Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43582         Mention the results of these tests on various platforms.
43583         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43584         order.
43585         * doc/posix-functions/printf.texi: Likewise.
43586         * doc/posix-functions/snprintf.texi: Likewise.
43587         * doc/posix-functions/sprintf.texi: Likewise.
43588         * doc/posix-functions/vfprintf.texi: Likewise.
43589         * doc/posix-functions/vprintf.texi: Likewise.
43590         * doc/posix-functions/vsnprintf.texi: Likewise.
43591         * doc/posix-functions/vsprintf.texi: Likewise.
43592         * doc/glibc-functions/obstack_printf.texi: Likewise.
43593         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43594
43595 2009-02-28  Bruno Haible  <bruno@clisp.org>
43596
43597         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43598         Reported by Loïc Minier <lool@dooz.org>.
43599
43600 2009-02-27  Bruno Haible  <bruno@clisp.org>
43601
43602         * gnulib-tool (func_import): Make the sed expression used to create the
43603         sed script for updating the .gitignore file POSIX compliant.
43604         Reported by Eric Blake.
43605
43606 2009-02-27  Bruno Haible  <bruno@clisp.org>
43607
43608         * gnulib-tool (sed): Don't alias as "sed --posix".
43609         Reported by Eric Blake.
43610
43611 2009-02-27  Bruno Haible  <bruno@clisp.org>
43612
43613         Avoid test link errors.
43614         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43615         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43616         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43617         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43619
43620 2009-02-27  Bruno Haible  <bruno@clisp.org>
43621
43622         Avoid spurious "(cached)" in configure output.
43623         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43624         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43625         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43626         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43627         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43628         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43629         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43630         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43631         Reported by Eric Blake.
43632
43633 2009-02-27  Eric Blake  <ebb9@byu.net>
43634
43635         printf: fix regression in previous patch
43636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43637
43638 2009-02-27  Bruno Haible  <bruno@clisp.org>
43639
43640         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43641         value.
43642         * lib/stdint.in.h: Likewise.
43643         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43644
43645 2009-02-27  Eric Blake  <ebb9@byu.net>
43646
43647         doc: mention more functions added in cygwin 1.7.0
43648         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43649         addition.
43650         * doc/posix-functions/open_wmemstream.texi: Likewise.
43651         * doc/posix-functions/wcsnlen.texi: Likewise.
43652         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43653         * doc/posix-functions/wcstod.texi: Likewise.
43654         * doc/posix-functions/wcstof.texi: Likewise.
43655         * doc/posix-functions/wcstoimax.texi: Likewise.
43656         * doc/posix-functions/wcstok.texi: Likewise.
43657         * doc/posix-functions/wcstoumax.texi: Likewise.
43658
43659         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43661         * doc/posix-functions/fprintf.texi: Update.
43662         * doc/posix-functions/printf.texi: Update.
43663         * doc/posix-functions/snprintf.texi: Update.
43664         * doc/posix-functions/sprintf.texi: Update.
43665         * doc/posix-functions/vfprintf.texi: Update.
43666         * doc/posix-functions/vprintf.texi: Update.
43667         * doc/posix-functions/vsnprintf.texi: Update.
43668         * doc/posix-functions/vsprintf.texi: Update.
43669         * doc/glibc-functions/obstack_printf.texi: Update.
43670         * doc/glibc-functions/obstack_vprintf.texi: Update.
43671
43672 2009-02-26  Eric Blake  <ebb9@byu.net>
43673
43674         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43675         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43676         compilation bug by using runtime conversion.
43677         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43678         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43679         * modules/ceill-tests (Files): Use nan.h.
43680         * modules/floorl-tests (Files): Likewise.
43681         * modules/frexpl-tests (Files): Likewise.
43682         * modules/isnanl-tests (Files): Likewise.
43683         * modules/ldexpl-tests (Files): Likewise.
43684         * modules/roundl-tests (Files): Likewise.
43685         * modules/truncl-tests (Files): Likewise.
43686         * tests/test-ceill.c (main): Use a working NaN.
43687         * tests/test-floorl.c (main): Likewise.
43688         * tests/test-frexpl.c (main): Likewise.
43689         * tests/test-isnan.c (test_long_double): Likewise.
43690         * tests/test-isnanl.h (main): Likewise.
43691         * tests/test-ldexpl.h (main): Likewise.
43692         * tests/test-roundl.h (main): Likewise.
43693         * tests/test-truncl.h (main): Likewise.
43694         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43695
43696 2009-02-26  Eric Blake  <ebb9@byu.net>
43697             Bruno Haible  <bruno@clisp.org>
43698
43699         Work around a *printf bug with %ls on Solaris.
43700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43701         precision is specified, sprintf stops converting the wide string
43702         argument when the number of bytes that have been produced by this
43703         conversion equals or exceeds the precision.
43704         * doc/posix-functions/fprintf.texi: Update.
43705         * doc/posix-functions/printf.texi: Update.
43706         * doc/posix-functions/snprintf.texi: Update.
43707         * doc/posix-functions/sprintf.texi: Update.
43708         * doc/posix-functions/vfprintf.texi: Update.
43709         * doc/posix-functions/vprintf.texi: Update.
43710         * doc/posix-functions/vsnprintf.texi: Update.
43711         * doc/posix-functions/vsprintf.texi: Update.
43712         * doc/glibc-functions/obstack_printf.texi: Update.
43713         * doc/glibc-functions/obstack_vprintf.texi: Update.
43714
43715 2009-02-26  Eric Blake  <ebb9@byu.net>
43716
43717         stdlib: favor compiler check of random.h
43718         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43719         to avoid an ObjC random.h installed by Swarm.
43720
43721 2009-02-26  Bruno Haible  <bruno@clisp.org>
43722
43723         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43724         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43725         Reported by Gary V. Vaughan <gary@gnu.org>.
43726
43727 2009-02-26  Bruno Haible  <bruno@clisp.org>
43728
43729         Fix *printf behaviour regarding the %ls directive.
43730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43731         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43732         NEED_PRINTF_DIRECTIVE_LS.
43733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43734         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43735         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43736         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43737         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43738         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43739         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43740         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43744         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43748         * doc/posix-functions/fprintf.texi: Update.
43749         * doc/posix-functions/printf.texi: Update.
43750         * doc/posix-functions/snprintf.texi: Update.
43751         * doc/posix-functions/sprintf.texi: Update.
43752         * doc/posix-functions/vfprintf.texi: Update.
43753         * doc/posix-functions/vprintf.texi: Update.
43754         * doc/posix-functions/vsnprintf.texi: Update.
43755         * doc/posix-functions/vsprintf.texi: Update.
43756         * doc/glibc-functions/obstack_printf.texi: Update.
43757         * doc/glibc-functions/obstack_vprintf.texi: Update.
43758         Reported by Eric Blake.
43759
43760 2009-02-25  Bruno Haible  <bruno@clisp.org>
43761
43762         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43763         with known value.
43764         Reported by Gary V. Vaughan <gary@gnu.org>.
43765
43766 2009-02-25  Bruno Haible  <bruno@clisp.org>
43767
43768         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43769         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43770         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43771         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43772         Reported by Gary V. Vaughan <gary@gnu.org>.
43773
43774 2009-02-25  Bruno Haible  <bruno@clisp.org>
43775
43776         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43777         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43778         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43779         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43780         Reported by Gary V. Vaughan <gary@gnu.org>.
43781
43782 2009-02-25  Eric Blake  <ebb9@byu.net>
43783
43784         tests: skip fseek/ftell tests if ungetc is broken
43785         * m4/ungetc.m4: New file.
43786         * modules/fseek-tests: Split test, so ungetc dependency is
43787         separate from rest of test.
43788         * modules/fseeko-tests: Likewise.
43789         * modules/ftell-tests: Likewise.
43790         * modules/ftello-tests: Likewise.
43791         * tests/test-fseek.c (main): Isolate ungetc dependency.
43792         * tests/test-fseeko.c (main): Likewise.
43793         * tests/test-ftell.c (main): Likewise.
43794         * tests/test-ftello.c (main): Likewise.
43795         * tests/test-fseek2.sh: New file.
43796         * tests/test-fseeko2.sh: Likewise.
43797         * tests/test-ftell2.sh: Likewise.
43798         * tests/test-ftello2.sh: Likewise.
43799
43800 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43801
43802         test-getaddrinfo: fix usage of skip return code 77
43803         * tests/test-gettaddrinfo.c: Return skip code 77 only
43804         for first occurance of skip (4x77 is not 77)
43805
43806 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43807
43808         strtod: avoid C99 decl-after-statement
43809         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43810
43811 2009-02-24  Eric Blake  <ebb9@byu.net>
43812
43813         strtod: detect HP-UX 11.31 bug
43814         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43815         Reported by Gary V. Vaughan.
43816
43817 2009-02-23  Bruno Haible  <bruno@clisp.org>
43818
43819         Fix invalid read past end of memory block.
43820         * lib/vasnprintf.c (DCHAR_SET): Define.
43821         (local_wcslen): Define only when needed.
43822         (local_strnlen, local_wcsnlen): New functions.
43823         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43824         directives that involve a conversion ourselves.
43825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43826         wcsnlen, mbrtowc, wcrtomb.
43827         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43828         * tests/test-vasprintf-posix.c (test_function): Likewise.
43829         * tests/test-snprintf-posix.h (test_function): Likewise.
43830         * tests/test-sprintf-posix.h (test_function): Likewise.
43831         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43832
43833 2009-02-22  Bruno Haible  <bruno@clisp.org>
43834
43835         Implement new clarified decomposition of Hangul syllables.
43836         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43837         of type LTV, return only a pairwise decomposition.
43838         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43839         Likewise.
43840         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43841         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43842         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43843
43844 2009-02-22  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43847         zero-length results and shrink excess allocated memory.
43848         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43849         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43850         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43851         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43852         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43853         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43854         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43855         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43856         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43857         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43858         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43859         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43860
43861 2009-02-21  Bruno Haible  <bruno@clisp.org>
43862
43863         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43864         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43865         spaces after a period. Put a space between a macro name and its
43866         argument list. Trivial rewordings.
43867         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43868         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43869         (main): Return 0 explicitly.
43870
43871 2009-02-21  Bruno Haible  <bruno@clisp.org>
43872
43873         Tests for module 'uninorm/filter'.
43874         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43875         * modules/uninorm/filter-tests: New file.
43876
43877         New module 'uninorm/filter'.
43878         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43879         uninorm_filter_flush, uninorm_filter_free): New declarations.
43880         * lib/uninorm/uninorm-filter.c: New file.
43881         * modules/uninorm/filter: New file.
43882
43883 2009-02-21  Bruno Haible  <bruno@clisp.org>
43884
43885         Tests for module 'uninorm/nfkc'.
43886         * tests/uninorm/test-nfkc.c: New file.
43887         * tests/uninorm/test-u8-nfkc.c: New file.
43888         * tests/uninorm/test-u16-nfkc.c: New file.
43889         * tests/uninorm/test-u32-nfkc.c: New file.
43890         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43891         * tests/uninorm/test-u32-nfkc-big.c: New file.
43892         * modules/uninorm/nfkc-tests: New file.
43893
43894         New module 'uninorm/nfkc'.
43895         * lib/uninorm/nfkc.c: New file.
43896         * modules/uninorm/nfkc: New file.
43897
43898         Tests for module 'uninorm/nfkd'.
43899         * tests/uninorm/test-nfkd.c: New file.
43900         * tests/uninorm/test-u8-nfkd.c: New file.
43901         * tests/uninorm/test-u16-nfkd.c: New file.
43902         * tests/uninorm/test-u32-nfkd.c: New file.
43903         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43904         * tests/uninorm/test-u32-nfkd-big.c: New file.
43905         * modules/uninorm/nfkd-tests: New file.
43906
43907         New module 'uninorm/nfkd'.
43908         * lib/uninorm/nfkd.c: New file.
43909         * modules/uninorm/nfkd: New file.
43910
43911         Tests for module 'uninorm/nfc'.
43912         * tests/uninorm/test-nfc.c: New file.
43913         * tests/uninorm/test-u8-nfc.c: New file.
43914         * tests/uninorm/test-u16-nfc.c: New file.
43915         * tests/uninorm/test-u32-nfc.c: New file.
43916         * tests/uninorm/test-u32-nfc-big.sh: New file.
43917         * tests/uninorm/test-u32-nfc-big.c: New file.
43918         * modules/uninorm/nfc-tests: New file.
43919
43920         New module 'uninorm/nfc'.
43921         * lib/uninorm/nfc.c: New file.
43922         * modules/uninorm/nfc: New file.
43923
43924         Tests for module 'uninorm/nfd'.
43925         * tests/uninorm/test-nfd.c: New file.
43926         * tests/uninorm/test-u8-nfd.c: New file.
43927         * tests/uninorm/test-u16-nfd.c: New file.
43928         * tests/uninorm/test-u32-nfd.c: New file.
43929         * tests/uninorm/test-u32-nfd-big.sh: New file.
43930         * tests/uninorm/test-u32-nfd-big.c: New file.
43931         * tests/uninorm/test-u32-normalize-big.h: New file.
43932         * tests/uninorm/test-u32-normalize-big.c: New file.
43933         * tests/uninorm/NormalizationTest.txt: New file, created from
43934         Unicode 5.1.0 NormalizationTest.txt.
43935         * modules/uninorm/nfd-tests: New file.
43936
43937         New module 'uninorm/nfd'.
43938         * lib/uninorm/nfd.c: New file.
43939         * modules/uninorm/nfd: New file.
43940
43941         New module 'uninorm/u32-normalize'.
43942         * lib/uninorm/u32-normalize.c: New file.
43943         * modules/uninorm/u32-normalize: New file.
43944
43945         New module 'uninorm/u16-normalize'.
43946         * lib/uninorm/u16-normalize.c: New file.
43947         * modules/uninorm/u16-normalize: New file.
43948
43949         New module 'uninorm/u8-normalize'.
43950         * lib/uninorm/u8-normalize.c: New file.
43951         * lib/uninorm/normalize-internal.h: New file.
43952         * lib/uninorm/u-normalize-internal.h: New file.
43953         * modules/uninorm/u8-normalize: New file.
43954
43955         New module 'uninorm/decompose-internal'.
43956         * lib/uninorm/decompose-internal.c: New file.
43957         * modules/uninorm/decompose-internal: New file.
43958
43959         Tests for module 'uninorm/composition'.
43960         * tests/uninorm/test-composition.c: New file.
43961         * modules/uninorm/composition-tests: New file.
43962
43963         New module 'uninorm/composition'.
43964         * lib/uninorm/composition.c: New file.
43965         * lib/uninorm/composition-table.gperf: New file, generated by
43966         gen-uni-tables.
43967         * modules/uninorm/composition: New file.
43968
43969         Tests for module 'uninorm/compat-decomposition'.
43970         * tests/uninorm/test-compat-decomposition.c: New file.
43971         * modules/uninorm/compat-decomposition-tests: New file.
43972
43973         New module 'uninorm/compat-decomposition'.
43974         * lib/uninorm/decompose-internal.h: New file.
43975         * lib/uninorm/compat-decomposition.c: New file.
43976         * modules/uninorm/compat-decomposition: New file.
43977
43978         Tests for module 'uninorm/canonical-decomposition'.
43979         * tests/uninorm/test-canonical-decomposition.c: New file.
43980         * modules/uninorm/canonical-decomposition-tests: New file.
43981
43982         New module 'uninorm/canonical-decomposition'.
43983         * lib/uninorm/canonical-decomposition.c: New file.
43984         * modules/uninorm/canonical-decomposition: New file.
43985
43986         Tests for module 'uninorm/decomposition'.
43987         * tests/uninorm/test-decomposition.c: New file.
43988         * modules/uninorm/decomposition-tests: New file.
43989
43990         New module 'uninorm/decomposition'.
43991         * lib/uninorm/decomposition.c: New file.
43992         * modules/uninorm/decomposition: New file.
43993
43994         New module 'uninorm/decomposition-table'.
43995         * lib/uninorm/decomposition-table.h: New file.
43996         * lib/uninorm/decomposition-table.c: New file.
43997         * lib/uninorm/decomposition-table1.h: New file, generated by
43998         gen-uni-tables.
43999         * lib/uninorm/decomposition-table2.h: New file, generated by
44000         gen-uni-tables.
44001         * modules/uninorm/decomposition-table: New file.
44002
44003         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
44004         (UC_DECOMP_*): New enumeration items.
44005         (get_decomposition): New function.
44006         (struct decomp_table): New type.
44007         (output_decomposition, output_decomposition_tables): New functions.
44008         (unicode_composition_exclusions): New variable.
44009         (fill_composition_exclusions, debug_output_composition_tables): New
44010         functions.
44011         (main): Accept one more argument. Invoke fill_composition_exclusions.
44012         Output decomposition and composition tables.
44013
44014         New module 'uninorm/base'.
44015         * lib/uninorm.h: New file.
44016         * lib/unictype.h: Update comment.
44017         * modules/uninorm/base: New file.
44018
44019 2009-02-21  David Lutterkort  <lutter@redhat.com>
44020
44021         Tests for module 'safe-alloc'.
44022         * tests/test-safe-alloc.c: New file.
44023         * modules/safe-alloc-tests: New file.
44024
44025         New module 'safe-alloc'.
44026         * lib/safe-alloc.h: New file.
44027         * lib/safe-alloc.c: New file.
44028         * m4/safe-alloc.m4: New file.
44029         * modules/safe-alloc: New file.
44030         * doc/safe-alloc.texi: New file.
44031         * doc/gnulib.texi: Include it.
44032         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44033         safe-alloc.
44034
44035 2009-02-18  Bruno Haible  <bruno@clisp.org>
44036
44037         Fix link error on non-glibc systems.
44038         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
44039         variable.
44040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44041
44042 2009-02-18  Jim Meyering  <meyering@redhat.com>
44043
44044         fts: avoid used-uninitialized error due to recent change
44045         * lib/fts.c (fts_read): Guard uses of the new member,
44046         parent->fts_n_dirs_remaining, since it's not relevant for
44047         the parent of a directory specified on the command-line.
44048
44049 2009-02-17  James Youngman  <jay@gnu.org>
44050             Bruno Haible  <bruno@clisp.org>
44051
44052         * m4/include_next.m4: Reformulate comment.
44053
44054 2009-02-16  Jim Meyering  <meyering@redhat.com>
44055
44056         fts: add #if guards so that the fts_lgpl module still builds
44057         * lib/fts.c: Guard just-added hash-table-using parts with
44058         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
44059         Reported by Simon Josefsson.
44060
44061 2009-02-15  Bruno Haible  <bruno@clisp.org>
44062
44063         * modules/array-mergesort-tests: New file.
44064         * tests/test-array-mergesort.c: New file.
44065
44066         New module 'array-mergesort'.
44067         * modules/array-mergesort: New file.
44068         * lib/array-mergesort.h: New file.
44069
44070 2009-02-15  Bruno Haible  <bruno@clisp.org>
44071
44072         Fix 2009-02-07 commit.
44073         * lib/gen-uni-tables.c (output_predicate, output_category,
44074         output_combclass, output_bidi_category, output_decimal_digit,
44075         output_digit, output_numeric, output_mirror, output_scripts,
44076         output_ident_category, output_simple_mapping): Fix format directives.
44077         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
44078
44079 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
44080
44081         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
44082         fixes are available from IBM.
44083
44084 2009-02-13  Jim Meyering  <meyering@redhat.com>
44085
44086         fts: arrange not to stat non-directories in more cases
44087         This makes GNU find (when it doesn't need to stat each file)
44088         *much* more efficient at traversing reiserfs file systems.
44089         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
44090         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
44091         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
44092         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
44093         (leaf_optimization_applies): New function.
44094         (LCO_hash, LCO_compare): New helper functions.
44095         (link_count_optimize_ok): New function.
44096         (fts_stat): Initialize new member (if dir).
44097         (fts_read): Decrement parent's fts_n_dirs_remaining count if
44098         we've just stat'ed a directory.  Skip the stat call when possible.
44099         ---
44100         Note this AFS-related exchange:
44101         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
44102         and note find's pioctl call in find/fstype.c.
44103         But that is necessary only if you want to enable the
44104         optimization for AFS, and for now, I don't.
44105
44106         fts: move a function definition "up" (no semantic change)
44107         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
44108         "up" to precede upcoming use of a related function.
44109
44110 2009-02-11  Jim Meyering  <meyering@redhat.com>
44111
44112         fts: correct internal computation of nlinks (optimization-related)
44113         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
44114         whether the current entry is a directory, so don't test it.
44115
44116 2009-02-10  Bruno Haible  <bruno@clisp.org>
44117
44118         Tests for module 'uniwbrk/ulc-wordbreaks'.
44119         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
44120         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
44121         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
44122
44123         Tests for module 'uniwbrk/u32-wordbreaks'.
44124         * modules/uniwbrk/u32-wordbreaks-tests: New file.
44125         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
44126
44127         Tests for module 'uniwbrk/u16-wordbreaks'.
44128         * modules/uniwbrk/u16-wordbreaks-tests: New file.
44129         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
44130
44131         Tests for module 'uniwbrk/u8-wordbreaks'.
44132         * modules/uniwbrk/u8-wordbreaks-tests: New file.
44133         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
44134
44135 2009-02-10  Bruno Haible  <bruno@clisp.org>
44136
44137         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
44138         property.
44139         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
44140         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
44141         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
44142
44143 2009-02-10  Simon Josefsson  <simon@josefsson.org>
44144
44145         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
44146         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
44147
44148 2009-02-10  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44151         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44152         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44153         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44154         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44155         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44156
44157 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44158
44159         * lib/sockets.h (gl_fd_to_handle): New function.
44160
44161         * tests/test-sockets.c: Call gl_fd_to_handle.
44162
44163 2009-02-09  Bruno Haible  <bruno@clisp.org>
44164
44165         * doc/havelib.texi: Document the conventions on bi-arch systems.
44166
44167 2009-02-08  Bruno Haible  <bruno@clisp.org>
44168
44169         Document the AC_LIB_LINKFLAGS macro.
44170         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44171         * doc/gnulib.texi: Include it.
44172
44173 2009-02-08  Bruno Haible  <bruno@clisp.org>
44174
44175         Fix wrong order of sections, compared to TOC.
44176         * doc/gnulib.texi: Include relocatable-maint.texi after the
44177         "Regular expressions" node, not before.
44178
44179 2009-02-08  Bruno Haible  <bruno@clisp.org>
44180
44181         Tests for module 'unicase/totitle'.
44182         * modules/unicase/totitle-tests: New file.
44183
44184         Tests for module 'unicase/tolower'.
44185         * modules/unicase/tolower-tests: New file.
44186
44187         Tests for module 'unicase/toupper'.
44188         * modules/unicase/toupper-tests: New file.
44189         * tests/unicase/test-mapping-part1.h: New file.
44190         * tests/unicase/test-mapping-part2.h: New file.
44191
44192         New module 'unicase/totitle'.
44193         * modules/unicase/totitle: New file.
44194         * lib/unicase/totitle.c: New file.
44195
44196         New module 'unicase/tolower'.
44197         * modules/unicase/tolower: New file.
44198         * lib/unicase/tolower.c: New file.
44199
44200         New module 'unicase/toupper'.
44201         * modules/unicase/toupper: New file.
44202         * lib/unicase/toupper.c: New file.
44203         * lib/unicase/simple-mapping.h: New file.
44204
44205         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44206         (mapping_table): New structure.
44207         (output_simple_mapping): New function.
44208         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44209         * modules/gen-uni-tables (Description): Update.
44210         * lib/unicase/toupper.h: New file, automatically generated by
44211         gen-uni-tables.
44212         * lib/unicase/tolower.h: New file, automatically generated by
44213         gen-uni-tables.
44214         * lib/unicase/totitle.h: New file, automatically generated by
44215         gen-uni-tables.
44216         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44217         gen-uni-tables.
44218         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44219         gen-uni-tables.
44220         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44221         gen-uni-tables.
44222
44223         New module 'unicase/base'.
44224         * modules/unicase/base: New file.
44225         * lib/unicase.h: New file.
44226
44227 2009-02-08  Bruno Haible  <bruno@clisp.org>
44228
44229         New module 'uniwbrk/ulc-wordbreaks'.
44230         * modules/uniwbrk/ulc-wordbreaks: New file.
44231         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44232
44233         New module 'uniwbrk/u32-wordbreaks'.
44234         * modules/uniwbrk/u32-wordbreaks: New file.
44235         * lib/uniwbrk/u32-wordbreaks.c: New file.
44236
44237         New module 'uniwbrk/u16-wordbreaks'.
44238         * modules/uniwbrk/u16-wordbreaks: New file.
44239         * lib/uniwbrk/u16-wordbreaks.c: New file.
44240
44241         New module 'uniwbrk/u8-wordbreaks'.
44242         * modules/uniwbrk/u8-wordbreaks: New file.
44243         * lib/uniwbrk/u8-wordbreaks.c: New file.
44244         * lib/uniwbrk/u-wordbreaks.h: New file.
44245
44246         New module 'uniwbrk/table'.
44247         * modules/uniwbrk/table: New file.
44248         * lib/uniwbrk/wbrktable.h: New file.
44249         * lib/uniwbrk/wbrktable.c: New file.
44250
44251         New module 'uniwbrk/wordbreak-property'.
44252         * modules/uniwbrk/wordbreak-property: New file.
44253         * lib/uniwbrk/wordbreak-property.c: New file.
44254
44255         * lib/gen-uni-tables.c (WBP_*): New enum items.
44256         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44257         (unicode_org_wbp): New variable.
44258         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44259         New functions.
44260         (wbp_table): New structure.
44261         (output_wbp, output_wbrk_tables): New functions.
44262         (main): Accept additional argument. Invoke fill_org_wbp,
44263         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44264         output_wbrk_tables.
44265         * modules/gen-uni-tables (Description): Update.
44266         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44267         gen-uni-tables.
44268
44269         New module 'uniwbrk/base'.
44270         * modules/uniwbrk/base: New file.
44271         * lib/uniwbrk.h: New file.
44272
44273 2009-02-08  Bruno Haible  <bruno@clisp.org>
44274
44275         Update to Unicode 5.1.0.
44276         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44277         U+2185..U+2188.
44278         (is_property_default_ignorable_code_point): Don't include characters
44279         of category Cc or Cs and not-a-characters.
44280         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44281         U+0D79, U+109E, U+109F, U+A60C.
44282         * lib/unictype/bidi_of.h: Regenerated.
44283         * lib/unictype/blocks.h: Regenerated.
44284         * lib/unictype/categ_C.h: Regenerated.
44285         * lib/unictype/categ_Cf.h: Regenerated.
44286         * lib/unictype/categ_Cn.h: Regenerated.
44287         * lib/unictype/categ_L.h: Regenerated.
44288         * lib/unictype/categ_Ll.h: Regenerated.
44289         * lib/unictype/categ_Lm.h: Regenerated.
44290         * lib/unictype/categ_Lo.h: Regenerated.
44291         * lib/unictype/categ_Lu.h: Regenerated.
44292         * lib/unictype/categ_M.h: Regenerated.
44293         * lib/unictype/categ_Mc.h: Regenerated.
44294         * lib/unictype/categ_Me.h: Regenerated.
44295         * lib/unictype/categ_Mn.h: Regenerated.
44296         * lib/unictype/categ_N.h: Regenerated.
44297         * lib/unictype/categ_Nd.h: Regenerated.
44298         * lib/unictype/categ_Nl.h: Regenerated.
44299         * lib/unictype/categ_No.h: Regenerated.
44300         * lib/unictype/categ_P.h: Regenerated.
44301         * lib/unictype/categ_Pd.h: Regenerated.
44302         * lib/unictype/categ_Pe.h: Regenerated.
44303         * lib/unictype/categ_Pf.h: Regenerated.
44304         * lib/unictype/categ_Pi.h: Regenerated.
44305         * lib/unictype/categ_Po.h: Regenerated.
44306         * lib/unictype/categ_Ps.h: Regenerated.
44307         * lib/unictype/categ_S.h: Regenerated.
44308         * lib/unictype/categ_Sk.h: Regenerated.
44309         * lib/unictype/categ_Sm.h: Regenerated.
44310         * lib/unictype/categ_So.h: Regenerated.
44311         * lib/unictype/categ_of.h: Regenerated.
44312         * lib/unictype/combining.h: Regenerated.
44313         * lib/unictype/ctype_alnum.h: Regenerated.
44314         * lib/unictype/ctype_alpha.h: Regenerated.
44315         * lib/unictype/ctype_graph.h: Regenerated.
44316         * lib/unictype/ctype_lower.h: Regenerated.
44317         * lib/unictype/ctype_print.h: Regenerated.
44318         * lib/unictype/ctype_punct.h: Regenerated.
44319         * lib/unictype/ctype_upper.h: Regenerated.
44320         * lib/unictype/decdigit.h: Regenerated.
44321         * lib/unictype/digit.h: Regenerated.
44322         * lib/unictype/mirror.h: Regenerated.
44323         * lib/unictype/numeric.h: Regenerated.
44324         * lib/unictype/pr_alphabetic.h: Regenerated.
44325         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44327         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44328         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44329         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44330         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44331         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44332         * lib/unictype/pr_combining.h: Regenerated.
44333         * lib/unictype/pr_dash.h: Regenerated.
44334         * lib/unictype/pr_decimal_digit.h: Regenerated.
44335         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44336         * lib/unictype/pr_deprecated.h: Regenerated.
44337         * lib/unictype/pr_diacritic.h: Regenerated.
44338         * lib/unictype/pr_extender.h: Regenerated.
44339         * lib/unictype/pr_format_control.h: Regenerated.
44340         * lib/unictype/pr_grapheme_base.h: Regenerated.
44341         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44342         * lib/unictype/pr_grapheme_link.h: Regenerated.
44343         * lib/unictype/pr_id_continue.h: Regenerated.
44344         * lib/unictype/pr_id_start.h: Regenerated.
44345         * lib/unictype/pr_ideographic.h: Regenerated.
44346         * lib/unictype/pr_ignorable_control.h: Regenerated.
44347         * lib/unictype/pr_lowercase.h: Regenerated.
44348         * lib/unictype/pr_math.h: Regenerated.
44349         * lib/unictype/pr_numeric.h: Regenerated.
44350         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44351         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44352         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44353         * lib/unictype/pr_other_id_continue.h: Regenerated.
44354         * lib/unictype/pr_other_lowercase.h: Regenerated.
44355         * lib/unictype/pr_other_math.h: Regenerated.
44356         * lib/unictype/pr_punctuation.h: Regenerated.
44357         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44358         * lib/unictype/pr_soft_dotted.h: Regenerated.
44359         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44360         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44361         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44362         * lib/unictype/pr_uppercase.h: Regenerated.
44363         * lib/unictype/pr_xid_continue.h: Regenerated.
44364         * lib/unictype/pr_xid_start.h: Regenerated.
44365         * lib/unictype/pr_zero_width.h: Regenerated.
44366         * lib/unictype/scripts.h: Regenerated.
44367         * lib/unictype/scripts_byname.gperf: Regenerated.
44368         * lib/unictype/sy_java_ident.h: Regenerated.
44369         * lib/unilbrk/lbrkprop1.h: Regenerated.
44370         * lib/unilbrk/lbrkprop2.h: Regenerated.
44371         * tests/unictype/test-categ_C.c: Regenerated.
44372         * tests/unictype/test-categ_Cf.c: Regenerated.
44373         * tests/unictype/test-categ_Cn.c: Regenerated.
44374         * tests/unictype/test-categ_L.c: Regenerated.
44375         * tests/unictype/test-categ_Ll.c: Regenerated.
44376         * tests/unictype/test-categ_Lm.c: Regenerated.
44377         * tests/unictype/test-categ_Lo.c: Regenerated.
44378         * tests/unictype/test-categ_Lu.c: Regenerated.
44379         * tests/unictype/test-categ_M.c: Regenerated.
44380         * tests/unictype/test-categ_Mc.c: Regenerated.
44381         * tests/unictype/test-categ_Me.c: Regenerated.
44382         * tests/unictype/test-categ_Mn.c: Regenerated.
44383         * tests/unictype/test-categ_N.c: Regenerated.
44384         * tests/unictype/test-categ_Nd.c: Regenerated.
44385         * tests/unictype/test-categ_Nl.c: Regenerated.
44386         * tests/unictype/test-categ_No.c: Regenerated.
44387         * tests/unictype/test-categ_P.c: Regenerated.
44388         * tests/unictype/test-categ_Pd.c: Regenerated.
44389         * tests/unictype/test-categ_Pe.c: Regenerated.
44390         * tests/unictype/test-categ_Pf.c: Regenerated.
44391         * tests/unictype/test-categ_Pi.c: Regenerated.
44392         * tests/unictype/test-categ_Po.c: Regenerated.
44393         * tests/unictype/test-categ_Ps.c: Regenerated.
44394         * tests/unictype/test-categ_S.c: Regenerated.
44395         * tests/unictype/test-categ_Sk.c: Regenerated.
44396         * tests/unictype/test-categ_Sm.c: Regenerated.
44397         * tests/unictype/test-categ_So.c: Regenerated.
44398         * tests/unictype/test-ctype_alnum.c: Regenerated.
44399         * tests/unictype/test-ctype_alpha.c: Regenerated.
44400         * tests/unictype/test-ctype_graph.c: Regenerated.
44401         * tests/unictype/test-ctype_lower.c: Regenerated.
44402         * tests/unictype/test-ctype_print.c: Regenerated.
44403         * tests/unictype/test-ctype_punct.c: Regenerated.
44404         * tests/unictype/test-ctype_upper.c: Regenerated.
44405         * tests/unictype/test-decdigit.h: Regenerated.
44406         * tests/unictype/test-digit.h: Regenerated.
44407         * tests/unictype/test-numeric.h: Regenerated.
44408         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44409         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44410         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44411         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44412         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44413         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44414         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44415         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44416         * tests/unictype/test-pr_combining.c: Regenerated.
44417         * tests/unictype/test-pr_dash.c: Regenerated.
44418         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44419         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44420         * tests/unictype/test-pr_deprecated.c: Regenerated.
44421         * tests/unictype/test-pr_diacritic.c: Regenerated.
44422         * tests/unictype/test-pr_extender.c: Regenerated.
44423         * tests/unictype/test-pr_format_control.c: Regenerated.
44424         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44425         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44426         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44427         * tests/unictype/test-pr_id_continue.c: Regenerated.
44428         * tests/unictype/test-pr_id_start.c: Regenerated.
44429         * tests/unictype/test-pr_ideographic.c: Regenerated.
44430         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44431         * tests/unictype/test-pr_lowercase.c: Regenerated.
44432         * tests/unictype/test-pr_math.c: Regenerated.
44433         * tests/unictype/test-pr_numeric.c: Regenerated.
44434         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44435         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44436         Regenerated.
44437         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44438         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44439         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44440         * tests/unictype/test-pr_other_math.c: Regenerated.
44441         * tests/unictype/test-pr_punctuation.c: Regenerated.
44442         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44443         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44444         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44445         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44446         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44447         * tests/unictype/test-pr_uppercase.c: Regenerated.
44448         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44449         * tests/unictype/test-pr_xid_start.c: Regenerated.
44450         * tests/unictype/test-pr_zero_width.c: Regenerated.
44451
44452         Update to Unicode 5.1.0.
44453         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44454         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44455         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44456         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44457         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44458         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44459         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44460         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44461         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44462         (nonspacing_table_ind): Update.
44463         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44464
44465         Update to Unicode 5.1.0.
44466         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44467         code transform.
44468         * lib/uniname/uniname.c (unicode_character_name,
44469         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44470         * lib/uniname/uninames.h: Regenerated.
44471         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44472
44473 2009-02-07  Bruno Haible  <bruno@clisp.org>
44474
44475         Merge gen-ctype and gen-lbrk into a single program.
44476         * lib/gen-uni-tables.c: New file, incorporating
44477         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44478         Add directory prefixes to the names of the generated files.
44479         * lib/unictype/gen-ctype.c: Remove file.
44480         * lib/unilbrk/gen-lbrk.c: Remove file.
44481         * modules/gen-uni-tables: New file.
44482         * modules/unictype/gen-ctype: Remove file.
44483         * modules/unilbrk/gen-lbrk: Remove file.
44484
44485 2009-02-07  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44488
44489         New module 'unistr/u32-strcoll'.
44490         * modules/unistr/u32-strcoll: New file.
44491         * lib/unistr/u32-strcoll.c: New file.
44492
44493         New module 'unistr/u16-strcoll'.
44494         * modules/unistr/u16-strcoll: New file.
44495         * lib/unistr/u16-strcoll.c: New file.
44496
44497         New module 'unistr/u8-strcoll'.
44498         * modules/unistr/u8-strcoll: New file.
44499         * lib/unistr/u8-strcoll.c: New file.
44500         * lib/unistr/u-strcoll.h: New file.
44501
44502 2009-02-07  Bruno Haible  <bruno@clisp.org>
44503
44504         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44505         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44506         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44507         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44508         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44509         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44510
44511 2009-02-07  Bruno Haible  <bruno@clisp.org>
44512
44513         Make 64-bit clean.
44514         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44515         output_combclass, output_bidi_category, output_decimal_digit,
44516         output_digit, output_numeric, output_mirror, output_scripts,
44517         output_ident_category): Use proper width specifier in format strings.
44518
44519 2009-02-07  Bruno Haible  <bruno@clisp.org>
44520
44521         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44522         failure behaviour.
44523
44524 2009-02-07  Jim Meyering  <meyering@redhat.com>
44525
44526         regex: avoid compilation failure with upcoming gcc-4.4
44527         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44528         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44529         "... error: integer overflow in preprocessor expression".
44530
44531 2009-02-05  Ben Pfaff  <blp@gnu.org>
44532
44533         Fix link errors on Windows when close module is used.
44534         * modules/close: Add $(LIB_CLOSE) to Link section.
44535         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44536         $(LIB_CLOSE) on Windows.
44537
44538 2009-02-05  Jim Meyering  <meyering@redhat.com>
44539
44540         still avoid unused-parameter warnings, but do it cleanly
44541         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44542         (get_fs_usage): Cast to void instead.
44543         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44544         (dev_from_mount_options, read_file_system_list): Cast to void.
44545         Prompted by Bruno Haible.
44546
44547 2009-02-04  Jim Meyering  <meyering@redhat.com>
44548
44549         fsusage.c: correct copyright year
44550         * lib/fsusage.c: Reflect year in which the change is pushed into
44551
44552         avoid misc. warnings
44553         * lib/fsusage.c (UNUSED_PARAM): Define.
44554         (get_fs_usage): Mark parameter "disk" as unused.
44555         * lib/getugroups.c (getgrent): Use "void" in prototype.
44556         * lib/mountlist.c: Mark unused parameters.
44557         (read_file_system_list): Declare a local with "const".
44558         * lib/nanosleep.c (getnow): Declare static.
44559         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44560
44561         dirfd: set errno upon failure
44562         * lib/dirfd.c: Include <errno.h>.
44563         Set errno to ENOTSUP when returning -1.
44564         * modules/dirfd (Depends-on): Add errno.
44565         Suggested by John Kodis <kodis@comcast.net>.
44566
44567 2009-02-01  Bruno Haible  <bruno@clisp.org>
44568
44569         Don't assume sizeof (long) >= sizeof (void *).
44570         * lib/memcmp.c: Include stdint.h.
44571         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44572         srcp2 to 'const byte *'.
44573         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44574         types to uintptr_t.
44575         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44576         * modules/memcmp (Depends-on): Add stdint.
44577         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44578
44579 2009-01-30  Eric Blake  <ebb9@byu.net>
44580
44581         fix more require-before-expand issues
44582         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44583         expand, AC_PROG_AWK.
44584         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44585
44586 2009-01-28  Eric Blake  <ebb9@byu.net>
44587
44588         version-etc: use consistent URL formatting
44589         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44590         Improve formatting.  Use fputs for string without %.
44591
44592 2009-01-28  Jim Meyering  <meyering@redhat.com>
44593
44594         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44595         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44596         "underquoted definition of NAME" from autoconf-2.59.
44597
44598 2009-01-28  Bruno Haible  <bruno@clisp.org>
44599
44600         * doc/gnulib.texi: Add "Obsolete modules" to index.
44601
44602 2009-01-28  Jim Meyering  <meyering@redhat.com>
44603
44604         useless-if-before-free: recognize more variants
44605         * build-aux/useless-if-before-free: Also recognize e.g.,
44606         if (NULL != p) free (p);
44607
44608 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44609
44610         test-getaddrinfo: skip (don't fail) this test when there's no network
44611         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44612         on the presumption that it means you lack network access.
44613
44614 2009-01-26  Jim Meyering  <meyering@redhat.com>
44615
44616         fflush: avoid warnings on modern systems
44617         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44618         pos and result, into scopes where they're used.
44619
44620 2009-01-26  Eric Blake  <ebb9@byu.net>
44621
44622         Silence warning reintroduced by recent extensions patch.
44623         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44624         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44625         autoconf.
44626
44627         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44628         * m4/00gnulib.m4: New file.
44629         * gnulib-tool (func_get_filelist): Always use it.
44630         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44631         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44632
44633 2009-01-25  Bruno Haible  <bruno@clisp.org>
44634
44635         Make test-quotearg work on MacOS X and AIX.
44636         * tests/test-quotearg.sh: New file.
44637         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44638         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44639         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44640         include <libintl.h>.
44641         (fake_locale): Remove variable.
44642         (gettext, dgettext, dcgettext): Remove functions.
44643         (main): Instead of setting a fake locale, set a real locale. Call
44644         textdomain and bindtextdomain.
44645         * modules/quotearg-tests (Files): Add the new files.
44646         (Depends-on): Add gettext, setenv, unsetenv.
44647         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44648         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44649         Augment TESTS_ENVIRONMENT.
44650
44651 2009-01-25  Bruno Haible  <bruno@clisp.org>
44652
44653         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44654         fr_FR.ISO8859-1 locale on MacOS X.
44655         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44656         ja_JP.eucJP locale on MacOS X.
44657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44658         zh_CN.GB18030 locale on MacOS X.
44659
44660 2009-01-25  Bruno Haible  <bruno@clisp.org>
44661
44662         Avoid link errors on MacOS X 10.3.
44663         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44664         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44665
44666 2009-01-25  Bruno Haible  <bruno@clisp.org>
44667
44668         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44669         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44670         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44671         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44672         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44673         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44674         posix_spawnattr_init, posix_spawnattr_setsigmask,
44675         posix_spawnattr_setflags, posix_spawnattr_destroy.
44676
44677         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44678         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44679         * modules/execute (Files): Remove m4/posix_spawn.m4.
44680         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44681         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44682         posix_spawnattr_init, posix_spawnattr_setsigmask,
44683         posix_spawnattr_setflags, posix_spawnattr_destroy.
44684
44685 2009-01-25  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/glthread/threadlib.c: Include <stdlib.h>.
44688
44689 2009-01-25  Bruno Haible  <bruno@clisp.org>
44690
44691         * lib/glthread/threadlib.c (dummy): New declaration.
44692
44693 2009-01-25  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44696         multibyte characters also for the GB18030 encoding. Don't crash when
44697         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44698
44699 2009-01-25  Bruno Haible  <bruno@clisp.org>
44700
44701         Avoid redefining 'struct random_data' on OSF/1 5.1.
44702         * lib/stdlib.in.h: Include <random.h> if it exists.
44703         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44704         HAVE_RANDOM_H. Include <random.h> when testing whether
44705         'struct random_data' exists.
44706         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44707
44708 2009-01-25  Bruno Haible  <bruno@clisp.org>
44709
44710         Don't install charset.alias on MacOS X >= 10.3.
44711         * lib/localcharset.c (DARWIN7): New macro.
44712         (get_charset_aliases): Hardcode the result for Darwin7.
44713         * modules/localcharset (install-exec-local): Don't install
44714         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44715
44716 2009-01-25  Bruno Haible  <bruno@clisp.org>
44717
44718         Don't install charset.alias on mingw and Cygwin.
44719         * modules/localcharset (install-exec-local): Don't install
44720         charset.alias on mingw and Cygwin, if the file does not yet exist.
44721         The result for these platforms is hardcoded in localcharset.c.
44722
44723 2009-01-25  Bruno Haible  <bruno@clisp.org>
44724
44725         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44727         before requiring AC_USE_SYSTEM_EXTENSIONS.
44728
44729 2009-01-25  Jim Meyering  <meyering@redhat.com>
44730
44731         c-strtod: avoid warnings
44732         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44733         "assignment discards qualifiers from pointer target type" warnings.
44734
44735 2009-01-24  Bruno Haible  <bruno@clisp.org>
44736
44737         Add support for non-UTF-8 locales on MacOS X.
44738         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44739         canonical encodings. For Darwin 7 and newer, don't map traditional
44740         encodings to UTF-8.
44741         Reported by Vincent Lefevre <vincent@vinc17.org>
44742         at <http://savannah.gnu.org/bugs/?25235>.
44743
44744 2009-01-24  Bruno Haible  <bruno@clisp.org>
44745
44746         * doc/gnulib.texi (Obsolete modules): New section.
44747         Reported by Mike Frysinger <vapier@gentoo.org>.
44748
44749 2009-01-24  Bruno Haible  <bruno@clisp.org>
44750
44751         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44752         (%.dvi): New rule.
44753
44754 2009-01-24  Bruno Haible  <bruno@clisp.org>
44755
44756         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44757         Reported by Eric Blake.
44758
44759 2009-01-24  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44762         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44763         Reported by Gary V. Vaughan <gary@gnu.org>.
44764
44765 2009-01-24  Bruno Haible  <bruno@clisp.org>
44766
44767         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44768
44769 2009-01-23  Bruno Haible  <bruno@clisp.org>
44770
44771         Make c-strtod, c-strtold usable in libraries.
44772         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44773         (C_STRTOD): Call strdup instead of xstrdup.
44774         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44775         * modules/c-strtold (Depends-on): Likewise.
44776         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44777         * NEWS: Mention the change.
44778         Reported by Michael Gold <mgold@ncf.ca>.
44779
44780 2009-01-23  Jim Meyering  <meyering@redhat.com>
44781
44782         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44783         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44784         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44785
44786 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44787
44788         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44789         GNU CoreUtils.
44790         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44791         * modules/version-etc (Description): Update.
44792
44793 2009-01-22  Bruno Haible  <bruno@clisp.org>
44794
44795         Cache the C locale object.
44796         * lib/c-strtod.c (c_locale_cache): New variable.
44797         (c_locale): New function.
44798         (C_STRTOD): Use it, and don't call freelocale.
44799         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44800         Suggested by Paolo Bonzini.
44801
44802 2009-01-21  Bruno Haible  <bruno@clisp.org>
44803
44804         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44805         conditions other than overflow.
44806
44807 2009-01-21  Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/c-strtod.c: Include errno.h.
44810         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44811         value from STRTOD_L and STRTOD.
44812
44813 2009-01-21  Bruno Haible  <bruno@clisp.org>
44814         and Jim Meyering  <meyering@redhat.com>
44815
44816         nanosleep: skip configure test (fail it) for apple universal builds
44817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44818         universal builds, assume that nanosleep does not work.
44819         * modules/nanosleep (Depends-on): Add multiarch.
44820
44821         mktime: skip configure test (fail it) for apple universal builds
44822         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44823         universal builds, assume that mktime does not work.
44824         * modules/mktime (Depends-on): Add multiarch.
44825
44826 2009-01-21  Eric Blake  <ebb9@byu.net>
44827
44828         multiarch: avoid expand-before-require warning
44829         * modules/multiarch (configure.ac): Require, rather than expand,
44830         gl_MULTIARCH.
44831         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44832         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44833         enforce that all clients require it.  Partial reversion of
44834         2008-12-29 patch.
44835
44836         error: avoid expand-before-require warning
44837         * modules/errno (configure.ac): Require, rather than expand,
44838         gl_HEADER_ERRNO_H.
44839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44840         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44841         enforce that all clients require it.
44842
44843         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44844         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44845         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44846         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44847
44848 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44849
44850         Revert:
44851         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44852
44853         regex: do not depend on obsolete modules.
44854         * modules/regex: Remove memcmp and memmove.
44855
44856 2009-01-20  Bruno Haible  <bruno@clisp.org>
44857
44858         Make the 'link' module link on Windows NT 4.
44859         * lib/link.c (_WIN32_WINNT): Don't define.
44860         (CreateHardLinkFuncType): New type.
44861         (CreateHardLinkFunc, initialized): New variables.
44862         (initialize): New function.
44863         (link): Invoke CreateHardLink indirectly through the function pointer.
44864
44865 2009-01-20  Bruno Haible  <bruno@clisp.org>
44866
44867         Fix compilation failure on mingw.
44868         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44869
44870 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44871
44872         * doc/c-strtod.texi: Mention a couple of restrictions.
44873
44874 2009-01-20  Jim Meyering  <meyering@redhat.com>
44875
44876         gettimeofday: move more declarations out of functions
44877         * lib/gettimeofday.c: Move extern declarations of tzset and
44878         gmtime out of containing functions.  Prompted by Bruno Haible.
44879
44880 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44881
44882         regex: do not depend on obsolete modules.
44883         * modules/regex: Remove memcmp and memmove.
44884
44885 2009-01-19  Bruno Haible  <bruno@clisp.org>
44886
44887         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44888         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44889         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44890         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44891         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44892
44893 2009-01-19  Bruno Haible  <bruno@clisp.org>
44894
44895         * tests/test-link.c: Include <errno.h>.
44896         (main): Exit with code 77 when a hard link cannot be created due to
44897         the file system.
44898         * tests/test-link.sh: Skip test when a hard link cannot be created due
44899         to the file system.
44900         Suggested by Eric Blake.
44901
44902 2009-01-19  Martin Lambers  <marlam@marlam.de>
44903
44904         * modules/link-tests: New file.
44905         * tests/test-link.sh: New file.
44906         * tests/test-link.c: New file.
44907
44908 2009-01-19  Eric Blake  <ebb9@byu.net>
44909
44910         doc: mention another function added in cygwin 1.7.0
44911         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44912         Another new function in cygwin 1.7.
44913
44914 2009-01-19  Bruno Haible  <bruno@clisp.org>
44915
44916         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44917         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44918         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44919         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44920         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44921         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44923         * m4/md4.m4 (gl_MD4): Likewise.
44924         * m4/md5.m4 (gl_MD5): Likewise.
44925         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44926         * m4/sha1.m4 (gl_SHA1): Likewise.
44927         * m4/sha256.m4 (gl_SHA256): Likewise.
44928         * m4/sha512.m4 (gl_SHA512): Likewise.
44929
44930 2009-01-19  Bruno Haible  <bruno@clisp.org>
44931
44932         * modules/uniname/uniname-tests (Depends-on): Add progname.
44933         * tests/uniname/test-uninames.c: Include progname.h.
44934         (main): Call set_program_name.
44935
44936         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44937         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44938         (main): Call set_program_name.
44939
44940         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44941         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44942         (main): Call set_program_name.
44943
44944         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44945         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44946         (main): Call set_program_name.
44947
44948         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44949         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44950         (main): Call set_program_name.
44951
44952         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44953         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44954         (main): Call set_program_name.
44955
44956         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44957         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44958         (main): Call set_program_name.
44959
44960         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44961         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44962         (main): Call set_program_name.
44963
44964         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44965         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44966         (main): Call set_program_name.
44967
44968 2009-01-19  Eric Blake  <ebb9@byu.net>
44969
44970         test-unistd: test previous patch
44971         * tests/test-unistd.c: Test *_FILENO macros.
44972
44973         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44974         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44975         Guarantee a definition.
44976         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44977         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44978         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44979         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44980         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44981         Likewise.
44982         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44983         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44984         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44985         Likewise.
44986         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44987         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44988         (STDERR_FILENO): Likewise.
44989         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44990         (STDERR_FILENO): Likewise.
44991         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44992         (STDERR_FILENO): Likewise.
44993         Reported by Elbert Pol.
44994
44995 2009-01-19  Eric Blake  <ebb9@byu.net>
44996
44997         doc: mention more functions added in cygwin 1.7.0
44998         * doc/posix-functions/abort.texi (abort): Update wording related
44999         to cygwin.
45000         * doc/posix-functions/daylight.texi (daylight): Likewise.
45001         * doc/posix-functions/optarg.texi (optarg): Likewise.
45002         * doc/posix-functions/optarg.texi (opterr): Likewise.
45003         * doc/posix-functions/optarg.texi (optind): Likewise.
45004         * doc/posix-functions/optarg.texi (optopt): Likewise.
45005         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
45006         worked in 1.5.x, and was withdrawn in 1.7.
45007         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45008         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
45009         cygwin versions.
45010         * doc/posix-functions/perror.texi (perror): Likewise.
45011         * doc/posix-functions/printf.texi (printf): Likewise.
45012         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
45013         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
45014         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45015         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45016         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45017         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
45018         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45019         Likewise.
45020         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45021         Likewise.
45022         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
45023         this function.
45024         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
45025         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
45026         Likewise.
45027         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
45028         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
45029         * doc/posix-functions/confstr.texi (confstr): Likewise.
45030         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
45031         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
45032         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
45033         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
45034         * doc/posix-functions/fputws.texi (fputws): Likewise.
45035         * doc/posix-functions/fwide.texi (fwide): Likewise.
45036         * doc/posix-functions/getwc.texi (getwc): Likewise.
45037         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
45038         * doc/posix-functions/putwc.texi (putwc): Likewise.
45039         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45040         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
45041         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
45042         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45043         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
45044         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
45045         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
45046         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
45047         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
45048         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
45049         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
45050
45051 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45052
45053         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
45054         * lib/ioctl.c: Include <sys/ioctl.h>.
45055
45056 2009-01-19  Simon Josefsson  <simon@josefsson.org>
45057
45058         * modules/getdate-tests (Depends-on): Add progname.
45059         * tests/test-getdate.c: Use progname module, to avoid link errors
45060         on non-glibc systems.
45061
45062 2009-01-18  Simon Josefsson  <simon@josefsson.org>
45063
45064         * modules/filenamecat-tests (Depends-on): Add progname.
45065         * modules/fstrcmp-tests (Depends-on): Likewise.
45066
45067         * tests/test-filenamecat.c: Use progname module, to avoid link
45068         errors on non-glibc systems.
45069         * tests/test-fstrcmp.c: Likewise.
45070
45071 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45072
45073         gettimeofday: avoid warning: nested extern declaration of 'localtime'
45074         * lib/gettimeofday.c: Move extern declaration out of function.
45075
45076 2009-01-18  Bruno Haible  <bruno@clisp.org>
45077
45078         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
45079         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
45080         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
45081
45082 2009-01-18  Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/strftime.c (MEMPCPY): Remove unused macro.
45085         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
45086
45087 2009-01-18  Martin Lambers  <marlam@marlam.de>
45088
45089         New module 'link'.
45090         * lib/unistd.in.h (link): New declaration.
45091         * lib/link.c: New file.
45092         * m4/link.m4: New file.
45093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
45094         HAVE_LINK.
45095         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
45096         * modules/link: New file.
45097         * doc/posix-functions/link.texi: Mention the new module.
45098
45099 2009-01-18  Bruno Haible  <bruno@clisp.org>
45100
45101         * tests/test-avltree_list.c (main): Call set_program_name.
45102         * tests/test-avltree_oset.c (main): Likewise.
45103         * tests/test-obstack-printf.c: Include progname.h.
45104         (main): Call set_program_name.
45105         * tests/test-quotearg.c: Include progname.h.
45106         (main): Call set_program_name.
45107         * tests/test-xmemdup0.c: Include progname.h.
45108         (main): Call set_program_name.
45109
45110 2009-01-18  Bruno Haible  <bruno@clisp.org>
45111
45112         New module 'alphasort'.
45113         * lib/dirent.in.h (alphasort): New declaration.
45114         * lib/alphasort.c: New file, from glibc with modifications.
45115         * m4/alphasort.m4: New file.
45116         * modules/alphasort: New file.
45117         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
45118         HAVE_ALPHASORT.
45119         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
45120         HAVE_ALPHASORT.
45121         * doc/posix-functions/alphasort.texi: Mention the new module and the
45122         portability problems.
45123
45124 2009-01-18  Bruno Haible  <bruno@clisp.org>
45125
45126         New module 'scandir'.
45127         * lib/dirent.in.h (scandir): New declaration.
45128         * lib/scandir.c: New file, from glibc with modifications.
45129         * m4/scandir.m4: New file.
45130         * modules/scandir: New file.
45131         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
45132         HAVE_SCANDIR.
45133         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
45134         HAVE_SCANDIR.
45135         * doc/posix-functions/scandir.texi: Mention the new module and the
45136         portability problems.
45137
45138 2009-01-17  Bruno Haible  <bruno@clisp.org>
45139
45140         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
45141         Update documentation.
45142         (func_remove_suffix): Escape all dots in the suffix. Update
45143         documentation.
45144         (func_filter_filelist): Update documentation.
45145         Reported by Ralf Wildenhues.
45146
45147 2009-01-17  Bruno Haible  <bruno@clisp.org>
45148
45149         * modules/dprintf-posix-tests: New file.
45150         * tests/test-dprintf-posix.sh: New file.
45151         * tests/test-dprintf-posix.c: New file.
45152
45153         New modules 'dprintf', 'dprintf-posix'.
45154         * lib/stdio.in.h (dprintf): New declaration.
45155         * lib/dprintf.c: New file.
45156         * m4/dprintf.m4: New file.
45157         * m4/dprintf-posix.m4: New file.
45158         * modules/dprintf: New file.
45159         * modules/dprintf-posix: New file.
45160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45161         HAVE_DPRINTF, REPLACE_DPRINTF.
45162         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45163         HAVE_DPRINTF, REPLACE_DPRINTF.
45164         * doc/posix-functions/dprintf.texi: Mention the new modules.
45165
45166 2009-01-17  Bruno Haible  <bruno@clisp.org>
45167
45168         * modules/vdprintf-posix-tests: New file.
45169         * tests/test-vdprintf-posix.sh: New file.
45170         * tests/test-vdprintf-posix.c: New file.
45171
45172         New modules 'vdprintf', 'vdprintf-posix'.
45173         * lib/stdio.in.h (vdprintf): New declaration.
45174         * lib/vdprintf.c: New file.
45175         * m4/vdprintf.m4: New file.
45176         * m4/vdprintf-posix.m4: New file.
45177         * modules/vdprintf: New file.
45178         * modules/vdprintf-posix: New file.
45179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45180         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45181         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45182         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45183         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45184
45185 2009-01-17  Bruno Haible  <bruno@clisp.org>
45186
45187         Fix replacement of fopen on mingw.
45188         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45189         mingw.
45190
45191 2009-01-17  Bruno Haible  <bruno@clisp.org>
45192
45193         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45194         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45195
45196 2009-01-17  Bruno Haible  <bruno@clisp.org>
45197
45198         Avoid test-fflush2.sh failure on mingw.
45199         * tests/test-fflush2.c: Include binary-io.h.
45200         (main): Put standard input into binary mode.
45201         * modules/fflush-tests (Depends-on): Add binary-io.
45202
45203 2009-01-17  Bruno Haible  <bruno@clisp.org>
45204
45205         * lib/wchar.in.h: In another particular situation, include only the
45206         system's <wchar.h> file.
45207         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45208         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45209         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45210
45211 2009-01-17  Bruno Haible  <bruno@clisp.org>
45212
45213         Support for stripping executables in --enable-relocatable.
45214         * build-aux/install-reloc: Expect one more argument, or an environment
45215         variable RELOC_STRIP_PROG. If set, strip the destination program and
45216         its wrapper.
45217         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45218         RELOC_STRIP_PROG.
45219         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45220         to set RELOCATABLE_STRIP.
45221         * NEWS: Mention the new Makefile requirement.
45222
45223 2009-01-17  Bruno Haible  <bruno@clisp.org>
45224
45225         * build-aux/install-reloc: Remove debugging information left over by
45226         C compiler on MacOS X.
45227
45228 2009-01-17  Bruno Haible  <bruno@clisp.org>
45229
45230         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45231         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45232         _NSGetExecutablePath.
45233
45234 2009-01-16  Jim Meyering  <meyering@redhat.com>
45235
45236         strerror: avoid warnings about discarding "const"
45237         * lib/strerror.c (rpl_strerror): Instead of returning a const
45238         string from each and every "case", use a variable, and add a single
45239         cast after the switch.
45240
45241 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45242
45243         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45244
45245 2009-01-16  Bruno Haible  <bruno@clisp.org>
45246
45247         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45248         array initializer syntax that also works in C++ mode.
45249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45250
45251 2009-01-16  Jim Meyering  <meyering@redhat.com>
45252
45253         poll: suppress a warning
45254         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45255         to ignore "...unsigned expression < 0 is always false" warnings.
45256
45257 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45258
45259         poll: remove declarations of unused variables
45260         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45261         sockbuf and optlen.
45262
45263 2009-01-15  Bruno Haible  <bruno@clisp.org>
45264
45265         Make fflush-after-ungetc POSIX compliant on BSD systems.
45266         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45267         (clear_ungetc_buffer): Implement also for other systems.
45268         (rpl_fflush): On glibc systems, invoke
45269         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45270         clear_ungetc_buffer after fetching the stream's position, not before.
45271
45272 2009-01-15  Bruno Haible  <bruno@clisp.org>
45273
45274         Make fflush-after-ungetc POSIX compliant on glibc systems.
45275         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45276         after ungetc.
45277         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45278         (rpl_fflush): On glibc systems, simply call the system's fflush
45279         function after clearing the ungetc buffer.
45280         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45281         Instead, lseek only to the end of file, then use the system's fseeko
45282         for the rest. On glibc systems, reset the EOF indicator bit.
45283
45284 2009-01-15  Jim Meyering  <meyering@redhat.com>
45285
45286         openmp.m4: revert quote-adding change, for portability to older autoconf
45287         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45288         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45289         Simon Josefsson noticed the problem when using autoconf-2.61.
45290
45291 2009-01-15  Bruno Haible  <bruno@clisp.org>
45292
45293         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45294         * tests/test-fflush2.c (ASSERT): Always fail.
45295         (main): Add two tests for fflush() after ungetc(), taking into account
45296         the Austin Group's clarification.
45297         Suggested by Eric Blake.
45298
45299 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45300
45301         mktime.m4: remove K&R-style function prototypes
45302         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45303         for the Sun C++ compiler.
45304
45305 2009-01-14  Bruno Haible  <bruno@clisp.org>
45306
45307         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45308         while including <wchar.h>.
45309         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45310         the system's <wchar.h> file.
45311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45312
45313 2009-01-14  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/csharp.m4: Don't mention gettext on the serial number line.
45316         * m4/csharpexec.m4: Likewise.
45317         * m4/eaccess.m4: Likewise.
45318         * m4/javaexec.m4: Likewise.
45319         * m4/sig_atomic_t.m4: Likewise.
45320         * m4/tmpdir.m4: Likewise.
45321         * m4/intldir.m4: Bump gettext version.
45322         * m4/lib-ld.m4: Likewise.
45323
45324 2009-01-14  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/progname.c (set_program_name): Add more comments.
45327         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45328
45329 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45330
45331         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45332         were sys/stat.h does not define it.
45333
45334 2009-01-14  Jim Meyering  <meyering@redhat.com>
45335
45336         many *.m4 files: improve m4 quoting
45337         99% of this change was performed by running the following commands:
45338         git ls-files | grep '\.m4$' | xargs perl -pi \
45339           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45340           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45341           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45342           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45343         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45344         The remainder were to add Copyright dates, increment serial numbers,
45345         undo some changes in comments, exclude m4/intl.m4, and add quotes
45346         around the "1" in ",1" where the unusual spacing prohibited the
45347         above regexps from doing the job.  For more details, see
45348         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45349         * m4/acl.m4: Modified.
45350         * m4/afs.m4: Likewise.
45351         * m4/alloca.m4: Likewise.
45352         * m4/argp.m4: Likewise.
45353         * m4/argz.m4: Likewise.
45354         * m4/atexit.m4: Likewise.
45355         * m4/bison-i18n.m4: Likewise.
45356         * m4/bison.m4: Likewise.
45357         * m4/byteswap.m4: Likewise.
45358         * m4/c-stack.m4: Likewise.
45359         * m4/c-strtod.m4: Likewise.
45360         * m4/calloc.m4: Likewise.
45361         * m4/canonicalize-lgpl.m4: Likewise.
45362         * m4/chown.m4: Likewise.
45363         * m4/clock_time.m4: Likewise.
45364         * m4/codeset.m4: Likewise.
45365         * m4/copy-file.m4: Likewise.
45366         * m4/csharp.m4: Likewise.
45367         * m4/csharpcomp.m4: Likewise.
45368         * m4/csharpexec.m4: Likewise.
45369         * m4/d-ino.m4: Likewise.
45370         * m4/d-type.m4: Likewise.
45371         * m4/dirfd.m4: Likewise.
45372         * m4/double-slash-root.m4: Likewise.
45373         * m4/eaccess.m4: Likewise.
45374         * m4/eealloc.m4: Likewise.
45375         * m4/environ.m4: Likewise.
45376         * m4/errno_h.m4: Likewise.
45377         * m4/euidaccess.m4: Likewise.
45378         * m4/execute.m4: Likewise.
45379         * m4/fatal-signal.m4: Likewise.
45380         * m4/fchdir.m4: Likewise.
45381         * m4/fcntl_h.m4: Likewise.
45382         * m4/fileblocks.m4: Likewise.
45383         * m4/filenamecat.m4: Likewise.
45384         * m4/findprog.m4: Likewise.
45385         * m4/flexmember.m4: Likewise.
45386         * m4/fnmatch.m4: Likewise.
45387         * m4/fopen.m4: Likewise.
45388         * m4/fpending.m4: Likewise.
45389         * m4/fprintf-posix.m4: Likewise.
45390         * m4/free.m4: Likewise.
45391         * m4/frexp.m4: Likewise.
45392         * m4/frexpl.m4: Likewise.
45393         * m4/fsusage.m4: Likewise.
45394         * m4/ftruncate.m4: Likewise.
45395         * m4/gc-camellia.m4: Likewise.
45396         * m4/gc-random.m4: Likewise.
45397         * m4/gc.m4: Likewise.
45398         * m4/getaddrinfo.m4: Likewise.
45399         * m4/getcwd-abort-bug.m4: Likewise.
45400         * m4/getcwd-path-max.m4: Likewise.
45401         * m4/getdate.m4: Likewise.
45402         * m4/getdomainname.m4: Likewise.
45403         * m4/getgroups.m4: Likewise.
45404         * m4/gethostname.m4: Likewise.
45405         * m4/gethrxtime.m4: Likewise.
45406         * m4/getline.m4: Likewise.
45407         * m4/getloadavg.m4: Likewise.
45408         * m4/getndelim2.m4: Likewise.
45409         * m4/getpass.m4: Likewise.
45410         * m4/gettext.m4: Likewise.
45411         * m4/gettime.m4: Likewise.
45412         * m4/gettimeofday.m4: Likewise.
45413         * m4/gnulib-common.m4: Likewise.
45414         * m4/group-member.m4: Likewise.
45415         * m4/host-os.m4: Likewise.
45416         * m4/iconv.m4: Likewise.
45417         * m4/iconv_open.m4: Likewise.
45418         * m4/inet_ntop.m4: Likewise.
45419         * m4/inet_pton.m4: Likewise.
45420         * m4/inline.m4: Likewise.
45421         * m4/intldir.m4: Likewise.
45422         * m4/intlmacosx.m4: Likewise.
45423         * m4/intmax.m4: Likewise.
45424         * m4/intmax_t.m4: Likewise.
45425         * m4/inttypes.m4: Likewise.
45426         * m4/inttypes_h.m4: Likewise.
45427         * m4/inttypes-pri.m4: Likewise.
45428         * m4/isapipe.m4: Likewise.
45429         * m4/isnand.m4: Likewise.
45430         * m4/isnanf.m4: Likewise.
45431         * m4/isnanl.m4: Likewise.
45432         * m4/javacomp.m4: Likewise.
45433         * m4/javaexec.m4: Likewise.
45434         * m4/jm-winsz1.m4: Likewise.
45435         * m4/jm-winsz2.m4: Likewise.
45436         * m4/lchown.m4: Likewise.
45437         * m4/lcmessage.m4: Likewise.
45438         * m4/ldexpl.m4: Likewise.
45439         * m4/lib-ld.m4: Likewise.
45440         * m4/lib-link.m4: Likewise.
45441         * m4/libsigsegv.m4: Likewise.
45442         * m4/link-follow.m4: Likewise.
45443         * m4/localcharset.m4: Likewise.
45444         * m4/locale-fr.m4: Likewise.
45445         * m4/locale-ja.m4: Likewise.
45446         * m4/locale-tr.m4: Likewise.
45447         * m4/locale-zh.m4: Likewise.
45448         * m4/lock.m4: Likewise.
45449         * m4/longlong.m4: Likewise.
45450         * m4/ls-mntd-fs.m4: Likewise.
45451         * m4/lstat.m4: Likewise.
45452         * m4/malloc.m4: Likewise.
45453         * m4/mathl.m4: Likewise.
45454         * m4/mbrtowc.m4: Likewise.
45455         * m4/mbstate_t.m4: Likewise.
45456         * m4/mbswidth.m4: Likewise.
45457         * m4/memchr.m4: Likewise.
45458         * m4/memcmp.m4: Likewise.
45459         * m4/memcpy.m4: Likewise.
45460         * m4/memmem.m4: Likewise.
45461         * m4/memmove.m4: Likewise.
45462         * m4/mempcpy.m4: Likewise.
45463         * m4/memrchr.m4: Likewise.
45464         * m4/memset.m4: Likewise.
45465         * m4/minmax.m4: Likewise.
45466         * m4/mkdir-slash.m4: Likewise.
45467         * m4/mkdtemp.m4: Likewise.
45468         * m4/mktime.m4: Likewise.
45469         * m4/mmap-anon.m4: Likewise.
45470         * m4/mountlist.m4: Likewise.
45471         * m4/nanosleep.m4: Likewise.
45472         * m4/nls.m4: Likewise.
45473         * m4/nocrash.m4: Likewise.
45474         * m4/open.m4: Likewise.
45475         * m4/openat.m4: Likewise.
45476         * m4/openmp.m4: Likewise.
45477         * m4/pathmax.m4: Likewise.
45478         * m4/perl.m4: Likewise.
45479         * m4/physmem.m4: Likewise.
45480         * m4/pipe.m4: Likewise.
45481         * m4/po.m4: Likewise.
45482         * m4/poll.m4: Likewise.
45483         * m4/posixtm.m4: Likewise.
45484         * m4/posixver.m4: Likewise.
45485         * m4/printf-frexp.m4: Likewise.
45486         * m4/printf-frexpl.m4: Likewise.
45487         * m4/printf-posix.m4: Likewise.
45488         * m4/printf-posix-rpl.m4: Likewise.
45489         * m4/printf.m4: Likewise.
45490         * m4/progtest.m4: Likewise.
45491         * m4/putenv.m4: Likewise.
45492         * m4/readline.m4: Likewise.
45493         * m4/readlink.m4: Likewise.
45494         * m4/readutmp.m4: Likewise.
45495         * m4/realloc.m4: Likewise.
45496         * m4/regex.m4: Likewise.
45497         * m4/relocatable.m4: Likewise.
45498         * m4/relocatable-lib.m4: Likewise.
45499         * m4/rename-dest-slash.m4: Likewise.
45500         * m4/rename.m4: Likewise.
45501         * m4/rmdir-errno.m4: Likewise.
45502         * m4/rmdir.m4: Likewise.
45503         * m4/roundf.m4: Likewise.
45504         * m4/roundl.m4: Likewise.
45505         * m4/rpmatch.m4: Likewise.
45506         * m4/save-cwd.m4: Likewise.
45507         * m4/selinux-selinux-h.m4: Likewise.
45508         * m4/setenv.m4: Likewise.
45509         * m4/settime.m4: Likewise.
45510         * m4/sig2str.m4: Likewise.
45511         * m4/sig_atomic_t.m4: Likewise.
45512         * m4/signalblocking.m4: Likewise.
45513         * m4/signbit.m4: Likewise.
45514         * m4/sigpipe.m4: Likewise.
45515         * m4/sockets.m4: Likewise.
45516         * m4/sockpfaf.m4: Likewise.
45517         * m4/st_dm_mode.m4: Likewise.
45518         * m4/stat-time.m4: Likewise.
45519         * m4/stdbool.m4: Likewise.
45520         * m4/stdint.m4: Likewise.
45521         * m4/stdint_h.m4: Likewise.
45522         * m4/stpcpy.m4: Likewise.
45523         * m4/stpncpy.m4: Likewise.
45524         * m4/strcase.m4: Likewise.
45525         * m4/strchrnul.m4: Likewise.
45526         * m4/strcspn.m4: Likewise.
45527         * m4/strdup.m4: Likewise.
45528         * m4/strftime.m4: Likewise.
45529         * m4/strndup.m4: Likewise.
45530         * m4/strnlen.m4: Likewise.
45531         * m4/strpbrk.m4: Likewise.
45532         * m4/strptime.m4: Likewise.
45533         * m4/strsep.m4: Likewise.
45534         * m4/strtod.m4: Likewise.
45535         * m4/strtoimax.m4: Likewise.
45536         * m4/strtok_r.m4: Likewise.
45537         * m4/strtol.m4: Likewise.
45538         * m4/strtoll.m4: Likewise.
45539         * m4/strtoul.m4: Likewise.
45540         * m4/strtoull.m4: Likewise.
45541         * m4/strtoumax.m4: Likewise.
45542         * m4/strverscmp.m4: Likewise.
45543         * m4/threadlib.m4: Likewise.
45544         * m4/timegm.m4: Likewise.
45545         * m4/tm_gmtoff.m4: Likewise.
45546         * m4/tmpdir.m4: Likewise.
45547         * m4/tmpfile.m4: Likewise.
45548         * m4/tzset.m4: Likewise.
45549         * m4/uintmax_t.m4: Likewise.
45550         * m4/unlinkdir.m4: Likewise.
45551         * m4/unlocked-io.m4: Likewise.
45552         * m4/uptime.m4: Likewise.
45553         * m4/userspec.m4: Likewise.
45554         * m4/utimbuf.m4: Likewise.
45555         * m4/utime.m4: Likewise.
45556         * m4/utimes-null.m4: Likewise.
45557         * m4/utimes.m4: Likewise.
45558         * m4/vararrays.m4: Likewise.
45559         * m4/vasnprintf.m4: Likewise.
45560         * m4/vfprintf-posix.m4: Likewise.
45561         * m4/vprintf-posix.m4: Likewise.
45562         * m4/wait-process.m4: Likewise.
45563         * m4/wchar_t.m4: Likewise.
45564         * m4/wint_t.m4: Likewise.
45565         * m4/write-any-file.m4: Likewise.
45566         * m4/yield.m4: Likewise.
45567
45568 2009-01-13  Bruno Haible  <bruno@clisp.org>
45569
45570         Avoid test-copy-file.sh failures when ACL support insufficient.
45571         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45572         TESTS_ENVIRONMENT.
45573         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45574         Reported by Jim Meyering.
45575
45576 2009-01-13  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45579         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45580         * modules/unistdio/u8-printf-parse (Files): Likewise.
45581         * modules/unistdio/u32-printf-parse (Files): Likewise.
45582         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45583
45584 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45585
45586         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45587         and m4/inttypes_h.m4 too.
45588
45589 2009-01-12  Eric Blake  <ebb9@byu.net>
45590
45591         tests: IRIX 6.2 cc can't compile -0.0 into .data
45592         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45593         rather than at compile-time.
45594         * tests/test-floorl.c (minus_zero): Likewise.
45595         * tests/test-frexpl.c (minus_zero): Likewise.
45596         * tests/test-isnan.c (minus_zerol): Likewise.
45597         * tests/test-isnanl.h (minus_zero): Likewise.
45598         * tests/test-ldexpl.c (minus_zero): Likewise.
45599         * tests/test-roundl.c (minus_zero): Likewise.
45600         * tests/test-signbit.c (minus_zerol): Likewise.
45601         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45602         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45603         * tests/test-truncl.c (minus_zero): Likewise.
45604         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45605         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45606         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45607
45608 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45609
45610         regex: fix glibc bug 9697
45611         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45612         handling.
45613
45614 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45615
45616         regex: fix glibc bug 697
45617         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45618         being NULL also if there are no backreferences.
45619
45620 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45621
45622         regex: merge glibc changes
45623         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45624         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45625         re_string_skip_chars, re_string_reconstruct): Likewise.
45626         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45627
45628 2009-01-07  Jim Meyering  <meyering@redhat.com>
45629
45630         poll: filter through cppi
45631         * lib/poll.c: Indent cpp directives to reflect nesting.
45632
45633 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45634
45635         poll: don't return uninitialized
45636         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45637
45638 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45639
45640         avoid compile failure on AIX 6.1
45641         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45642         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45643
45644 2009-01-04  Jim Meyering  <meyering@redhat.com>
45645
45646         remove duplicate inclusion of <stdio.h>
45647         * tests/test-fprintf-posix.c: Likewise.
45648         * tests/test-printf-posix.c: Likewise.
45649         * tests/test-snprintf-posix.c: Likewise.
45650         * tests/test-sprintf-posix.c: Likewise.
45651         * tests/test-vasprintf-posix.c: Likewise.
45652         * tests/test-vfprintf-posix.c: Likewise.
45653         * tests/test-vprintf-posix.c: Likewise.
45654         * tests/test-vsnprintf-posix.c: Likewise.
45655         * tests/test-vsprintf-posix.c: Likewise.
45656
45657 2009-01-03  Jim Meyering  <meyering@redhat.com>
45658
45659         gnulib-tool: fix sed-based filtering
45660         * gnulib-tool (func_filter_filelist): Remove extra backslash
45661         in sed_fff_filter definition.
45662
45663 2009-01-02  Jim Meyering  <meyering@redhat.com>
45664
45665         strftime: avoid compilation failure on Solaris 2.6
45666         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45667         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45668         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45669         be available.  Reported by Tom G. Christensen.  Details in
45670         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45671
45672 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45673             Bruno Haible  <bruno@clisp.org>
45674
45675         Speed up gnulib-tool by doing more string processing through shell
45676         built-ins.
45677         * gnulib-tool (fast_func_append): New variable.
45678         (func_remove_prefix, func_remove_suffix): New functions.
45679         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45680         (func_filter_filelist): New function.
45681         (func_get_dependencies): Use func_remove_suffix instead of sed.
45682         (func_get_automake_snippet): Use func_filter_filelist instead of a
45683         subshell and sed invocation.
45684
45685 2009-01-01  Bruno Haible  <bruno@clisp.org>
45686
45687         Fix a security bug.
45688         * gnulib-tool (func_import, import, update): Don't allow the characters
45689         '"', '$', '`', '\' in macro arguments that become part of commands that
45690         are evaluated.
45691
45692 2009-01-01  Bruno Haible  <bruno@clisp.org>
45693
45694         * gnulib-tool (func_reset_sigpipe): Add more comments.
45695
45696 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45697
45698         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45699         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45700         already know the answer.
45701
45702 2009-01-01  Jim Meyering  <meyering@redhat.com>
45703
45704         * lib/version-etc.c (version_etc_va): Update copyright year.
45705
45706 2008-12-30  Bruno Haible  <bruno@clisp.org>
45707
45708         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45709         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45710         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45711
45712 2008-12-29  Eric Blake  <ebb9@byu.net>
45713
45714         multiarch: avoid autoconf AC_REQUIRE bug
45715         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45716         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45717         2.63 and older.
45718         Reported by Bruno Haible, and analyzed in
45719         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45720
45721 2008-12-29  Bruno Haible  <bruno@clisp.org>
45722
45723         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45724         files in subdirectories correctly.
45725         Reported by Ralf Wildenhues.
45726
45727 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45728
45729         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45730         rather than 'join FILE -', for Solaris join.
45731
45732 2008-12-29  Bruno Haible  <bruno@clisp.org>
45733
45734         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45735         quoting.
45736         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45737         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45738         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45739         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45740         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45741         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45742         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45743         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45744         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45745         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45746         * m4/nls.m4 (AM_NLS): Likewise.
45747         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45748         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45749         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45750         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45751         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45752         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45753         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45754         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45755         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45756         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45757         * m4/xsize.m4 (gl_XSIZE): Likewise.
45758         Suggested by Jim Meyering.
45759
45760 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45761
45762         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45763         * lib/parse-duration.c: use a switch instead of cascading if's.
45764
45765 2008-12-29  Eric Blake  <ebb9@byu.net>
45766
45767         wchar.h: supply WEOF on Irix 5.3
45768         * lib/wchar.in.h (wint_t): Also supply WEOF.
45769         * lib/wctype.in.h (wint_t): Likewise.
45770         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45771         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45772         Reported by Tom G. Christensen.
45773
45774 2008-12-26  Bruno Haible  <bruno@clisp.org>
45775
45776         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45777         i486, i586, i686.
45778
45779 2008-12-26  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45782
45783 2008-12-26  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45786         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45787         not __STDC_CONSTANT_MACROS.
45788         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45789
45790 2008-12-25  Bruno Haible  <bruno@clisp.org>
45791
45792         Add support for universal builds to vasnprintf.
45793         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45794         universal builds, guess no.
45795         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45796         * modules/vasprintf-posix (Depends-on): Likewise.
45797         * modules/fprintf-posix (Depends-on): Likewise.
45798         * modules/vfprintf-posix (Depends-on): Likewise.
45799         * modules/snprintf-posix (Depends-on): Likewise.
45800         * modules/vsnprintf-posix (Depends-on): Likewise.
45801         * modules/sprintf-posix (Depends-on): Likewise.
45802         * modules/vsprintf-posix (Depends-on): Likewise.
45803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45804         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45805         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45806         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45807         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45808         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45809         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45810
45811         Add support for universal builds to <inttypes.h>.
45812         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45813         _SCNu64_PREFIX): In Apple
45814         universal builds, define directly, using _LP64.
45815         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45816         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45817         * modules/inttypes (Depends-on): Add multiarch.
45818         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45819
45820         Add support for universal builds to <stdint.h>.
45821         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45822         universal builds, define directly, using _LP64.
45823         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45824         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45825         and size_t.
45826         * modules/stdint (Depends-on): Add multiarch.
45827         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45828
45829         New module 'multiarch'.
45830         * modules/multiarch: New file.
45831         * m4/multiarch.m4: New file.
45832
45833 2008-12-25  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45836
45837 2008-12-25  Bruno Haible  <bruno@clisp.org>
45838
45839         * modules/btowc (License): Relicense under LGPLv2+.
45840         * modules/mbsinit (License): Likewise.
45841         * modules/mbrtowc (License): Likewise.
45842         * modules/wcrtomb (License): Likewise.
45843         * modules/streq (License): Likewise.
45844         Reported by David Lutterkort <lutter@redhat.com>.
45845
45846 2008-12-23  Bruno Haible  <bruno@clisp.org>
45847
45848         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45849
45850 2008-12-23  Bruno Haible  <bruno@clisp.org>
45851
45852         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45854         GETADDRINFO_LIB, not in LIBS.
45855         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45856         * modules/canon-host (Link): Likewise.
45857         * NEWS: Mention the change.
45858         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45859         GETADDRINFO_LIB.
45860
45861 2008-12-22  Bruno Haible  <bruno@clisp.org>
45862
45863         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45864         * doc/posix-functions/iswalpha_l.texi: Likewise.
45865         * doc/posix-functions/iswblank_l.texi: Likewise.
45866         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45867         * doc/posix-functions/iswctype_l.texi: Likewise.
45868         * doc/posix-functions/iswdigit_l.texi: Likewise.
45869         * doc/posix-functions/iswgraph_l.texi: Likewise.
45870         * doc/posix-functions/iswlower_l.texi: Likewise.
45871         * doc/posix-functions/iswprint_l.texi: Likewise.
45872         * doc/posix-functions/iswpunct_l.texi: Likewise.
45873         * doc/posix-functions/iswspace_l.texi: Likewise.
45874         * doc/posix-functions/iswupper_l.texi: Likewise.
45875         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45876         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45877         * doc/posix-functions/open_wmemstream.texi: Likewise.
45878         * doc/posix-functions/swscanf.texi: Likewise.
45879         * doc/posix-functions/towctrans_l.texi: Likewise.
45880         * doc/posix-functions/towlower.texi: Likewise.
45881         * doc/posix-functions/towlower_l.texi: Likewise.
45882         * doc/posix-functions/towupper.texi: Likewise.
45883         * doc/posix-functions/towupper_l.texi: Likewise.
45884         * doc/posix-functions/vfwprintf.texi: Likewise.
45885         * doc/posix-functions/vfwscanf.texi: Likewise.
45886         * doc/posix-functions/vswscanf.texi: Likewise.
45887         * doc/posix-functions/vwprintf.texi: Likewise.
45888         * doc/posix-functions/vwscanf.texi: Likewise.
45889         * doc/posix-functions/wcpcpy.texi: Likewise.
45890         * doc/posix-functions/wcpncpy.texi: Likewise.
45891         * doc/posix-functions/wcscasecmp.texi: Likewise.
45892         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45893         * doc/posix-functions/wcscoll_l.texi: Likewise.
45894         * doc/posix-functions/wcsdup.texi: Likewise.
45895         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45896         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45897         * doc/posix-functions/wcsnlen.texi: Likewise.
45898         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45899         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45900         * doc/posix-functions/wctrans_l.texi: Likewise.
45901         * doc/posix-functions/wctype_l.texi: Likewise.
45902         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45903         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45904         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45905         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45906         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45907         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45908         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45909         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45910         * doc/glibc-functions/wcschrnul.texi: Likewise.
45911         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45912         * doc/glibc-functions/wcstod_l.texi: Likewise.
45913         * doc/glibc-functions/wcstof_l.texi: Likewise.
45914         * doc/glibc-functions/wcstol_l.texi: Likewise.
45915         * doc/glibc-functions/wcstold_l.texi: Likewise.
45916         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45917         * doc/glibc-functions/wcstoq.texi: Likewise.
45918         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45919         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45920         * doc/glibc-functions/wcstouq.texi: Likewise.
45921         * doc/glibc-functions/wmempcpy.texi: Likewise.
45922
45923 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45924             Eric Blake  <ebb9@byu.net>
45925             Paolo Bonzini  <bonzini@gnu.org>
45926             Bruno Haible  <bruno@clisp.org>
45927
45928         Make c-stack work on Haiku.
45929         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45930         (c_stack_action): Use SA_ONSTACK flag.
45931
45932 2008-12-22  Bruno Haible  <bruno@clisp.org>
45933
45934         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45935
45936 2008-12-22  Bruno Haible  <bruno@clisp.org>
45937
45938         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45939         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45940         being overridden.
45941         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45942         New macros.
45943         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45945         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45946         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45947
45948 2008-12-22  Bruno Haible  <bruno@clisp.org>
45949
45950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45951         from test code.
45952
45953 2008-12-22  Eric Blake  <ebb9@byu.net>
45954
45955         Avoid gcc warnings on cygwin.
45956         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45957         Avoid unused variable.
45958         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45959         Likewise.
45960
45961 2008-12-22  Bruno Haible  <bruno@clisp.org>
45962
45963         Remove HAVE_MBRTOWC conditionals.
45964         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45965         (mbscasecmp): Assume mbrtowc function.
45966         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45967         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45968         * lib/mbschr.c: Include mbuiter.h unconditionally.
45969         (mbschr): Assume mbrtowc function.
45970         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45971         (mbscspn): Assume mbrtowc function.
45972         * lib/mbslen.c: Include mbuiter.h unconditionally.
45973         (mbslen): Assume mbrtowc function.
45974         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45975         (mbsncasecmp): Assume mbrtowc function.
45976         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45977         (mbsnlen): Assume mbrtowc function.
45978         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45979         (mbspbrk): Assume mbrtowc function.
45980         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45981         (mbspcasecmp): Assume mbrtowc function.
45982         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45983         (mbsrchr): Assume mbrtowc function.
45984         * lib/mbssep.c: Include mbuiter.h unconditionally.
45985         (mbssep): Assume mbrtowc function.
45986         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45987         (mbsspn): Assume mbrtowc function.
45988         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45989         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45990         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45991         (mbstok_r): Assume mbrtowc function.
45992         * lib/propername.c: Include mbuiter.h unconditionally.
45993         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45994         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45995         (trim2): Assume mbrtowc function.
45996         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45997         (mbsnwidth): Assume mbrtowc function.
45998         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45999         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
46000         fallback definitions.
46001         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
46002
46003 2008-12-22  Bruno Haible  <bruno@clisp.org>
46004
46005         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
46006
46007 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
46008
46009         * modules/regex: Request emulations for the mb*/wc* functions we need.
46010         * m4/regex.m4: Don't look for those functions here.
46011         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
46012
46013 2008-12-22  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/fnmatch (Depends-on): Remove duplicated dependency.
46016
46017 2008-12-21  Bruno Haible  <bruno@clisp.org>
46018
46019         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
46020         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
46021         (Include): Remove conditionalization.
46022         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
46023         (Include): Remove conditionalization.
46024         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
46025         (Include): Remove conditionalization.
46026         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
46027         * m4/mbfile.m4 (gl_MBFILE): Likewise.
46028         * NEWS: Mention the change.
46029         Reported by Alan Hourihane <alanh@fairlite.co.uk>
46030         via Sergey Poznyakoff <gray@gnu.org.ua>.
46031
46032 2008-12-21  Bruno Haible  <bruno@clisp.org>
46033
46034         * MODULES.html.sh (Extended multibyte and wide character utilities
46035         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
46036         wcrtomb, wcsrtombs.
46037         (Support for systems lacking POSIX:2008): Add accept, bind, close,
46038         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
46039         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
46040         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
46041
46042 2008-12-21  Bruno Haible  <bruno@clisp.org>
46043
46044         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
46045
46046 2008-12-21  Bruno Haible  <bruno@clisp.org>
46047
46048         * modules/wcsnrtombs-tests: New file.
46049         * tests/test-wcsnrtombs1.sh: New file.
46050         * tests/test-wcsnrtombs2.sh: New file.
46051         * tests/test-wcsnrtombs3.sh: New file.
46052         * tests/test-wcsnrtombs4.sh: New file.
46053         * tests/test-wcsnrtombs.c: New file.
46054
46055         New module 'wcsnrtombs'.
46056         * lib/wchar.in.h (wcsnrtombs): New declaration.
46057         * lib/wcsnrtombs.c: New file.
46058         * lib/wcsrtombs-state.c: New file.
46059         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
46060         (internal_state): Remove variable.
46061         * m4/wcsnrtombs.m4: New file.
46062         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
46063         compilation units.
46064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
46065         HAVE_WCSNRTOMBS.
46066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
46067         HAVE_WCSNRTOMBS.
46068         * modules/wcsnrtombs: New file.
46069         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
46070         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
46071
46072 2008-12-21  Bruno Haible  <bruno@clisp.org>
46073
46074         * modules/wcsrtombs-tests: New file.
46075         * tests/test-wcsrtombs1.sh: New file.
46076         * tests/test-wcsrtombs2.sh: New file.
46077         * tests/test-wcsrtombs3.sh: New file.
46078         * tests/test-wcsrtombs4.sh: New file.
46079         * tests/test-wcsrtombs.c: New file.
46080
46081         New module 'wcsrtombs'.
46082         * lib/wchar.in.h (wcsrtombs): New declaration.
46083         * lib/wcsrtombs.c: New file.
46084         * m4/wcsrtombs.m4: New file.
46085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
46086         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
46088         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46089         * modules/wcsrtombs: New file.
46090         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
46091         bugs.
46092
46093 2008-12-21  Bruno Haible  <bruno@clisp.org>
46094
46095         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
46096         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
46097         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
46098         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
46099         if not correct.
46100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
46101         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
46102         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46103         m4/locale-zh.m4, m4/codeset.m4.
46104         * doc/posix-functions/wcrtomb.texi: Document the bug.
46105
46106 2008-12-21  Bruno Haible  <bruno@clisp.org>
46107
46108         Work around a btowc() bug on IRIX 6.5.
46109         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
46110         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
46111         REPLACE_WTOBC if not.
46112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
46113         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
46114         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
46115
46116 2008-12-21  Bruno Haible  <bruno@clisp.org>
46117
46118         * modules/wcrtomb-tests: New file.
46119         * tests/test-wcrtomb.sh: New file.
46120         * tests/test-wcrtomb.c: New file.
46121
46122         New module 'wcrtomb'.
46123         * lib/wchar.in.h (wcrtomb): New declaration.
46124         * lib/wcrtomb.c: New file.
46125         * m4/wcrtomb.m4: New file.
46126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
46127         HAVE_WCRTOMB.
46128         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
46129         HAVE_WCRTOMB.
46130         * modules/wcrtomb: New file.
46131         * doc/posix-functions/wcrtomb.texi: Mention the new module.
46132
46133 2008-12-21  Bruno Haible  <bruno@clisp.org>
46134
46135         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
46136         * modules/mbsrtowcs (Files): Likewise.
46137         * modules/wctob (Files): Likewise.
46138         * modules/c-strcase-tests (Files): Likewise.
46139         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
46140         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
46141         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
46142         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
46143         * modules/vasnprintf-posix-tests (Files): Likewise.
46144
46145 2008-12-21  William Pursell  <bill.pursell@gmail.com>
46146
46147         gitlog-to-changelog: pass all command-line arguments to git-log
46148         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46149         it is sometimes convenient to filter the commits in various ways.
46150         gitlog-to-changelog only allows --since to specify a start date,
46151         but git-log itself supports many other filtering mechanisms.
46152         At the moment, I want to filter by branch name.  Rather than
46153         adding a --branch option to gitlog-to-changelog, it seems more
46154         flexible to simply pass all options directly to git-log and let
46155         git do the work.  Notice that this effectively makes --since a
46156         redundant option for gitlog-to-changelog, but removing it would
46157         require current usage to change since calls would then require
46158         an additional '--'.
46159
46160 2008-12-21  Bruno Haible  <bruno@clisp.org>
46161
46162         * modules/mbsnrtowcs-tests: New file.
46163         * tests/test-mbsnrtowcs1.sh: New file.
46164         * tests/test-mbsnrtowcs2.sh: New file.
46165         * tests/test-mbsnrtowcs3.sh: New file.
46166         * tests/test-mbsnrtowcs4.sh: New file.
46167         * tests/test-mbsnrtowcs.c: New file.
46168
46169         New module 'mbsnrtowcs'.
46170         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46171         * lib/mbsnrtowcs.c: New file.
46172         * lib/mbsrtowcs-state.c: New file.
46173         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46174         (internal_state): Remove variable.
46175         * m4/mbsnrtowcs.m4: New file.
46176         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46177         compilation units.
46178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46179         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46180         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46181         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46182         * modules/mbsnrtowcs: New file.
46183         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46184         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46185         portability problem.
46186
46187 2008-12-21  Bruno Haible  <bruno@clisp.org>
46188
46189         Work around mbsrtowcs bug.
46190         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46191         (gl_FUNC_MBSRTOWCS): Invoke it.
46192         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46193         m4/locale-zh.m4.
46194         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46195
46196 2008-12-21  Bruno Haible  <bruno@clisp.org>
46197
46198         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46199
46200 2008-12-21  Bruno Haible  <bruno@clisp.org>
46201
46202         Update doc for AIX.
46203         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46204         16-bit wchar_t type.
46205         * doc/posix-functions/btowc.texi: Likewise.
46206         * doc/posix-functions/fgetwc.texi: Likewise.
46207         * doc/posix-functions/fgetws.texi: Likewise.
46208         * doc/posix-functions/fputwc.texi: Likewise.
46209         * doc/posix-functions/fputws.texi: Likewise.
46210         * doc/posix-functions/fwide.texi: Likewise.
46211         * doc/posix-functions/fwprintf.texi: Likewise.
46212         * doc/posix-functions/fwscanf.texi: Likewise.
46213         * doc/posix-functions/getwchar.texi: Likewise.
46214         * doc/posix-functions/getwc.texi: Likewise.
46215         * doc/posix-functions/iswalnum.texi: Likewise.
46216         * doc/posix-functions/iswalpha.texi: Likewise.
46217         * doc/posix-functions/iswblank.texi: Likewise.
46218         * doc/posix-functions/iswcntrl.texi: Likewise.
46219         * doc/posix-functions/iswctype.texi: Likewise.
46220         * doc/posix-functions/iswdigit.texi: Likewise.
46221         * doc/posix-functions/iswgraph.texi: Likewise.
46222         * doc/posix-functions/iswlower.texi: Likewise.
46223         * doc/posix-functions/iswprint.texi: Likewise.
46224         * doc/posix-functions/iswpunct.texi: Likewise.
46225         * doc/posix-functions/iswspace.texi: Likewise.
46226         * doc/posix-functions/iswupper.texi: Likewise.
46227         * doc/posix-functions/iswxdigit.texi: Likewise.
46228         * doc/posix-functions/mbrtowc.texi: Likewise.
46229         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46230         * doc/posix-functions/mbstowcs.texi: Likewise.
46231         * doc/posix-functions/mbtowc.texi: Likewise.
46232         * doc/posix-functions/putwchar.texi: Likewise.
46233         * doc/posix-functions/putwc.texi: Likewise.
46234         * doc/posix-functions/swprintf.texi: Likewise.
46235         * doc/posix-functions/tolower.texi: Likewise.
46236         * doc/posix-functions/toupper.texi: Likewise.
46237         * doc/posix-functions/towctrans.texi: Likewise.
46238         * doc/posix-functions/ungetwc.texi: Likewise.
46239         * doc/posix-functions/vswprintf.texi: Likewise.
46240         * doc/posix-functions/wcrtomb.texi: Likewise.
46241         * doc/posix-functions/wcscat.texi: Likewise.
46242         * doc/posix-functions/wcschr.texi: Likewise.
46243         * doc/posix-functions/wcscmp.texi: Likewise.
46244         * doc/posix-functions/wcscoll.texi: Likewise.
46245         * doc/posix-functions/wcscpy.texi: Likewise.
46246         * doc/posix-functions/wcscspn.texi: Likewise.
46247         * doc/posix-functions/wcsftime.texi: Likewise.
46248         * doc/posix-functions/wcslen.texi: Likewise.
46249         * doc/posix-functions/wcsncat.texi: Likewise.
46250         * doc/posix-functions/wcsncmp.texi: Likewise.
46251         * doc/posix-functions/wcsncpy.texi: Likewise.
46252         * doc/posix-functions/wcspbrk.texi: Likewise.
46253         * doc/posix-functions/wcsrchr.texi: Likewise.
46254         * doc/posix-functions/wcsrtombs.texi: Likewise.
46255         * doc/posix-functions/wcsspn.texi: Likewise.
46256         * doc/posix-functions/wcsstr.texi: Likewise.
46257         * doc/posix-functions/wcstod.texi: Likewise.
46258         * doc/posix-functions/wcstof.texi: Likewise.
46259         * doc/posix-functions/wcstoimax.texi: Likewise.
46260         * doc/posix-functions/wcstok.texi: Likewise.
46261         * doc/posix-functions/wcstold.texi: Likewise.
46262         * doc/posix-functions/wcstoll.texi: Likewise.
46263         * doc/posix-functions/wcstol.texi: Likewise.
46264         * doc/posix-functions/wcstombs.texi: Likewise.
46265         * doc/posix-functions/wcstoull.texi: Likewise.
46266         * doc/posix-functions/wcstoul.texi: Likewise.
46267         * doc/posix-functions/wcstoumax.texi: Likewise.
46268         * doc/posix-functions/wcswidth.texi: Likewise.
46269         * doc/posix-functions/wcsxfrm.texi: Likewise.
46270         * doc/posix-functions/wctob.texi: Likewise.
46271         * doc/posix-functions/wctomb.texi: Likewise.
46272         * doc/posix-functions/wctrans.texi: Likewise.
46273         * doc/posix-functions/wctype.texi: Likewise.
46274         * doc/posix-functions/wcwidth.texi: Likewise.
46275         * doc/posix-functions/wmemchr.texi: Likewise.
46276         * doc/posix-functions/wmemcmp.texi: Likewise.
46277         * doc/posix-functions/wmemcpy.texi: Likewise.
46278         * doc/posix-functions/wmemmove.texi: Likewise.
46279         * doc/posix-functions/wmemset.texi: Likewise.
46280         * doc/posix-functions/wprintf.texi: Likewise.
46281         * doc/posix-functions/wscanf.texi: Likewise.
46282
46283 2008-12-21  Bruno Haible  <bruno@clisp.org>
46284
46285         Update doc for HP-UX 11.11.
46286         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46287         in HP-UX version 11.00, not in all versions of HP-UX 11.
46288         * doc/posix-functions/fwide.texi: Likewise.
46289         * doc/posix-functions/fwprintf.texi: Likewise.
46290         * doc/posix-functions/fwscanf.texi: Likewise.
46291         * doc/posix-functions/inet_ntop.texi: Likewise.
46292         * doc/posix-functions/inet_pton.texi: Likewise.
46293         * doc/posix-functions/mbrlen.texi: Likewise.
46294         * doc/posix-functions/mbrtowc.texi: Likewise.
46295         * doc/posix-functions/mbsinit.texi: Likewise.
46296         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46297         * doc/posix-functions/swprintf.texi: Likewise.
46298         * doc/posix-functions/swscanf.texi: Likewise.
46299         * doc/posix-functions/towctrans.texi: Likewise.
46300         * doc/posix-functions/vfwprintf.texi: Likewise.
46301         * doc/posix-functions/vswprintf.texi: Likewise.
46302         * doc/posix-functions/vwprintf.texi: Likewise.
46303         * doc/posix-functions/wcrtomb.texi: Likewise.
46304         * doc/posix-functions/wcsrtombs.texi: Likewise.
46305         * doc/posix-functions/wcsstr.texi: Likewise.
46306         * doc/posix-functions/wctob.texi: Likewise.
46307         * doc/posix-functions/wctrans.texi: Likewise.
46308         * doc/posix-functions/wmemchr.texi: Likewise.
46309         * doc/posix-functions/wmemcmp.texi: Likewise.
46310         * doc/posix-functions/wmemcpy.texi: Likewise.
46311         * doc/posix-functions/wmemmove.texi: Likewise.
46312         * doc/posix-functions/wmemset.texi: Likewise.
46313         * doc/posix-functions/wprintf.texi: Likewise.
46314         * doc/posix-functions/wscanf.texi: Likewise.
46315
46316 2008-12-21  Bruno Haible  <bruno@clisp.org>
46317
46318         Work around a portability problem.
46319         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46320         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46321
46322 2008-12-20  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46325         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46326         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46328         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46329
46330         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46331         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46332         set.
46333         (GNULIB_defined_mbstate_t): New macro.
46334         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46335         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46336         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46337         reuses the system's mbrtowc function but works around the bugs.
46338         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46339         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46340         macros.
46341         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46342         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46343         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46345         REPLACE_MBSINIT if mbsinit needs to be overridden.
46346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46347         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46348         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46349         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46350         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46351         m4/locale-zh.m4.
46352         (Depends): Add mbsinit.
46353         * modules/mbsinit (Depends): Add mbrtowc.
46354         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46355
46356 2008-12-20  Bruno Haible  <bruno@clisp.org>
46357
46358         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46359         so that there are no conversion errors on AIX.
46360         * tests/test-mbsrtowcs.c (main): LIkewise.
46361
46362 2008-12-20  Bruno Haible  <bruno@clisp.org>
46363
46364         Work around wctob bug on Solaris <= 9.
46365         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46366         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46368         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46369         * modules/wctob (Files): Add m4/locale-fr.m4.
46370         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46371
46372 2008-12-20  Bruno Haible  <bruno@clisp.org>
46373
46374         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46375         /dev/null.
46376         * tests/test-select-in.sh: Likewise.
46377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46378
46379 2008-12-20  Bruno Haible  <bruno@clisp.org>
46380
46381         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46382         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46383         Cygwin 1.5.x.
46384
46385 2008-12-20  Bruno Haible  <bruno@clisp.org>
46386
46387         Ensure mbstate_t is defined on HP-UX 11.11.
46388         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46389         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46390         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46391         AC_USE_SYSTEM_EXTENSIONS.
46392         * modules/fnmatch (Depends-on): Add extensions.
46393         * modules/mbrlen (Depends-on): Likewise.
46394         * modules/mbrtowc (Depends-on): Likewise.
46395         * modules/mbsinit (Depends-on): Likewise.
46396         * modules/mbsrtowcs (Depends-on): Likewise.
46397         * modules/mbswidth (Depends-on): Likewise.
46398         * modules/quotearg (Depends-on): Likewise.
46399         * modules/strftime (Depends-on): Likewise.
46400
46401 2008-12-20  Bruno Haible  <bruno@clisp.org>
46402
46403         Ensure wctob is declared on IRIX 6.5.
46404         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46405         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46406         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46408         of HAVE_WCTOB.
46409         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46410         HAVE_WCTOB.
46411         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46412
46413 2008-12-19  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/mbsrtowcs-tests: New file.
46416         * tests/test-mbsrtowcs1.sh: New file.
46417         * tests/test-mbsrtowcs2.sh: New file.
46418         * tests/test-mbsrtowcs3.sh: New file.
46419         * tests/test-mbsrtowcs4.sh: New file.
46420         * tests/test-mbsrtowcs.c: New file.
46421
46422         New module 'mbsrtowcs'.
46423         * lib/wchar.in.h (mbsrtowcs): New declaration.
46424         * lib/mbsrtowcs.c: New file.
46425         * m4/mbsrtowcs.m4: New file.
46426         * modules/mbsrtowcs: New file.
46427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46428         HAVE_MBSRTOWCS.
46429         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46430         HAVE_MBSRTOWCS.
46431         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46432
46433 2008-12-19  Bruno Haible  <bruno@clisp.org>
46434
46435         New module 'mbrlen'.
46436         * lib/wchar.in.h (mbrlen): New declaration.
46437         * lib/mbrlen.c: New file.
46438         * m4/mbrlen.m4: New file.
46439         * modules/mbrlen: New file.
46440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46441         HAVE_MBRLEN.
46442         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46443         HAVE_MBRLEN.
46444         * doc/posix-functions/mbrlen.texi: Document the new module.
46445
46446 2008-12-19  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46449         * modules/mbrtowc (Depends-on): Add verify.
46450         Suggested by Paul Eggert.
46451
46452 2008-12-18  Bruno Haible  <bruno@clisp.org>
46453
46454         * modules/mbsinit-tests: New file.
46455         * tests/test-mbsinit.sh: New file.
46456         * tests/test-mbsinit.c: New file.
46457
46458 2008-12-18  Bruno Haible  <bruno@clisp.org>
46459
46460         * modules/mbrtowc-tests: New file.
46461         * tests/test-mbrtowc1.sh: New file.
46462         * tests/test-mbrtowc2.sh: New file.
46463         * tests/test-mbrtowc3.sh: New file.
46464         * tests/test-mbrtowc4.sh: New file.
46465         * tests/test-mbrtowc.c: New file.
46466
46467         New module 'mbrtowc'.
46468         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46469         mbsinit and mbrtowc.
46470         (mbrtowc): New declaration.
46471         * lib/mbrtowc.c: New file.
46472         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46473         * modules/mbrtowc: New file.
46474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46475         HAVE_MBRTOWC.
46476         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46477         HAVE_MBRTOWC.
46478         * doc/posix-functions/mbrtowc.texi: Document the new module.
46479
46480 2008-12-18  Bruno Haible  <bruno@clisp.org>
46481
46482         New module 'wctob'.
46483         * lib/wchar.in.h (wctob): New declaration.
46484         * lib/wctob.c: New file.
46485         * m4/wctob.m4: New file.
46486         * modules/wctob: New file.
46487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46488         HAVE_WCTOB.
46489         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46490         * doc/posix-functions/wctob.texi: Document the new module.
46491
46492 2008-12-18  Bruno Haible  <bruno@clisp.org>
46493
46494         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46495         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46496
46497 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46498
46499         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46500         G. Christensen" <tgc@jupiterrise.com>.
46501
46502         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46503         G. Christensen" <tgc@jupiterrise.com>.
46504
46505         * lib/flock.c: Need to include string.h.  Reported by "Tom
46506         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46507         <ebb9@byu.net>.
46508
46509 2008-12-18  Bruno Haible  <bruno@clisp.org>
46510
46511         * m4/locale-ja.m4: New file, from GNU gettext.
46512
46513 2008-12-17  Bruno Haible  <bruno@clisp.org>
46514
46515         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46516         Suggested by Eric Blake.
46517
46518 2008-12-17  Bruno Haible  <bruno@clisp.org>
46519
46520         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46521
46522 2008-12-17  Bruno Haible  <bruno@clisp.org>
46523
46524         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46525         * modules/mbsinit (Depends-on): Add verify.
46526         Suggested by Paul Eggert.
46527
46528 2008-12-17  Bruno Haible  <bruno@clisp.org>
46529
46530         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46531         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46532         gl_FUNC_MBRTOWC.
46533         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46534         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46535         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46536         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46537         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46538         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46539         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46540         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46541         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46542         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46543         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46544         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46545         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46546         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46547         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46548         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46549         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46550         * modules/trim (configure.ac): Likewise.
46551
46552 2008-12-17  Bruno Haible  <bruno@clisp.org>
46553
46554         * modules/btowc-tests: New file.
46555         * tests/test-btowc1.sh: New file.
46556         * tests/test-btowc2.sh: New file.
46557         * tests/test-btowc.c: New file.
46558
46559         New module 'btowc'.
46560         * lib/wchar.in.h (btowc): New declaration.
46561         * lib/btowc.c: New file.
46562         * m4/btowc.m4: New file.
46563         * modules/btowc: New file.
46564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46565         HAVE_BTOWC.
46566         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46567         * doc/posix-functions/btowc.texi: Document the new module.
46568
46569 2008-12-17  Bruno Haible  <bruno@clisp.org>
46570
46571         New module 'mbsinit'.
46572         * lib/wchar.in.h (mbsinit): New declaration.
46573         * lib/mbsinit.c: New file.
46574         * m4/mbsinit.m4: New file.
46575         * modules/mbsinit: New file.
46576         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46577         HAVE_MBSINIT.
46578         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46579         HAVE_MBSINIT.
46580         * doc/posix-functions/mbsinit.texi: Document the new module.
46581
46582 2008-12-16  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/unistd.in.h: Add comment.
46585         * tests/test-environ.c: Don't include <stdlib.h>.
46586
46587 2008-12-16  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/parse-duration.h (parse_duration): Document return value
46590         convention.
46591         * lib/parse-duration.c: Include specification header first. Add
46592         comments.
46593         (_): Remove macro.
46594         (parse_year_month_day, parse_hour_minute_second): Move side effects
46595         outside of strchr call.
46596         (parse_non_iso8601): Move side effects outside of isspace call.
46597         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46598         call.
46599
46600 2008-12-16  Bruno Haible  <bruno@clisp.org>
46601
46602         * tests/test-parse-duration.sh: Produce no output when the test
46603         succeeds.
46604
46605 2008-12-16  Bruno Haible  <bruno@clisp.org>
46606
46607         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46608         expressions.
46609
46610 2008-12-15  Bruno Haible  <bruno@clisp.org>
46611
46612         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46613         * doc/glibc-functions/flistxattr.texi: Likewise.
46614         * doc/glibc-functions/fopencookie.texi: Likewise.
46615         * doc/glibc-functions/fremovexattr.texi: Likewise.
46616         * doc/glibc-functions/fsetxattr.texi: Likewise.
46617         * doc/glibc-functions/getxattr.texi: Likewise.
46618         * doc/glibc-functions/lgetxattr.texi: Likewise.
46619         * doc/glibc-functions/listxattr.texi: Likewise.
46620         * doc/glibc-functions/llistxattr.texi: Likewise.
46621         * doc/glibc-functions/lremovexattr.texi: Likewise.
46622         * doc/glibc-functions/lsetxattr.texi: Likewise.
46623         * doc/glibc-functions/removexattr.texi: Likewise.
46624         * doc/glibc-functions/setxattr.texi: Likewise.
46625         * doc/posix-functions/open_memstream.texi: Likewise.
46626
46627 2008-12-15  Eric Blake  <ebb9@byu.net>
46628
46629         Update doc for cygwin 1.7.
46630         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46631         functions.
46632         * doc/posix-functions/fchmodat.texi: Likewise.
46633         * doc/posix-functions/fchownat.texi: Likewise.
46634         * doc/posix-functions/fdopendir.texi: Likewise.
46635         * doc/posix-functions/fmemopen.texi: Likewise.
46636         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46637         * doc/posix-functions/fstatat.texi: Likewise.
46638         * doc/posix-functions/futimens.texi: Likewise.
46639         * doc/posix-functions/gai_strerror.texi: Likewise.
46640         * doc/posix-functions/getaddrinfo.texi: Likewise.
46641         * doc/posix-functions/getnameinfo.texi: Likewise.
46642         * doc/posix-functions/if_freenameindex.texi: Likewise.
46643         * doc/posix-functions/if_indextoname.texi: Likewise.
46644         * doc/posix-functions/if_nameindex.texi: Likewise.
46645         * doc/posix-functions/if_nametoindex.texi: Likewise.
46646         * doc/posix-functions/insque.texi: Likewise.
46647         * doc/posix-functions/linkat.texi: Likewise.
46648         * doc/posix-functions/llrint.texi: Likewise.
46649         * doc/posix-functions/llrintf.texi: Likewise.
46650         * doc/posix-functions/llrintl.texi: Likewise.
46651         * doc/posix-functions/lockf.texi: Likewise.
46652         * doc/posix-functions/lrintl.texi: Likewise.
46653         * doc/posix-functions/mkdirat.texi: Likewise.
46654         * doc/posix-functions/mkfifoat.texi: Likewise.
46655         * doc/posix-functions/mknodat.texi: Likewise.
46656         * doc/posix-functions/mq_close.texi: Likewise.
46657         * doc/posix-functions/mq_getattr.texi: Likewise.
46658         * doc/posix-functions/mq_notify.texi: Likewise.
46659         * doc/posix-functions/mq_open.texi: Likewise.
46660         * doc/posix-functions/mq_receive.texi: Likewise.
46661         * doc/posix-functions/mq_send.texi: Likewise.
46662         * doc/posix-functions/mq_setattr.texi: Likewise.
46663         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46664         * doc/posix-functions/mq_timedsend.texi: Likewise.
46665         * doc/posix-functions/mq_unlink.texi: Likewise.
46666         * doc/posix-functions/open_memstream.texi: Likewise.
46667         * doc/posix-functions/openat.texi: Likewise.
46668         * doc/posix-functions/posix_fadvise.texi: Likewise.
46669         * doc/posix-functions/posix_fallocate.texi: Likewise.
46670         * doc/posix-functions/posix_madvise.texi: Likewise.
46671         * doc/posix-functions/posix_memalign.texi: Likewise.
46672         * doc/posix-functions/posix_openpt.texi: Likewise.
46673         * doc/posix-functions/readlinkat.texi: Likewise.
46674         * doc/posix-functions/remque.texi: Likewise.
46675         * doc/posix-functions/renameat.texi: Likewise.
46676         * doc/posix-functions/rintl.texi: Likewise.
46677         * doc/posix-functions/sem_unlink.texi: Likewise.
46678         * doc/posix-functions/shm_open.texi: Likewise.
46679         * doc/posix-functions/shm_unlink.texi: Likewise.
46680         * doc/posix-functions/signgam.texi: Likewise.
46681         * doc/posix-functions/sigset.texi: Likewise.
46682         * doc/posix-functions/stpcpy.texi: Likewise.
46683         * doc/posix-functions/stpncpy.texi: Likewise.
46684         * doc/posix-functions/strerror.texi: Likewise.
46685         * doc/posix-functions/strtod.texi: Likewise.
46686         * doc/posix-functions/symlinkat.texi: Likewise.
46687         * doc/posix-functions/unlinkat.texi: Likewise.
46688         * doc/posix-functions/utimensat.texi: Likewise.
46689         * doc/glibc-functions/bindresvport.texi: Likewise.
46690         * doc/glibc-functions/dn_expand.texi: Likewise.
46691         * doc/glibc-functions/exp10.texi: Likewise.
46692         * doc/glibc-functions/exp10f.texi: Likewise.
46693         * doc/glibc-functions/fgetxattr.texi: Likewise.
46694         * doc/glibc-functions/flistxattr.texi: Likewise.
46695         * doc/glibc-functions/fopencookie.texi: Likewise.
46696         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46697         * doc/glibc-functions/fremovexattr.texi: Likewise.
46698         * doc/glibc-functions/fsetxattr.texi: Likewise.
46699         * doc/glibc-functions/getifaddrs.texi: Likewise.
46700         * doc/glibc-functions/getxattr.texi: Likewise.
46701         * doc/glibc-functions/lgetxattr.texi: Likewise.
46702         * doc/glibc-functions/listxattr.texi: Likewise.
46703         * doc/glibc-functions/llistxattr.texi: Likewise.
46704         * doc/glibc-functions/lremovexattr.texi: Likewise.
46705         * doc/glibc-functions/lsetxattr.texi: Likewise.
46706         * doc/glibc-functions/pow10.texi: Likewise.
46707         * doc/glibc-functions/pow10f.texi: Likewise.
46708         * doc/glibc-functions/rcmd_af.texi: Likewise.
46709         * doc/glibc-functions/removexattr.texi: Likewise.
46710         * doc/glibc-functions/res_init.texi: Likewise.
46711         * doc/glibc-functions/res_mkquery.texi: Likewise.
46712         * doc/glibc-functions/res_query.texi: Likewise.
46713         * doc/glibc-functions/res_querydomain.texi: Likewise.
46714         * doc/glibc-functions/res_send.texi: Likewise.
46715         * doc/glibc-functions/rresvport_af.texi: Likewise.
46716         * doc/glibc-functions/setxattr.texi: Likewise.
46717         * doc/glibc-functions/strcasestr.texi: Likewise.
46718
46719 2008-12-15  Bruno Haible  <bruno@clisp.org>
46720
46721         Fix compilation error on OSF/1 4.0.
46722         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46723         <sys/time.h>, simply delegate to the system header.
46724         Reported by Daniel Richard G. <oss@teragram.com>.
46725
46726 2008-12-15  Bruno Haible  <bruno@clisp.org>
46727
46728         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46729         * doc/posix-functions/fchmodat.texi: Likewise.
46730         * doc/posix-functions/fchownat.texi: Likewise.
46731         * doc/posix-functions/fdopendir.texi: Likewise.
46732         * doc/posix-functions/fstatat.texi: Likewise.
46733         * doc/posix-functions/mkdirat.texi: Likewise.
46734         * doc/posix-functions/unlinkat.texi: Likewise.
46735
46736 2008-12-14  Bruno Haible  <bruno@clisp.org>
46737
46738         Update doc for POSIX:2008.
46739         * doc/posix-functions/faccessat.texi: New file.
46740         * doc/posix-functions/fchmodat.texi: New file.
46741         * doc/posix-functions/fchownat.texi: New file.
46742         * doc/posix-functions/fdopendir.texi: New file.
46743         * doc/posix-functions/fstatat.texi: New file.
46744         * doc/posix-functions/futimens.texi: New file.
46745         * doc/posix-functions/linkat.texi: New file.
46746         * doc/posix-functions/mkdirat.texi: New file.
46747         * doc/posix-functions/mkfifoat.texi: New file.
46748         * doc/posix-functions/mknodat.texi: New file.
46749         * doc/posix-functions/open_wmemstream.texi: New file.
46750         * doc/posix-functions/openat.texi: New file.
46751         * doc/posix-functions/psiginfo.texi: New file.
46752         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46753         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46754         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46755         * doc/posix-functions/readlinkat.texi: New file.
46756         * doc/posix-functions/renameat.texi: New file.
46757         * doc/posix-functions/strerror_l.texi: New file.
46758         * doc/posix-functions/symlinkat.texi: New file.
46759         * doc/posix-functions/unlinkat.texi: New file.
46760         * doc/posix-functions/utimensat.texi: New file.
46761         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46762
46763 2008-12-14  Bruno Haible  <bruno@clisp.org>
46764
46765         Update doc for POSIX:2008.
46766         * doc/posix-functions/alphasort.texi: Renamed from
46767         doc/glibc-functions/alphasort.texi.
46768         * doc/posix-functions/dirfd.texi: Renamed from
46769         doc/glibc-functions/dirfd.texi.
46770         * doc/posix-functions/dprintf.texi: Renamed from
46771         doc/glibc-functions/dprintf.texi.
46772         * doc/posix-functions/duplocale.texi: Renamed from
46773         doc/glibc-functions/duplocale.texi.
46774         * doc/posix-functions/fexecve.texi: Renamed from
46775         doc/glibc-functions/fexecve.texi.
46776         * doc/posix-functions/fmemopen.texi: Renamed from
46777         doc/glibc-functions/fmemopen.texi.
46778         * doc/posix-functions/freelocale.texi: Renamed from
46779         doc/glibc-functions/freelocale.texi.
46780         * doc/posix-functions/getdate_err.texi: Renamed from
46781         doc/glibc-functions/getdate_err.texi.
46782         * doc/posix-functions/isalnum_l.texi: Renamed from
46783         doc/glibc-functions/isalnum_l.texi.
46784         * doc/posix-functions/isalpha_l.texi: Renamed from
46785         doc/glibc-functions/isalpha_l.texi.
46786         * doc/posix-functions/isblank_l.texi: Renamed from
46787         doc/glibc-functions/isblank_l.texi.
46788         * doc/posix-functions/iscntrl_l.texi: Renamed from
46789         doc/glibc-functions/iscntrl_l.texi.
46790         * doc/posix-functions/isdigit_l.texi: Renamed from
46791         doc/glibc-functions/isdigit_l.texi.
46792         * doc/posix-functions/isgraph_l.texi: Renamed from
46793         doc/glibc-functions/isgraph_l.texi.
46794         * doc/posix-functions/islower_l.texi: Renamed from
46795         doc/glibc-functions/islower_l.texi.
46796         * doc/posix-functions/isprint_l.texi: Renamed from
46797         doc/glibc-functions/isprint_l.texi.
46798         * doc/posix-functions/ispunct_l.texi: Renamed from
46799         doc/glibc-functions/ispunct_l.texi.
46800         * doc/posix-functions/isspace_l.texi: Renamed from
46801         doc/glibc-functions/isspace_l.texi.
46802         * doc/posix-functions/isupper_l.texi: Renamed from
46803         doc/glibc-functions/isupper_l.texi.
46804         * doc/posix-functions/iswalnum_l.texi: Renamed from
46805         doc/glibc-functions/iswalnum_l.texi.
46806         * doc/posix-functions/iswalpha_l.texi: Renamed from
46807         doc/glibc-functions/iswalpha_l.texi.
46808         * doc/posix-functions/iswblank_l.texi: Renamed from
46809         doc/glibc-functions/iswblank_l.texi.
46810         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46811         doc/glibc-functions/iswcntrl_l.texi.
46812         * doc/posix-functions/iswctype_l.texi: Renamed from
46813         doc/glibc-functions/iswctype_l.texi.
46814         * doc/posix-functions/iswdigit_l.texi: Renamed from
46815         doc/glibc-functions/iswdigit_l.texi.
46816         * doc/posix-functions/iswgraph_l.texi: Renamed from
46817         doc/glibc-functions/iswgraph_l.texi.
46818         * doc/posix-functions/iswlower_l.texi: Renamed from
46819         doc/glibc-functions/iswlower_l.texi.
46820         * doc/posix-functions/iswprint_l.texi: Renamed from
46821         doc/glibc-functions/iswprint_l.texi.
46822         * doc/posix-functions/iswpunct_l.texi: Renamed from
46823         doc/glibc-functions/iswpunct_l.texi.
46824         * doc/posix-functions/iswspace_l.texi: Renamed from
46825         doc/glibc-functions/iswspace_l.texi.
46826         * doc/posix-functions/iswupper_l.texi: Renamed from
46827         doc/glibc-functions/iswupper_l.texi.
46828         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46829         doc/glibc-functions/iswxdigit_l.texi.
46830         * doc/posix-functions/isxdigit_l.texi: Renamed from
46831         doc/glibc-functions/isxdigit_l.texi.
46832         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46833         doc/glibc-functions/mbsnrtowcs.texi.
46834         * doc/posix-functions/mkdtemp.texi: Renamed from
46835         doc/glibc-functions/mkdtemp.texi.
46836         * doc/posix-functions/newlocale.texi: Renamed from
46837         doc/glibc-functions/newlocale.texi.
46838         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46839         doc/glibc-functions/nl_langinfo_l.texi.
46840         * doc/posix-functions/open_memstream.texi: Renamed from
46841         doc/glibc-functions/open_memstream.texi.
46842         * doc/posix-functions/opterr.texi: Renamed from
46843         doc/glibc-functions/opterr.texi.
46844         * doc/posix-functions/optind.texi: Renamed from
46845         doc/glibc-functions/optind.texi.
46846         * doc/posix-functions/optopt.texi: Renamed from
46847         doc/glibc-functions/optopt.texi.
46848         * doc/posix-functions/psignal.texi: Renamed from
46849         doc/glibc-functions/psignal.texi.
46850         * doc/posix-functions/scandir.texi: Renamed from
46851         doc/glibc-functions/scandir.texi.
46852         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46853         doc/glibc-functions/sched_get_priority_min.texi.
46854         * doc/posix-functions/signgam.texi: Renamed from
46855         doc/glibc-functions/signgam.texi.
46856         * doc/posix-functions/stpcpy.texi: Renamed from
46857         doc/glibc-functions/stpcpy.texi.
46858         * doc/posix-functions/stpncpy.texi: Renamed from
46859         doc/glibc-functions/stpncpy.texi.
46860         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46861         doc/glibc-functions/strcasecmp_l.texi.
46862         * doc/posix-functions/strcoll_l.texi: Renamed from
46863         doc/glibc-functions/strcoll_l.texi.
46864         * doc/posix-functions/strfmon_l.texi: Renamed from
46865         doc/glibc-functions/strfmon_l.texi.
46866         * doc/posix-functions/strftime_l.texi: Renamed from
46867         doc/glibc-functions/strftime_l.texi.
46868         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46869         doc/glibc-functions/strncasecmp_l.texi.
46870         * doc/posix-functions/strndup.texi: Renamed from
46871         doc/glibc-functions/strndup.texi.
46872         * doc/posix-functions/strnlen.texi: Renamed from
46873         doc/glibc-functions/strnlen.texi.
46874         * doc/posix-functions/strsignal.texi: Renamed from
46875         doc/glibc-functions/strsignal.texi.
46876         * doc/posix-functions/strxfrm_l.texi: Renamed from
46877         doc/glibc-functions/strxfrm_l.texi.
46878         * doc/posix-functions/timer_gettime.texi: Renamed from
46879         doc/glibc-functions/timer_gettime.texi.
46880         * doc/posix-functions/tolower_l.texi: Renamed from
46881         doc/glibc-functions/tolower_l.texi.
46882         * doc/posix-functions/toupper_l.texi: Renamed from
46883         doc/glibc-functions/toupper_l.texi.
46884         * doc/posix-functions/towctrans_l.texi: Renamed from
46885         doc/glibc-functions/towctrans_l.texi.
46886         * doc/posix-functions/towlower_l.texi: Renamed from
46887         doc/glibc-functions/towlower_l.texi.
46888         * doc/posix-functions/towupper_l.texi: Renamed from
46889         doc/glibc-functions/towupper_l.texi.
46890         * doc/posix-functions/uselocale.texi: Renamed from
46891         doc/glibc-functions/uselocale.texi.
46892         * doc/posix-functions/vdprintf.texi: Renamed from
46893         doc/glibc-functions/vdprintf.texi.
46894         * doc/posix-functions/wcpcpy.texi:
46895         Renamed from doc/glibc-functions/wcpcpy.texi.
46896         * doc/posix-functions/wcpncpy.texi: Renamed from
46897         doc/glibc-functions/wcpncpy.texi.
46898         * doc/posix-functions/wcscasecmp.texi: Renamed from
46899         doc/glibc-functions/wcscasecmp.texi.
46900         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46901         doc/glibc-functions/wcscasecmp_l.texi.
46902         * doc/posix-functions/wcscoll_l.texi: Renamed from
46903         doc/glibc-functions/wcscoll_l.texi.
46904         * doc/posix-functions/wcsdup.texi: Renamed from
46905         doc/glibc-functions/wcsdup.texi.
46906         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46907         doc/glibc-functions/wcsncasecmp.texi.
46908         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46909         doc/glibc-functions/wcsncasecmp_l.texi.
46910         * doc/posix-functions/wcsnlen.texi: Renamed from
46911         doc/glibc-functions/wcsnlen.texi.
46912         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46913         doc/glibc-functions/wcsnrtombs.texi.
46914         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46915         doc/glibc-functions/wcsxfrm_l.texi.
46916         * doc/posix-functions/wctrans_l.texi: Renamed from
46917         doc/glibc-functions/wctrans_l.texi.
46918         * doc/posix-functions/wctype_l.texi: Renamed from
46919         doc/glibc-functions/wctype_l.texi.
46920         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46921         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46922         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46923         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46924         these subsections.
46925         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46926         Remove sections.
46927
46928 2008-12-14  Bruno Haible  <bruno@clisp.org>
46929
46930         Update doc for POSIX:2008.
46931         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46932
46933 2008-12-14  Bruno Haible  <bruno@clisp.org>
46934
46935         Update doc for POSIX:2008.
46936         * doc/pastposix-functions/bcmp.texi: Renamed from
46937         doc/posix-functions/bcmp.texi.
46938         * doc/pastposix-functions/bcopy.texi: Renamed from
46939         doc/posix-functions/bcopy.texi.
46940         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46941         doc/posix-functions/bsd_signal.texi.
46942         * doc/pastposix-functions/bzero.texi: Renamed from
46943         doc/posix-functions/bzero.texi.
46944         * doc/pastposix-functions/ecvt.texi: Renamed from
46945         doc/posix-functions/ecvt.texi.
46946         * doc/pastposix-functions/fcvt.texi: Renamed from
46947         doc/posix-functions/fcvt.texi.
46948         * doc/pastposix-functions/ftime.texi: Renamed from
46949         doc/posix-functions/ftime.texi.
46950         * doc/pastposix-functions/gcvt.texi: Renamed from
46951         doc/posix-functions/gcvt.texi.
46952         * doc/pastposix-functions/getcontext.texi: Renamed from
46953         doc/posix-functions/getcontext.texi.
46954         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46955         doc/posix-functions/gethostbyaddr.texi.
46956         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46957         doc/posix-functions/gethostbyname.texi.
46958         * doc/pastposix-functions/getwd.texi: Renamed from
46959         doc/posix-functions/getwd.texi.
46960         * doc/pastposix-functions/h_errno.texi: Renamed from
46961         doc/posix-functions/h_errno.texi.
46962         * doc/pastposix-functions/index.texi: Renamed from
46963         doc/posix-functions/index.texi.
46964         * doc/pastposix-functions/makecontext.texi: Renamed from
46965         doc/posix-functions/makecontext.texi.
46966         * doc/pastposix-functions/mktemp.texi: Renamed from
46967         doc/posix-functions/mktemp.texi.
46968         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46969         doc/posix-functions/pthread_attr_getstackaddr.texi.
46970         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46971         doc/posix-functions/pthread_attr_setstackaddr.texi.
46972         * doc/pastposix-functions/rindex.texi: Renamed from
46973         doc/posix-functions/rindex.texi.
46974         * doc/pastposix-functions/scalb.texi: Renamed from
46975         doc/posix-functions/scalb.texi.
46976         * doc/pastposix-functions/setcontext.texi: Renamed from
46977         doc/posix-functions/setcontext.texi.
46978         * doc/pastposix-functions/swapcontext.texi: Renamed from
46979         doc/posix-functions/swapcontext.texi.
46980         * doc/pastposix-functions/ualarm.texi: Renamed from
46981         doc/posix-functions/ualarm.texi.
46982         * doc/pastposix-functions/usleep.texi: Renamed from
46983         doc/posix-functions/usleep.texi.
46984         * doc/pastposix-functions/vfork.texi: Renamed from
46985         doc/posix-functions/vfork.texi.
46986         * doc/pastposix-functions/wcswcs.texi: Renamed from
46987         doc/posix-functions/wcswcs.texi.
46988         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46989         (Function Substitutes): Update.
46990
46991 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46992
46993         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46994         m4/strerror.m4.
46995
46996 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46997             Bruno Haible  <bruno@clisp.org>
46998
46999         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
47000
47001 2008-12-13  Bruno Haible  <bruno@clisp.org>
47002
47003         * modules/strtoull (Depends-on): Remove unistd.
47004
47005 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47006
47007         * modules/strtoull (Depends-on): Add stdlib.
47008
47009 2008-12-11  Simon Josefsson  <simon@josefsson.org>
47010
47011         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
47012
47013 2008-12-10  Jim Meyering  <meyering@redhat.com>
47014
47015         gl_ASSERT: don't say assertions are disabled when they're not
47016         * m4/assert.m4 (gl_ASSERT): Do not make configure report
47017         "checking whether to enable assertions... no", when they are in
47018         fact enabled.  This is solely a bug in the output of configure.
47019         In spite of saying "no", NDEBUG was not defined in that case.
47020         Also, as noted by Eric Blake, leave assertions enabled upon
47021         --enable-assert=INVALID.
47022
47023 2008-12-10  Bruno Haible  <bruno@clisp.org>
47024
47025         Change MODULES.html to refer to POSIX:2008 where possible.
47026         * MODULES.html.sh (POSIX2008_URL): New variable.
47027         (posix_headers): Remove sys/timeb, ucontext.
47028         (posix2001_headers): New variable.
47029         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
47030         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
47031         index, makecontext, mktemp, pthread_attr_getstackaddr,
47032         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
47033         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
47034         (posix2001_functions): New variable.
47035         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
47036         otherwise.
47037
47038 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47039
47040         add missing include to parse-duration.c
47041         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
47042         * modules/parse-duration (Depends-on): Add xalloc.
47043
47044         fix sed script reading maint.mk
47045         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
47046         (syntax-check-rules): Use it.
47047
47048 2008-12-09  Bruno Haible  <bruno@clisp.org>
47049
47050         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
47051         MacOS X 10.4/PowerPC.
47052         Reported by Simon Josefsson.
47053
47054 2008-12-08  Jim Meyering  <meyering@redhat.com>
47055
47056         work around mingw's lack of some S_IF definitions
47057         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
47058         Reported by Simon Josefsson.
47059
47060 2008-12-08  Bruno Haible  <bruno@clisp.org>
47061
47062         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
47063         applied to variables. Needed on MacOS X 10.4/PowerPC.
47064         Reported by Simon Josefsson.
47065
47066 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
47067         and Eric Blake  <ebb9@byu.net>
47068
47069         assert: honor --enable-assert
47070         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
47071         order to honor --enable-assert, rather than treating it as a
47072         synonym for --disable-assert.
47073
47074 2008-12-08  Jim Meyering  <meyering@redhat.com>
47075
47076         * lib/posixtm.c: Remove now-useless declaration of mktime.
47077
47078         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
47079
47080 2008-12-07  Bruno Haible  <bruno@clisp.org>
47081
47082         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
47083         test_once): Mark functions as static.
47084         * tests/test-tls.c (test_tls): Likewise.
47085
47086 2008-12-07  Bruno Haible  <bruno@clisp.org>
47087
47088         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
47089         iconv_register_autodetect.
47090
47091 2008-12-07  Jim Meyering  <meyering@redhat.com>
47092
47093         posixtm.c: avoid a warning
47094         * lib/posixtm.c (posixtime): Don't initialize tm0.
47095         It's no longer needed to placate gcc4's -Wuninitialized,
47096         and the attempt to placate would elicit a new warning.
47097
47098         unicodeio.c: mark unused parameters
47099         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47100         (fallback_failure_callback): Likewise.
47101
47102 2008-12-07  Bruno Haible  <bruno@clisp.org>
47103
47104         * gnulib-tool (func_create_testdir): When building the tests
47105         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
47106         Reported by Simon Josefsson.
47107
47108 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47109
47110         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
47111
47112 2008-12-06  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
47115         Suggested by Eric Blake.
47116
47117 2008-12-06  Bruno Haible  <bruno@clisp.org>
47118
47119         Fix a c-stack test failure on MacOS X.
47120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
47121         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
47122         handler for SIGBUS as well.
47123         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
47124         install a signal handler for SIGBUS as well.
47125         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
47126
47127 2008-12-06  Bruno Haible  <bruno@clisp.org>
47128
47129         Advocacy documentation.
47130         * doc/gnulib-intro.texi (Benefits): New section.
47131         * doc/gnulib.texi: Update.
47132
47133 2008-12-06  Bruno Haible  <bruno@clisp.org>
47134
47135         Document the 'manywarnings' module.
47136         * doc/manywarnings.texi: New file.
47137         * doc/gnulib.texi: Include it.
47138
47139 2008-12-05  Eric Blake  <ebb9@byu.net>
47140
47141         tests: silence some gcc warnings
47142         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
47143         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
47144         type mismatches.
47145
47146 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47147             Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47150
47151 2008-11-29  Jim Meyering  <meyering@redhat.com>
47152
47153         unicodeio.c: mark unused parameters
47154         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47155         (fallback_failure_callback): Likewise.
47156
47157         fts: fix a thinko
47158         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47159         (set_stat_type): Return S_IF*-valued "type" directly.
47160         Prompted by James Youngman's spotting a related bug.
47161         Confirmed by further testing through find.
47162
47163         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47164         * lib/fts.c (D_TYPE): Define.
47165         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47166         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47167         (s_ifmt_shift_bits): New function.
47168         (set_stat_type): New function.
47169         (fts_build): When not calling fts_stat, call set_stat_type
47170         to propagate dirent.d_type info to fts_read caller.
47171         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47172         fts_statp->st_mode type information may be valid.
47173
47174 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47175
47176         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47177         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47178         <sds@gnu.org>.
47179
47180 2008-11-20  Bruno Haible  <bruno@clisp.org>
47181
47182         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47183         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47184         INCLUDE_NEXT.
47185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47186         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47187         * modules/math (Makefile.am): Substitute
47188         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47190
47191 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47192             Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/stdint.in.h: Define all type macros so that their expansion is
47195         a single typedef'ed token. Fixes a compilation failure in Boost which
47196         does "using ::int8_t;".
47197
47198 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47199
47200         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47201         gl_MANYWARN_ALL_GCC.
47202         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47203         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47204         * modules/manywarnings: New file.
47205         * MODULES.html.sh: Mention manywarnings module.
47206
47207 2008-11-18  Bruno Haible  <bruno@clisp.org>
47208
47209         * doc/gnulib-tool.texi (Unit tests): New section.
47210
47211 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47212
47213         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47214         paths like 'lib/po/foo.po'.
47215
47216 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47217
47218         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47219         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47220
47221 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47222
47223         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47224         parameter works.
47225
47226 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47227
47228         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47229
47230 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47231
47232         * modules/parse-duration-tests: New file.
47233         * tests/test-parse-duration.sh: New file.
47234         * tests/test-parse-duration.c: New file.
47235
47236         New module 'parse-duration'.
47237         * lib/parse-duration.h: New file.
47238         * lib/parse-duration.c: New file.
47239         * modules/parse-duration: New file.
47240
47241 2008-11-17  Bruno Haible  <bruno@clisp.org>
47242
47243         * tests/test-select-out.sh: Comment out the first pipe test.
47244         Reported by Simon Josefsson.
47245
47246 2008-11-17  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47250         gl_HOSTENT.
47251
47252 2008-11-17  Bruno Haible  <bruno@clisp.org>
47253
47254         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47255         -lnetwork and -lnet. Needed for Haiku and BeOS.
47256
47257 2008-11-16  Bruno Haible  <bruno@clisp.org>
47258
47259         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47260
47261 2008-11-16  Bruno Haible  <bruno@clisp.org>
47262
47263         Avoid test failure on Haiku.
47264         * tests/test-fsync.c: Include <errno.h>.
47265         (main): Don't require that fsync (0) fails.
47266
47267 2008-11-15  Bruno Haible  <bruno@clisp.org>
47268
47269         New module 'hostent'.
47270         * modules/hostent: New file.
47271         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47272
47273 2008-11-15  Bruno Haible  <bruno@clisp.org>
47274
47275         New module 'servent'.
47276         * modules/servent: New file.
47277         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47278
47279 2008-11-15  Bruno Haible  <bruno@clisp.org>
47280
47281         Avoid generating same test program with two different rules.
47282         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47283         test-frexp to test-frexp-nolibm.
47284         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47285         test-frexpl to test-frexpl-nolibm.
47286
47287 2008-11-15  Bruno Haible  <bruno@clisp.org>
47288
47289         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47290         $(FREXPL_LIBM).
47291
47292 2008-11-15  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/netdb.in.h: Activate the definitions also when the system's
47295         <netdb.h> has 'struct addrinfo'.
47296         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47297         EAI_OVERFLOW or AI_NUMERICSERV.
47298         * doc/posix-headers/netdb.texi: Document the problem.
47299
47300 2008-11-15  Bruno Haible  <bruno@clisp.org>
47301
47302         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47303
47304         Make the 'sched' module work on platforms where <sched.h> exists but
47305         is incomplete (such as Haiku).
47306         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47307         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47308         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47309         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47310         HAVE_STRUCT_SCHED_PARAM.
47311         * modules/sched (Depends-on): Add include_next.
47312         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47313         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47314         * doc/posix-headers/sched.texi: Document the issue.
47315
47316 2008-11-13  Jim Meyering  <meyering@redhat.com>
47317
47318         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47319         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47320         test would fail due to the difference in the Report bugs to ...
47321         line.  The expected address is empty, "<>", while the actual
47322         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47323
47324 2008-11-12  Bruno Haible  <bruno@clisp.org>
47325
47326         lstat: don't compile lstat.c on systems lacking lstat
47327         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47328         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47329         Reported by Daniel P. Berrange via Jim Meyering.
47330
47331 2008-11-12  Jim Meyering  <meyering@redhat.com>
47332
47333         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47334
47335 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47336
47337         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47338         instead.
47339
47340 2008-11-12  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/unicodeio.c: Include unistr.h.
47343         (utf8_wctomb): Remove function.
47344         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47345
47346 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47347
47348         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47349         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47350         <bruno@clisp.org>.
47351         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47352
47353 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47354
47355         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47356         * doc/gnulib.texi: Add section for warnings.
47357
47358 2008-11-11  Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/sockets.h: Add a comment.
47361
47362 2008-11-11  Karl Berry  <karl@gnu.org>
47363
47364         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47365
47366 2008-11-11  Eric Blake  <ebb9@byu.net>
47367
47368         fdl.texi: avoid git symlinks
47369         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47370
47371 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47372
47373         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47374
47375 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47376
47377         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47378         (gl_WARN_ADD): Substitute $2 if literal.
47379
47380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47381
47382         * m4/warning.m4: Remove.
47383
47384 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47385
47386         * m4/warnings.m4: Almost complete rewrite. :-)
47387
47388 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47389
47390         * modules/warnings: New module.
47391         * m4/warnings.m4: New file.
47392         * MODULES.html.sh: Mention warnings module.
47393         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47394         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47395
47396 2008-11-10  Eric Blake  <ebb9@byu.net>
47397
47398         fdl.texi: make a symlink to the latest version
47399         * doc/standards.texi: Revert today's earlier change.
47400         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47401         * doc/fdl.texi: ...and replace this with a symlink to the newer
47402         fdl-1.3.texi.
47403
47404 2008-11-10  Bruno Haible  <bruno@clisp.org>
47405
47406         * tests/test-select-fd.c (main): Accept the result file name as fourth
47407         argument.
47408         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47409         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47410
47411 2008-11-10  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47414         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47415         as autoconf-substituted macros.
47416         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47418         gl_NETDB_H_DEFAULTS. Set these variables.
47419         * modules/netdb (Makefile.am): Substitute these variables.
47420
47421 2008-11-10  Eric Blake  <ebb9@byu.net>
47422
47423         standards.texi: include correct file for FDL 1.3
47424         * doc/standards.texi (GNU Free Documentation License): Change
47425         include file to pull in FDL 1.3, not 1.2.
47426
47427         fdl.texi: revert accidental change to license
47428         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47429
47430 2008-11-10  Bruno Haible  <bruno@clisp.org>
47431
47432         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47433         cross-compiling guesses also when the native compile gives no result.
47434
47435 2008-11-10  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/spawni.c (__spawni): Force variable into the stack.
47438
47439 2008-11-10  Bruno Haible  <bruno@clisp.org>
47440
47441         Add support for Haiku.
47442         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47443         glibc and BeOS, but also on Haiku.
47444         * lib/fpurge.c (fpurge): Likewise.
47445         * lib/freadable.c (freadable): Likewise.
47446         * lib/freadahead.c (freadahead): Likewise.
47447         * lib/freading.c (freading): Likewise.
47448         * lib/freadptr.c (freadptr): Likewise.
47449         * lib/freadseek.c (freadptrinc): Likewise.
47450         * lib/fseeko.c (rpl_fseeko): Likewise.
47451         * lib/fseterr.c (fseterr): Likewise.
47452         * lib/fwritable.c (fwritable): Likewise.
47453         * lib/fwriting.c (fwriting): Likewise.
47454         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47455
47456 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47457
47458         * lib/config.charset: Treat Haiku like BeOS.
47459
47460 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47461
47462         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47463         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47464
47465 2008-11-08  Bruno Haible  <bruno@clisp.org>
47466
47467         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47468         AC_CACHE_CHECK.
47469
47470 2008-11-08  Bruno Haible  <bruno@clisp.org>
47471
47472         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47473
47474 2008-11-08  Bruno Haible  <bruno@clisp.org>
47475
47476         * tests/test-select-fd.c: New file.
47477         * tests/test-select-in.sh: New file.
47478         * tests/test-select-out.sh: New file.
47479         * tests/test-select-stdin.c: New file.
47480         * modules/select-tests (Files): Add the new files.
47481         (Depends-on): Add gettimeofday.
47482         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47483         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47484         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47485
47486 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47487             Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47490
47491 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47492
47493         * build-aux/pmccabe2html: Added support for C++ source files.
47494
47495 2008-11-05  Ben Pfaff  <blp@gnu.org>
47496
47497         Fix lib/close.c build on Windows.
47498         * modules/close (Files): Add lib/w32sock.h.
47499
47500 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47501
47502         Accept Bison's NEWS format.
47503         * build-aux/announce-gen (print_news_deltas): Tweak
47504         $re_prefix.
47505
47506 2008-11-04  Bruno Haible  <bruno@clisp.org>
47507
47508         * modules/random_r (Maintainer): Add glibc.
47509
47510 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47511
47512         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47513         by karl@freefriends.org (Karl Berry).
47514         * doc/alloca.texi: Likewise.
47515         * doc/c-ctype.texi: Likewise.
47516         * doc/c-strcase.texi: Likewise.
47517         * doc/c-strcaseeq.texi: Likewise.
47518         * doc/c-strcasestr.texi: Likewise.
47519         * doc/c-strstr.texi: Likewise.
47520         * doc/c-strtod.texi: Likewise.
47521         * doc/c-strtold.texi: Likewise.
47522         * doc/ctime.texi: Likewise.
47523         * doc/error.texi: Likewise.
47524         * doc/fdl.texi: Likewise.
47525         * doc/gcd.texi: Likewise.
47526         * doc/getdate.texi: Likewise.
47527         * doc/gnulib-intro.texi: Likewise.
47528         * doc/gnulib-tool.texi: Likewise.
47529         * doc/gnulib.texi: Likewise.
47530         * doc/inet_ntoa.texi: Likewise.
47531         * doc/maintain.texi: Likewise.
47532         * doc/make-stds.texi: Likewise.
47533         * doc/quote.texi: Likewise.
47534         * doc/regexprops-generic.texi: Likewise.
47535         * doc/standards.texi: Likewise.
47536         * doc/verify.texi: Likewise.
47537         * doc/visibility.texi: Likewise.
47538         * doc/gnulib.texi (GNU Free Documentation License): Include
47539         fdl-1.3.texi instead of fdl.texi.
47540
47541 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47542
47543         * doc/fdl-1.3.texi: New file, from
47544         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47545         * modules/fdl-1.3: Add.
47546         * MODULES.html.sh: Add fdl-1.3.
47547
47548 2008-11-03  Bruno Haible  <bruno@clisp.org>
47549
47550         Make determination of absolute name of header file work with AIX xlc.
47551         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47552         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47553         preprocessing.
47554         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47555         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47556
47557 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47558
47559         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47560         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47561         <ludo@gnu.org>.
47562
47563 2008-11-02  Bruno Haible  <bruno@clisp.org>
47564
47565         Mark 'strpbrk' obsolete.
47566         * modules/strpbrk (Status, Notice): New sections.
47567         * modules/strtok_r (Depends-on): Add strpbrk.
47568
47569 2008-11-02  Bruno Haible  <bruno@clisp.org>
47570
47571         Mark 'strdup' obsolete.
47572         * modules/strdup (Status, Notice): New sections.
47573         * modules/findprog (Depends-on): Add strdup.
47574         * modules/getaddrinfo (Depends-on): Likewise.
47575         * modules/localename (Depends-on): Likewise.
47576         * modules/relocatable-lib (Depends-on): Likewise.
47577         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47578         * modules/relocatable-prog (Depends-on): Likewise.
47579         * modules/trim (Depends-on): Likewise.
47580         * modules/unictype/gen-ctype (Depends-on): Likewise.
47581         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47582
47583 2008-11-02  Bruno Haible  <bruno@clisp.org>
47584
47585         Mark 'strcspn' obsolete.
47586         * modules/strcspn (Status, Notice): New sections.
47587
47588 2008-11-02  Bruno Haible  <bruno@clisp.org>
47589
47590         Mark 'rmdir' obsolete.
47591         * modules/rmdir (Status, Notice): New sections.
47592         * modules/clean-temp (Depends-on): Add rmdir.
47593         * modules/openat (Depends-on): Likewise.
47594
47595 2008-11-02  Bruno Haible  <bruno@clisp.org>
47596
47597         Mark 'raise' obsolete.
47598         * modules/raise (Status, Notice): New sections.
47599         (Include): Specify <signal.h>.
47600         * modules/stdio (Depends-on): Add raise.
47601         * modules/write (Depends-on): Likewise.
47602
47603 2008-11-02  Bruno Haible  <bruno@clisp.org>
47604
47605         Mark 'memset' obsolete.
47606         * modules/memset (Status, Notice): New sections.
47607
47608 2008-11-02  Bruno Haible  <bruno@clisp.org>
47609
47610         Mark 'memmove' obsolete.
47611         * modules/memmove (Status, Notice): New sections.
47612         * modules/argp (Depends-on): Add memmove.
47613         * modules/argz (Depends-on): Likewise.
47614         * modules/canonicalize (Depends-on): Likewise.
47615         * modules/canonicalize-lgpl (Depends-on): Likewise.
47616         * modules/fts (Depends-on): Likewise.
47617         * modules/getcwd (Depends-on): Likewise.
47618         * modules/human (Depends-on): Likewise.
47619         * modules/regex (Depends-on): Likewise.
47620         * modules/striconveh (Depends-on): Likewise.
47621         * modules/trim (Depends-on): Likewise.
47622         * modules/unistr/u8-move (Depends-on): Likewise.
47623         * modules/unistr/u16-move (Depends-on): Likewise.
47624         * modules/unistr/u32-move (Depends-on): Likewise.
47625
47626 2008-11-02  Bruno Haible  <bruno@clisp.org>
47627
47628         Mark 'memcpy' obsolete.
47629         * modules/memcpy (Status, Notice): New sections.
47630
47631 2008-11-02  Bruno Haible  <bruno@clisp.org>
47632
47633         Mark 'memcmp' obsolete.
47634         * modules/memcmp (Status, Notice): New sections.
47635         * modules/argmatch (Depends-on): Add memchr.
47636         * modules/backupfile (Depends-on): Likewise.
47637         * modules/c-strcasestr (Depends-on): Likewise.
47638         * modules/crypto/des (Depends-on): Likewise.
47639         * modules/csharpcomp (Depends-on): Likewise.
47640         * modules/fnmatch (Depends-on): Likewise.
47641         * modules/git-merge-changelog (Depends-on): Likewise.
47642         * modules/isnand (Depends-on): Likewise.
47643         * modules/isnand-nolibm (Depends-on): Likewise.
47644         * modules/isnanf (Depends-on): Likewise.
47645         * modules/isnanf-nolibm (Depends-on): Likewise.
47646         * modules/isnanl (Depends-on): Likewise.
47647         * modules/isnanl-nolibm (Depends-on): Likewise.
47648         * modules/mbchar (Depends-on): Likewise.
47649         * modules/memcoll (Depends-on): Likewise.
47650         * modules/quotearg (Depends-on): Likewise.
47651         * modules/regex (Depends-on): Likewise.
47652         * modules/relocatable-prog (Depends-on): Likewise.
47653         * modules/same (Depends-on): Likewise.
47654         * modules/signbit (Depends-on): Likewise.
47655         * modules/strcasestr-simple (Depends-on): Likewise.
47656         * modules/unictype/gen-ctype (Depends-on): Likewise.
47657         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47658         * modules/uniname/uniname (Depends-on): Likewise.
47659         * modules/unistr/u8-cmp (Depends-on): Likewise.
47660
47661 2008-11-02  Bruno Haible  <bruno@clisp.org>
47662
47663         Mark 'memchr' obsolete.
47664         * modules/memchr (Status, Notice): New sections.
47665         * modules/argp (Depends-on): Add memchr.
47666         * modules/base64 (Depends-on): Likewise.
47667         * modules/c-strcasestr (Depends-on): Likewise.
47668         * modules/chdir-long (Depends-on): Likewise.
47669         * modules/fnmatch (Depends-on): Likewise.
47670         * modules/getsubopt (Depends-on): Likewise.
47671         * modules/git-merge-changelog (Depends-on): Likewise.
47672         * modules/glob (Depends-on): Likewise.
47673         * modules/strcasestr-simple (Depends-on): Likewise.
47674         * modules/strnlen (Depends-on): Likewise.
47675
47676 2008-11-02  Bruno Haible  <bruno@clisp.org>
47677
47678         Mark 'atexit' obsolete.
47679         * modules/atexit (Status, Notice): New sections.
47680         * modules/chdir-long (Depends-on): Add atexit.
47681         * modules/wait-process (Depends-on): Likewise.
47682
47683 2008-11-02  Bruno Haible  <bruno@clisp.org>
47684
47685         * gnulib-tool: New option --with-obsolete.
47686         (func_usage): Document it.
47687         (func_modules_transitive_closure): Drop obsolete dependencies if
47688         incobsolete is not true.
47689         (func_import): Read and save the incobsolete variable to the cache.
47690
47691 2008-11-02  Bruno Haible  <bruno@clisp.org>
47692
47693         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47694         * gnulib-tool: New option --extract-status.
47695         (func_usage): Document it.
47696         (sed_extract_prog): Recognize it.
47697         (func_get_status): New function.
47698
47699 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47700
47701         * modules/sockets (License): Change from LGPL to LGPLv2+.
47702
47703 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47704
47705         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47706
47707 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47708
47709         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47710         Mention times and sys_times.
47711         * modules/sys_times, modules/sys_times-tests: New modules.
47712         * modules/times, modules/times-tests: Likewise
47713         * m4/sys_times_h.m4: New file.
47714         * lib/sys_times.in.h: Likewise
47715         * lib/times.c: Likewise.
47716         * tests/test-sys_times.c: Likewise.
47717         * tests/test-times.c: Likewise.
47718         * doc/posix-headers/sys_times.texi: Update.
47719         * doc/posix-functions/times.texi: Update.
47720
47721 2008-10-28  Jim Meyering  <meyering@redhat.com>
47722
47723         * modules/tempname (Depends-on): Add lstat.
47724
47725         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47726
47727 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47728
47729         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47730         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47731         using idiom used elsewhere in gnulib.
47732
47733 2008-10-27  Jim Meyering  <meyering@redhat.com>
47734
47735         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47736
47737 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47738
47739         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47740         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47741         programs.
47742         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47743
47744 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47745
47746         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47747
47748 2008-10-27  Bruno Haible  <bruno@clisp.org>
47749
47750         * tests/test-lstat.c: Include <stdio.h>.
47751
47752 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47753
47754         * modules/lstat-tests: New module.
47755         * tests/test-lstat.c: New file.
47756
47757 2008-10-26  Jim Meyering  <meyering@redhat.com>
47758
47759         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47760
47761 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47762             Bruno Haible  <bruno@clisp.org>
47763
47764         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47765         * modules/configmake (Include): Add a note that the include must come
47766         after all system headers.
47767         * lib/javaversion.c: Include configmake.h after all other includes.
47768
47769 2008-10-26  Bruno Haible  <bruno@clisp.org>
47770
47771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47772         HAVE_STRUCT_RANDOM_DATA to 1.
47773         (gl_STDLIB_H): Simplify.
47774
47775 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47776
47777         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47778         substitute HAVE_STRUCT_RANDOM_DATA.
47779         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47780         random_data.
47781         * modules/stdlib (Makefile.am): Substitute
47782         HAVE_STRUCT_RANDOM_DATA.
47783
47784 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47785
47786         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47787         * doc/gnulib-intro.texi (Copyright): Likewise.
47788
47789 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47790
47791         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47792         findings.
47793
47794 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47795             Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/unistd.in.h: Include <winsock2.h>.
47798         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47799         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47800         Provide dummy declarations.
47801         (gethostname): Override.
47802         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47803         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47804         gl_PREREQ_SYS_H_WINSOCK2.
47805         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47806         * doc/posix-functions/gethostname.texi: More details.
47807
47808 2008-10-25  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47811         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47812         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47813
47814         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47815         here ...
47816         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47817         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47818         gl_UNISTD_H_DEFAULTS.
47819
47820 2008-10-25  Eric Blake  <ebb9@byu.net>
47821
47822         signbit: avoid spurious compiler failure
47823         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47824         declarations inside function.
47825
47826 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47827             Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47830         * modules/random_r (Depends-on): Add stdint.
47831
47832 2008-10-24  Bruno Haible  <bruno@clisp.org>
47833
47834         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47835         Eggert.
47836         * modules/strerror (License): Likewise.
47837
47838 2008-10-24  Jim Meyering  <meyering@redhat.com>
47839
47840         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47841         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47842
47843 2008-10-24  Eric Blake  <ebb9@byu.net>
47844
47845         getgroups: fix compilation when getgroups is available
47846         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47847         but with <config.h> override of getgroups disabled.
47848
47849 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47850
47851         * doc/gnulib.texi (Header files): Add note about C++ problems.
47852         Explained by Bruno Haible <bruno@clisp.org>.
47853
47854 2008-10-23  Bruno Haible  <bruno@clisp.org>
47855
47856         Define a dummy SA_NODEFER macro on Interix.
47857         * lib/signal.in.h (SA_NODEFER): Define fallback.
47858         Reported by Aleksey Cheusov <cheusov@tut.by> via
47859         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47860
47861 2008-10-23  Bruno Haible  <bruno@clisp.org>
47862
47863         * modules/freadahead (License): Change to LGPLv2+.
47864         Suggested by Simon Josefsson.
47865
47866 2008-10-23  Jim Meyering  <meyering@redhat.com>
47867
47868         random_r: new module
47869         * modules/random_r: New file.
47870         * m4/random_r.m4: New file.
47871         * lib/random_r.c: New file, from glibc.
47872         * modules/random_r-tests: New file.
47873         * tests/test-random_r.c: New file.
47874         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47875          Declare.
47876         (RAND_MAX): Define.
47877         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47878         * modules/stdlib: Substitute them, too.
47879         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47880         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47881         * doc/glibc-functions/random_r.texi: Likewise.
47882         * doc/glibc-functions/setstate_r.texi: Likewise.
47883         * doc/glibc-functions/srandom_r.texi: Likewise.
47884         * config/srclist.txt: Mention it.
47885
47886 2008-10-23  David Lutterkort  <lutter@redhat.com>
47887
47888         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47889         link requirement
47890
47891 2008-10-23  Jim Meyering  <meyering@redhat.com>
47892
47893         selinux-h: mark parameters of stub functions as intentionally unused
47894         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47895         * lib/se-context.in.h: Likewise.
47896
47897 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47898
47899         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47900
47901 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47902
47903         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47904
47905 2008-10-22  Eric Blake  <ebb9@byu.net>
47906
47907         glthread/thread: avoid compiler warning
47908         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47909         Add unreachable abort to silence compiler.
47910
47911 2008-10-22  Eric Blake  <ebb9@byu.net>
47912
47913         netdb: also supply struct addrinfo for cygwin 1.5.x
47914         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47915         older cygwin.
47916         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47917         cygwin.
47918         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47919
47920 2008-10-22  Bruno Haible  <bruno@clisp.org>
47921
47922         * users.txt: Update entry about pspp.
47923
47924 2008-10-21  Bruno Haible  <bruno@clisp.org>
47925
47926         Simplification.
47927         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47928         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47929
47930         Simplification.
47931         * lib/ioctl.c (ioctl): Don't undefine.
47932         * lib/socket.c (socket): Don't undefine.
47933
47934         Remove unused module indicator macros.
47935         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47936         GNULIB_$1 as a C macro.
47937
47938         * doc/posix-functions/close.texi: Undo last change.
47939         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47940         Windows platforms.
47941
47942 2008-10-21  Bruno Haible  <bruno@clisp.org>
47943
47944         Add gethostname() declaration to <unistd.h>.
47945         * lib/unistd.in.h (gethostname): New declaration.
47946         * lib/gethostname.c: Include <unistd.h>.
47947         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47948         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47950         and HAVE_GETHOSTNAME.
47951         * modules/gethostname (Depends-on): Add unistd.
47952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47953         (Include): Specify <unistd.h>.
47954         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47955         HAVE_GETHOSTNAME.
47956         * tests/test-gethostname.c: Include <unistd.h> first.
47957
47958 2008-10-21  Bruno Haible  <bruno@clisp.org>
47959
47960         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47961         * modules/select-tests (Depends-on): Likewise.
47962         Reported by Simon Josefsson.
47963
47964 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47965
47966         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47967         * lib/accept.c: New file, based on winsock.c.
47968         * lib/bind.c: New file, based on winsock.c.
47969         * lib/connect.c: New file, based on winsock.c.
47970         * lib/getpeername.c: New file, based on winsock.c.
47971         * lib/getsockname.c: New file, based on winsock.c.
47972         * lib/getsockopt.c: New file, based on winsock.c.
47973         * lib/ioctl.c: New file, based on winsock.c.
47974         * lib/listen.c: New file, based on winsock.c.
47975         * lib/recv.c: New file, based on winsock.c.
47976         * lib/recvfrom.c: New file, based on winsock.c.
47977         * lib/send.c: New file, based on winsock.c.
47978         * lib/sendto.c: New file, based on winsock.c.
47979         * lib/setsockopt.c: New file, based on winsock.c.
47980         * lib/shutdown.c: New file, based on winsock.c.
47981         * lib/socket.c: New file, based on winsock.c.
47982         * lib/w32sock.h: New file, based on winsock.c.
47983         * lib/winsock.c: Remove file.
47984         * modules/accept: Likewise.
47985         * modules/bind: Likewise.
47986         * modules/connect: Likewise.
47987         * modules/getpeername: Likewise.
47988         * modules/getsockname: Likewise.
47989         * modules/getsockopt: Likewise.
47990         * modules/ioctl: Likewise.
47991         * modules/listen: Likewise.
47992         * modules/recv: Likewise.
47993         * modules/recvfrom: Likewise.
47994         * modules/send: Likewise.
47995         * modules/sendto: Likewise.
47996         * modules/setsockopt: Likewise.
47997         * modules/shutdown: Likewise.
47998         * modules/socket: Use socket.c instead of winsock.c.
47999         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
48000         * doc/posix-functions/accept.texi: Doc fix.
48001         * doc/posix-functions/bind.texi: Doc fix.
48002         * doc/posix-functions/close.texi: Doc fix.
48003         * doc/posix-functions/connect.texi: Doc fix.
48004         * doc/posix-functions/getpeername.texi: Doc fix.
48005         * doc/posix-functions/getsockname.texi: Doc fix.
48006         * doc/posix-functions/getsockopt.texi: Doc fix.
48007         * doc/posix-functions/ioctl.texi: Doc fix.
48008         * doc/posix-functions/listen.texi: Doc fix.
48009         * doc/posix-functions/recv.texi: Doc fix.
48010         * doc/posix-functions/recvfrom.texi: Doc fix.
48011         * doc/posix-functions/send.texi: Doc fix.
48012         * doc/posix-functions/sendto.texi: Doc fix.
48013         * doc/posix-functions/setsockopt.texi: Doc fix.
48014         * doc/posix-functions/shutdown.texi: Doc fix.
48015         * doc/posix-functions/socket.texi: Doc fix.
48016
48017 2008-10-20  Bruno Haible  <bruno@clisp.org>
48018
48019         Take into account the role of SIGABRT_COMPAT on Windows 2008.
48020         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
48021         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
48022         as an alias for SIGABRT.
48023         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
48024         (sigaction): Map it to SIGABRT.
48025         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
48026
48027 2008-10-20  Bruno Haible  <bruno@clisp.org>
48028
48029         * lib/fts.c: Don't include lstat.h.
48030         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
48031
48032         Move the lstat() declaration to <sys/stat.h>.
48033         * lib/lstat.h: Remove file.
48034         * lib/sys_stat.in.h: Add special invocation convention.
48035         (lstat): New declaration.
48036         * lib/lstat.c (orig_lstat): New function.
48037         (rpl_lstat): Use orig_lstat instead of lstat.
48038         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
48039         AC_C_INLINE. Set REPLACE_LSTAT.
48040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
48041         and REPLACE_LSTAT.
48042         * modules/lstat (Files): Remove lib/lstat.h.
48043         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48044         (Include): Specify <sys/stat.h> instead of lstat.h.
48045         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
48046         REPLACE_LSTAT.
48047         * NEWS: Mention the change.
48048
48049 2008-10-20  Bruno Haible  <bruno@clisp.org>
48050
48051         * modules/posix_spawn-tests: New file.
48052         * tests/test-posix_spawn3.c: New file.
48053
48054 2008-10-20  Bruno Haible  <bruno@clisp.org>
48055
48056         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
48057         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48058         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
48059         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48060         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
48061
48062 2008-10-20  Bruno Haible  <bruno@clisp.org>
48063
48064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
48065         of posix_spawn on AIX 5.3.
48066
48067 2008-10-20  Bruno Haible  <bruno@clisp.org>
48068
48069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
48070
48071 2008-10-20  Bruno Haible  <bruno@clisp.org>
48072
48073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
48074         of AC_LANG_PROGRAM.
48075
48076 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48077
48078         * lib/netdb.in.h: Don't define GNU specific constants until they
48079         are supported or needed.  Reported by Bruno Haible
48080         <bruno@clisp.org>.
48081
48082 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48083
48084         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
48085
48086 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48087
48088         * lib/getaddrinfo.h: Remove file.
48089         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
48090         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
48091         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
48092         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
48093         * modules/netdb: Substitute GNULIB_GETADDRINFO.
48094         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
48095         * tests/test-getaddrinfo.c: Likewise.
48096         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
48097         * NEWS: Mention change.
48098
48099 2008-10-19  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
48102
48103 2008-10-19  Bruno Haible  <bruno@clisp.org>
48104
48105         * lib/wait-process.c: Include simply <sys/wait.h>.
48106         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
48107         WIFSTOPPED): Remove fallback definitions.
48108         * modules/wait-process (Depends-on): Add sys_wait.
48109
48110         New module 'sys_wait'.
48111         * modules/sys_wait: New file.
48112         * lib/sys_wait.in.h: New file, partially copied from
48113         lib/wait-process.c.
48114         * m4/sys_wait_h.m4: New file.
48115         * doc/posix-headers/sys_wait.texi: Mention the new module.
48116
48117 2008-10-19  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
48120
48121 2008-10-19  Bruno Haible  <bruno@clisp.org>
48122
48123         Assume that waitpid() fills an 'int' status, not a 'union wait'.
48124         * lib/wait-process.c (WAIT_T): Remove type.
48125         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
48126         (wait_subprocess): Update.
48127
48128 2008-10-19  Bruno Haible  <bruno@clisp.org>
48129
48130         New module 'atoll'.
48131         * modules/atoll: New file.
48132         * lib/stdlib.in.h (atoll): New declaration.
48133         * lib/atoll.c: New file, from glibc with modifications.
48134         * m4/atoll.m4: New file.
48135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
48136         HAVE_ATOLL.
48137         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
48138         * doc/posix-functions/atoll.texi: Mention the new module.
48139
48140 2008-10-19  Bruno Haible  <bruno@clisp.org>
48141
48142         Add strtoull() declaration to <stdlib.h>.
48143         * lib/stdlib.in.h (strtoull): New declaration.
48144         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48145         Set HAVE_STRTOULL.
48146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
48147         HAVE_STRTOULL.
48148         * modules/strtoull (Depends-on): Add stdlib.
48149         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48150         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48151         HAVE_STRTOULL.
48152
48153 2008-10-19  Bruno Haible  <bruno@clisp.org>
48154
48155         Add strtoll() declaration to <stdlib.h>.
48156         * lib/stdlib.in.h (strtoll): New declaration.
48157         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48158         Set HAVE_STRTOLL.
48159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48160         HAVE_STRTOLL.
48161         * modules/strtoll (Depends-on): Add stdlib.
48162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48163         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48164
48165 2008-10-19  Bruno Haible  <bruno@clisp.org>
48166
48167         * modules/bcopy (Depends-on): Add strings.
48168         (Include): Specify <strings.h>.
48169
48170 2008-10-19  Bruno Haible  <bruno@clisp.org>
48171
48172         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48173
48174 2008-10-19  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48177         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48178         mingw.
48179
48180 2008-10-19  Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/atanl.c: Don't include isnanl.h.
48183         * lib/cosl.c: Likewise.
48184         * lib/ldexpl.c: Likewise.
48185         * lib/logl.c: Likewise.
48186         * lib/sinl.c: Likewise.
48187         * lib/sqrtl.c: Likewise.
48188         * lib/tanl.c: Likewise.
48189
48190         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48191         * lib/isnanf.h: Remove file.
48192         * lib/isnand.h: Remove file.
48193         * lib/isnanl.h: Remove file.
48194         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48195         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48196         macros.
48197         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48198         HAVE_ISNANF, don't define it as a C macro.
48199         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48200         HAVE_ISNAND, don't define it as a C macro.
48201         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48202         HAVE_ISNANL, don't define it as a C macro.
48203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48204         HAVE_ISNAN[FDL].
48205         * modules/isnanf (Files): Remove lib/isnanf.h.
48206         (Depends-on): Add math.
48207         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48208         (Include): Specify <math.h> instead of isnanf.h.
48209         * modules/isnand (Files): Remove lib/isnand.h.
48210         (Depends-on): Add math.
48211         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48212         (Include): Specify <math.h> instead of isnand.h.
48213         * modules/isnanl (Files): Remove lib/isnanl.h.
48214         (Depends-on): Add math.
48215         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48216         (Include): Specify <math.h> instead of isnanl.h.
48217         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48218         HAVE_ISNAN[FDL].
48219         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48220         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48221         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48222         * NEWS: Mention the change.
48223
48224 2008-10-18  Bruno Haible  <bruno@clisp.org>
48225
48226         Add getusershell(), setusershell(), endusershell() declarations to
48227         <unistd.h>.
48228         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48229         declarations.
48230         * lib/getusershell.c: Include unistd.h.
48231         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48232         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48233         HAVE_GETUSERSHELL.
48234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48235         and HAVE_GETUSERSHELL.
48236         * modules/getusershell (Depends-on): Add unistd, extensions.
48237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48238         (Include): Specify <unistd.h>.
48239         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48240         HAVE_GETUSERSHELL.
48241
48242 2008-10-18  Bruno Haible  <bruno@clisp.org>
48243
48244         Add a getloadavg() declaration to <stdlib.h>.
48245         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48246         getloadavg declaration.
48247         (getloadavg): New declaration.
48248         * lib/getloadavg.c: Include <stdlib.h> first.
48249         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48250         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48251         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48253         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48254         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48256         (Include): Specify <stdlib.h>.
48257         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48258         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48259
48260 2008-10-18  Bruno Haible  <bruno@clisp.org>
48261
48262         * lib/dirchownmod.c: Don't include lchmod.h.
48263
48264         Move the lchmod() declaration to <sys/stat.h>.
48265         * lib/lchmod.h: Remove file.
48266         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48267         (lchmod): New declaration, moved here from lib/lchown.h.
48268         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48269         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48270         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48271         and HAVE_LCHMOD.
48272         * modules/lchmod (Files): Remove lib/lchmod.h.
48273         (Depends-on): Add sys_stat, extensions.
48274         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48275         (Include): Specify <sys/stat.h> instead of lchmod.h.
48276         * modules/sys_stat (Depends-on): Add link-warning.
48277         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48278         definition of GL_LINK_WARNING.
48279         * NEWS: Mention the change.
48280
48281 2008-10-18  Bruno Haible  <bruno@clisp.org>
48282
48283         * lib/fchdir.c: Don't include dirfd.h.
48284         * lib/fts.c: Likewise.
48285         * lib/getcwd.c: Likewise.
48286         * lib/glob.c: Likewise.
48287
48288         Move the dirfd() declaration to <dirent.h>.
48289         * lib/dirfd.h: Remove file.
48290         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48291         (dirfd): New declaration.
48292         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48293         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48294         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48295         HAVE_DECL_DIRFD.
48296         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48297         HAVE_DECL_DIRFD.
48298         * modules/dirfd (Files): Remove lib/dirfd.h.
48299         (Depends-on): Add dirent, extensions.
48300         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48301         (Include): Specify <dirent.h> instead of dirfd.h.
48302         * modules/dirent (Depends-on): Add link-warning.
48303         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48304         definition of GL_LINK_WARNING.
48305         * NEWS: Mention the change.
48306
48307 2008-10-18  Bruno Haible  <bruno@clisp.org>
48308
48309         Move the euidaccess() declaration to <unistd.h>.
48310         * lib/euidaccess.h: Remove file.
48311         * lib/unistd.in.h (euidaccess): New declaration.
48312         * lib/euidaccess.c: Don't include euidaccess.h.
48313         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48314         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48316         and HAVE_EUIDACCESS.
48317         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48318         (Depends-on): Add unistd.
48319         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48320         (Include): Specify <unistd.h> instead of euidaccess.h.
48321         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48322         HAVE_EUIDACCESS.
48323         * NEWS: Mention the change.
48324
48325 2008-10-18  Bruno Haible  <bruno@clisp.org>
48326
48327         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48328
48329         Move the getdomainname() declaration to <unistd.h>.
48330         * lib/getdomainname.h: Remove file.
48331         * lib/unistd.in.h (getdomainname): New declaration.
48332         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48333         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48334         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48335         HAVE_GETDOMAINNAME.
48336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48337         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48338         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48339         (Depends-on): Add unistd, extensions.
48340         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48341         (Includes): Specify <unistd.h> instead of getdomainname.h.
48342         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48343         HAVE_GETDOMAINNAME.
48344         * NEWS: Mention the change.
48345
48346 2008-10-18  Bruno Haible  <bruno@clisp.org>
48347
48348         * modules/dirent: New file.
48349         * m4/dirent_h.m4: New file.
48350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48351         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48352         * modules/fchdir (Files): Remove lib/dirent.in.h.
48353         (Depends-on): Add dirent.
48354         (Makefile.am): Move rules to modules/dirent.
48355         * doc/posix-headers/dirent.texi: Mention the new module.
48356
48357 2008-10-18  Bruno Haible  <bruno@clisp.org>
48358
48359         Avoid -Wunused-parameter warnings in public gnulib header files.
48360         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48361         macro.
48362         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48363
48364 2008-10-18  Bruno Haible  <bruno@clisp.org>
48365
48366         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48367         * doc/glibc-functions/error.texi: Mention the module 'error'.
48368         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48369         * doc/glibc-functions/getdomainname.texi: Mention the module
48370         'getdomainname'.
48371         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48372         * doc/glibc-functions/getpagesize.texi: Mention the module
48373         'getpagesize'.
48374         * doc/glibc-functions/getusershell.texi: Mention the module
48375         'getusershell'.
48376         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48377         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48378         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48379         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48380         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48381         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48382         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48383         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48384         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48385         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48386         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48387         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48388         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48389         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48390
48391 2008-10-17  Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48394         HP-UX and IRIX, use -0.0L.
48395         * tests/test-ceill.c (minus_zero): Likewise.
48396         * tests/test-floorl.c (minus_zero): Likewise.
48397         * tests/test-frexpl.c (minus_zero): Likewise.
48398         * tests/test-isnan.c (minus_zerol): Likewise.
48399         * tests/test-isnanl.h (minus_zero): Likewise.
48400         * tests/test-ldexpl.c (minus_zero): Likewise.
48401         * tests/test-roundl.c (minus_zero): Likewise.
48402         * tests/test-signbit.c (minus_zerol): Likewise.
48403         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48404         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48405         * tests/test-truncl.c (minus_zero): Likewise.
48406         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48407         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48408         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48409         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48410
48411 2008-10-17  Bruno Haible  <bruno@clisp.org>
48412
48413         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48414         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48415         that it gets activated only for gcc >= 3.0.
48416         * lib/dirent.in.h: Likewise.
48417         * lib/errno.in.h: Likewise.
48418         * lib/fcntl.in.h: Likewise.
48419         * lib/float.in.h: Likewise.
48420         * lib/iconv.in.h: Likewise.
48421         * lib/inttypes.in.h: Likewise.
48422         * lib/locale.in.h: Likewise.
48423         * lib/math.in.h: Likewise.
48424         * lib/netdb.in.h: Likewise.
48425         * lib/netinet_in.in.h: Likewise.
48426         * lib/search.in.h: Likewise.
48427         * lib/signal.in.h: Likewise.
48428         * lib/spawn.in.h: Likewise.
48429         * lib/stdarg.in.h: Likewise.
48430         * lib/stdint.in.h: Likewise.
48431         * lib/stdio.in.h: Likewise.
48432         * lib/stdlib.in.h: Likewise.
48433         * lib/string.in.h: Likewise.
48434         * lib/strings.in.h: Likewise.
48435         * lib/sys_file.in.h: Likewise.
48436         * lib/sys_ioctl.in.h: Likewise.
48437         * lib/sys_select.in.h: Likewise.
48438         * lib/sys_socket.in.h: Likewise.
48439         * lib/sys_stat.in.h: Likewise.
48440         * lib/sys_time.in.h: Likewise.
48441         * lib/sysexits.in.h: Likewise.
48442         * lib/time.in.h: Likewise.
48443         * lib/unistd.in.h: Likewise.
48444         * lib/wchar.in.h: Likewise.
48445         * lib/wctype.in.h: Likewise.
48446         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48447
48448 2008-10-17  Jim Meyering  <meyering@redhat.com>
48449
48450         ignore-value: don't depend on inline module
48451         * modules/ignore-value (Depends-on): Remove 'inline'.
48452         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48453         Suggestion from Bruno Haible.
48454
48455 2008-10-17  Bruno Haible  <bruno@clisp.org>
48456
48457         New implementation of condition variables for Win32.
48458         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48459         (gl_linked_waitqueue_t): New type.
48460         (gl_cond_t): Use it.
48461         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48462         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48463         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48464         (glthread_cond_init_func, glthread_cond_wait_func,
48465         glthread_cond_timedwait_func, glthread_cond_signal_func,
48466         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48467         Reimplemented on the basis of gl_linked_waitqueue_t.
48468         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48469         gl_waitqueue_t.
48470         (gl_rwlock_t): Update.
48471         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48472
48473 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48474
48475         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48476         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48477
48478 2008-10-17  Jim Meyering  <meyering@redhat.com>
48479
48480         ignore-value: new module
48481         * modules/ignore-value: New file.
48482         * lib/ignore-value.h: New file.
48483         * MODULES.html.sh (Compiler warning management): New section,
48484         just for this module.  More to come.
48485
48486 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48487
48488         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48489         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48490         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48491
48492 2008-10-16  Jim Meyering  <meyering@redhat.com>
48493
48494         openat-die.c: avoid 'no previous prototype' warning
48495         * lib/openat-die.c: Include "openat.h".
48496         Reported by Reuben Thomas <rrt@sc3d.org>.
48497
48498 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48499
48500         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48501         * lib/netdb.in.h: Fix typo.
48502         Reported by Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/netdb.in.h: Include sys/socket.h for platforms without
48505         netdb.h, to get structures like hostent on MinGW.
48506         * modules/netdb (Depends-on): Add sys_socket.
48507
48508 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48509
48510         * modules/netdb, modules/netdb-tests: New file.
48511         * m4/netdb_h.m4: New file.
48512         * lib/netdb.in.h: Add, currently just an empty file pending
48513         definitions.
48514         * tests/test-netdb.c: New file.
48515         * doc/posix-headers/netdb.texi: Mention that we replace it if
48516         needed.
48517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48518         netdb.
48519
48520 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48521
48522         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48523         with code.
48524
48525 2008-10-13  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/glthread/cond.c (glthread_cond_wait_func,
48528         glthread_cond_timedwait_func): Add a comment.
48529
48530 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48531
48532         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48533         * tests/test-select.c: Likewise,
48534
48535 2008-10-13  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/glthread/cond.c (glthread_cond_wait_func,
48538         glthread_cond_timedwait_func): Fix variable name.
48539         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48540
48541 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48542
48543         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48544         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48545         struct sockaddr.sa_len.
48546         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48547
48548 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48549
48550         * build-aux/pmccabe2html: Add css and css_url parameters.
48551
48552 2008-10-12  Bruno Haible  <bruno@clisp.org>
48553
48554         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48555         calling aclx_get.
48556         Reported by Rainer Tammer <tammer@tammer.net>.
48557
48558 2008-10-12  Bruno Haible  <bruno@clisp.org>
48559
48560         Use msvcrt aware primitives for creation/termination of Win32 threads.
48561         * lib/glthread/thread.c: Include <process.h>.
48562         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48563         (wrapper_func): Update signature.
48564         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48565
48566 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48567             Bruno Haible  <bruno@clisp.org>
48568
48569         Provide a Win32 implementation of the 'cond' module.
48570         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48571         * lib/glthread/cond.c (glthread_cond_init_func,
48572         glthread_cond_wait_func, glthread_cond_timedwait_func,
48573         glthread_cond_signal_func, glthread_cond_broadcast_func,
48574         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48575         * modules/cond (Dependencies): Add gettimeofday.
48576
48577 2008-10-11  Bruno Haible  <bruno@clisp.org>
48578
48579         Make sleep work on older versions of mingw.
48580         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48581         only whether it exists.
48582         * doc/posix-functions/sleep.texi: Mention the problem with older
48583         versions of mingw.
48584
48585 2008-10-11  Bruno Haible  <bruno@clisp.org>
48586
48587         New module 'shutdown'.
48588         * modules/shutdown: New file.
48589         * lib/sys_socket.in.h (shutdown): New declaration.
48590         * lib/winsock.c (shutdown): New function.
48591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48592         GNULIB_SHUTDOWN.
48593         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48594         * doc/posix-functions/shutdown.texi: Document the new module.
48595
48596 2008-10-11  Jim Meyering  <meyering@redhat.com>
48597
48598         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48599
48600 2008-10-11  Bruno Haible  <bruno@clisp.org>
48601
48602         New module 'fclose'.
48603         * modules/fclose: New file.
48604         * lib/stdio.in.h (fclose): New declaration.
48605         * lib/fclose.c: New file.
48606         * m4/fclose.m4: New file.
48607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48608         REPLACE_FCLOSE.
48609         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48610         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48611         REPLACE_FCLOSE.
48612         * modules/close (Depends-on): fclose.
48613         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48614
48615 2008-10-11  Bruno Haible  <bruno@clisp.org>
48616
48617         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48618         set errno and don't call _close.
48619
48620 2008-10-10  Bruno Haible  <bruno@clisp.org>
48621
48622         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48623         ACL, not afterwards. Fixes test failure on Cygwin.
48624
48625 2008-10-09  Ben Pfaff  <blp@gnu.org>
48626
48627         * build-aux/announce-gen: Fix gnulib version related part of usage
48628         message.  Die with a useful error message if no tarballs are
48629         found.
48630
48631 2008-10-10  Jim Meyering  <meyering@redhat.com>
48632
48633         bootstrap: use git's --depth=N option only if it's supported
48634         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48635         recognize the --depth option.  Reported by Pádraig Brady.
48636
48637 2008-10-09  Bruno Haible  <bruno@clisp.org>
48638
48639         New module 'ioctl'.
48640         * modules/ioctl: New file.
48641         * lib/sys_socket.in.h (ioctl): Remove declaration.
48642         * lib/winsock.c: Include <sys/ioctl.h>.
48643         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48644         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48645         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48646         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48647         * doc/posix-functions/ioctl.texi: Mention the new module.
48648
48649 2008-10-09  Bruno Haible  <bruno@clisp.org>
48650
48651         New module 'sys_ioctl'.
48652         * lib/sys_ioctl.in.h: New file.
48653         * m4/sys_ioctl_h.m4: New file.
48654         * modules/sys_ioctl: New file.
48655         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48656
48657 2008-10-09  Bruno Haible  <bruno@clisp.org>
48658
48659         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48660         * lib/winsock.c: Include <stdarg.h>.
48661         (rpl_ioctl): Change to second argument 'int' and then varargs.
48662
48663 2008-10-09  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48666         when the sys_socket module is present and the system has <winsock2.h>.
48667
48668 2008-10-09  Bruno Haible  <bruno@clisp.org>
48669
48670         * doc/posix-functions/close.texi: Mention module 'close' instead of
48671         module 'sys_socket'.
48672
48673 2008-10-09  Bruno Haible  <bruno@clisp.org>
48674
48675         * doc/glibc-headers/sys_ioctl.texi: New file.
48676         * doc/gnulib.texi: Include it.
48677
48678 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48679             Bruno Haible  <bruno@clisp.org>
48680
48681         Combine the two replacements of 'close'.
48682         * lib/sys_socket.in.h (close): Define to a reminder to include
48683         <unistd.h>.
48684         (_gl_close_fd_maybe_socket): New declaration.
48685         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48686         * lib/winsock.c (close): Remove undefinition.
48687         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48688         needed for the gnulib module 'close'.
48689         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48690         define to an error symbol or to a warning, if suitable.
48691         * lib/close.c: Include <sys/socket.h>.
48692         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48693         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48694         UNISTD_H_HAVE_WINSOCK2_H.
48695         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48697         UNISTD_H_HAVE_WINSOCK2_H.
48698         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48699         (configure.ac): Set a module indicator.
48700         (Makefile.am): Substitute GNULIB_CLOSE.
48701         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48702         * modules/poll-tests (Depends-on): Add close.
48703         * modules/select-tests (Depends-on): Likewise.
48704
48705 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48706             Bruno Haible  <bruno@clisp.org>
48707
48708         New module 'close'.
48709         * modules/close: New file.
48710         * lib/unistd.in.h (close): Move declaration out of the
48711         FCHDIR_REPLACEMENT scope.
48712         (_gl_unregister_fd): New declaration.
48713         * lib/close.c: New file.
48714         * lib/fchdir.c (rpl_close): Remove function.
48715         * m4/close.m4: New file.
48716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48717         close.
48718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48719         REPLACE_CLOSE.
48720         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48721         REPLACE_CLOSE.
48722         * modules/fchdir (Depends-on): Add close.
48723
48724 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48725             Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/fcntl.in.h (open): Simplify conditionals.
48728         (_gl_register_fd): New declaration.
48729         * lib/fchdir.c (rpl_open): Remove function.
48730         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48731         also.
48732         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48734         open.
48735
48736 2008-10-09  Jim Meyering  <meyering@redhat.com>
48737
48738         GNUmakefile: use the more name-space-friendly "_version"
48739         * top/GNUmakefile (_dummy): Update.
48740         (_version): Rename from "version".
48741
48742 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48743             Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48746         rpl_close.
48747         (_gl_register_fd): New function, extracted from rpl_open.
48748         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48749         (rpl_open, rpl_opendir): Use _gl_register_fd.
48750
48751 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48752
48753         Fix organization of 'open' replacement.
48754         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48755         (gl_FUNC_OPEN): Use it.
48756         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48757
48758 2008-10-08  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48761
48762 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48763
48764         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48765         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48766         listen).
48767
48768 2008-10-08  Eric Blake  <ebb9@byu.net>
48769
48770         GNUmakefile: add 'make version' target
48771         * top/GNUmakefile (_curr-ver): Split version update rules...
48772         (version): ...into a target.
48773
48774 2008-10-07  Bruno Haible  <bruno@clisp.org>
48775
48776         Use a more portable replacement expression for -0.0L.
48777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48778         instead of -0.0L. Fix m4 quotation.
48779
48780         * tests/test-signbit.c: Include <float.h>.
48781         (minus_zero): New variable.
48782         (test_signbitl): Use minus_zero instead of -zero.
48783         * modules/signbit-tests (Depends-on): Add float.
48784
48785         * tests/test-ceill.c: Include <float.h>.
48786         (zero): Remove variable.
48787         (minus_zero): New variable.
48788         (main): Use minus_zero instead of -zero.
48789         * modules/ceill-tests (Depends-on): Add float.
48790
48791         * tests/test-floorl.c: Include <float.h>.
48792         (zero): Remove variable.
48793         (minus_zero): New variable.
48794         (main): Use minus_zero instead of -zero.
48795         * modules/floorl-tests (Depends-on): Add float.
48796
48797         * tests/test-roundl.c: Include <float.h>.
48798         (zero): Remove variable.
48799         (minus_zero): New variable.
48800         (main): Use minus_zero instead of -zero.
48801         * modules/roundl-tests (Depends-on): Add float.
48802
48803         * tests/test-truncl.c: Include <float.h>.
48804         (zero): Remove variable.
48805         (minus_zero): New variable.
48806         (main): Use minus_zero instead of -zero.
48807         * modules/truncl-tests (Depends-on): Add float.
48808
48809         * tests/test-frexpl.c (zero): Remove variable.
48810         (minus_zero): New variable.
48811         (main): Use minus_zero instead of -zero.
48812         * modules/frexpl-tests (Depends-on): Add float.
48813
48814         * tests/test-isnan.c (zerol): Remove variable.
48815         (minus_zerol): New variable.
48816         (test_long_double): Use minus_zerol instead of -zerol.
48817         * modules/isnan-tests (Depends-on): Add float.
48818
48819         * tests/test-isnanl.h (zero): Remove variable.
48820         (minus_zero): New variable.
48821         (main): Use minus_zero instead of -zero.
48822         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48823         * modules/isnanl-tests (Depends-on): Add float.
48824
48825         * tests/test-ldexpl.c (zero): Remove variable.
48826         (minus_zero): New variable.
48827         (main): Use minus_zero instead of -zero.
48828         * modules/ldexpl-tests (Depends-on): Add float.
48829
48830         * tests/test-snprintf-posix.h (zerol): Remove variable.
48831         (minus_zerol): New variable.
48832         (test_function): Use minus_zerol instead of -zerol.
48833         * modules/snprintf-posix-tests (Depends-on): Add float.
48834         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48835
48836         * tests/test-sprintf-posix.h (zerol): Remove variable.
48837         (minus_zerol): New variable.
48838         (test_function): Use minus_zerol instead of -zerol.
48839         * modules/sprintf-posix-tests (Depends-on): Add float.
48840         * modules/vsprintf-posix-tests (Depends-on): Add float.
48841
48842         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48843         (minus_zerol): New variable.
48844         (test_function): Use minus_zerol instead of -zerol.
48845         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48846
48847         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48848         (minus_zerol): New variable.
48849         (test_function): Use minus_zerol instead of -zerol.
48850         * modules/vasprintf-posix-tests (Depends-on): Add float.
48851
48852 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48853
48854         * MODULES.html.sh (Support for building documentation): Mention
48855         pmccabe2html.  Sort entries.
48856
48857         Add pmccabe2html module, from gnupdf.
48858         * build-aux/pmccabe.css: New file.
48859         * build-aux/pmccabe2html: New file.
48860         * m4/pmccabe2html.m4: New file.
48861         * modules/pmccabe2html: New file.
48862
48863 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48864
48865         flock: new module
48866         * MODULES.html.sh: Add to list of modules.
48867         * lib/flock.c: flock implementation for Windows and Unix systems
48868         which have fcntl.
48869         * doc/glibc-functions/flock.texi: Update documentation.
48870         * lib/sys_file.in.h: <sys/file.h> header file.
48871         * m4/flock.m4: M4 macros.
48872         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48873         * modules/flock: flock module.
48874         * modules/flock-tests: flock tests module.
48875         * modules/sys_file: sys/file.h module.
48876         * tests/test-flock.c: test suite for flock.
48877
48878 2008-10-06  Jim Meyering  <meyering@redhat.com>
48879
48880         bootstrap: check for LT_INIT more portably still ;-)
48881         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48882         Spotted by Bruno Haible.
48883
48884 2008-10-06  Eric Blake  <ebb9@byu.net>
48885
48886         test-signbit: avoid tripping Irix cc bug on -0.0L
48887         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48888         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48889         entire testsuite consistent and avoids an Irix 6.2 bug.
48890
48891 2008-10-05  Bruno Haible  <bruno@clisp.org>
48892             Jim Meyering  <jim@meyering.net>
48893
48894         Add an option for ignoring EPIPE during close_stdout.
48895         * lib/closeout.h: Include <stdbool.h>.
48896         (close_stdout_set_ignore_EPIPE): New declaration.
48897         * lib/closeout.c: Include <stdbool.h>.
48898         (ignore_EPIPE): New variable.
48899         (close_stdout_set_ignore_EPIPE): New function.
48900         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48901         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48902         failure.
48903         * modules/closeout (Depends-on): Add stdbool.
48904
48905 2008-10-05  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/accept: New file.
48908         * modules/bind: New file.
48909         * modules/connect: New file.
48910         * modules/getpeername: New file.
48911         * modules/getsockname: New file.
48912         * modules/getsockopt: New file.
48913         * modules/listen: New file.
48914         * modules/recv: New file.
48915         * modules/recvfrom: New file.
48916         * modules/send: New file.
48917         * modules/sendto: New file.
48918         * modules/setsockopt: New file.
48919         * modules/socket: New file.
48920         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48921         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48922         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48923         the particular module is requested. Add a link warning when the
48924         particular module is not requested.
48925         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48926         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48927         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48928         the particular module is requested.
48929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48930         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48931         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48932         * modules/sys_socket (Depends-on): Add link-warning.
48933         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48934         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48935         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48936         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48937         GL_LINK_WARNING.
48938         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48939         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48940         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48941         * doc/posix-functions/getpeername.texi: Mention the new module
48942         'getpeername'.
48943         * doc/posix-functions/getsockname.texi: Mention the new module
48944         'getsockname'.
48945         * doc/posix-functions/getsockopt.texi: Mention the new module
48946         'getsockopt'.
48947         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48948         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48949         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48950         * doc/posix-functions/send.texi: Mention the new module 'send'.
48951         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48952         * doc/posix-functions/setsockopt.texi: Mention the new module
48953         'setsockopt'.
48954         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48955         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48956         listen, connect, accept.
48957         * modules/select-tests (Depends-on): Likewise.
48958
48959 2008-10-05  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/winsock.c (strerror): Remove unused #undef.
48962         (rpl_close): Remove unused local variable.
48963
48964         * modules/sys_socket (Depends-on); Add errno.
48965
48966 2008-10-05  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48969         (select): Add a link warning when the 'select' module is not used.
48970         * modules/sys_select (Depends-on): Add link-warning.
48971         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48972         Suggested by Paolo Bonzini.
48973
48974 2008-10-05  Jim Meyering  <meyering@redhat.com>
48975
48976         bootstrap: check for LT_INIT more portably
48977         * build-aux/bootstrap: Avoid using grep -E, since it's not
48978         portable enough.  Suggestion from Bruno Haible.
48979
48980 2008-10-05  Bruno Haible  <bruno@clisp.org>
48981
48982         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48983         as being fixed by gnulib.
48984
48985 2008-10-05  Bruno Haible  <bruno@clisp.org>
48986
48987         * modules/select-tests: New file, mostly copied from
48988         modules/sys_select-tests.
48989         * tests/test-select.c: New file, mostly copied from
48990         tests/test-sys_select.c.
48991         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48992         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48993         (Makefile.am): Remove test_sys_select_LDADD.
48994
48995         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48996         to an undefined symbol, for an error message.
48997         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48998         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48999         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
49000         winsock-select.c here.
49001         * modules/sys_select (Files): Remove lib/winsock-select.c.
49002         (Depends-on): Remove alloca.
49003         (Makefile.am): Substitute GNULIB_SELECT.
49004         * modules/select: New file.
49005         * doc/posix-functions/select.texi: Update.
49006
49007 2008-10-05  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
49010         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
49011         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
49012         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
49013         getdtablesize.
49014         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
49015         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
49016
49017 2008-10-05  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/getdtablesize-tests: New file.
49020         * tests/test-getdtablesize.c: New file.
49021
49022         New module 'getdtablesize'.
49023         * lib/unistd.in.h (getdtablesize): New declaration.
49024         * lib/getdtablesize.c: New file.
49025         * m4/getdtablesize.m4: New file.
49026         * modules/getdtablesize: New file.
49027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49028         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
49029         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
49030         HAVE_GETDTABLESIZE.
49031         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
49032
49033 2008-10-05  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/sched (Makefile.am): Fix typo.
49036         Reported by Simon Josefsson.
49037
49038 2008-10-05  Jim Meyering  <meyering@redhat.com>
49039
49040         bootstrap: check for LT_INIT, too
49041         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
49042         are deprecated.  Suggestion from Ralf Wildenhues.
49043
49044 2008-10-05  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
49047         overriding them by ours.
49048         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
49049
49050 2008-10-05  Jim Meyering  <meyering@redhat.com>
49051
49052         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
49053         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
49054         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
49055
49056 2008-10-04  Bruno Haible  <bruno@clisp.org>
49057
49058         * modules/dup2 (License): Change to LGPLv2+.
49059         * modules/sleep (License): Likewise.
49060         * modules/perror (License): Likewise.
49061         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
49062         Blake.
49063         * modules/signal (License): Likewise.
49064         * modules/sigprocmask (License): Likewise.
49065         * modules/raise (License): Change to LGPLv2+, with approval by Jim
49066         Meyering.
49067
49068 2008-10-04  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
49071         Reported by Rainer Tammer <tammer@tammer.net>.
49072
49073 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
49074             Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
49077         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
49078         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
49079
49080 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
49081
49082         filevercmp: new module
49083         * lib/filevercmp.h: New function filevercmp comparing version strings.
49084         * lib/filevercmp.c: Implementation of filevercmp function.
49085         * modules/filevercmp: Module metadata.
49086         * tests/test-filevercmp.c: Unit test for new module.
49087         * modules/filevercmp-tests: Unit test metadata.
49088         * MODULES.html.sh: Add filevercmp module.
49089
49090 2008-10-03  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/c-ctype.h: Add comment.
49093         Reported by Jim Meyering.
49094
49095 2008-10-02  Bruno Haible  <bruno@clisp.org>
49096
49097         * modules/posix_spawn-internal (Depends-on): Add 'open'.
49098
49099 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49100
49101         * build-aux/bootstrap: Allow renaming bootstrap, and change the
49102         name of bootstrap.conf accordingly.
49103
49104 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49105
49106         * build-aux/bootstrap: Install git-merge-changelog configuration
49107         items into .gitconfig if needed.
49108
49109 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49110
49111         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
49112         git repository, and initialize/update it accordingly.
49113
49114 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
49115
49116         * modules/fsync-tests: New file.
49117         * tests/test-fsync.c: New file.
49118
49119         New module 'fsync'.
49120         * lib/fsync.c: New file.
49121         * m4/fsync.m4: New file.
49122         * modules/fsync: New file.
49123         * lib/unistd.in.h (fsync): New declaration.
49124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
49125         GNULIB_FSYNC and HAVE_FSYNC.
49126         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
49127         * MODULES.html.sh (posix_functions): Add fsync.
49128         * doc/posix-functions/fsync.texi: Mention the new module.
49129
49130 2008-10-02  Jim Meyering  <meyering@redhat.com>
49131
49132         fts.c: sync with similar code from coreutils' remove.c
49133         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
49134         Guard also with "#if defined __linux__", since for now at least,
49135         this code is Linux-kernel-specific.
49136
49137 2008-10-02  Jim Meyering  <meyering@redhat.com>
49138
49139         fts: bug fixes
49140         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
49141         Include <sys/vfs.h>, not <sys/statfs.h>.
49142
49143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
49144         Include <sys/vfs.h>, not <sys/statfs.h>.
49145
49146 2008-10-01  Bruno Haible  <bruno@clisp.org>
49147
49148         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49150         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49151         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49152         * doc/posix-functions/posix_spawnp.texi: Likewise.
49153         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49154         whether posix_spawn actually works.
49155         * m4/pipe.m4 (gl_PIPE): Likewise.
49156         * modules/execute (Files): Add m4/posix_spawn.m4.
49157         * modules/pipe (Files): Add m4/posix_spawn.m4.
49158         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49159
49160 2008-10-01  Jim Meyering  <meyering@redhat.com>
49161
49162         remove trailing spaces
49163         * NEWS: Likewise.
49164         * lib/poll.c (poll): Likewise.
49165         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49166         * lib/winsock.c (rpl_close): Likewise.
49167         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49168         * modules/yield: Likewise.
49169         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49170         * tests/test-sys_select.c (connect_to_socket): Likewise.
49171
49172         fts.c: adjust a new interface to be more generally useful
49173         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49174         (fts_build): Adjust caller.
49175
49176 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49177
49178         * modules/cond-tests: New file.
49179         * tests/test-cond.c: New file.
49180
49181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49182             Bruno Haible  <bruno@clisp.org>
49183
49184         * modules/cond (Dependencies): Add errno, time.
49185         * lib/glthread/cond.h: Include <time.h>.
49186         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49187         across platforms.
49188
49189 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49190             Bruno Haible  <bruno@clisp.org>
49191
49192         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49193
49194 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49195             Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/tls-tests (Depends-on): Add thread, yield.
49198         (configure.ac): Remove all checks.
49199         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49200         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49201         gl_thread_self): Remove definitions. Include glthread/thread.h and
49202         glthread/yield.h instead.
49203         (test_tls): Pass an additional NULL argument to gl_thread_join.
49204
49205 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49206             Bruno Haible  <bruno@clisp.org>
49207
49208         * modules/lock-tests (Depends-on): Add thread, yield.
49209         (configure.ac): Remove all checks.
49210         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49211         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49212         gl_thread_self): Remove definitions. Include glthread/thread.h and
49213         glthread/yield.h instead.
49214         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49215         additional NULL argument to gl_thread_join.
49216
49217 2008-09-30  Bruno Haible  <bruno@clisp.org>
49218
49219         Fix the Win32 implementation of the 'thread' module.
49220         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49221         pointer type.
49222         (gl_thread_self): Invoke gl_thread_self_func.
49223         (gl_thread_self_func): New declaration.
49224         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49225         (do_init_self_key, init_self_key): New functions.
49226         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49227         Remove some fields.
49228         (running_threads, running_lock): Remove variables.
49229         (get_current_thread_handle): New function.
49230         (gl_thread_self_func, wrapper_func, glthread_create_func,
49231         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49232         simplified.
49233
49234 2008-09-30  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49237         files.
49238
49239 2008-09-30  Jim Meyering  <meyering@redhat.com>
49240
49241         fts.m4: correct the test for statfs.f_type
49242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49243         when checking for statfs.f_type.
49244
49245 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49246
49247         tests: avoid some compiler warnings
49248         * tests/test-memchr.c (main): Pass NULL indirectly.
49249         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49250
49251 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49252
49253         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49254         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49255         exactly specified dayshifts.
49256         (dayshift): New rule.
49257         (rel): Add dayshift.
49258         (relative_time_table) [tomorrow, yesterday, today, now]:
49259         Use tDAY_SHIFT in place of tDAY_UNIT.
49260         * tests/test-getdate.c: Add tests for now-disallowed countable
49261         dayshifts, e.g., "4 yesterday ago".
49262
49263 2008-09-29  Bruno Haible  <bruno@clisp.org>
49264
49265         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49266         * tests/test-posix_spawn1.in.sh: Renamed from
49267         tests/test-posix_spawn.in.sh.
49268         * tests/test-posix_spawn2.c: New file.
49269         * tests/test-posix_spawn2.in.sh: New file.
49270         * modules/posix_spawnp-tests (Files): Update.
49271         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49272
49273 2008-09-29  Bruno Haible  <bruno@clisp.org>
49274
49275         Propagate effects of putenv/setenv/unsetenv to child processes.
49276         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49277         * lib/pipe.c (create_pipe): Likewise.
49278
49279 2008-09-29  Bruno Haible  <bruno@clisp.org>
49280
49281         Enable use of shell scripts as executables in mingw.
49282         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49283         run the program as a shell script.
49284         * lib/pipe.c (create_pipe): Likewise.
49285         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49286         resulting array.
49287
49288 2008-09-29  Eric Blake  <ebb9@byu.net>
49289
49290         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49291
49292 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49293
49294         * doc/posix-functions/accept.texi: Update mingw problems.
49295         * doc/posix-functions/bind.texi: Update mingw problems.
49296         * doc/posix-functions/close.texi: Update mingw problems.
49297         * doc/posix-functions/connect.texi: Update mingw problems.
49298         * doc/posix-functions/getpeername.texi: Update mingw problems.
49299         * doc/posix-functions/getsockname.texi: Update mingw problems.
49300         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49301         * doc/posix-functions/ioctl.texi: Update mingw problems.
49302         * doc/posix-functions/listen.texi: Update mingw problems.
49303         * doc/posix-functions/recv.texi: Update mingw problems.
49304         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49305         * doc/posix-functions/select.texi: Update mingw problems.
49306         * doc/posix-functions/send.texi: Update mingw problems.
49307         * doc/posix-functions/sendto.texi: Update mingw problems.
49308         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49309         * doc/posix-functions/socket.texi: Update mingw problems.
49310
49311 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49312             Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/sys_select.in.h: Include sys/time.h.
49315         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49316         * modules/sys_select: Depend on sys_time.
49317         * tests/test-sys_select.c: Test that sys/select.h defines struct
49318         timeval fully.
49319
49320 2008-09-29  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49323         * lib/sys_select.in.h: Likewise.
49324
49325 2008-09-29  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49328
49329 2008-09-29  Bruno Haible  <bruno@clisp.org>
49330
49331         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49332         Set LIBSOCKET instead of augmenting LIBS.
49333         * modules/sockets (Link): New section.
49334         * modules/sockets-tests (test_sockets_LDADD): New variable.
49335         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49336         * modules/poll-tests (test_poll_LDADD): New variable.
49337         * NEWS: Document the change.
49338
49339 2008-09-29  Bruno Haible  <bruno@clisp.org>
49340
49341         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49342         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49343         ARPA_INET_H directly.
49344         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49345
49346 2008-09-28  Bruno Haible  <bruno@clisp.org>
49347
49348         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49349         from gl_HEADER_SYS_SOCKET.
49350         (gl_HEADER_SYS_SOCKET): Invoke it.
49351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49352
49353 2008-09-28  Bruno Haible  <bruno@clisp.org>
49354
49355         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49356         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49357         Needed on OSF/1 4.0.
49358
49359 2008-09-28  Bruno Haible  <bruno@clisp.org>
49360
49361         Override open more carefully.
49362         * lib/open.c (orig_open): New function.
49363         (rpl_open): Use orig_open instead of open.
49364         * lib/fcntl.in.h: Add special invocation convention.
49365         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49366         (gl_FUNC_OPEN): Invoke it.
49367
49368         Override freopen more carefully.
49369         * lib/freopen.c (orig_freopen): New function.
49370         (rpl_freopen): Use orig_freopen instead of freopen.
49371         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49372         (gl_FUNC_FREOPEN): Invoke it.
49373
49374         Override fopen more carefully.
49375         * lib/fopen.c (orig_fopen): New function.
49376         (rpl_fopen): Use orig_fopen instead of fopen.
49377         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49378         (gl_FUNC_FOPEN): Invoke it.
49379         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49380
49381 2008-09-28  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49384         SIGPIPE.
49385
49386 2008-09-28  Bruno Haible  <bruno@clisp.org>
49387
49388         * tests/test-sigaction.c (handler, main): Disable the check whether
49389         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49390         glibc systems with LinuxThreads.
49391
49392 2008-09-28  Bruno Haible  <bruno@clisp.org>
49393
49394         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49395
49396         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49397         with AIX xlc.
49398         * lib/fcntl.in.h (open): Likewise.
49399         Reported by Rainer Tammer <tammer@tammer.net>.
49400
49401 2008-09-28  Bruno Haible  <bruno@clisp.org>
49402
49403         * modules/posix_spawnp-tests: New file.
49404         * tests/test-posix_spawn.c: New file.
49405         * tests/test-posix_spawn.in.sh: New file.
49406
49407         New module 'posix_spawnp'.
49408         * modules/posix_spawnp: New file.
49409         * lib/spawnp.c: New file, from GNU libc with modifications.
49410         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49411
49412         New module 'posix_spawn'.
49413         * modules/posix_spawn: New file.
49414         * lib/spawn.c: New file, from GNU libc with modifications.
49415         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49416
49417         New module 'posix_spawnattr_destroy'.
49418         * modules/posix_spawnattr_destroy: New file.
49419         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49420         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49421         module.
49422
49423         New module 'posix_spawnattr_setsigmask'.
49424         * modules/posix_spawnattr_setsigmask: New file.
49425         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49426         modifications.
49427         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49428         new module.
49429
49430         New module 'posix_spawnattr_getsigmask'.
49431         * modules/posix_spawnattr_getsigmask: New file.
49432         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49433         modifications.
49434         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49435         new module.
49436
49437         New module 'posix_spawnattr_setsigdefault'.
49438         * modules/posix_spawnattr_setsigdefault: New file.
49439         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49440         modifications.
49441         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49442         new module.
49443
49444         New module 'posix_spawnattr_getsigdefault'.
49445         * modules/posix_spawnattr_getsigdefault: New file.
49446         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49447         modifications.
49448         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49449         new module.
49450
49451         New module 'posix_spawnattr_setschedpolicy'.
49452         * modules/posix_spawnattr_setschedpolicy: New file.
49453         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49454         modifications.
49455         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49456         new module.
49457
49458         New module 'posix_spawnattr_getschedpolicy'.
49459         * modules/posix_spawnattr_getschedpolicy: New file.
49460         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49461         modifications.
49462         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49463         new module.
49464
49465         New module 'posix_spawnattr_setschedparam'.
49466         * modules/posix_spawnattr_setschedparam: New file.
49467         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49468         modifications.
49469         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49470         new module.
49471
49472         New module 'posix_spawnattr_getschedparam'.
49473         * modules/posix_spawnattr_getschedparam: New file.
49474         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49475         modifications.
49476         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49477         new module.
49478
49479         New module 'posix_spawnattr_setpgroup'.
49480         * modules/posix_spawnattr_setpgroup: New file.
49481         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49482         modifications.
49483         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49484         module.
49485
49486         New module 'posix_spawnattr_getpgroup'.
49487         * modules/posix_spawnattr_getpgroup: New file.
49488         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49489         modifications.
49490         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49491         module.
49492
49493         New module 'posix_spawnattr_setflags'.
49494         * modules/posix_spawnattr_setflags: New file.
49495         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49496         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49497         module.
49498
49499         New module 'posix_spawnattr_getflags'.
49500         * modules/posix_spawnattr_getflags: New file.
49501         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49502         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49503         module.
49504
49505         New module 'posix_spawnattr_init'.
49506         * modules/posix_spawnattr_init: New file.
49507         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49508         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49509         module.
49510
49511         New module 'posix_spawn_file_actions_destroy'.
49512         * modules/posix_spawn_file_actions_destroy: New file.
49513         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49514         modifications.
49515         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49516         the new module.
49517
49518         New module 'posix_spawn_file_actions_addopen'.
49519         * modules/posix_spawn_file_actions_addopen: New file.
49520         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49521         modifications.
49522         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49523         the new module.
49524
49525         New module 'posix_spawn_file_actions_adddup2'.
49526         * modules/posix_spawn_file_actions_adddup2: New file.
49527         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49528         modifications.
49529         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49530         the new module.
49531
49532         New module 'posix_spawn_file_actions_addclose'.
49533         * modules/posix_spawn_file_actions_addclose: New file.
49534         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49535         modifications.
49536         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49537         the new module.
49538
49539         New module 'posix_spawn_file_actions_init'.
49540         * modules/posix_spawn_file_actions_init: New file.
49541         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49542         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49543         new module.
49544
49545         New module 'posix_spawn-internal'.
49546         * modules/posix_spawn-internal: New file.
49547         * lib/spawn_int.h: New file, from GNU libc with modifications.
49548         * lib/spawni.c: New file, from GNU libc with modifications.
49549         * m4/posix_spawn.m4: New file.
49550
49551         New module 'spawn'.
49552         * modules/spawn: New file.
49553         * lib/spawn.in.h: New file, from GNU libc with modifications.
49554         * m4/spawn_h.m4: New file.
49555         * doc/posix-headers/spawn.texi: Mention the new module.
49556
49557 2008-09-28  Bruno Haible  <bruno@clisp.org>
49558
49559         * modules/sched-tests: New file.
49560         * tests/test-sched.c: New file.
49561
49562         New module 'sched'.
49563         * modules/sched: New file.
49564         * lib/sched.in.h: New file.
49565         * m4/sched_h.m4: New file.
49566         * doc/posix-headers/sched.texi: Mention the new module.
49567
49568 2008-09-27  Eric Blake  <ebb9@byu.net>
49569
49570         Fix previous patch, and tweak references to $0.
49571         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49572         (func_version, func_gnulib_dir): Don't call this program
49573         gnulib-tool.
49574         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49575         with using $0 in function.
49576         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49577         (func_fatal_error): Reuse the name the user invoked us with.
49578
49579 2008-09-27  Bruno Haible  <bruno@clisp.org>
49580
49581         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49582         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49583         (gl_ICONV_H): Not here.
49584         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49585         instead of assigning ICONV_H directly.
49586
49587         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49589         WCHAR_H directly.
49590
49591 2008-09-27  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49594         * modules/arpa_inet (Depends-on): Add link-warning.
49595         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49596         * modules/unistd (Makefile.am): Likewise.
49597
49598 2008-09-26  Bruno Haible  <bruno@clisp.org>
49599
49600         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49601         variables.
49602         (func_version): Essentially copied from gnulib-tool.
49603         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49604         func_readlink): Copied from gnulib-tool.
49605
49606 2008-09-26  Bruno Haible  <bruno@clisp.org>
49607
49608         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49609         invoking git-version-gen.
49610
49611 2008-09-26  Bruno Haible  <bruno@clisp.org>
49612
49613         * posix-modules: Update to directory names changed on 2008-01-19.
49614         Remove commas in output before splitting into words. No more need to
49615         avoid 'ftruncate' since 2007-02-19.
49616
49617 2008-09-26  Bruno Haible  <bruno@clisp.org>
49618
49619         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49620
49621 2008-09-26  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49624         * modules/fwriteerror (Depends-on): Add errno.
49625
49626 2008-09-26  Bruno Haible  <bruno@clisp.org>
49627
49628         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49629         * tests/test-vc-list-files-cvs.sh: Likewise.
49630
49631 2008-09-26  Bruno Haible  <bruno@clisp.org>
49632
49633         * doc/posix-headers/sys_resource.texi: Reorder items.
49634
49635 2008-09-26  Jim Meyering  <meyering@redhat.com>
49636
49637         fts: tweak inode comparison function
49638         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49639         inode numbers, as documented.
49640
49641         fts: sort dirent entries on inode number before traversing
49642         This avoids a quadratic, seek-related performance penalty when
49643         operating on a directory containing many entries (measurable at 10k;
49644         3.5 hours at 2 million entries with a cold cache) on certain types
49645         of file systems, including ext3 and ext4, but not tmpfs.
49646         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49647         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49648         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49649         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49650         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49651         (fts_build): Set the stat.st_ino member from D_INO.
49652         If it is likely to be useful, sort dirent entries on inode number.
49653
49654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49655         and the struct statfs.f_type member.
49656         * modules/fts (Depends-on): Add d-ino.
49657
49658 2008-09-26  Bruno Haible  <bruno@clisp.org>
49659
49660         * modules/sigpipe-die (Depends-on): Add sigpipe.
49661
49662         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49663         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49664         and GNULIB_STDIO_H_SIGPIPE are set.
49665         * lib/stdio-write.c: New file.
49666         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49667         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49668         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49669         REPLACE_STDIO_WRITE_FUNCS.
49670         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49671         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49672         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49673         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49674         * modules/stdio (Files): Add lib/stdio-write.c.
49675         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49676         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49677         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49678         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49679         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49680         REPLACE_FPRINTF_POSIX.
49681         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49682         REPLACE_PRINTF_POSIX.
49683         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49684         REPLACE_VFPRINTF_POSIX.
49685         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49686         REPLACE_VPRINTF_POSIX.
49687         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49688         SIGPIPE issue.
49689         * doc/posix-functions/fputc.texi: Likewise.
49690         * doc/posix-functions/fputs.texi: Likewise.
49691         * doc/posix-functions/fwrite.texi: Likewise.
49692         * doc/posix-functions/printf.texi: Likewise.
49693         * doc/posix-functions/putc.texi: Likewise.
49694         * doc/posix-functions/putchar.texi: Likewise.
49695         * doc/posix-functions/puts.texi: Likewise.
49696         * doc/posix-functions/vfprintf.texi: Likewise.
49697         * doc/posix-functions/vprintf.texi: Likewise.
49698
49699         * modules/safe-write (Depends-on): Add write.
49700
49701         * modules/sigpipe-tests: New file.
49702         * tests/test-sigpipe.c: New file.
49703         * tests/test-sigpipe.sh: New file.
49704
49705         * modules/write: New file.
49706         * lib/unistd.in.h: Include <sys/types.h>.
49707         (write): New declaration.
49708         * lib/write.c: New file.
49709         * m4/write.m4: New file.
49710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49711         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49712         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49713         GNULIB_WRITE, REPLACE_WRITE.
49714         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49715         and the SIGPIPE issue.
49716
49717         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49718         (raise): New declaration.
49719         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49720         (ext_signal): New function.
49721         (rpl_raise): New function.
49722         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49723         GNULIB_SIGNAL_H_SIGPIPE.
49724         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49725         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49726
49727         * modules/sigpipe: New file.
49728         * m4/sigpipe.m4: New file.
49729
49730 2008-09-25  Derek Price  <derek@ximbiot.com>
49731             Bruno Haible  <bruno@clisp.org>
49732
49733         * gnulib-tool (func_import): Report all license incompatibilities, not
49734         just the first one.
49735
49736 2008-09-25  Bruno Haible  <bruno@clisp.org>
49737
49738         * gnulib-tool (func_import): When computing the edits, consider not
49739         only the Makefile.ams that exist but also those that will be generated.
49740
49741 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49742
49743         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49744         fixes gnulib-tool --test warning about duplicate dependency.
49745
49746 2008-09-25  Bruno Haible  <bruno@clisp.org>
49747
49748         * gnulib-tool: Don't ask the user to perform edits in the generated
49749         Makefile.ams.
49750         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49751         apply to the Makefile.am being generated.
49752         (func_emit_tests_Makefile_am): Execute edits that apply to the
49753         Makefile.am being generated.
49754         (func_import): Setup list of Makefile.am edits before emitting the
49755         Makefile.ams, not at the end.
49756         (func_create_testdir): Update.
49757         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49758
49759 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49760
49761         * gnulib-tool (func_import): Store the --tests-base option in the
49762         comment in gnulib-cache.m4.
49763
49764 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49765
49766         * NEWS: Document increased portability that sys_select now provides.
49767
49768         * lib/sys_select.in.h: Install select wrapper.
49769         * lib/sys_socket.in.h: Use more descriptive name when there is no
49770         select wrapper.
49771         * lib/winsock-select.c: New.
49772         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49773         Require gl_HEADER_SYS_SOCKET.
49774         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49775         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49776         * tests/test-sys_select.c: Add functional tests.
49777
49778 2008-09-24  Eric Blake  <ebb9@byu.net>
49779
49780         open, fopen: close fd leak in last patch
49781         * lib/open.c (rpl_open): Close fd before returning error.
49782         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49783         * doc/posix-functions/open.texi (open): Document that Irix also
49784         has the bug.
49785         * doc/posix-functions/fopen.texi (fopen): Likewise.
49786         Reported by Paolo Bonzini.
49787
49788 2008-09-24  Bruno Haible  <bruno@clisp.org>
49789
49790         Ensure that a filename ending in a slash cannot be used to access a
49791         non-directory.
49792         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49793         to check whether it's really a directory.
49794         * lib/fopen.c: Include fcntl.h, unistd.h.
49795         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49796         and fdopen().
49797         * modules/fopen (Depends-on): Add unistd.
49798         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49799         * tests/test-fopen.c (main): Likewise.
49800         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49801         * doc/posix-functions/fopen.texi: Likewise.
49802         Reported by Eric Blake.
49803
49804 2008-09-23  Eric Blake  <ebb9@byu.net>
49805
49806         c-stack: avoid compiler optimizations when provoking overflow
49807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49808         recursion harder to optimize, to ensure a stack overflow occurs.
49809         * tests/test-c-stack.c (recurse): Likewise.
49810         Borrowed from libsigsegv.
49811
49812         c-stack: work around Irix sigaltstack bug
49813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49814         whether sigaltstack uses wrong end of stack_t (copied in part from
49815         libsigsegv).
49816         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49817         Irix bug, without requiring an over-allocation.
49818         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49819         bug.
49820
49821         fopen: document mingw bug on directories
49822         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49823         not allowing a stream visiting a directory, even though reading
49824         from such a stream is not portable.
49825
49826 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49827
49828         * lib/poll.c: Rewrite.
49829         * modules/poll: Depend on alloca.
49830
49831 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49832
49833         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49834         instead define prototypes for a full set of wrappers.  Ensure
49835         that Cygwin does not use the compatibility code, which is only
49836         for MinGW.
49837         * lib/winsock.c: New.
49838         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49839         * modules/sys_socket: Add lib/winsock.c.
49840
49841         * modules/poll-tests: Add errno and perror.
49842         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49843
49844 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49845
49846         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49847
49848 2008-09-23  Bruno Haible  <bruno@clisp.org>
49849
49850         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49851         * doc/glibc-functions/*: Likewise.
49852
49853 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49854
49855         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49856         success.
49857
49858 2008-09-22  Eric Blake  <ebb9@byu.net>
49859             Bruno Haible  <bruno@clisp.org>
49860
49861         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49862         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49863         supply %A but mishandle pseudo-NaN.
49864         Reported by Simon Josefsson.
49865
49866 2008-09-21  Bruno Haible  <bruno@clisp.org>
49867
49868         * tests/test-lock.c (main): Tweak skip message.
49869         * tests/test-tls.c (main): Likewise.
49870
49871 2008-09-21  Bruno Haible  <bruno@clisp.org>
49872
49873         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49874         whether 'struct sigaction' has sa_sigaction here...
49875         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49876         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49877
49878 2008-09-21  Bruno Haible  <bruno@clisp.org>
49879
49880         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49881         section.
49882         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49883         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49884         the new section.
49885         (Support for obsolete systems lacking POSIX:2001): New section.
49886         (String handling <string.h>): Move strdup to the new section.
49887         Suggested by Simon Josefsson and Paolo Bonzini.
49888
49889 2008-09-21  Bruno Haible  <bruno@clisp.org>
49890
49891         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49892         exponents in %e and %g results on 'long double'. Needed for mingw's
49893         improved *printf functions.
49894         * tests/test-vasprintf-posix.c (test_function): Likewise.
49895         * tests/test-snprintf-posix.h (test_function): Likewise.
49896         * tests/test-sprintf-posix.h (test_function): Likewise.
49897         Reported by Eric Blake.
49898
49899 2008-09-21  Bruno Haible  <bruno@clisp.org>
49900
49901         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49902         * tests/test-sprintf-posix.h (test_function): Likewise.
49903
49904 2008-09-21  Bruno Haible  <bruno@clisp.org>
49905
49906         * modules/getpass (Depends-on): Add strdup-posix.
49907
49908         New module 'strdup-posix'.
49909         * modules/strdup-posix: New file.
49910         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49911         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49913         REPLACE_STRDUP.
49914         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49915         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49917         strdup-posix.
49918
49919         * modules/strdup (Depends-on): Remove malloc-posix.
49920
49921 2008-09-20  Bruno Haible  <bruno@clisp.org>
49922
49923         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49924         Wildenhues.
49925
49926 2008-09-20  Bruno Haible  <bruno@clisp.org>
49927
49928         Ensure that wint_t gets defined on IRIX 5.3.
49929         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49930         * lib/wctype.in.h (wint_t): Likewise.
49931         (__wctype_wint_t): Remove type.
49932         (isw*): Use wint_t instead of __wctype_wint_t.
49933         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49934         * modules/wchar (Files): Add m4/wint_t.m4.
49935         (Makefile.am): Substitute HAVE_WINT_T.
49936         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49937         * tests/test-wctype.c: Check that wint_t is defined.
49938         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49939         * doc/posix-headers/wctype.texi: Likewise.
49940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49941
49942 2008-09-18  Bruno Haible  <bruno@clisp.org>
49943
49944         * gnulib-tool (func_exit): Update comment.
49945
49946 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49947
49948         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49949         assumes strdup exists and does not depend on strdup to return
49950         ENOMEM on out of memory conditions.
49951
49952 2008-09-18  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49955         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49956         digits for the exponent.
49957
49958 2008-09-18  Jim Meyering  <meyering@redhat.com>
49959             Bruno Haible  <bruno@clisp.org>
49960
49961         * lib/vasnprintf.c (decimal_point_char): Define also if
49962         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49963
49964 2008-09-16  Bruno Haible  <bruno@clisp.org>
49965         and Eric Blake  <ebb9@byu.net>
49966
49967         vasnprintf: support Irix 5.3
49968         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49969         that mishandle long double infinity.
49970         Reported by Tom G. Christensen.
49971
49972 2008-09-16  Bruno Haible  <bruno@clisp.org>
49973
49974         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49975         Solaris 9.
49976         * doc/glibc-functions/alphasort.texi: Likewise.
49977         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49978
49979 2008-09-16  Jim Meyering  <meyering@redhat.com>
49980
49981         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49982         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49983         a umask modification leak out of a subshell.  Otherwise, the
49984         opensolaris /bin/sh would be accepted and thus cause unwarranted
49985         failures in the coreutils test suite.
49986
49987 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49988
49989         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49990         to succeed.
49991
49992 2008-09-16  Jim Meyering  <meyering@redhat.com>
49993
49994         avoid spurious test failure when library is built without ACL support
49995         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49996         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49997         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49998         * tests/test-copy-acl.sh: Likewise.
49999
50000 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50001
50002         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
50003         based on character occurrence counts.
50004
50005 2008-09-15  Eric Blake  <ebb9@byu.net>
50006
50007         tests: avoid some compiler warnings
50008         * tests/test-memchr.c (main): Pass NULL indirectly.
50009         * tests/test-closein.c (main): Avoid unused variable.
50010
50011 2008-09-15  Bruno Haible  <bruno@clisp.org>
50012
50013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
50014         are missing on OpenBSD 4.0 individually.
50015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50016
50017 2008-09-15  Bruno Haible  <bruno@clisp.org>
50018
50019         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
50020         * doc/posix-functions/strerror.texi: Mention also Cygwin.
50021         * doc/posix-functions/perror.texi: Likewise.
50022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
50023         is missing.
50024         Reported by Eric Blake.
50025
50026         * lib/errno.in.h: Use replacement values >= 2000.
50027         Reported by Eric Blake.
50028
50029 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50030
50031         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
50032         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
50033         limit.
50034         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
50035         compareseq was aborted.
50036
50037 2008-09-14  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
50040         yvec_edit_count.
50041         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
50042         (fstrcmp_bounded): Simplify result computation accordingly.
50043
50044 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50045
50046         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
50047         (fstrcmp): Define in terms of fstrcmp_bounded.
50048         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
50049         lower_bound argument.
50050         Return quickly if the result is certainly < lower_bound.
50051         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
50052
50053 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50054
50055         * lib/diffseq.h (EARLY_ABORT): New macro.
50056         (compareseq): Change return type to bool. Return true when EARLY_ABORT
50057         evaluates to true.
50058
50059 2008-09-14  Bruno Haible  <bruno@clisp.org>
50060
50061         * modules/perror-tests: New file.
50062         * tests/test-perror.sh: New file.
50063         * tests/test-perror.c: New file.
50064
50065         New module 'perror'.
50066         * lib/stdio.in.h (perror): New declaration.
50067         * lib/perror.c: New file.
50068         * m4/perror.m4: New file.
50069         * modules/perror: New file.
50070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
50071         * doc/posix-functions/perror.texi: Mention the perror module.
50072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
50073         REPLACE_PERROR.
50074         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
50075         REPLACE_PERROR.
50076
50077 2008-09-14  Bruno Haible  <bruno@clisp.org>
50078
50079         * modules/stdio (Makefile.am): Reorder to match the order in
50080         lib/stdio.in.h.
50081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50082
50083 2008-09-13  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
50086
50087 2008-09-13  Bruno Haible  <bruno@clisp.org>
50088
50089         Extend strerror to cover the added errno values.
50090         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
50091         (rpl_strerror): Provide error messages for the added errno values and
50092         for the WSA* values.
50093         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
50094         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
50095         strerror.
50096         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
50097         * modules/strerror (Depends-on): Add errno.
50098         * doc/posix-functions/strerror.texi: Document the change.
50099         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
50100         and EOVERFLOW.
50101
50102 2008-09-13  Bruno Haible  <bruno@clisp.org>
50103
50104         * modules/EOVERFLOW: Remove file.
50105         * m4/eoverflow.m4: Remove file.
50106         * modules/EOVERFLOW-tests: Remove file.
50107         * tests/test-EOVERFLOW.c: Remove file.
50108         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
50109         * modules/ftell (Depends-on): Likewise.
50110         * modules/getdelim (Depends-on): Likewise.
50111         * modules/getugroups (Depends-on): Likewise.
50112         * modules/poll (Depends-on): Likewise.
50113         * modules/snprintf (Depends-on): Likewise.
50114         * modules/sprintf-posix (Depends-on): Likewise.
50115         * modules/vasnprintf (Depends-on): Likewise.
50116         * modules/vasprintf (Depends-on): Likewise.
50117         * modules/vfprintf-posix (Depends-on): Likewise.
50118         * modules/vsnprintf (Depends-on): Likewise.
50119         * modules/vsprintf-posix (Depends-on): Likewise.
50120         * modules/xvasprintf (Depends-on): Likewise.
50121         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50122         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
50123         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
50124         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
50125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50126         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
50127         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
50128         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
50129         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50130         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
50131         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
50132         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
50133         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50134         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
50135         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
50136         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
50137         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50138         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
50139         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
50140         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
50141         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50142         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
50143         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
50144         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
50145         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
50146         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50147         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
50148         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50149         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50150         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50151         * MODULES.html.sh: Remove EOVERFLOW.
50152         * NEWS: Mention the change.
50153
50154 2008-09-13  Bruno Haible  <bruno@clisp.org>
50155
50156         * modules/errno-tests: New file.
50157         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50158
50159         * lib/errno.in.h: New file.
50160         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50161         * modules/errno: New file.
50162         * doc/posix-headers/errno.texi: Update documentation.
50163         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50164
50165 2008-09-13  Bruno Haible  <bruno@clisp.org>
50166
50167         * tests/test-poll.c: Use #if for native Windows, rather than testing
50168         __MSVCRT__.
50169
50170 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50171             Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/glob.c: Don't include <pwd.h> on native Windows.
50174         (WINDOWS32): New macro.
50175         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50176
50177 2008-09-13  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50180         (ETIMEDOUT): Remove macro.
50181         (glthread_cond_timedwait_multithreaded): New declaration.
50182         (glthread_cond_timedwait): Use it.
50183         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50184         (glthread_cond_timedwait_multithreaded): New function.
50185
50186 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50187
50188         * modules/poll-tests: Do not check for io.h.
50189         * tests/test-poll.c: Check for __MSVCRT__ instead.
50190
50191 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50192
50193         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50194         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50195         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50196
50197 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50198
50199         * modules/poll-tests: New.
50200         * tests/test-poll.c: New.
50201
50202 2008-09-12  Eric Blake  <ebb9@byu.net>
50203
50204         frexp: test for NetBSD failure on -0.0
50205         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50206         not all, bugs from NetBSD 3.0 have been fixed.
50207         * doc/posix-functions/frexp.texi (frexp): Document bug.
50208         Reported by Thomas Klausner.
50209
50210         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50211         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50212         literal -0.0.
50213         Reported by Jonathan C. Patschke <jp@centtech.com>.
50214
50215 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50216
50217         * lib/glthread/cond.h: Use dummy implementation also if
50218         USE_WIN32_THREADS.
50219
50220 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50221
50222         * modules/fnmatch-posix (License): Change to LGPLv2+.
50223         * modules/fnmatch-gnu (License): Likewise.
50224
50225 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50226
50227         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50228
50229 2008-09-11  Jim Meyering  <meyering@redhat.com>
50230
50231         * users.txt: Add gtk-vnc.
50232
50233 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50234
50235         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50236         rotate amounts.
50237
50238         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50239         required for 16-bit and 8-bit rotates.
50240         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50241         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50242         UINT8_MAX instead of hard-coded constants.
50243         Suggested by Paul Eggert.
50244
50245 2008-09-07  Bruno Haible  <bruno@clisp.org>
50246
50247         * tests/test-striconveh.c (main): Check behaviour when converting from
50248         UTF-7.
50249
50250         Make striconveh work better with stateful encodings.
50251         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50252         that iconv does not increment the inptr when returning -1/EINVAL.
50253
50254 2008-09-07  Bruno Haible  <bruno@clisp.org>
50255
50256         * build-aux/config.rpath: Update according to libtool-2.2.6.
50257         * build-aux/config.libpath: Likewise.
50258
50259 2008-09-06  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50262         * lib/freadptr.c (freadptr): Likewise.
50263         * lib/freadseek.c (freadptrinc): Likewise.
50264         Reported by Simon Josefsson.
50265
50266 2008-09-06  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/freadptr (License): Change to LGPLv2+.
50269         * modules/freadseek (License): Likewise.
50270         Suggested by Eric Blake.
50271
50272         * modules/memchr2 (License): Change to LGPLv2+.
50273         Approved by Eric Blake.
50274
50275 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50276             Bruno Haible  <bruno@clisp.org>
50277
50278         Make gnulib-tool work with native 'sed' on AIX.
50279         * gnulib-tool (sed_noop): New variable.
50280         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50281         func_add_or_update, func_create_testdir): Use it to initialize sed
50282         script variables.
50283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50284
50285 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50286             Bruno Haible  <bruno@clisp.org>
50287
50288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50289         also works after #include directives.
50290
50291 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50292
50293         getdate.y: reject an out-of-range timezone value
50294         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50295         the range [-24...+24].  When specified with only one or two digits,
50296         * tests/test-getdate.c: Tests for the fix.
50297         * doc/getdate.texi: Document this change.
50298
50299 2008-09-03  Bruno Haible  <bruno@clisp.org>
50300
50301         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50302
50303 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50304
50305         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50306         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50307         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50308         Blake <ebb9@byu.net>.
50309
50310         * tests/test-bitrotate.c: Add more test vectors.
50311
50312 2008-09-02  Eric Blake  <ebb9@byu.net>
50313
50314         vasnprintf-posix: handle large precision via %.*d
50315         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50316         when handling it ourselves.
50317         * tests/test-vasnprintf-posix.c (test_function): Add test.
50318         * tests/test-snprintf-posix.h (test_function): Likewise.
50319         * tests/test-sprintf-posix.h (test_function): Likewise.
50320         * tests/test-vasprintf-posix.c (test_function): Likewise.
50321         Reported by Alain Guibert.
50322
50323 2008-09-01  Eric Blake  <ebb9@byu.net>
50324
50325         c-stack: make configure-time check more robust
50326         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50327         successful sigaction call.
50328         Reported by Tom G. Christensen.
50329
50330 2008-09-01  Bruno Haible  <bruno@clisp.org>
50331
50332         New module 'findprog-lgpl'.
50333         * modules/findprog-lgpl: New file.
50334         * lib/findprog-lgpl.c: New file.
50335         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50336         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50337         to decide whether to use strdup or xstrdup, concatenated_filename or
50338         xconcatenated_filename.
50339
50340 2008-09-01  Bruno Haible  <bruno@clisp.org>
50341
50342         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50343         'xconcat-filename' (GPL).
50344         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50345         (License): Change to LGPLv2+.
50346         * modules/xconcat-filename: New file.
50347         * lib/concat-filename.h (concatenated_filename): Change specification.
50348         (xconcatenated_filename): New declaration.
50349         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50350         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50351         memory situations.
50352         * lib/xconcat-filename.c: New file.
50353         * NEWS: Mention the change.
50354         * lib/findprog.c: Include concat-filename.h, not filename.h.
50355         (find_in_path): Use xconcatenated_filename instead of
50356         concatenated_filename.
50357         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50358         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50359         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50360         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50361         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50362         instead of concatenated_filename.
50363         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50364         (execute_java_class): Use xconcatenated_filename instead of
50365         concatenated_filename.
50366         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50367         * modules/javacomp (Depends-on): Likewise.
50368         * modules/javaexec (Depends-on): Likewise.
50369
50370 2008-09-01  Bruno Haible  <bruno@clisp.org>
50371
50372         Split module 'filename' into 'filename' and 'concat-filename'.
50373         * modules/filename: Keep only lib/filename.h.
50374         (License): Change to LGPLv2+.
50375         * modules/concat-filename: New file, extracted from modules/filename.
50376         * lib/filename.h (concatenated_filename): Remove declaration.
50377         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50378         * lib/concat-filename.c: Include concat-filename.h.
50379         * NEWS: Mention the change.
50380
50381 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50382
50383         * lib/bitrotate.h (rotl8, rotr8): Add.
50384
50385         * modules/bitrotate (configure.ac): Need
50386         AC_REQUIRE([AC_C_INLINE]).
50387         (Description): Mention stdint.h.  Reported by Bruno Haible
50388         <bruno@clisp.org>.
50389
50390         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50391         Paolo Bonzini <bonzini@gnu.org>.
50392
50393 2008-08-31  Bruno Haible  <bruno@clisp.org>
50394
50395         Assume Solaris specific bi-arch conventions on Solaris systems.
50396         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50397         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50398         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50399         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50400         like acl_libdirstem.
50401         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50402         acl_libdirstem.
50403         * NEWS: Mention the change.
50404         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50405
50406 2008-08-31  Jim Meyering  <meyering@redhat.com>
50407
50408         * lib/strftime.h: Add comments describing the two added arguments.
50409
50410         remove duplicate #include directives
50411         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50412         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50413
50414 2008-08-31  Bruno Haible  <bruno@clisp.org>
50415
50416         New module 'sigpipe-die'.
50417         * modules/sigpipe-die: New file.
50418         * lib/sigpipe-die.h: New file.
50419         * lib/sigpipe-die.c: New file.
50420         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50421
50422 2008-08-31  Bruno Haible  <bruno@clisp.org>
50423
50424         Don't override previously installed signal handlers.
50425         * lib/fatal-signal.c (saved_sigactions): New variable.
50426         (uninstall_handlers): Reset the signal to the saved handler, not
50427         to SIG_DFL (except when ignored).
50428         (install_handlers): Save the previous handlers.
50429
50430 2008-08-30  Bruno Haible  <bruno@clisp.org>
50431
50432         * gnulib-tool (func_reset_sigpipe): New function.
50433         (func_get_automake_snippet, func_modules_transitive_closure,
50434         func_import): Invoke it before a join command that reads from stdin,
50435         to avoid "echo: write error: Broken pipe" error messages on stderr.
50436         Reported by Sam Steingold <sds@gnu.org>.
50437
50438 2008-08-30  Bruno Haible  <bruno@clisp.org>
50439
50440         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50441         Code copied from m4/open.m4.
50442         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50443         access and the filename ends in a slash. Code copied from lib/open.c.
50444         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50445         * tests/test-fopen.c (main): Check against bug with trailing slash.
50446
50447 2008-08-29  Bruno Haible  <bruno@clisp.org>
50448
50449         Avoid some "gcc -pedantic" warnings.
50450         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50451         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50452         * lib/dirent.in.h: Likewise.
50453         * lib/fcntl.in.h: Likewise.
50454         * lib/float.in.h: Likewise.
50455         * lib/iconv.in.h: Likewise.
50456         * lib/inttypes.in.h: Likewise.
50457         * lib/locale.in.h: Likewise.
50458         * lib/math.in.h: Likewise.
50459         * lib/netinet_in.in.h: Likewise.
50460         * lib/search.in.h: Likewise.
50461         * lib/signal.in.h: Likewise.
50462         * lib/stdarg.in.h: Likewise.
50463         * lib/stdint.in.h: Likewise.
50464         * lib/stdio.in.h: Likewise.
50465         * lib/stdlib.in.h: Likewise.
50466         * lib/string.in.h: Likewise.
50467         * lib/strings.in.h: Likewise.
50468         * lib/sys_select.in.h: Likewise.
50469         * lib/sys_socket.in.h: Likewise.
50470         * lib/sys_stat.in.h: Likewise.
50471         * lib/sys_time.in.h: Likewise.
50472         * lib/sysexits.in.h: Likewise.
50473         * lib/time.in.h: Likewise.
50474         * lib/unistd.in.h: Likewise.
50475         * lib/wchar.in.h: Likewise.
50476         * lib/wctype.in.h: Likewise.
50477         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50478         * modules/fchdir (Makefile.am): Likewise.
50479         * modules/fcntl (Makefile.am): Likewise.
50480         * modules/float (Makefile.am): Likewise.
50481         * modules/iconv_open (Makefile.am): Likewise.
50482         * modules/inttypes (Makefile.am): Likewise.
50483         * modules/locale (Makefile.am): Likewise.
50484         * modules/math (Makefile.am): Likewise.
50485         * modules/netinet_in (Makefile.am): Likewise.
50486         * modules/search (Makefile.am): Likewise.
50487         * modules/signal (Makefile.am): Likewise.
50488         * modules/stdarg (Makefile.am): Likewise.
50489         * modules/stdint (Makefile.am): Likewise.
50490         * modules/stdio (Makefile.am): Likewise.
50491         * modules/stdlib (Makefile.am): Likewise.
50492         * modules/string (Makefile.am): Likewise.
50493         * modules/strings (Makefile.am): Likewise.
50494         * modules/sys_select (Makefile.am): Likewise.
50495         * modules/sys_socket (Makefile.am): Likewise.
50496         * modules/sys_stat (Makefile.am): Likewise.
50497         * modules/sys_time (Makefile.am): Likewise.
50498         * modules/sysexits (Makefile.am): Likewise.
50499         * modules/time (Makefile.am): Likewise.
50500         * modules/unistd (Makefile.am): Likewise.
50501         * modules/wchar (Makefile.am): Likewise.
50502         * modules/wctype (Makefile.am): Likewise.
50503         Reported by Reuben Thomas <rrt@sc3d.org>.
50504
50505 2008-08-29  Bruno Haible  <bruno@clisp.org>
50506
50507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50508         any more.
50509
50510 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50511
50512         * MODULES.html.sh (Misc): Add bitrotate.
50513
50514         * modules/bitrotate: New file.
50515
50516         * lib/bitrotate.h: New file.
50517
50518         * modules/bitrotate-tests: New file.
50519
50520         * tests/test-bitrotate.c: New file.
50521
50522         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50523         on the bitrotate module.
50524
50525         * lib/arctwo.c: Use new bitrotate module.
50526
50527 2008-08-29  Jim Meyering  <meyering@redhat.com>
50528
50529         bootstrap: merge changes from coreutils
50530         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50531         of copied files.  Remove a kludge, now that this is fixed.
50532         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50533         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50534         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50535
50536 2008-08-29  Bruno Haible  <bruno@clisp.org>
50537
50538         * MODULES.html.sh: Remove --cvs-urls option.
50539
50540 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50541
50542         maint.mk: adjust to file name change
50543         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50544
50545 2008-08-28  Jim Meyering  <meyering@redhat.com>
50546
50547         * modules/getndelim2 (License): Relicense to LGPLv2+.
50548         Approved by Richard Stallman for the version of 1995, and by
50549         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50550
50551 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50552
50553         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50554         dummy if one is not available.  Do not touch them if
50555         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50556         (getc_maybe_unlocked): New.
50557         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50558
50559 2008-08-26  Eric Blake  <ebb9@byu.net>
50560
50561         doc/INSTALL: resync from autoconf
50562         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50563         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50564         moving...
50565         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50566         * INSTALL: Regenerate.
50567         * INSTALL.ISO: New file.
50568         * INSTALL.UTF-8: Likewise.
50569
50570 2008-08-26  Jim Meyering  <meyering@redhat.com>
50571
50572         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50573         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50574         these definitions conditional, so that they may be overridden, too.
50575
50576 2008-08-26  Bruno Haible  <bruno@clisp.org>
50577
50578         Generate INSTALL file variants with prettier quotes.
50579         * doc/Makefile (INSTALL_PRELUDE): New macro.
50580         (INSTALL): Use it.
50581         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50582
50583 2008-08-26  Bruno Haible  <bruno@clisp.org>
50584
50585         Run makeinfo in an English locale.
50586         * doc/Makefile (MAKEINFO): New variable.
50587
50588 2008-08-26  Bruno Haible  <bruno@clisp.org>
50589
50590         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50591         Suggested by Eric Blake.
50592
50593 2008-08-25  Bruno Haible  <bruno@clisp.org>
50594
50595         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50596
50597 2008-08-25  Eric Blake  <ebb9@byu.net>
50598
50599         c-stack: test that stack overflow can be caught
50600         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50601         that platform allows handling stack overflow; at least OS/2 EMX
50602         has sigaltstack, but crashes before transferring control to
50603         handler on stack overflow.
50604         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50605         check for HAVE_STACK_OVERFLOW_HANDLING.
50606         Reported by Elbert Pol.
50607
50608 2008-08-25  Bruno Haible  <bruno@clisp.org>
50609
50610         * doc/posix-functions/strftime.texi: Fix description of strftime
50611         module.
50612
50613 2008-08-24  Bruno Haible  <bruno@clisp.org>
50614
50615         * tests/uniwidth/test-uc_width2.c: New file.
50616         * tests/uniwidth/test-uc_width2.sh: New file.
50617         * modules/uniwidth/width-tests (Files): Add the new files.
50618         (TESTS): Add uniwidth/test-uc_width2.sh.
50619         (TESTS_ENVIRONMENT): New variable.
50620         (check_PROGRAMS): Add test-uc_width2.
50621         (test_uc_width2_SOURCES): New variable.
50622
50623         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50624         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50625         not 0x00AB.
50626         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50627
50628 2008-08-22  Eric Blake  <ebb9@byu.net>
50629
50630         test-lock, test-tls: mention why a test is skipped
50631         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50632         skipped.
50633         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50634
50635         count-one-bits: relax license
50636         * modules/count-one-bits (License): Relicense to LGPLv2+.
50637         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50638
50639 2008-08-22  Andreas Schwab  <schwab@suse.de>
50640
50641         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50642         Remove spurious space in assignment.
50643
50644 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50645
50646         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50647         Paul Eggert <eggert@CS.UCLA.EDU>.
50648
50649 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50650
50651         * modules/gettext: Add m4/threadlib.m4.
50652
50653 2008-08-19  Eric Blake  <ebb9@byu.net>
50654
50655         test-c-stack: fix compilation failure on FreeBSD 5.0
50656         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50657         headers before <sys/resource.h>.
50658         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50659         the bug.
50660         Reported by Nelson H. F. Beebe.
50661
50662         strverscmp: migrate from "strverscmp.h" to <string.h>
50663         * modules/string (Makefile.am): Add new hooks.
50664         * modules/strverscmp (Files): Remove strverscmp.h.
50665         (Depends-on): Add string.
50666         (configure.ac): Add indicator.
50667         (Include): Mention new header.
50668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50669         defaults.
50670         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50671         results.
50672         * lib/strverscmp.h: Delete.
50673         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50674         * tests/test-strverscmp.c (includes): Adjust client.
50675         * lib/check-version.c (includes): Likewise.
50676         * NEWS: Document the change.
50677
50678         strverscmp: add unit test
50679         * modules/strverscmp-tests: New file.
50680         * tests/test-strverscmp.c: Likewise.
50681
50682 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50683
50684         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50685         regarding Windows crypto stuff, from Mono.
50686
50687 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50688
50689         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50690         if present, for intel RND.  Return error on failures.
50691
50692 2008-08-18  Ben Pfaff  <blp@gnu.org>
50693
50694         gitlog-to-changelog: give better diagnostic for failed pipe-open
50695         * build-aux/gitlog-to-changelog: Improve error message: suggest
50696         that the version of Git may be too old.
50697
50698 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50699
50700         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50701         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50702
50703 2008-08-18  Bruno Haible  <bruno@clisp.org>
50704
50705         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50706         pthread_in_use().
50707
50708 2008-08-18  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/glthread/threadlib.c: Include <pthread.h>.
50711
50712 2008-08-18  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50715         glthread_recursive_lock_* macros.
50716         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50717         Fix syntax error.
50718
50719 2008-08-18  Bruno Haible  <bruno@clisp.org>
50720
50721         * lib/glthread/thread.c: Avoid forcing a context switch right after
50722         thread creation.
50723
50724 2008-08-17  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50727         * lib/glthread/thread.h: Provide Win32 specific implementation.
50728         * modules/thread (Files): Add lib/glthread/thread.c.
50729         (Depends-on): Add lock.
50730         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50731
50732 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50733
50734         New module 'yield'.
50735         * modules/yield: New file.
50736         * lib/glthread/yield.h: New file.
50737         * m4/yield.m4: New file.
50738         * MODULES.html.sh (Multithreading): Add yield.
50739
50740 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50741
50742         New module 'thread'.
50743         * modules/thread: New file.
50744         * lib/glthread/thread.h: New file.
50745         * m4/thread.m4: New file.
50746         * MODULES.html.sh (Multithreading): Add thread.
50747
50748 2008-08-17  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/glthread/lock.h: Include <stdlib.h> always.
50751         * lib/glthread/tls.h: Likewise.
50752         * lib/glthread/cond.h: Likewise.
50753
50754 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50755
50756         New module 'cond'.
50757         * modules/cond: New file.
50758         * lib/glthread/cond.h: New file.
50759         * lib/glthread/cond.c: New file.
50760         * m4/cond.m4: New file.
50761         * MODULES.html.sh (Multithreading): Add cond.
50762
50763 2008-08-16  Eric Blake  <ebb9@byu.net>
50764
50765         c-stack: fix regression on Irix 5.3 from 2008-06-21
50766         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50767         sa_sigaction...
50768         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50769         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50770         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50771         * modules/signal (Makefile.am): Use the value.
50772         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50773         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50774         * doc/posix-headers/signal.texi (signal.h): Document this
50775         portability issue.
50776         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50777         Reported by Tom G. Christensen.
50778
50779 2008-08-17  Bruno Haible  <bruno@clisp.org>
50780
50781         New module 'threadlib'.
50782         * modules/threadlib: New file.
50783         * lib/glthread/threadlib.c: New file, extracted from
50784         lib/glthread/lock.c.
50785         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50786         functions.
50787         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50788         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50789         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50790         macros.
50791         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50792         (gl_DISABLE_THREADS): Remove macro.
50793         * modules/lock (Files): Remove build-aux/config.rpath.
50794         (Depends-on): Remove havelib. Add threadlib.
50795         (configure.ac-early): Remove section.
50796         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50797         * modules/tls (Depends-on): Remove lock. Add threadlib.
50798         (Link): New section, copied from threadlib.
50799         * MODULES.html.sh (Multithreading): Add threadlib.
50800
50801 2008-08-14  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50804         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50805         glthread_rwlock_unlock, glthread_rwlock_destroy,
50806         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50807         glthread_recursive_lock_destroy): Define as macros always.
50808         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50809         glthread_lock_lock.
50810         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50811         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50812         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50813         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50814         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50815         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50816         (glthread_recursive_lock_lock_func): Renamed from
50817         glthread_recursive_lock_lock.
50818         (glthread_recursive_lock_unlock_func): Renamed from
50819         glthread_recursive_lock_unlock.
50820         (glthread_recursive_lock_destroy_func): Renamed from
50821         glthread_recursive_lock_destroy.
50822
50823 2008-08-14  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/glthread/lock.h: Renamed from lib/lock.h.
50826         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50827         * lib/glthread/tls.h: Renamed from lib/tls.h.
50828         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50829         * lib/fstrcmp.c: Update includes.
50830         * lib/strsignal.c: Update includes.
50831         * modules/lock (Files, Makefile.am): Update.
50832         (Include): Change to "glthread/lock.h".
50833         * modules/tls (Files, Makefile.am): Update.
50834         (Include): Change to "glthread/tls.h".
50835         * tests/test-lock.c: Update includes.
50836         * tests/test-tls.c: Update includes.
50837         * NEWS: Mention the renamed header files.
50838
50839 2008-08-11  Jim Meyering  <meyering@redhat.com>
50840
50841         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50842
50843 2008-08-11  Eric Blake  <ebb9@byu.net>
50844
50845         test-c-stack: avoid C99-ism
50846         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50847         before statement.
50848         Reported by Alain Guibert.
50849
50850 2008-08-10  Jim Meyering  <meyering@redhat.com>
50851
50852         ensure that return value of uinttostr et al are not ignored
50853         * lib/inttostr.h (__GNUC_PREREQ): Define.
50854         (__attribute_warn_unused_result__): Define.
50855         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50856
50857 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50858
50859         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50860         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50861
50862 2008-08-07  Jim Meyering  <meyering@redhat.com>
50863
50864         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50865
50866         * modules/mkstemp (License): Relicense under LGPLv2+.
50867         * modules/tempname (License): Likewise.
50868
50869 2008-08-06  Bruno Haible  <bruno@clisp.org>
50870
50871         * lib/poll.c (poll): Further micro-optimization.
50872
50873 2008-08-06  Jim Meyering  <meyering@redhat.com>
50874
50875         inet_pton.c: use locale-independent tolower
50876         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50877         (inet_pton6): Use c_tolower rather than tolower.
50878         * modules/inet_pton (Depends-on): Add c-ctype.
50879
50880 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50881
50882         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50883         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50884
50885 2008-08-06  Jim Meyering  <meyering@redhat.com>
50886
50887         * modules/inet_pton (License): Relicense under LGPLv2+.
50888
50889 2008-08-03  Bruno Haible  <bruno@clisp.org>
50890
50891         Additional non-aborting API for lock and tls.
50892         * lib/lock.h: Include <errno.h>.
50893         (glthread_lock_init): New macro/function.
50894         (gl_lock_init): Define as wrapper around glthread_lock_init.
50895         (glthread_lock_lock): New macro/function.
50896         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50897         (glthread_lock_unlock): New macro/function.
50898         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50899         (glthread_lock_destroy): New macro/function.
50900         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50901         (glthread_rwlock_init): New macro/function.
50902         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50903         (glthread_rwlock_rdlock): New macro/function.
50904         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50905         (glthread_rwlock_wrlock): New macro/function.
50906         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50907         (glthread_rwlock_unlock): New macro/function.
50908         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50909         (glthread_rwlock_destroy): New macro/function.
50910         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50911         (glthread_recursive_lock_init): New macro/function.
50912         (gl_recursive_lock_init): Define as wrapper around
50913         glthread_recursive_lock_init.
50914         (glthread_recursive_lock_lock): New macro/function.
50915         (gl_recursive_lock_lock): Define as wrapper around
50916         glthread_recursive_lock_lock.
50917         (glthread_recursive_lock_unlock): New macro/function.
50918         (gl_recursive_lock_unlock): Define as wrapper around
50919         glthread_recursive_lock_unlock.
50920         (glthread_recursive_lock_destroy): New macro/function.
50921         (gl_recursive_lock_destroy): Define as wrapper around
50922         glthread_recursive_lock_destroy.
50923         (glthread_once): New macro/function.
50924         (gl_once): Define as wrapper around glthread_once.
50925         Update function declarations.
50926         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50927         glthread_rwlock_init. Return error code.
50928         (glthread_rwlock_rdlock_multithreaded): Renamed from
50929         glthread_rwlock_rdlock. Return error code.
50930         (glthread_rwlock_wrlock_multithreaded): Renamed from
50931         glthread_rwlock_wrlock. Return error code.
50932         (glthread_rwlock_unlock_multithreaded): Renamed from
50933         glthread_rwlock_unlock. Return error code.
50934         (glthread_rwlock_destroy_multithreaded): Renamed from
50935         glthread_rwlock_destroy. Return error code.
50936         (glthread_recursive_lock_init_multithreaded): Renamed from
50937         glthread_recursive_lock_init. Return error code.
50938         (glthread_recursive_lock_lock_multithreaded): Renamed from
50939         glthread_recursive_lock_lock. Return error code.
50940         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50941         glthread_recursive_lock_unlock. Return error code.
50942         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50943         glthread_recursive_lock_destroy. Return error code.
50944         (glthread_once_call): Make static.
50945         (glthread_once_multithreaded): Renamed from glthread_once.
50946         * lib/tls.h: Include <errno.h>.
50947         (glthread_tls_key_init): New macro/function.
50948         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50949         (glthread_tls_set): New macro/function.
50950         (gl_tls_set): Define as wrapper around glthread_tls_set.
50951         (glthread_tls_key_destroy): New macro/function.
50952         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50953         Update function declarations.
50954         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50955         glthread_tls_get.
50956         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50957
50958 2008-08-04  Eric Blake  <ebb9@byu.net>
50959
50960         gnumakefile: use space, not TAB, outside of targets
50961         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50962
50963 2008-08-02  Jim Meyering  <meyering@redhat.com>
50964
50965         getdate.y: avoid locale-dependent date parsing failure
50966         In Turkish locales, getdate would fail to recognize keywords
50967         containing a lowercase "i".  The solution is not to rely on
50968         locale-sensitive case-conversion.
50969         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50970         (lookup_word): Use c_toupper in place of toupper.
50971         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50972         Reported by Vefa Bicakci <bicave@superonline.com> in
50973         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50974         * modules/getdate (Depends-on): Add c-ctype.
50975
50976 2008-08-02  Bruno Haible  <bruno@clisp.org>
50977
50978         * gnulib-tool (func_import): When updating or creating a .gitignore
50979         file, prepend each added line with a slash, and ignore leading slashes
50980         from the existing lines.
50981         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50982
50983 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50984
50985         Portability fix for GNU make 3.79.1.
50986         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50987         versions do not understand.
50988
50989 2008-08-01  Bruno Haible  <bruno@clisp.org>
50990
50991         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50992         * tests/test-isnanf.h (zero): New variable.
50993         (main): Avoid literal -0.0f.
50994         * tests/test-isnand.h (zero): New variable.
50995         (main): Avoid literal -0.0.
50996         * tests/test-isnanl.h (zero): New variable.
50997         (main): Avoid literal -0.0L.
50998         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50999         (test_float, test_double, test_long_double): Avoid literals -0.0f,
51000         -0.0, -0.0L.
51001         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
51002         (test_signbitd): Avoid literal -0.0.
51003         (test_signbitl): Avoid literal -0.0L.
51004         * tests/test-ceilf1.c (zero): New variable.
51005         (main): Avoid literal -0.0f.
51006         * tests/test-ceill.c (zero): New variable.
51007         (main): Avoid literal -0.0L.
51008         * tests/test-floorf1.c (zero): New variable.
51009         (main): Avoid literal -0.0f.
51010         * tests/test-floorl.c (zero): New variable.
51011         (main): Avoid literal -0.0L.
51012         * tests/test-roundf1.c (zero): New variable.
51013         (main): Avoid literal -0.0f.
51014         * tests/test-round1.c (zero): New variable.
51015         (main): Avoid literal -0.0.
51016         * tests/test-roundl.c (zero): New variable.
51017         (main): Avoid literal -0.0L.
51018         * tests/test-truncf1.c (zero): New variable.
51019         (main): Avoid literal -0.0f.
51020         * tests/test-trunc1.c (zero): New variable.
51021         (main): Avoid literal -0.0.
51022         * tests/test-truncl.c (zero): New variable.
51023         (main): Avoid literal -0.0L.
51024         * tests/test-frexp.c (zero): New variable.
51025         (main): Avoid literal -0.0.
51026         * tests/test-frexpl.c (zero): New variable.
51027         (main): Avoid literal -0.0L.
51028         * tests/test-ldexpl.c (zero): New variable.
51029         (main): Avoid literal -0.0L.
51030         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51031         (zerod, zerol): New variables.
51032         (test_function): Avoid literals -0.0, -0.0L.
51033         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51034         (zerod, zerol): New variables.
51035         (test_function): Avoid literals -0.0, -0.0L.
51036         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51037         (zerod, zerol): New variables.
51038         (test_function): Avoid literals -0.0, -0.0L.
51039         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51040         (zerod, zerol): New variables.
51041         (test_function): Avoid literals -0.0, -0.0L.
51042         * tests/test-strtod.c (zero): New variable.
51043         (main): Avoid literal -0.0.
51044         Reported by Jonathan C. Patschke <jp@centtech.com>.
51045
51046 2008-07-31  Jim Meyering  <meyering@redhat.com>
51047
51048         sha256.h: correct definition of SHA224_DIGEST_SIZE
51049         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
51050         Reported by Paulie Pena IV <paulie4@gmail.com>.
51051         Define as 224 / 8, rather than as a literal.
51052         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
51053         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
51054         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
51055
51056 2008-07-31  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
51059         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
51060         Reported by Jonathan Patschke <jp@centtech.com>.
51061
51062 2008-07-31  Bruno Haible  <bruno@clisp.org>
51063
51064         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
51065         Reported by Paolo Bonzini <bonzini@gnu.org>.
51066
51067 2008-07-30  Eric Blake  <ebb9@byu.net>
51068
51069         test-strtod: allow compilation without -lm
51070         * tests/test-strtod.c (main): Avoid link dependence on fabs.
51071         Reported by Dennis Clarke <blastwave@gmail.com>.
51072
51073 2008-07-28  Jim Meyering  <meyering@redhat.com>
51074
51075         bootstrap: work also when there are no .po files in po/
51076         * build-aux/bootstrap (update_po_files): Complete the change
51077         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
51078
51079 2008-07-27  Jim Meyering  <meyering@redhat.com>
51080
51081         * users.txt: Add zile.
51082
51083 2008-07-26  Ben Pfaff  <blp@gnu.org>
51084
51085         Add missing dependencies on new m4/exponent[fdl].m4 files.
51086         * modules/isnanf-nolibm: Add m4/exponentf.m4.
51087         * modules/isnand-nolibm: Add m4/exponentd.m4.
51088         * modules/isnanl-nolibm: Add m4/exponentl.m4.
51089         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
51090         m4/isnan[fdl].m4, because the macros actually used moved.
51091         Reported by Jim Meyering.
51092
51093 2008-07-14  Ben Pfaff  <blp@gnu.org>
51094
51095         Add isinf module.
51096         * lib/isinf.c: New file.
51097         * lib/math.in.h: Define isinf macro if we have decided to replace
51098         it.
51099         * m4/isinf.m4: New file.
51100         * m4/math_h.m4: Initialize and substitute variables for isinf
51101         module.
51102         * modules/isinf: New file.
51103         * modules/isinf-tests: New file.
51104         * modules/math: Add substitutions for new module.
51105         * tests/test-isinf.c: New file.
51106         * doc/posix-functions/isinf.texi: Mention new module.
51107         * MODULES.html.sh: Mention new module.
51108
51109 2008-07-14  Ben Pfaff  <blp@gnu.org>
51110
51111         Factor out some macros for use by additional modules.
51112         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
51113         exponentf.m4.
51114         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
51115         exponentd.m4.
51116         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
51117         file exponentl.m4.
51118         * m4/exponentf.m4: New file.
51119         * m4/exponentd.m4: New file.
51120         * m4/exponentl.m4: New file.
51121         * modules/isnanf: Use new file m4/exponentf.m4.
51122         * modules/isnand: Use new file m4/exponentd.m4.
51123         * modules/isnanl: Use new file m4/exponentl.m4.
51124
51125 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
51126
51127         mktime.c: normalize tp->tm_isdst value to -1/0/1.
51128         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
51129         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
51130         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
51131
51132         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
51133         readlink on platforms without PATH_MAX.
51134
51135 2008-07-21  Eric Blake  <ebb9@byu.net>
51136
51137         Warn, not fail, on stale version.
51138         * top/GNUmakefile (_curr-ver): Tone down previous patch.
51139
51140         Don't allow installation with stale devel version number.
51141         * top/GNUmakefile (_is-install-target): New macro.
51142         (_curr-ver): Forbid installation with stale version number.
51143
51144 2008-07-20  Bruno Haible  <bruno@clisp.org>
51145
51146         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
51147         TESTS_ENVIRONMENT.
51148         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51149
51150 2008-07-20  Bruno Haible  <bruno@clisp.org>
51151
51152         * lib/c-stack.h (c_stack_action): Add documentation.
51153         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51154
51155 2008-07-20  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51158         * modules/readlink (License): Likewise.
51159
51160 2008-07-17  Eric Blake  <ebb9@byu.net>
51161
51162         * modules/c-stack (Link): Fix typo.
51163
51164         Make c-stack use libsigsegv, when available.
51165         * modules/c-stack (Depends-on): Add libsigsegv.
51166         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51167         needed.
51168         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51169         (segv_handler, overflow_handler, c_stack_action)
51170         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51171         implementation when libsigsegv is available, but only when using
51172         the library is necessary.
51173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51174         comment, explaining why XSI check fails on Linux.
51175         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51176         * tests/test-c-stack2.sh: Tweak skip message.
51177         * NEWS: Document new link-time requirements.
51178
51179 2008-07-16  Eric Blake  <ebb9@byu.net>
51180
51181         c-stack: Expose false positives when not using libsigsegv.
51182         * modules/c-stack-tests (Files): Expand test.
51183         * tests/test-c-stack.c (main): Add means to conditionally trigger
51184         non-overflow SIGSEGV.
51185         * tests/test-c-stack2.sh: New file.
51186
51187 2008-07-14  Bruno Haible  <bruno@clisp.org>
51188
51189         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51190         Reported by Eric Blake.
51191
51192 2008-07-14  Sam Steingold  <sds@gnu.org>
51193             Bruno Haible  <bruno@clisp.org>
51194
51195         New module libsigsegv.
51196         * modules/libsigsegv: New file.
51197         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51198         modifications.
51199         * MODULES.html.sh (Signal handling): New section.
51200
51201 2008-07-14  Bruno Haible  <bruno@clisp.org>
51202
51203         * modules/unictype/ctype-* (Description): Add the word "function".
51204         Improves the resulting doc in MODULES.html.
51205
51206 2008-07-12  Ben Pfaff  <blp@gnu.org>
51207
51208         Add longlong module.
51209         * modules/longlong: New file.
51210
51211 2008-07-12  Bruno Haible  <bruno@clisp.org>
51212
51213         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51214         to empty.
51215
51216 2008-07-10  Ben Pfaff  <blp@gnu.org>
51217
51218         Add isnan module.
51219         * doc/posix-functions/isnan.texi: Mention new module.
51220         * lib/math.in.h: Define isnan macro if we have decided to replace
51221         it.
51222         * m4/isnan.m4: New file.
51223         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51224         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51225         also.
51226         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51227         redundancy.
51228         * m4/math_h.m4: Initialize and substitute variables for isnan
51229         module.
51230         * modules/isnan: New file.
51231         * modules/isnan-tests: New file.
51232         * modules/math: Add substitutions for new module.
51233         * tests/test-isnan.c: New file.
51234         * MODULES.html.sh: Mention new module.
51235
51236 2008-07-10  Ben Pfaff  <blp@gnu.org>
51237
51238         Add isnanf module.
51239         * lib/isnanf.m4: New file.
51240         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51241         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51242         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51243         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51244         * modules/isnanf: New file.
51245         * modules/isnanf-tests: New file.
51246         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51247         files.
51248         * tests/test-isnanf-nolibm.c: factored most of its contents into
51249         new file tests/test-isnanf.h.
51250         * tests/test-isnanf.h: New file.
51251         * tests/test-isnanf.c: New file.
51252         * MODULES.html.sh: Mention new module.
51253         * doc/glibc-functions/isnanf.texi: Mention new module.
51254
51255 2008-07-10  Ben Pfaff  <blp@gnu.org>
51256
51257         Add isnand module.
51258         * lib/isnand.h: New file.
51259         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51260         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51261         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51262         functionality also.
51263         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51264         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51265         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51266         * modules/isnand: New file.
51267         * modules/isnand-tests: New file.
51268         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51269         files.
51270         * tests/test-isnand-nolibm.c: factored most of its contents into
51271         new file tests/test-isnand.h.
51272         * tests/test-isnand.h: New file.
51273         * tests/test-isnand.c: New file.
51274         * MODULES.html.sh: Mention new module.
51275
51276 2008-07-10  Ben Pfaff  <blp@gnu.org>
51277
51278         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51279         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51280         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51281         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51282         * modules/isnanf-nolibm: Update references to renamed files.
51283         * modules/isnand-nolibm: Likewise.
51284         * modules/isnanf-nolibm-tests: Likewise.
51285         * modules/isnand-nolibm-tests: Likewise.
51286         * lib/frexp.c: Likewise.
51287         * lib/isfinite.c: Likewise.
51288         * lib/signbitd.c: Likewise.
51289         * lib/signbitf.c: Likewise.
51290         * lib/vasnprintf.c: Likewise.
51291         * tests/test-ceilf1.c: Likewise.
51292         * tests/test-ceilf2.c: Likewise.
51293         * tests/test-floorf1.c: Likewise.
51294         * tests/test-floorf2.c: Likewise.
51295         * tests/test-frexp.c: Likewise.
51296         * tests/test-round1.c: Likewise.
51297         * tests/test-round2.c: Likewise.
51298         * tests/test-roundf1.c: Likewise.
51299         * tests/test-strtod.c: Likewise.
51300         * tests/test-trunc1.c: Likewise.
51301         * tests/test-trunc2.c: Likewise.
51302         * tests/test-truncf1.c: Likewise.
51303         * tests/test-truncf2.c: Likewise.
51304         * NEWS: Mention the renamed header files.
51305
51306 2008-07-11  Jim Meyering  <meyering@redhat.com>
51307
51308         vc-list-files: make the last-resort awk code more portable
51309         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51310         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51311         does not support it.
51312
51313 2008-07-10  Eric Blake  <ebb9@byu.net>
51314
51315         Work with tar's bootstrap.
51316         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51317         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51318         an m4 comment.
51319
51320 2008-07-09  Jim Meyering  <meyering@redhat.com>
51321
51322         posix-shell.m4: fix typo that made this test malfunction
51323         * m4/posix-shell.m4: Remove capitalization in variable name.
51324
51325 2008-07-08  Bruno Haible  <bruno@clisp.org>
51326
51327         * m4/onceonly.m4: Update comments.
51328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51329
51330 2008-07-04  Jim Meyering  <meyering@redhat.com>
51331
51332         * users.txt: Add vc-dwim.
51333         (bison, coreutils): Use the gitweb URL.
51334
51335 2008-07-03  Jim Meyering  <meyering@redhat.com>
51336
51337         * users.txt: Add libffcall.  From Sam Steingold.
51338
51339 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51340
51341         getdate.y: do not ignore TZ with relative day, month or year offset
51342         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51343         relative-date-handling, since otherwise, the latter would clobber the
51344         sole output (an updated Start value) of the tz-handling block.
51345         * tests/test-getdate.c: Tests for the fix
51346
51347 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51348
51349         Recognize 'foo_LIBRARIES += libgnu.a'.
51350         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51351         makefile snippet has already specified an installation location,
51352         also using '+='.
51353
51354 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51355
51356         getdate.y: factor out common actions
51357         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51358         Use them in place of open-coded actions.
51359
51360 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51361
51362         Add self-test for getdate module.
51363         * modules/getdate-tests: New file.
51364         * tests/test-getdate.c: New file.
51365
51366 2008-06-29  Bruno Haible  <bruno@clisp.org>
51367
51368         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51369         .gitignore.
51370         Reported by Sylvain Beucler <beuc@beuc.net>.
51371
51372 2008-06-29  Bruno Haible  <bruno@clisp.org>
51373
51374         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51375         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51376
51377 2008-06-29  Bruno Haible  <bruno@clisp.org>
51378
51379         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51380         EXTRA_DIST.
51381         Reported by Sylvain Beucler <beuc@beuc.net>.
51382
51383 2008-06-26  Jim Meyering  <meyering@redhat.com>
51384
51385         make several modules depend on the "open" module
51386         This provides slightly increased consistency when opening-for-write
51387         the name of a non-directory spelled with a trailing slash.
51388         * modules/chdir-safer: Likewise.
51389         * modules/chown: Likewise.
51390         * modules/clean-temp: Likewise.
51391         * modules/copy-file: Likewise.
51392         * modules/fchdir: Likewise.
51393         * modules/fcntl-safer: Likewise.
51394         * modules/pipe: Likewise.
51395         * modules/utime: Likewise.
51396         Prompted by Eric Blake and Bruno Haible.
51397
51398 2008-06-24  Andreas Schwab  <schwab@suse.de>
51399
51400         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51401         literals can be used as initializers for global variables.
51402
51403 2008-06-23  Eric Blake  <ebb9@byu.net>
51404
51405         Make gnulib-cache.m4 easier to diff.
51406         * gnulib-tool (func_import): Allow newlines when reading cached
51407         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51408
51409 2008-06-23  Bruno Haible  <bruno@clisp.org>
51410
51411         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51412         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51413         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51414         m4/signalblocking.m4.
51415         (gl_PREREQ_SIGACTION): Don't invoke it.
51416         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51417         gl_PREREQ_SIG_HANDLER_H.
51418         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51419         Don't check for sigaction here.
51420
51421 2008-06-23  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51424         (install_handlers): Don't set the SA_RESETHAND flag.
51425
51426 2008-06-23  Bruno Haible  <bruno@clisp.org>
51427
51428         * m4/sigaction.m4: Comment fixes.
51429         * lib/signal.in.h: Likewise.
51430
51431 2008-06-23  Eric Blake  <ebb9@byu.net>
51432
51433         Fix typo.
51434         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51435
51436         Avoid SA_ namespace.
51437         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51438         Reported by Ralf Wildenhues.
51439
51440         Avoid test failure due to SA_RESTORER.
51441         * tests/test-sigaction.c (SA_MASK): New macro.
51442         (main): Avoid failing due to extension flags being set.
51443         Reported by Jim Meyering.
51444
51445         Revert use of sig-handler.h in sigprocmask.c.
51446         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51447         it requires the existence of struct sigaction.
51448         * lib/sigprocmask.c (handler_t): Restore typedef.
51449         (rpl_signal, old_handlers): Use local type.
51450
51451 2008-06-22  Bruno Haible  <bruno@clisp.org>
51452
51453         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51454         conditionally.
51455         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51456
51457 2008-06-22  Bruno Haible  <bruno@clisp.org>
51458
51459         * doc/posix-functions/siginterrupt.texi: Move note.
51460
51461         * lib/signal.in.h (SA_RESTART): New macro.
51462         * lib/sigaction.c: Update comment.
51463
51464         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51465
51466         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51467         (gl_PREREQ_SIGPROCMASK): Invoke it.
51468         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51469
51470         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51471
51472         * lib/sigprocmask.c: Update a comment.
51473
51474 2008-06-21  Eric Blake  <ebb9@byu.net>
51475
51476         Use sigaction module rather than signal().
51477         * modules/c-stack (Depends-on): Add sigaction.
51478         * modules/fatal-signal (Depends-on): Likewise.
51479         * modules/nanosleep (Depends-on): Likewise.
51480         * modules/sigprocmask (Files): Add sig-handler.h.
51481         * modules/sigaction (Files): Likewise.
51482         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51483         Eggert.
51484         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51485         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51486         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51487         (init_fatal_signals): Likewise.
51488         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51489         (siginterrupt): Delete fallback.
51490         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51491         instead.
51492         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51493         siginterrupt.
51494
51495         New module sigaction, for mingw.
51496         * modules/sigaction: New module...
51497         * modules/sigaction-tests: ...and its test.
51498         * m4/sigaction.m4: New file.
51499         * lib/sigaction.c: Likewise.
51500         * tests/test-sigaction.c: Likewise.
51501         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51502         * modules/signal (Makefile.am): Likewise.
51503         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51504         needed.
51505         * doc/posix-headers/signal.texi (signal.h): Mention provided
51506         types.
51507         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51508         that sigaction is preferable.
51509         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51510         module.
51511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51512         sigaction.
51513
51514         Improve robustness of sigprocmask by overriding signal.
51515         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51516         is in use.
51517         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51518         (SIGKILL, SIGSTOP): Provide fallbacks.
51519         (rpl_signal): Implement.
51520         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51521         signal can be called inside handlers.
51522
51523         Fix nanosleep module on mingw.
51524         * modules/nanosleep (Depends-on): Add sys_select.
51525         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51526
51527         Fix licensing of sigprocmask.
51528         * modules/raise (License): Relicense as LGPL.
51529
51530 2008-06-21  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51533         result if it contains question marks.
51534         Reported by Michael Geng <linux@michaelgeng.de>.
51535
51536 2008-06-19  Bruno Haible  <bruno@clisp.org>
51537
51538         Fix CVS-ism.
51539         * doc/gnulib.texi: Include updated-stamp.texi.
51540         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51541         (updated-stamp.texi): New rule.
51542         (gnulib.info): Depend on it.
51543         * doc/.gitignore: Add updated-stamp.texi.
51544         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51545
51546 2008-06-19  Bruno Haible  <bruno@clisp.org>
51547
51548         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51549         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51550
51551 2008-06-19  Eric Blake  <ebb9@byu.net>
51552
51553         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51554         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51555         Reported by Stepan Kasal.
51556
51557 2008-06-18  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51560         Reported by Eric Blake.
51561
51562 2008-06-18  Eric Blake  <ebb9@byu.net>
51563
51564         Work around cygwin 1.5.25 strsignal bug.
51565         * tests/test-strsignal.c: Allow for const char *.
51566         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51567
51568 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51569
51570         * users.txt: Update URL to article and add author/date
51571         information.
51572
51573 2008-06-17  Bruno Haible  <bruno@clisp.org>
51574
51575         New macro gl_DISABLE_THREADS.
51576         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51577         if the user did not pass --enable-threads or --disable-threads option.
51578         (gl_DISABLE_THREADS): New macro.
51579         Reported by Eric Blake <ebb9@byu.net>.
51580
51581 2008-06-17  Bruno Haible  <bruno@clisp.org>
51582
51583         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51584         when the macro ignores it.
51585         Based on a patch by Eric Blake <ebb9@byu.net>.
51586
51587 2008-06-17  Bruno Haible  <bruno@clisp.org>
51588
51589         * modules/tls (License): Change to LGPLv2+.
51590         Reported by Eric Blake.
51591
51592 2008-06-17  Eric Blake  <ebb9@byu.net>
51593
51594         Simplify c-stack prerequisites.
51595         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51596         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51597         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51598         check.
51599         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51600         <sys/resource.h>.
51601
51602         Move c-stack test into testsuite.
51603         * modules/c-stack-tests: New file.
51604         * lib/c-stack.c [DEBUG]: Move test program...
51605         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51606         fail test if sigaltstack is lacking.
51607         * tests/test-c-stack.sh: New driver file.
51608
51609 2008-06-16  Eric Blake  <ebb9@byu.net>
51610
51611         Use raise module consistently.
51612         * modules/fatal-signal (Depends-on): Add raise.
51613         * modules/sigprocmask (Depends-on): Likewise.
51614         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51615         * lib/sigprocmask.c (sigprocmask): Likewise.
51616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51617         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51618
51619         Fix compliance bug in sigpending.
51620         * lib/sigprocmask.c (sigpending): Return pending array via
51621         parameter, not return value.
51622
51623 2008-06-14  Eric Blake  <ebb9@byu.net>
51624
51625         Improve obstack-printf test code.
51626         * tests/test-obstack-printf.c (test_function): Fix comment, and
51627         simplify usage of obstack_* in macros.  Add a test for coverage.
51628         Reported by Bruno Haible.
51629
51630 2008-06-14  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51633         array size as a constant, not as a const variable.
51634         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51635         AC_USE_SYSTEM_EXTENSIONS.
51636         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51637         Test whether the obstack_printf function actually exists.
51638         * modules/obstack-printf (Depends-on): Add extensions.
51639         (Include): Remove obstack.h.
51640         * modules/obstack-printf-posix (Depends-on): Add extensions.
51641         (Include): Remove obstack.h.
51642
51643 2008-06-13  Eric Blake  <ebb9@byu.net>
51644
51645         Add obstack-printf and obstack-printf-posix modules.
51646         * modules/obstack-printf: New file.
51647         * modules/obstack-printf-posix: Likewise.
51648         * MODULES.html.sh (Misc): Mention them.
51649         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51650         Likewise.
51651         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51652         Likewise.
51653         * modules/stdio (Makefile.am): Accomodate new modules.
51654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51655         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51656         Declare.
51657         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51658         functions.
51659         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51660         (gl_REPLACE_OBSTACK_PRINTF): New macros
51661         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51662         * tests/test-obstack-printf.c: New file.
51663         * modules/obstack-printf-tests: Likewise.
51664         * modules/obstack-printf-posix-tests: Likewise.
51665
51666 2008-06-11  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51669         * lib/open.c: Include errno.h.
51670         (open): Fail when attempting to write to a file that has a trailing
51671         slash.
51672         * tests/test-open.c (main): Test against trailing slash bug.
51673         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51674
51675 2008-06-10  Bruno Haible  <bruno@clisp.org>
51676
51677         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51678         for $? to work inside the trap command, with various /bin/sh-s.
51679         * tests/test-vc-list-files-cvs.sh: Likewise.
51680
51681 2008-06-10  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/acl-internal.h: Don't include gettext.h here.
51684         * lib/set-mode-acl.c: Include gettext.h here.
51685         * lib/copy-acl.c: Likewise.
51686
51687 2008-06-10  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51690         * lib/wait-process.c (wait_subprocess): Likewise.
51691         * lib/execute.h (execute): Add termsigp argument.
51692         * lib/execute.c (execute): Likewise.
51693         * lib/csharpcomp.c (compile_csharp_using_pnet,
51694         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51695         * lib/csharpexec.c (execute_csharp_using_pnet,
51696         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51697         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51698         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51699         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51700         is_jikes_present): Update.
51701         * lib/javaexec.c (execute_java_class): Update.
51702         * lib/javaversion.c (execute_and_read_line): Update.
51703         * NEWS: Document the changes.
51704         Reported by Eric Blake.
51705
51706 2008-06-10  Eric Blake  <ebb9@byu.net>
51707
51708         Add missing include.
51709         * tests/test-strstr.c (includes): Add <signal.h>.
51710         * tests/test-strcasestr.c (includes): Likewise.
51711         * tests/test-memmem.c (includes): Likewise.
51712
51713 2008-06-10  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/wait-process.c (wait_subprocess): Add an assertion.
51716
51717 2008-06-10  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51720
51721 2008-06-10  Bruno Haible  <bruno@clisp.org>
51722
51723         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51724         using alarm().
51725         * tests/test-strcasestr.c (main): Likewise.
51726         * tests/test-strstr.c (main): Likewise.
51727
51728 2008-06-09  Bruno Haible  <bruno@clisp.org>
51729
51730         Work around the Solaris 10 ACE ACLs ABI change.
51731         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51732         declare if ACL_NO_TRIVIAL is present.
51733         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51734         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51735         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51736         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51737         define if ACL_NO_TRIVIAL is present.
51738         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51739         and use the current ABI.
51740         (file_has_acl): Use same #if condition as elsewhere.
51741         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51742         in use, and use the current ABI.
51743         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51744         Reported by Jim Meyering.
51745
51746 2008-06-09  Eric Blake  <ebb9@byu.net>
51747
51748         Work around environments that (stupidly) ignore SIGALRM.
51749         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51750         before using alarm().
51751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51752         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51753         Reported by Ian Beckwith <ianb@erislabs.net>.
51754
51755         Produce autobuild blurb earlier in log.
51756         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51757
51758 2008-06-09  Jim Meyering  <meyering@redhat.com>
51759         and OndÅ™ej Vašík  <ovasik@redhat.com>
51760
51761         utimens.c: correct kernel bug work-around
51762         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51763         failure, not success, and the kernel bug we're trying to work
51764         around affects not just the utimensat call, but also the fallback
51765         futimens call.
51766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51767         not success.
51768         [HAVE_FUTIMENS]: Use the same work-around, here.
51769
51770 2008-06-09  Jim Meyering  <meyering@redhat.com>
51771
51772         add more guards around definition of ACE_-related code
51773         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51774         ALLOW and ACE_OWNER are also defined.
51775
51776 2008-06-08  Bruno Haible  <bruno@clisp.org>
51777
51778         * lib/acl-internal.h: Add me as co-author.
51779         * lib/file-has-acl.c: Likewise.
51780         * lib/set-mode-acl.c: Likewise.
51781         * lib/copy-acl.c: Likewise.
51782
51783 2008-06-08  Bruno Haible  <bruno@clisp.org>
51784
51785         Add support for AIX ACLs.
51786         * lib/acl-internal.h (acl_nontrivial): New declaration.
51787         * lib/file-has-acl.c (acl_nontrivial): New function.
51788         (file_has_acl): Add implementation using AIX 4 ACL API.
51789         * lib/set-mode-acl.c (qset_acl): Likewise.
51790         * lib/copy-acl.c (qcopy_acl): Likewise.
51791
51792 2008-06-08  Bruno Haible  <bruno@clisp.org>
51793
51794         Add support for HP-UX ACLs.
51795         * lib/acl-internal.h (acl_nontrivial): New declaration.
51796         * lib/file-has-acl.c (acl_nontrivial): New function.
51797         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51798         * lib/set-mode-acl.c (qset_acl): Likewise.
51799         * lib/copy-acl.c (qcopy_acl): Likewise.
51800
51801 2008-06-08  Bruno Haible  <bruno@clisp.org>
51802
51803         Add support for Cygwin ACLs.
51804         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51805         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51806         the chmod_or_fchmod call.
51807         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51808
51809 2008-06-08  Bruno Haible  <bruno@clisp.org>
51810
51811         Fix bug with setuid modes in Solaris 10+ code.
51812         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51813         succeeded, when the mode contains some special bits.
51814
51815 2008-06-08  Bruno Haible  <bruno@clisp.org>
51816
51817         Add support for Solaris 7..10 ACLs.
51818         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51819         declarations.
51820         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51821         functions.
51822         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51823         * lib/set-mode-acl.c (qset_acl): Likewise.
51824         * lib/copy-acl.c (qcopy_acl): Likewise.
51825
51826 2008-06-08  Bruno Haible  <bruno@clisp.org>
51827
51828         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51829         declaration.
51830         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51831         (acl_access_nontrivial): Remove MacOS X case.
51832         (file_has_acl): Use acl_extended_nontrivial.
51833         * lib/copy-acl.c (qcopy_acl): Likewise.
51834
51835 2008-06-08  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51838
51839 2008-06-08  Jim Meyering  <meyering@redhat.com>
51840
51841         * modules/acl (Maintainer): Add Bruno Haible.
51842
51843 2008-06-07  Bruno Haible  <bruno@clisp.org>
51844
51845         Improve support for Tru64 ACLs.
51846         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51847         ACL on OSF/1.
51848
51849 2008-06-07  Bruno Haible  <bruno@clisp.org>
51850
51851         Add support for MacOS X ACLs.
51852         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51853         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51854         * lib/set-mode-acl.c (qset_acl): Likewise.
51855         * lib/copy-acl.c (qcopy_acl): Likewise.
51856
51857 2008-06-07  Bruno Haible  <bruno@clisp.org>
51858
51859         Fix memory leak introduced on 2008-05-22.
51860         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51861         use.
51862
51863 2008-06-07  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51866         to construct an empty ACL.
51867
51868 2008-06-07  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51871         precisely.
51872         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51873
51874 2008-06-07  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51877         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51878
51879 2008-06-07  Bruno Haible  <bruno@clisp.org>
51880
51881         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51882         regardless of POSIX.
51883         * doc/posix-functions/_longjmp.texi: Likewise.
51884         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51885         SystemV platform in this case.
51886
51887 2008-06-06  Eric Blake  <ebb9@byu.net>
51888
51889         Document abort() bugs.
51890         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51891
51892         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51893         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51894         sigsetjmp.
51895         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51896         siglongjmp, but only as a macro.
51897         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51898         is obsolete.
51899         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51900
51901         Tweak documentation to cover cygwin argz bugs.
51902         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51903         argz bug fix; no code change needed since no cygwin releases
51904         occurred between the last fix and the bug being tested.
51905         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51906         module and recently fixed cygwin bugs.
51907         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51908         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51909         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51910         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51911         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51912         Likewise.
51913         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51914         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51915         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51916         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51917         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51918         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51919         Likewise.
51920
51921         Avoid gcc warning on cygwin.
51922         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51923         !ACL_NO_TRIVIAL]: Avoid unused variable.
51924
51925 2008-06-05  Eric Blake  <ebb9@byu.net>
51926
51927         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51928         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51929         git-version-gen fails to come up with a version.
51930         Reported by Simon Josefsson.
51931
51932 2008-06-05  Jim Meyering  <meyering@redhat.com>
51933             Paul Eggert  <eggert@cs.ucla.edu>
51934
51935         utimens.c: work around a probable Linux kernel bug
51936         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51937         appears to be a kernel bug that causes utimensat to return 280
51938         instead of 0, indicating success.
51939
51940 2008-06-04  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51943         2008-06-01 commit.
51944
51945 2008-06-04  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51948         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51949         (file_has_acl): Use it. Save errno afterwards.
51950         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51951
51952 2008-06-03  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51955         draft code. Simplify #ifs.
51956         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51957         Put Solaris code after POSIX-draft code. Fix comments regarding
51958         Solaris 10, HP-UX. Mention Cygwin.
51959         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51960
51961 2008-06-03  Eric Blake  <ebb9@byu.net>
51962
51963         Provide fallback for older kernels.
51964         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51965         Provide runtime fallback if kernel lacks support.
51966         Reported by Mike Frysinger.
51967
51968 2008-06-02  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51971         it exists.
51972
51973 2008-06-02  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51976         * lib/copy-acl.c (qcopy_acl): Update comment.
51977
51978 2008-06-02  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51981         like ACL APIs.
51982
51983 2008-06-02  Bruno Haible  <bruno@clisp.org>
51984
51985         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51986         * tests/test-set-mode-acl.sh: Likewise.
51987         * tests/test-copy-acl.sh: Likewise.
51988         * tests/test-copy-file.sh: Likewise.
51989
51990 2008-06-02  Bruno Haible  <bruno@clisp.org>
51991
51992         * tests/test-file-has-acl.sh: Remove unused code.
51993
51994 2008-06-01  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51997         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51998         messages.
51999         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
52000
52001 2008-06-01  Bruno Haible  <bruno@clisp.org>
52002
52003         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
52004         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
52005         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
52006         APIs.
52007         * modules/acl-tests (configure.ac): Remove tests now contained in
52008         m4/acl.m4.
52009
52010 2008-06-02  Jim Meyering  <meyering@redhat.com>
52011
52012         announce-gen: use a better key-server host name
52013         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
52014         it may be more consistently reliable.  Suggested by Werner Koch
52015         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
52016
52017 2008-06-01  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
52020         Reported by Voroskoi Andras <voroskoi@gmail.com>.
52021
52022 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
52023
52024         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
52025
52026 2008-06-01  Bruno Haible  <bruno@clisp.org>
52027
52028         New ACL tests.
52029         * tests/test-file-has-acl.sh: New file.
52030         * tests/test-file-has-acl.c: New file.
52031         * tests/test-set-mode-acl.sh: New file.
52032         * tests/test-set-mode-acl.c: New file.
52033         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
52034         * tests/test-copy-acl.c: New file.
52035         * modules/acl-tests: New file, based on modules/copy-file-tests.
52036         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
52037         (Depends-on): Add acl-tests.
52038         (configure.ac): Remove checks.
52039         (Makefile.am): Don't create test-sameacls program here any more.
52040
52041 2008-06-01  Bruno Haible  <bruno@clisp.org>
52042
52043         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
52044         * tests/test-sameacls.c: Include progname.h.
52045         (main): Invoke set_program_name. Portability fixes for MacOS X,
52046         Solaris, HP-UX.
52047
52048 2008-06-01  Bruno Haible  <bruno@clisp.org>
52049
52050         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
52051         function.
52052         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
52053
52054 2008-06-01  Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/rpmatch (Depends-on): Add strdup.
52057
52058 2008-06-01  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/pipe.c: Include unistd-safer.h.
52061         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
52062         * modules/pipe (Depends-on): Add unistd-safer.
52063
52064 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52065
52066         * modules/autobuild (configure.ac): Call AB_INIT.
52067
52068 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52069
52070         * tests/test-getaddrinfo.c: Don't print debug messages by default.
52071         Suggested by Bruno Haible <bruno@clisp.org>.
52072
52073 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52074
52075         * tests/test-base64.c: Cast size_t to unsigned long when invoking
52076         printf.  Use %lu instead of %d.  Reported by Bruno Haible
52077         <bruno@clisp.org>.
52078
52079 2008-05-29  Eric Blake  <ebb9@byu.net>
52080
52081         Prefer new POSIX 200x interfaces over futimesat.
52082         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
52083         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
52084         when available.
52085         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
52086
52087 2008-05-28  Bruno Haible  <bruno@clisp.org>
52088
52089         * modules/stpcpy (License): Change to LGPLv2+.
52090         Requested by David Lutterkort <dlutter@redhat.com>.
52091
52092 2008-05-27  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
52095         current mingw.
52096         Reported by Jose E. Marchesi <jemarch@gnu.org>.
52097
52098 2008-05-27  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/iconv_open (Link): New section, from module 'iconv'.
52101         * modules/striconv (Link): Likewise.
52102         * modules/striconveh (Link): Likewise.
52103         * modules/xstriconv (Link): Likewise.
52104         * modules/unicodeio (Link): Likewise.
52105         * modules/propername (Link): Likewise.
52106         Reported by Jim Meyering.
52107
52108 2008-05-26  Jim Meyering  <meyering@redhat.com>
52109
52110         sha256: do not artificially restrict buffer length to be < 2^32
52111         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
52112         uint32_t to size_t.
52113         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
52114         to match.
52115
52116         avoid unaligned access errors, e.g., on sparc
52117         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
52118         direct access through a possibly-unaligned uint64* pointer.
52119         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
52120         direct access through a possibly-unaligned uint32* pointer.
52121         Prompted by this patch from Tom "spot" Callaway:
52122         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
52123
52124         sha512.c: fix typo in comment
52125         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
52126
52127 2008-05-25  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/set-mode-acl.c: Renamed from lib/acl.c.
52130         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
52131         (Makefile.am): Update lib_SOURCES.
52132
52133 2008-05-25  Bruno Haible  <bruno@clisp.org>
52134
52135         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
52136
52137 2008-05-25  Jim Meyering  <meyering@redhat.com>
52138
52139         useless-if-before-free: freed expr may have white-space differences
52140         * build-aux/useless-if-before-free: Recognize cases in which the
52141         freed expression differs from the tested one in embedded white
52142         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
52143         $1 was used, so we can't make any regexp shy.  Improved tests now
52144         detect this.
52145
52146         useless-if-before-free: accept white space in the expression.
52147         * build-aux/useless-if-before-free: For now, any white space
52148         in the expression must be identical in the free argument.
52149
52150         useless-if-before-free: efficiency tweak
52151         * build-aux/useless-if-before-free: Make the expression-matching
52152         regexp "shy".
52153         Make the *outer* regexp shy, not the expr-matching one.
52154
52155         update code-in-comment to accept cast of free arg
52156         * build-aux/useless-if-before-free: Update regexp.
52157
52158 2008-05-25  Bruno Haible  <bruno@clisp.org>
52159
52160         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52161         * modules/copy-file-tests (Files, Makefile.am): Update.
52162         * tests/test-copy-file.c (func_test_copy): Update.
52163
52164 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52165
52166         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52167
52168 2008-05-23  Bruno Haible  <bruno@clisp.org>
52169
52170         Improve support for ACLs on OSF/1.
52171         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52172         Remove fallback for unknown flavors of ACLs.
52173
52174 2008-05-22  Bruno Haible  <bruno@clisp.org>
52175
52176         Add support for ACLs on OSF/1.
52177         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52178         replacements.
52179         (acl_free_text): New macro fallback.
52180         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52181         acl_free.
52182         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52183         acl_free_text function. Require AC_C_INLINE.
52184
52185 2008-05-22  Bruno Haible  <bruno@clisp.org>
52186
52187         Make copy_acl work on MacOS X 10.5.
52188         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52189         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52190         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52191         If MODE_INSIDE_ACL, don't assume that every system has the same text
52192         representation for ACLs as FreeBSD.
52193         * lib/copy-acl.c (copy_acl): Add support for platforms with
52194         !MODE_INSIDE_ACL.
52195         * lib/file-has-acl.c (file_has_acl): Likewise.
52196         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52197         FreeBSD, MacOS X, or IRIX, respectively.
52198
52199 2008-05-22  Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/acl.h: Don't include <sys/acl.h>.
52202         (GETACLCNT): Move fallback to lib/acl-internal.h.
52203         * lib/acl-internal.h: Include <sys/acl.h> here.
52204         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52205
52206 2008-05-22  Bruno Haible  <bruno@clisp.org>
52207
52208         Split off copy_acl function to separate file.
52209         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52210         * lib/acl.c (copy_acl): Moved function to separate file.
52211         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52212         * modules/acl (Files): Add lib/copy-acl.c.
52213         (Makefiles.am): Augment lib_SOURCES.
52214
52215 2008-05-22  Bruno Haible  <bruno@clisp.org>
52216
52217         * modules/copy-file-tests: New file.
52218         * tests/test-copy-file.sh: New file.
52219         * tests/test-copy-file.c: New file.
52220         * tests/test-copy-file-sameacls.c: New file.
52221
52222 2008-05-22  Eric Blake  <ebb9@byu.net>
52223
52224         Avoid gcc warning.
52225         * tests/test-memcmp.c (main): Pass NULL indirectly.
52226
52227 2008-05-21  Bruno Haible  <bruno@clisp.org>
52228
52229         Add reference doc about ACLs.
52230         * doc/acl-resources.txt: New file.
52231         * doc/acl-cygwin.txt: New file.
52232
52233 2008-05-21  Bruno Haible  <bruno@clisp.org>
52234
52235         Avoid one more warning from gcc.
52236         * lib/vasnprintf.c (IF_LINT): Update comments.
52237         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52238
52239 2008-05-21  Jim Meyering  <meyering@redhat.com>
52240
52241         avoid a warning from gcc
52242         * lib/vasnprintf.c (IF_LINT): Define.
52243         (scale10_round_decimal_long_double):
52244         Use it to avoid a "may be used uninitialized" warning.
52245         (scale10_round_decimal_double): Likewise.
52246
52247 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52248
52249         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52250         declared.
52251
52252 2008-05-20  Bruno Haible  <bruno@clisp.org>
52253
52254         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52255         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52256
52257 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52258
52259         * modules/memcmp-tests: New file.
52260         * tests/test-memcmp.c: New file.
52261
52262 2008-05-19  Bruno Haible  <bruno@clisp.org>
52263
52264         * modules/propername (Notice, configure.ac): Put quoted "..." into
52265         --keyword option.
52266         * lib/propername.h: Update comments accordingly.
52267         Reported by Eric Blake.
52268
52269 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52270
52271         * modules/getpass-gnu (Depends-on): Add fseeko.
52272
52273 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52274
52275         * modules/base64-tests: New file.
52276
52277 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52278
52279         * lib/base64.c (base64_decode_ctx): If a decode context structure
52280         was passed in use it to ignore newlines.  If a context structure
52281         was _not_ passed in, continue to treat newlines as garbage (this
52282         is the historical behavior).  Formerly base64_decode.
52283         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52284         takes a decode context structure.
52285         * lib/base64.h (base64_decode): Macro for four-argument calls.
52286         (base64_decode_alloc): Likewise.
52287         * lib/base64.c (base64_decode_ctx): If a decode context structure
52288         was passed in use it to ignore newlines.  If a context structure
52289         was _not_ passed in, continue to treat newlines as garbage (this
52290         is the historical behavior).  Formerly base64_decode.
52291         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52292         takes a decode context structure.
52293         * lib/base64.h (base64_decode): Macro for four-argument calls.
52294         (base64_decode_alloc): Likewise.
52295
52296 2008-05-19  Jim Meyering  <meyering@redhat.com>
52297
52298         avoid a warning from gcc
52299         * lib/trim.c (IF_LINT): Define.
52300         (trim2): Use it to avoid a "may be used uninitialized" warning.
52301
52302         Fix doc typo.
52303         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52304
52305 2008-05-19  Bruno Haible  <bruno@clisp.org>
52306
52307         * doc/glibc-functions/getpass.texi: Document limits of other
52308         implementations.
52309
52310 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52311             Bruno Haible <bruno@clisp.org>
52312
52313         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52314
52315 2008-05-18  Bruno Haible  <bruno@clisp.org>
52316
52317         * modules/propername: New file, from GNU gettext.
52318         * lib/propername.h: New file, from GNU gettext.
52319         * lib/propername.c: New file, from GNU gettext.
52320         * MODULES.html.sh (Internationalization functions): Add propername.
52321
52322 2008-05-16  Jim Meyering  <meyering@redhat.com>
52323             Bruno Haible  <bruno@clisp.org>
52324
52325         Avoid some warnings from "gcc -Wshadow".
52326         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52327
52328 2008-05-15  Eric Blake  <ebb9@byu.net>
52329
52330         Extend previous patch to cygwin 1.7.0.
52331         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52332         fast implementation in cygwin >= 1.7.0.
52333         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52335
52336 2008-05-15  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52339         implementation in glibc >= 2.9.
52340         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52341         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52342
52343 2008-05-15  Bruno Haible  <bruno@clisp.org>
52344
52345         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52346         (Unicode string functions): Add unilbrk/*.
52347         Reported by Karl Berry.
52348
52349 2008-05-15  Eric Blake  <ebb9@byu.net>
52350
52351         Fix violation of <stdbool.h> replacement in regex.
52352         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52353         * lib/regexec.c (re_search_internal): Likewise.
52354         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52355
52356 2008-05-15  Jim Meyering  <meyering@redhat.com>
52357
52358         avoid distracting test output when git or cvs is not found
52359         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52360         * tests/test-vc-list-files-git.sh: Likewise.
52361
52362 2008-05-15  Eric Blake  <ebb9@byu.net>
52363
52364         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52365         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52366         glibc version.
52367         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52368         * doc/posix-functions/strstr.texi (strstr): Likewise.
52369         * lib/str-two-way.h (MAX): Sychronize with glibc.
52370
52371 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52372
52373         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52374         opr.ctx_type.
52375         (calc_first): Initialize constraint field.
52376         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52377         Fix grammar.
52378         (duplicate_node): Merge constraint field for all node types.
52379         (calc_eclosure_iter): Look at constraint field for all node types.
52380         * lib/regex_internal.c (create_cd_newstate): Don't look at
52381         opr.ctx_type.
52382
52383 2008-05-14  Bruno Haible  <bruno@clisp.org>
52384
52385         Help GCC to do better code generation.
52386         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52387         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52388         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52389         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52390         Declare with attribute 'malloc' if supported.
52391
52392 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52393
52394         use "echo STR|wc -c" rather than unportable "expr length STR"
52395         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52396         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52397
52398 2008-05-14  Jim Meyering  <meyering@redhat.com>
52399
52400         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52401         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52402         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52403         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52404         via Collin Lasse.
52405
52406 2008-05-14  Eric Blake  <ebb9@byu.net>
52407
52408         Avoid quadratic growth in gl_LIBSOURCES.
52409         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52410         Suggested by Bruno Haible.
52411
52412         Test xmemdup0.
52413         * modules/xmemdup0-tests: New file.
52414         * tests/test-xmemdup0.c: Likewise.
52415
52416 2008-05-13  Eric Blake  <ebb9@byu.net>
52417
52418         Split xmemdup0 into its own module.
52419         * modules/xmemdup0: New file.
52420         * lib/xmemdup0.h: Likewise.
52421         * lib/xmemdup0.c: Likewise.
52422         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52423         * lib/xalloc.h (xmemdup0): Remove.
52424         * lib/xmalloc.c (xmemdup0): Likewise.
52425
52426 2008-05-13  Eric Blake  <ebb9@byu.net>
52427             Bruno Haible  <bruno@clisp.org>
52428
52429         Reduce number of forks required during autoconf.
52430         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52431         and gl_LIBSOURCES_DIR.
52432         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52433         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52434         m4_syscmd per file.
52435         <m4_foreach_w>: Move...
52436         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52437
52438 2008-05-13  Eric Blake  <ebb9@byu.net>
52439
52440         * gnulib-tool: Fix various comment typos.
52441
52442 2008-05-12  Bruno Haible  <bruno@clisp.org>
52443
52444         Tailor the linebreaking algorithm.
52445         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52446
52447 2008-05-12  Bruno Haible  <bruno@clisp.org>
52448
52449         Update to Unicode 5.0.0.
52450         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52451         LBP_JV, LBP_JT. Redistribute values.
52452         (unilbrk_table): Change size.
52453         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52454         Unicode TR#14 rev. 22.
52455         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52456         LBP_JV, LBP_JT. Redistribute values.
52457         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52458         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52459         Update.
52460         * lib/unilbrk/lbrkprop1.h: Regenerated.
52461         * lib/unilbrk/lbrkprop2.h: Regenerated.
52462         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52463         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52464         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52465         Likewise.
52466         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52467         Likewise.
52468         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52469         result.
52470         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52471         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52472         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52473         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52474         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52475         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52476
52477 2008-05-11  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52480
52481 2008-05-11  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52484         * modules/unilbrk/gen-lbrk: New file.
52485
52486 2008-05-11  Bruno Haible  <bruno@clisp.org>
52487
52488         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52489         * m4/sha512.m4 (gl_SHA512): Likewise.
52490
52491 2008-05-11  Jim Meyering  <meyering@redhat.com>
52492
52493         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52494         * modules/crypto/sha256: New file.
52495         * modules/crypto/sha512: Likewise.
52496         * lib/sha256.c: Likewise.
52497         * lib/sha256.h: Likewise.
52498         * lib/sha512.c: Likewise.
52499         * lib/sha512.h: Likewise.
52500         * lib/u64.h: Likewise.
52501         * m4/sha256.m4: Likewise.
52502         * m4/sha512.m4: Likewise.
52503         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52504
52505 2008-05-10  Bruno Haible  <bruno@clisp.org>
52506
52507         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52508         (Input/Output <stdio.h>): Add xprintf.
52509         (Signal handling <signal.h>): Add strsignal.
52510         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52511         (Core language properties): Add func.
52512         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52513         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52514         strings.
52515         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52516         (Input/output): New section.
52517         (File system functions): Add openat-die, stat-macros.
52518         (Networking functions): Add sockets.
52519         (Unicode string functions): Add unictype/*.
52520         (Support for building libraries and executables): Add gperf.
52521         (Support for building documentation): Add agpl-3.0.
52522         (Misc): Add nocrash.
52523
52524 2008-05-10  Bruno Haible  <bruno@clisp.org>
52525
52526         * modules/unictype/gen-ctype: New file.
52527
52528 2008-05-10  Jim Meyering  <meyering@redhat.com>
52529
52530         Make chdir-safer.c more efficient on a system with no symlinks.
52531         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52532         also if ELOOP is zero.  Suggested by Bruno Haible.
52533
52534         Make chdir-safer.c slightly safer.
52535         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52536         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52537
52538         Avoid compile failure on systems without ELOOP (like mingw).
52539         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52540         Reported by Bruno Haible.
52541
52542 2008-05-10  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52545         (is_utf8_encoding): Use a case-insensitive comparison.
52546         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52547         streq.
52548
52549 2008-05-10  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52552         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52553         * lib/unilbrk/ulc-common.h (iconv_string_length,
52554         iconv_string_keeping_offsets): Remove declarations.
52555         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52556         Don't include <iconv.h>, streq.h, xsize.h.
52557         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52558         conversion.
52559         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52560         <iconv.h>, streq.h, xsize.h.
52561         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52562         conversion.
52563         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52564         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52565         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52566         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52567
52568 2008-05-10  Bruno Haible  <bruno@clisp.org>
52569
52570         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52571         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52572
52573         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52574         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52575
52576         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52577         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52578
52579         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52580         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52581
52582         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52583         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52584
52585         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52586         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52587
52588         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52589         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52590
52591         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52592         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52593
52594 2008-05-10  Bruno Haible  <bruno@clisp.org>
52595
52596         Split up 'linebreak' module.
52597         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52598         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52599         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52600         modifications.
52601         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52602         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52603         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52604         lib/linebreak.c.
52605         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52606         lib/linebreak.c.
52607         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52608         lib/linebreak.c.
52609         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52610         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52611         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52612         lib/linebreak.c.
52613         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52614         lib/linebreak.c.
52615         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52616         lib/linebreak.c.
52617         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52618         lib/linebreak.c.
52619         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52620         lib/linebreak.c.
52621         * modules/unilbrk/base: New file.
52622         * modules/unilbrk/tables: New file.
52623         * modules/unilbrk/u8-possible-linebreaks: New file.
52624         * modules/unilbrk/u16-possible-linebreaks: New file.
52625         * modules/unilbrk/u32-possible-linebreaks: New file.
52626         * modules/unilbrk/ulc-common: New file.
52627         * modules/unilbrk/ulc-possible-linebreaks: New file.
52628         * modules/unilbrk/u8-width-linebreaks: New file.
52629         * modules/unilbrk/u16-width-linebreaks: New file.
52630         * modules/unilbrk/u32-width-linebreaks: New file.
52631         * modules/unilbrk/ulc-width-linebreaks: New file.
52632         * lib/linebreak.h: Remove file.
52633         * lib/linebreak.c: Remove file.
52634         * m4/linebreak.m4: Remove file.
52635         * modules/linebreak: Remove file.
52636         * NEWS: Mention the changes.
52637
52638 2008-05-09  Eric Blake  <ebb9@byu.net>
52639
52640         Add xmemdup0.
52641         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52642         implementation.
52643         * lib/xmalloc.c (xmemdup0): New C implementation.
52644
52645 2008-05-08  Bruno Haible  <bruno@clisp.org>
52646
52647         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52648
52649 2008-05-07  Eric Blake  <ebb9@byu.net>
52650
52651         Support cross-compilation of <wctype.h>.
52652         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52653         AC_CACHE_CHECK.
52654
52655 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52656
52657         * build-aux/vc-list-files: Add support for bzr.
52658
52659 2008-05-03  Jim Meyering  <meyering@redhat.com>
52660
52661         avoid failed assertion with tight malloc
52662         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52663
52664 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52665
52666         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52667         are needed from arpa/inet.h.
52668         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52669         Reported by Bruno Haible.
52670
52671 2008-05-02  Jim Meyering  <meyering@redhat.com>
52672
52673         avoid compilation error on FreeBSD 6
52674         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52675
52676 2008-05-01  Jim Meyering  <meyering@redhat.com>
52677
52678         useless-if-before-free: correct --help's exit status description
52679         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52680         for one or more matches, etc.  Reported by Bruno Haible.
52681
52682         vc-list-files: make the stand-alone gnulib test work
52683         * modules/vc-list-files-tests (configure.ac):
52684         Define and AC_SUBST abs_aux_dir.
52685         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52686         $(abs_top_srcdir) to each script and having each of them
52687         duplicate the work of setting PATH, set PATH here, using
52688         the new variable, abs_aux_dir instead.
52689         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52690         * tests/test-vc-list-files-git.sh: Likewise.
52691         Reported by Bruno Haible.
52692
52693 2008-05-01  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52696         reallocation. Rename 'done' to 'found_delimiter'.
52697
52698 2008-05-01  Jim Meyering  <meyering@redhat.com>
52699
52700         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52701         * build-aux/vc-list-files: Use `...`, not $(...).
52702
52703 2008-04-30  Jim Meyering  <meyering@redhat.com>
52704
52705         add tests for vc-list-files
52706         * modules/vc-list-files-tests: New module.
52707         * tests/test-vc-list-files-cvs.sh: New file.
52708         * tests/test-vc-list-files-git.sh: New file.
52709
52710         avoid a warning from gcc
52711         * lib/getndelim2.c (IF_LINT): Define.
52712         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52713
52714         vc-list-files: work properly with build-aux/cvsu, too
52715         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52716         to all cvs-based clauses.
52717
52718         vc-list-files: work properly in the CVS+awk case, too
52719         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52720
52721         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52722         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52723         take more than one file argument, so .  Add quotes, just in case $dir
52724         ever contains a shell meta-character.  Prompted by Soren Hansen in
52725         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52726
52727 2008-04-29  Eric Blake  <ebb9@byu.net>
52728
52729         Optimize getndelim2 to use block operations when possible.
52730         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52731         freadseek, and memchr2.
52732         * lib/getndelim2.c (getndelim2): Use them for block reads.
52733
52734 2008-04-29  Bruno Haible  <bruno@clisp.org>
52735
52736         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52737         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52738         * modules/inet_ntop (Depends-on): Add extensions.
52739         * modules/inet_pton (Depends-on): Likewise.
52740         Reported by Simon Josefsson.
52741
52742 2008-04-29  Jim Meyering  <meyering@redhat.com>
52743
52744         When the is more than one match in a block, match all of them.
52745         * build-aux/useless-if-before-free: Iterate through each block
52746         until there are no more matches.
52747
52748         Fix broken useless-if-before-free script.
52749         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52750         the expression to match cast of argument to free-like function.
52751
52752 2008-04-29  Eric Blake  <ebb9@byu.net>
52753
52754         Use new header.
52755         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52756
52757 2008-04-29  Jim Meyering  <meyering@redhat.com>
52758
52759         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52760         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52761         by gnulib to exist and to declare e.g., inet_ntop.
52762         Don't include "inet_ntop.h", now removed.
52763
52764         * m4/arpa_inet_h.m4: Remove trailing blanks.
52765
52766 2008-04-29  Eric Blake  <ebb9@byu.net>
52767
52768         Silence valgrind on safe reads beyond potential array bounds.
52769         * lib/rawmemchr.valgrind: New file.
52770         * lib/strchrnul.valgrind: Likewise.
52771         * modules/rawmemchr (Files): Distribute new file.
52772         * modules/strchrnul (Files): Likewise.
52773         Suggested by Bruno Haible.
52774
52775 2008-04-29  Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52778         (inet_ntop, inet_pton): Change portability warning's wording.
52779         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52780         Invoke gl_CHECK_NEXT_HEADERS.
52781         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52782         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52783         set ARPA_INET_H.
52784         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52785         * modules/arpa_inet (Description): No longer only for systems that
52786         lack it.
52787         (Depends-on): Add include_next.
52788         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52789         HAVE_ARPA_INET_H.
52790
52791 2008-04-29  Jim Meyering  <meyering@redhat.com>
52792
52793         * modules/mkdir (License): Re-license as LGPLv2+.
52794
52795 2008-04-29  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/rawmemchr (Maintainer): Set to Eric.
52798         * modules/strchrnul (Maintainer): Likewise.
52799
52800 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52801
52802         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52803         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52804
52805         * modules/arpa_inet (arpa/inet.h): Use them.
52806
52807 2008-04-28  Eric Blake  <ebb9@byu.net>
52808
52809         Test getndelim2.
52810         * modules/getndelim2-tests: New file.
52811         * tests/test-getndelim2.c: Likewise.
52812         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52813         stream.
52814         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52815
52816         * MODULES.html.sh: Document new module.
52817
52818 2008-04-20  Bruno Haible  <bruno@clisp.org>
52819
52820         * lib/c-stack.c (die): Use raise.
52821         * modules/c-stack (Depends-on): Add raise.
52822
52823 2008-04-28  Bruno Haible  <bruno@clisp.org>
52824
52825         Expect rpmatch to be declared.
52826         * lib/yesno.c (rpmatch): Remove declaration.
52827
52828         Declare rpmatch.
52829         * lib/stdlib.in.h (rpmatch): New declaration.
52830         * lib/rpmatch.c: Include <stdlib.h> first.
52831         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52832         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52834         HAVE_RPMATCH.
52835         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52836         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52837         (Include): Set to <stdlib.h>.
52838         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52839         HAVE_RPMATCH.
52840         * NEWS: Document the change.
52841
52842 2008-04-28  Bruno Haible  <bruno@clisp.org>
52843
52844         Change rpmatch to use nl_langinfo when appropriate.
52845         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52846         (N_): New macro.
52847         (localized_pattern): New function/macro.
52848         (try): Remove match, nomatch arguments. Copy the pattern into safe
52849         memory before caching it.
52850         (rpmatch): Use localized_pattern. Add translator comments.
52851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52852         Suggested by Eric Blake.
52853         * modules/rpmatch (Depends-on): Add stdbool.
52854
52855 2008-04-28  Eric Blake  <ebb9@byu.net>
52856
52857         Add rawmemchr module, matching glibc.
52858         * modules/string (Makefile.am): New indicator.
52859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52860         * lib/string.in.h (rawmemchr): Declare when appropriate.
52861         * modules/rawmemchr: New file.
52862         * m4/rawmemchr.m4: Likewise.
52863         * lib/rawmemchr.c: Likewise.
52864         * modules/rawmemchr-tests: Likewise.
52865         * tests/test-rawmemchr.c: Likewise.
52866         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52867         module.
52868         * modules/strchrnul (Depends-on): Add rawmemchr.
52869         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52870
52871         Whitespace cleanup.
52872         * tests/test-strchrnul.c: Reindent.
52873         * lib/strchrnul.c: Likewise.
52874
52875         Optimize and test strchrnul.
52876         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52877         * modules/strchrnul-tests: New file.
52878         * tests/test-strchrnul.c: Likewise.
52879
52880         Remove intprops dependency.
52881         * modules/memchr (Depends-on): Remove intprops.
52882         * modules/memrchr (Depends-on): Likewise.
52883         * modules/memchr2 (Depends-on): Likewise.
52884         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52885         * lib/memrchr.c (__memrchr): Likewise.
52886         * lib/memrchr2.c (memchr2): Likewise.
52887         Reported by Simon Josefsson.
52888
52889 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52890
52891         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52892         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52893
52894 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52895
52896         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52897
52898         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52899
52900         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52901
52902         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52903         declarations.
52904         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52905
52906         * m4/inet_pton.m4: Don't check for header files.
52907
52908         * m4/inet_ntop.m4: Don't check for header files.
52909
52910 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52911
52912         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52913         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52914         trigger for cygwin).
52915         Reported by Bruno Haible  <bruno@clisp.org>.
52916
52917 2008-04-28  Bruno Haible  <bruno@clisp.org>
52918
52919         * doc/posix-functions/strdup.texi: Mention mingw problem.
52920
52921 2008-04-27  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/stat-time-tests (Depends-on): Add sleep.
52924         * tests/test-stat-time.c (force_unlink): New function.
52925         (cleanup): Use it.
52926         (test_mtime): Remove the ctime related tests.
52927         (test_ctime): New function, containing the ctime related tests.
52928         (main): Call test_ctime, except on native Windows platforms.
52929
52930 2008-04-27  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/rpmatch.c (rpmatch): Add some comments.
52933         Reported by James Youngman <jay@gnu.org>.
52934
52935 2008-04-27  Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52938         quiet NaNs.
52939
52940 2008-04-27  Bruno Haible  <bruno@clisp.org>
52941
52942         Make test-yesno.sh work on mingw.
52943         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52944         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52945         (main): Set stdin to binary mode.
52946         * modules/yesno-tests (Depends-on): Add binary-io.
52947
52948 2008-04-27  Bruno Haible  <bruno@clisp.org>
52949
52950         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52951         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52952         argument that lie outside the IEEE 854 domain.
52953         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52954         (gl_ISFINITE): Use it.
52955         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52956
52957 2008-04-27  Bruno Haible  <bruno@clisp.org>
52958
52959         Allow local renaming in config.h.
52960         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52961
52962 2008-04-27  Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/memchr.c (__memchr): Change type of 'i'.
52965         * lib/memchr2.c (memchr2): Likewise.
52966
52967 2008-04-26  Eric Blake  <ebb9@byu.net>
52968         and Bruno Haible  <bruno@clisp.org>
52969
52970         Optimize and test memrchr.
52971         * modules/memrchr (Depends-on): Add intprops.
52972         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52973         * modules/memrchr-tests: New file.
52974         * tests/test-memrchr.c: New file.
52975
52976 2008-04-26  Bruno Haible  <bruno@clisp.org>
52977
52978         Add tentative support for DragonFly BSD.
52979         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52980         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52981         fp.
52982         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52983         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52984         * lib/fpurge.c (fpurge): Likewise.
52985         * lib/freadable.c (freaadable): Likewise.
52986         * lib/freadahead.c (freadahead): Likewise.
52987         * lib/freading.c (freading): Likewise.
52988         * lib/freadptr.c (freadptr): Likewise.
52989         * lib/freadseek.c (freadptrinc): Likewise.
52990         * lib/fseeko.c (fseeko): Likewise.
52991         * lib/fseterr.c (fseterr): Likewise.
52992         * lib/fwritable.c (fwritable): Likewise.
52993         * lib/fwriting.c (fwriting): Likewise.
52994
52995 2008-04-26  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/stdio-impl.h: New file.
52998         * lib/fbufmode.c: Include stdio-impl.h.
52999         (fbufmode): Use fp_, remove redundant #defines.
53000         * lib/fflush.c: Include stdio-impl.h.
53001         (clear_ungetc_buffer): Remove redundant #defines.
53002         * lib/fpurge.c: Include stdio-impl.h.
53003         (fpurge): Remove redundant #defines.
53004         * lib/freadable.c: Include stdio-impl.h.
53005         (freadable): Remove redundant #defines.
53006         * lib/freadahead.c: Include stdio-impl.h.
53007         (freadahead): Remove redundant #defines.
53008         * lib/freading.c: Include stdio-impl.h.
53009         (freading): Remove redundant #defines.
53010         * lib/freadptr.c: Include stdio-impl.h.
53011         (freadptr): Remove redundant #defines.
53012         * lib/freadseek.c: Include stdio-impl.h.
53013         (freadptrinc): Remove redundant #defines.
53014         * lib/fseeko.c: Include stdio-impl.h.
53015         (rpl_fseeko): Remove redundant #defines.
53016         * lib/fseterr.c: Include stdio-impl.h.
53017         (fseterr): Remove redundant #defines.
53018         * lib/fwritable.c: Include stdio-impl.h.
53019         (fwritable: Remove redundant #defines.
53020         * lib/fwriting.c: Include stdio-impl.h.
53021         (fwriting): Remove redundant #defines.
53022         * modules/fbufmode (Files): Add lib/stdio-impl.h.
53023         * modules/fflush (Files): Likewise.
53024         * modules/fpurge (Files): Likewise.
53025         * modules/freadable (Files): Likewise.
53026         * modules/freadahead (Files): Likewise.
53027         * modules/freading (Files): Likewise.
53028         * modules/freadptr (Files): Likewise.
53029         * modules/freadseek (Files): Likewise.
53030         * modules/fseeko (Files): Likewise.
53031         * modules/fseterr (Files): Likewise.
53032         * modules/fwritable (Files): Likewise.
53033         * modules/fwriting (Files): Likewise.
53034
53035 2008-04-26  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53038         restore_seek_optimization, update_fpos_cache): New functions, extracted
53039         from rpl_fflush.
53040         (rpl_fflush): Use them.
53041         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
53042         (gl_REPLACE_FFLUSH): Use it.
53043
53044 2008-04-26  Bruno Haible  <bruno@clisp.org>
53045
53046         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
53047         on Solaris.
53048         * tests/test-xstrtoimax.sh: Likewise.
53049         * tests/test-xstrtoumax.sh: Likewise.
53050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53051
53052 2008-04-26  Bruno Haible  <bruno@clisp.org>
53053
53054         * modules/memchr-tests: New file.
53055         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
53056
53057 2008-04-26  Eric Blake  <ebb9@byu.net>
53058             Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/memchr.c: Include intprops.h.
53061         (__memchr): Optimize parallel detection of matching bytes. Rename local
53062         variables. Add explanatory comments.
53063
53064 2008-04-26  Bruno Haible  <bruno@clisp.org>
53065
53066         Fix module 'memchr', broken since 2000-10-28.
53067         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
53068
53069 2008-04-26  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
53072         comments.
53073
53074 2008-04-25  Eric Blake  <ebb9@byu.net>
53075
53076         Use native fstatat on cygwin 1.7.0.
53077         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
53078         first.
53079
53080 2008-04-23  Eric Blake  <ebb9@byu.net>
53081
53082         Improve memchr2 performance.
53083         * lib/memchr2.c (memchr2): Further optimize parallel detection of
53084         NUL bytes.
53085         * modules/memchr2 (Depends-on): Use intprops.h.
53086
53087 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53088
53089         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
53090         an inline function instead of a CPP macro.  Patch by Ben Pfaff
53091         <blp@cs.stanford.edu>.
53092
53093 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53094
53095         * lib/arpa_inet.in.h: New file.
53096
53097         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
53098         (Makefile.am): Sed in substitute header file.
53099
53100         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
53101         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
53102
53103         * modules/inet_ntop (configure.ac): Use
53104         gl_ARPA_INET_MODULE_INDICATOR.
53105
53106         * modules/inet_pton (configure.ac): Use
53107         gl_ARPA_INET_MODULE_INDICATOR.
53108
53109 2008-04-22  Jim Meyering  <meyering@redhat.com>
53110
53111         * modules/verify (License): Re-license as LGPLv2+.
53112
53113 2008-04-22  Simon Josefsson  <simon@josefsson.org>
53114
53115         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
53116         parameter to void* as per POSIX standard (MinGW uses char*).
53117
53118 2008-04-21  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53121         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53122         Define to replacements if REPLACE_ISWCNTRL is 1.
53123         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
53124         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
53125         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
53126         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
53127         what it fixes.
53128         * doc/posix-functions/iswalpha.texi: Likewise.
53129         * doc/posix-functions/iswblank.texi: Likewise.
53130         * doc/posix-functions/iswcntrl.texi: Likewise.
53131         * doc/posix-functions/iswdigit.texi: Likewise.
53132         * doc/posix-functions/iswgraph.texi: Likewise.
53133         * doc/posix-functions/iswlower.texi: Likewise.
53134         * doc/posix-functions/iswprint.texi: Likewise.
53135         * doc/posix-functions/iswpunct.texi: Likewise.
53136         * doc/posix-functions/iswspace.texi: Likewise.
53137         * doc/posix-functions/iswupper.texi: Likewise.
53138         * doc/posix-functions/iswxdigit.texi: Likewise.
53139         Reported by Alain Guibert.
53140
53141 2008-04-21  Bruno Haible  <bruno@clisp.org>
53142
53143         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
53144         Patch by Alain Guibert.
53145
53146 2008-04-21  Bruno Haible  <bruno@clisp.org>
53147
53148         Fix test failures on mingw.
53149         * tests/test-xstrtol.c (print_no_progname): New function.
53150         (main): Install it in error_print_progname hook.
53151         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53152         * tests/test-xstrtoimax.sh: Likewise.
53153         * tests/test-xstrtoumax.sh: Likewise.
53154
53155 2008-04-21  Bruno Haible  <bruno@clisp.org>
53156
53157         Fix test failure on mingw.
53158         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53159
53160 2008-04-21  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53163         Actually assign a value.
53164
53165 2008-04-20  Bruno Haible  <bruno@clisp.org>
53166
53167         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53168         take 2.
53169         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53170         'canonicalize-lgpl' module is also used.
53171         * lib/canonicalize-lgpl.c: Undo last change.
53172         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53173
53174 2008-04-20  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53177         config.h. Provide _mkdir based fallback for mingw.
53178         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53179         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53180         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53181         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53182         rather than defining mkdir in config.h.
53183         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53184         (gl_SYS_STAT_H_DEFAULTS): New macro.
53185         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53186         HAVE_IO_H any more.
53187         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53188         HAVE_DECL_MKDIR and HAVE_IO_H.
53189
53190 2008-04-20  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/isapipe.c: Port to native Windows platforms.
53193
53194 2008-04-20  Bruno Haible  <bruno@clisp.org>
53195
53196         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53197
53198 2008-04-21  Eric Blake  <ebb9@byu.net>
53199
53200         Work around preprocessors that don't handle UINTMAX_MAX.
53201         * lib/memchr2.c (memchr2): Avoid embedded #if.
53202         Reported by Alain Guibert, fix suggested by Bruno Haible.
53203
53204 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53205
53206         * doc/posix-functions/strftime.texi (strftime): Explain better
53207         Windows incompatibility.  Suggested by Micah Cowan
53208         <micah@cowan.name>.
53209
53210 2008-04-20  Bruno Haible  <bruno@clisp.org>
53211
53212         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53213         unistr/u8-mblen.
53214
53215 2008-04-20  Bruno Haible  <bruno@clisp.org>
53216
53217         Fix test failure on platforms with non-GNU iconv.
53218         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53219         (U_TO_U8): Use it, rather than u16_to_u8.
53220         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53221         units at the end of the input string.
53222         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53223
53224 2008-04-20  Bruno Haible  <bruno@clisp.org>
53225
53226         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53227         when the resulting length is 0.
53228         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53229
53230 2008-04-20  Bruno Haible  <bruno@clisp.org>
53231
53232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53233         works.
53234         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53235
53236 2008-04-20  Bruno Haible  <bruno@clisp.org>
53237
53238         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53239         * modules/tsearch-tests (configure.ac): Test for initstate function.
53240
53241 2008-04-20  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53244         for nlink_t if missing.
53245         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53246
53247 2008-04-19  Bruno Haible  <bruno@clisp.org>
53248
53249         Work around snprintf bug on Linux libc5.
53250         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53252         gl_SNPRINTF_SIZE1.
53253         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53254         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53255         that test failed.
53256         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53257         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53258         * modules/snprintf (Files): Add m4/printf.m4.
53259         * modules/vsnprintf (Files): Likewise.
53260         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53261         * doc/posix-functions/vsnprintf.texi: Likewise.
53262
53263 2008-04-19  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53266         from 0.0058 to less than 10^-7.
53267
53268 2008-04-19  Bruno Haible  <bruno@clisp.org>
53269
53270         Fix rounding when a precision is given.
53271         * lib/vasnprintf.c (is_borderline): New function.
53272         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53273         9...9x.
53274         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53275         %e, %g.
53276         * tests/test-vasprintf-posix.c (test_function): Likewise.
53277         * tests/test-snprintf-posix.h (test_function): Likewise.
53278         * tests/test-sprintf-posix.h (test_function): Likewise.
53279         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53280         * tests/test-printf-posix.h (test_function): Likewise.
53281         * tests/test-printf-posix.output: Update.
53282         Reported by John Darrington <john@darrington.wattle.id.au> via
53283         Ben Pfaff <blp@cs.stanford.edu>.
53284
53285 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53286
53287         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53288         Suggested by Bruno Haible <bruno@clisp.org>.
53289
53290 2008-04-17  Bruno Haible  <bruno@clisp.org>
53291
53292         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53293         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53294         implementation.
53295         Patch by Bruce Merry <bmerry@gmail.com>.
53296
53297 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53298
53299         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53300         doesn't work under Windows.
53301
53302 2008-04-16  Bruno Haible  <bruno@clisp.org>
53303
53304         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53305         New macros.
53306         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53307         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53308         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53309         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53310         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53311         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53312         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53313         macros.
53314         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53315         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53316         Northern Sotho, Uighur.
53317
53318 2008-04-16  Bruno Haible  <bruno@clisp.org>
53319
53320         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53321         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53322         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53323         Reported by Daniel Bergström <daniel@octocode.com>.
53324
53325 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53326             Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53329         function.
53330         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53331         New functions, mostly extracted from gl_locale_name_default.
53332         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53333
53334 2008-04-16  Eric Blake  <ebb9@byu.net>
53335
53336         Adjust strtod detection to catch glibc 2.7 bug.
53337         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53338         Reported by John Gatewood Ham.
53339
53340 2008-04-16  Bruno Haible  <bruno@clisp.org>
53341
53342         Add tentative support for Linux libc5.
53343         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53344         * lib/fpurge.c (fpurge): Likewise.
53345         * lib/freadable.c (freadable): Likewise.
53346         * lib/freadahead.c (freadahead): Likewise.
53347         * lib/freading.c (freading): Likewise.
53348         * lib/freadptr.c (freadptr): Likewise.
53349         * lib/freadseek.c (freadptrinc): Likewise.
53350         * lib/fseeko.c (rpl_fseeko): Likewise.
53351         * lib/fseterr.c (fseterr): Likewise.
53352         * lib/fwritable.c (fwritable): Likewise.
53353         * lib/fwriting.c (fwriting): Likewise.
53354         Reported by Alain Guibert <alguibert+bts@free.fr>.
53355
53356 2008-04-15  Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/mathl (configure.ac): Define module indicator.
53359
53360 2008-04-15  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/logl.c (logl): Remove unused variables.
53363
53364 2008-04-15  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53367         fails.
53368
53369 2008-04-15  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/trim.c (trim2): Fix argument of isspace() macro.
53372
53373 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53374
53375         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53376         to 0.
53377         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53378
53379 2008-04-14  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53382         AC_LANG_PROGRAM argument.
53383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53384         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53386         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53387         * m4/math_h.m4 (gl_MATH_H): Likewise.
53388         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53390         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53391         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53392         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53393         * m4/regex.m4 (gl_REGEX): Likewise.
53394         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53395         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53397         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53398         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53399         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53402
53403 2008-04-14  Jim Meyering  <meyering@redhat.com>
53404
53405         test-strtod: fix typos: s/abs/fabs/
53406         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53407
53408 2008-04-13  Bruno Haible  <bruno@clisp.org>
53409
53410         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53411         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53412         module is also used and while not building the reloc-wrapper.
53413
53414 2008-04-13  Bruno Haible  <bruno@clisp.org>
53415
53416         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53417
53418 2008-04-13  Bruno Haible  <bruno@clisp.org>
53419
53420         Fix AIX compilation failure introduced on 2008-04-02.
53421         * tests/test-frexp.c (exp): Undefine before redefining.
53422         * tests/test-frexpl.c (exp): Likewise.
53423
53424 2008-04-13  Bruno Haible  <bruno@clisp.org>
53425
53426         Work around a HP-UX stdio bug.
53427         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53428         * tests/test-ftello.c (main): Likewise.
53429         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53430         * doc/posix-functions/ftello.texi: Likewise.
53431
53432 2008-04-13  Bruno Haible  <bruno@clisp.org>
53433
53434         Make test-signbit pass on HP-UX/hppa.
53435         * tests/test-signbit.c (minus_zerol): New variable.
53436         (test_signbitl): Use it.
53437
53438 2008-04-13  Bruno Haible  <bruno@clisp.org>
53439
53440         Make truncl work on OSF/1 4.0.
53441         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53442         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53443         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53445         HAVE_DECL_TRUNCL.
53446         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53447         HAVE_DECL_TRUNCL.
53448         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53449
53450 2008-04-13  Bruno Haible  <bruno@clisp.org>
53451
53452         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53453
53454 2008-04-13  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53457         expression, so as to avoid HP-UX 11 cc compiler bug.
53458
53459 2008-04-13  Bruno Haible  <bruno@clisp.org>
53460
53461         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53462
53463 2008-04-13  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/git-merge-changelog.c: Remove empty declaration outside of
53466         functions.
53467
53468 2008-04-13  Bruno Haible  <bruno@clisp.org>
53469
53470         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53471
53472 2008-04-13  Bruno Haible  <bruno@clisp.org>
53473
53474         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53475         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53477         also if it exists but lacks definitions of the SHUT_* macros.
53478         * modules/sys_socket (Description): Update.
53479         Reported by Elbert Pol <e.pol@chello.nl>.
53480
53481 2008-04-13  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/localcharset.c (OS2): Don't redefine if already defined.
53484         Reported by Elbert Pol <e.pol@chello.nl>.
53485
53486 2008-04-13  Bruno Haible  <bruno@clisp.org>
53487
53488         * lib/binary-io.h [__EMX__]: Include <io.h>.
53489         Reported by Elbert Pol <e.pol@chello.nl>.
53490
53491 2008-04-12  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/fpucw.h: Enable the definitions also for x86_64.
53494         Needed for NetBSD/x86_64.
53495         Reported by Thomas Klausner <tk@giga.or.at>.
53496
53497 2008-04-12  Bruno Haible  <bruno@clisp.org>
53498
53499         * tests/test-strtod.c: Include isnand.h.
53500         (main): Use isnand instead of isnan.
53501         Reported by Jim Meyering.
53502
53503 2008-04-12  Bruno Haible  <bruno@clisp.org>
53504
53505         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53506         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53507
53508 2008-04-12  Jim Meyering  <meyering@redhat.com>
53509
53510         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53511
53512 2008-04-12  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53515         Reported by Elbert Pol <e.pol@chello.nl>.
53516
53517 2008-04-12  Eric Blake  <ebb9@byu.net>
53518
53519         Work around Solaris 10 math.h bug.
53520         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53521         (gl_MATH_H_DEFAULTS): Set up default.
53522         * modules/math (Makefile.am): Replace new indicators.
53523         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53524         * tests/test-math.c (main): Test this.
53525         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53526         * doc/posix-headers/math.texi (math.h): Mention bug.
53527         Reported by Nelson H. F. Beebe and Jim Meyering.
53528
53529 2008-04-11  Bruno Haible  <bruno@clisp.org>
53530
53531         Adapt to future versions of Apple GCC.
53532         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53533         Reported by Peter O'Gorman <peter@pogma.com>.
53534
53535 2008-04-11  Bruno Haible  <bruno@clisp.org>
53536
53537         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53538
53539 2008-04-11  Bruno Haible  <bruno@clisp.org>
53540
53541         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53542
53543         * modules/getaddrinfo-tests (Makefile.am): Define
53544         test_getaddrinfo_LDADD.
53545
53546 2008-04-11  Bruno Haible  <bruno@clisp.org>
53547
53548         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53549         (init): Fix syntax error.
53550         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53551         is declared.
53552
53553 2008-04-11  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53556         * modules/glob (Depends-on): Add stdbool.
53557
53558 2008-04-11  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/trim.c: Include <string.h>.
53561
53562 2008-04-11  Eric Blake  <ebb9@byu.net>
53563
53564         Avoid compile failure on OS/2.
53565         * lib/regex_internal.h (internal_function): Disable optimization
53566         on OS/2 (__EMX__), where it caused compiler error.
53567         Reported by Elbert Pol.
53568
53569 2008-04-11  Bruno Haible  <bruno@clisp.org>
53570
53571         Flush the standard error stream before aborting. Needed on mingw.
53572         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53573         * tests/test-array_list.c (ASSERT): Likewise.
53574         * tests/test-array_oset.c (ASSERT): Likewise.
53575         * tests/test-avltree_list.c (ASSERT): Likewise.
53576         * tests/test-avltree_oset.c (ASSERT): Likewise.
53577         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53578         * tests/test-binary-io.c (ASSERT): Likewise.
53579         * tests/test-byteswap.c (ASSERT): Likewise.
53580         * tests/test-c-ctype.c (ASSERT): Likewise.
53581         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53582         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53583         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53584         * tests/test-c-strstr.c (ASSERT): Likewise.
53585         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53586         * tests/test-canonicalize.c (ASSERT): Likewise.
53587         * tests/test-carray_list.c (ASSERT): Likewise.
53588         * tests/test-ceilf1.c (ASSERT): Likewise.
53589         * tests/test-ceilf2.c (ASSERT): Likewise.
53590         * tests/test-ceill.c (ASSERT): Likewise.
53591         * tests/test-count-one-bits.c (ASSERT): Likewise.
53592         * tests/test-fbufmode.c (ASSERT): Likewise.
53593         * tests/test-fflush2.c (ASSERT): Likewise.
53594         * tests/test-floorf1.c (ASSERT): Likewise.
53595         * tests/test-floorf2.c (ASSERT): Likewise.
53596         * tests/test-floorl.c (ASSERT): Likewise.
53597         * tests/test-fopen.c (ASSERT): Likewise.
53598         * tests/test-fpending.c (ASSERT): Likewise.
53599         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53600         * tests/test-fpurge.c (ASSERT): Likewise.
53601         * tests/test-freadable.c (ASSERT): Likewise.
53602         * tests/test-freadahead.c (ASSERT): Likewise.
53603         * tests/test-freading.c (ASSERT): Likewise.
53604         * tests/test-freadptr.c (ASSERT): Likewise.
53605         * tests/test-freadptr2.c (ASSERT): Likewise.
53606         * tests/test-freadseek.c (ASSERT): Likewise.
53607         * tests/test-freopen.c (ASSERT): Likewise.
53608         * tests/test-frexp.c (ASSERT): Likewise.
53609         * tests/test-frexpl.c (ASSERT): Likewise.
53610         * tests/test-fseek.c (ASSERT): Likewise.
53611         * tests/test-fseeko.c (ASSERT): Likewise.
53612         * tests/test-fstrcmp.c (ASSERT): Likewise.
53613         * tests/test-ftell.c (ASSERT): Likewise.
53614         * tests/test-ftello.c (ASSERT): Likewise.
53615         * tests/test-func.c (ASSERT): Likewise.
53616         * tests/test-fwritable.c (ASSERT): Likewise.
53617         * tests/test-fwriting.c (ASSERT): Likewise.
53618         * tests/test-getdelim.c (ASSERT): Likewise.
53619         * tests/test-getline.c (ASSERT): Likewise.
53620         * tests/test-i-ring.c (ASSERT): Likewise.
53621         * tests/test-iconv-utf.c (ASSERT): Likewise.
53622         * tests/test-iconv.c (ASSERT): Likewise.
53623         * tests/test-isfinite.c (ASSERT): Likewise.
53624         * tests/test-isnand.c (ASSERT): Likewise.
53625         * tests/test-isnanf.c (ASSERT): Likewise.
53626         * tests/test-isnanl.h (ASSERT): Likewise.
53627         * tests/test-ldexpl.c (ASSERT): Likewise.
53628         * tests/test-linked_list.c (ASSERT): Likewise.
53629         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53630         * tests/test-localename.c (ASSERT): Likewise.
53631         * tests/test-lseek.c (ASSERT): Likewise.
53632         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53633         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53634         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53635         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53636         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53637         * tests/test-mbschr.c (ASSERT): Likewise.
53638         * tests/test-mbscspn.c (ASSERT): Likewise.
53639         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53640         * tests/test-mbspbrk.c (ASSERT): Likewise.
53641         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53642         * tests/test-mbsrchr.c (ASSERT): Likewise.
53643         * tests/test-mbsspn.c (ASSERT): Likewise.
53644         * tests/test-mbsstr1.c (ASSERT): Likewise.
53645         * tests/test-mbsstr2.c (ASSERT): Likewise.
53646         * tests/test-mbsstr3.c (ASSERT): Likewise.
53647         * tests/test-memchr2.c (ASSERT): Likewise.
53648         * tests/test-memmem.c (ASSERT): Likewise.
53649         * tests/test-open.c (ASSERT): Likewise.
53650         * tests/test-printf-frexp.c (ASSERT): Likewise.
53651         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53652         * tests/test-printf-posix.c (ASSERT): Likewise.
53653         * tests/test-quotearg.c (ASSERT): Likewise.
53654         * tests/test-rbtree_list.c (ASSERT): Likewise.
53655         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53656         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53657         * tests/test-round1.c (ASSERT): Likewise.
53658         * tests/test-roundf1.c (ASSERT): Likewise.
53659         * tests/test-roundl.c (ASSERT): Likewise.
53660         * tests/test-signbit.c (ASSERT): Likewise.
53661         * tests/test-sleep.c (ASSERT): Likewise.
53662         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53663         * tests/test-snprintf.c (ASSERT): Likewise.
53664         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53665         * tests/test-stat-time.c (ASSERT): Likewise.
53666         * tests/test-strcasestr.c (ASSERT): Likewise.
53667         * tests/test-strerror.c (ASSERT): Likewise.
53668         * tests/test-striconv.c (ASSERT): Likewise.
53669         * tests/test-striconveh.c (ASSERT): Likewise.
53670         * tests/test-striconveha.c (ASSERT): Likewise.
53671         * tests/test-strsignal.c (ASSERT): Likewise.
53672         * tests/test-strstr.c (ASSERT): Likewise.
53673         * tests/test-strtod.c (ASSERT): Likewise.
53674         * tests/test-trunc1.c (ASSERT): Likewise.
53675         * tests/test-trunc2.c (ASSERT): Likewise.
53676         * tests/test-truncf1.c (ASSERT): Likewise.
53677         * tests/test-truncf2.c (ASSERT): Likewise.
53678         * tests/test-truncl.c (ASSERT): Likewise.
53679         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53680         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53681         * tests/test-vasnprintf.c (ASSERT): Likewise.
53682         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53683         * tests/test-vasprintf.c (ASSERT): Likewise.
53684         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53685         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53686         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53687         * tests/test-vsnprintf.c (ASSERT): Likewise.
53688         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53689         * tests/test-wcwidth.c (ASSERT): Likewise.
53690         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53691         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53692         * tests/test-xvasprintf.c (ASSERT): Likewise.
53693         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53694         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53695         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53696         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53697         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53698         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53699         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53700         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53701         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53702         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53703         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53704         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53705         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53706         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53707         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53708         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53709         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53710         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53711         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53712         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53713         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53714         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53715         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53716         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53717         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53718         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53719         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53720         * tests/unictype/test-combining.c (ASSERT): Likewise.
53721         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53722         * tests/unictype/test-digit.c (ASSERT): Likewise.
53723         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53724         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53725         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53726         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53727         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53728         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53729         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53730         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53731         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53732         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53733         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53734         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53735         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53736         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53737         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53738         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53739         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53740         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53741         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53742         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53743         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53744         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53745         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53746         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53747         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53748         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53749         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53750         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53751         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53752         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53753         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53754         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53755         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53756         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53757         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53758         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53759         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53760         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53761         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53762         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53763         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53764         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53765         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53766         Reported by Eric Blake.
53767
53768 2008-04-11  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/wchar.in.h: Tweak comment.
53771
53772 2008-04-11  Bruno Haible  <bruno@clisp.org>
53773
53774         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53775         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53776         gl_COMMON.
53777         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53778
53779 2008-04-11  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53782
53783 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53784
53785         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53786         of attempting to use non-existing /dev/*random.  Based on patch
53787         from Adam Strzelecki <ono@java.pl> in
53788         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53789
53790 2008-04-08  Bruno Haible  <bruno@clisp.org>
53791
53792         Add tentative support for emx+gcc.
53793         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53794         * lib/fpurge.c (fpurge): Likewise.
53795         * lib/freadable.c (freadable): Likewise.
53796         * lib/freadahead.c (freadahead): Likewise.
53797         * lib/freading.c (freading): Likewise.
53798         * lib/freadptr.c (freadptr): Likewise.
53799         * lib/freadseek.c (freadptrinc): Likewise.
53800         * lib/fseeko.c (rpl_fseeko): Likewise.
53801         * lib/fseterr.c (fseterr): Likewise.
53802         * lib/fwritable.c (fwritable): Likewise.
53803         * lib/fwriting.c (fwriting): Likewise.
53804         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53805
53806 2008-04-09  Eric Blake  <ebb9@byu.net>
53807
53808         Avoid some autoconf warnings.
53809         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53810         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53811         * m4/afs.m4 (gl_AFS): Likewise.
53812         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53813         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53815         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53816         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53817         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53818         (AC_CHECK_DECLS_ONCE): Likewise.
53819         Rename file...
53820         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53821         gnulib-tool requires autoconf 2.59 or better.
53822         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53823
53824 2008-04-08  Eric Blake  <ebb9@byu.net>
53825
53826         Use 'git describe --match' if present (added in git 1.5.5).
53827         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53828         if possible.
53829
53830 2008-04-08  Bruno Haible  <bruno@clisp.org>
53831
53832         Add tentative support for OpenServer.
53833         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53834         _ptr, _cnt.
53835         * lib/fpurge.c (fpurge): Likewise.
53836         * lib/freadable.c (freadable): Likewise.
53837         * lib/freadahead.c (freadahead): Likewise.
53838         * lib/freading.c (freading): Likewise.
53839         * lib/freadptr.c (freadptr): Likewise.
53840         * lib/freadseek.c (freadptrinc): Likewise.
53841         * lib/fseeko.c (rpl_fseeko): Likewise.
53842         * lib/fseterr.c (fseterr): Likewise.
53843         * lib/fwritable.c (fwritable): Likewise.
53844         * lib/fwriting.c (fwriting): Likewise.
53845         Reported by Roger Cornelius <rac@tenzing.org> and
53846         Brian K. White <brian@aljex.com>.
53847
53848 2008-04-06  Jim Meyering  <meyering@redhat.com>
53849
53850         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53851
53852 2008-04-06  Bruno Haible  <bruno@clisp.org>
53853
53854         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53855         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53856         * tests/test-printf-posix.sh: Likewise.
53857         * tests/test-vfprintf-posix.sh: Likewise.
53858         * tests/test-vprintf-posix.sh: Likewise.
53859         * tests/test-xprintf-posix.sh: Likewise.
53860
53861 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53862
53863         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53864         hide error from 'ls', needed on OS/2.
53865         Report by Elbert Pol <elbert.pol@gmail.com>.
53866
53867 2008-04-04  Eric Blake  <ebb9@byu.net>
53868
53869         Make test-fseeko.c failures meaningful.
53870         * tests/test-fseeko.c: Print line number on failure.
53871         * tests/test-fseek.c: Likewise.
53872         Reported by Nelson H. F. Beebe.
53873
53874         Improve strtod bug detection check.
53875         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53876         required for Solaris 10.
53877         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53878
53879 2008-04-04  Bruno Haible  <bruno@clisp.org>
53880
53881         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53882         by m4/setenv.m4.
53883
53884 2008-04-03  Eric Blake  <ebb9@byu.net>
53885
53886         Ensure sane .version contents.
53887         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53888         version string.
53889         * build-aux/git-version-gen: Improve documentation.
53890
53891         Make GNU make output nicer.
53892         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53893         MAKECMDGOALS to enforce message for all command line targets.  Set
53894         srcdir for use in maint.mk.
53895
53896         Another maintainer tweak.
53897         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53898         a target that regenerates version.
53899
53900 2008-04-03  Jim Meyering  <meyering@redhat.com>
53901
53902         vc-list-files: don't cause coreutils "make po-check" failure
53903         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53904
53905 2008-04-03  Eric Blake  <ebb9@byu.net>
53906
53907         Allow VPATH usage of vc-list-files.
53908         * build-aux/vc-list-files (scriptversion): Add timestamp.
53909         (options): Add --help, --version, -C.
53910         (CVS): Support installed cvsu.
53911
53912 2008-04-02  Bruno Haible  <bruno@clisp.org>
53913
53914         Avoid some "statement with no effect" warnings from gcc.
53915         * tests/test-wctype.c (main): Explicitly ignore unused values.
53916         Reported by Jim Meyering.
53917
53918 2008-04-02  Jim Meyering  <meyering@redhat.com>
53919
53920         Avoid some warnings from "gcc -Wshadow".
53921         * tests/test-frexp.c (exp): Define to a different identifier.
53922         * tests/test-frexpl.c (exp): Likewise.
53923
53924 2008-04-03  Jim Meyering  <meyering@redhat.com>
53925
53926         bootstrap: remove dangling *.[ch] symlinks from lib
53927         * build-aux/bootstrap [dangling symlink removal]: Move find's
53928         -depth option to precede all others, to avoid a warning.
53929         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53930
53931 2008-04-02  Bruno Haible  <bruno@clisp.org>
53932
53933         Avoid some warnings from "gcc -Wshadow".
53934         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53935         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53936         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53937         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53938         Reported by Jim Meyering.
53939
53940 2008-04-01  Bruno Haible  <bruno@clisp.org>
53941
53942         Fix test to work on IRIX 6.5 with cc.
53943         * tests/test-math.c (numeric_equal): New function.
53944         (main): Use it.
53945
53946 2008-04-01  Bruno Haible  <bruno@clisp.org>
53947
53948         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53949
53950 2008-04-01  Bruno Haible  <bruno@clisp.org>
53951
53952         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53953         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53954         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53955         (Depends-on): Remove math.
53956
53957         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53958         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53959         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53960         (Depends-on): Remove math.
53961
53962         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53964         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53965         (Depends-on): Remove math.
53966         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53967         (Depends-on): Remove math.
53968
53969         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53970         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53971         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53972         (Depends-on): Remove math.
53973         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53974         (Depends-on): Remove math.
53975
53976         * tests/test-round1.c: Include nan.h.
53977         (main): Use NaNd instead of NAN.
53978         * modules/round-tests (Files): Add tests/nan.h.
53979
53980         * tests/test-trunc1.c: Include nan.h.
53981         (main): Use NaNd instead of NAN.
53982         * modules/trunc-tests (Files): Add tests/nan.h.
53983
53984         * tests/test-roundf1.c: Include nan.h.
53985         (main): Use NaNf instead of NAN.
53986         * modules/roundf-tests (Files): Add tests/nan.h.
53987
53988         * tests/test-truncf1.c: Include nan.h.
53989         (main): Use NaNf instead of NAN.
53990         * modules/truncf-tests (Files): Add tests/nan.h.
53991
53992         * tests/test-ceilf1.c: Include nan.h.
53993         (main): Use NaNf instead of NAN.
53994         * modules/ceilf-tests (Files): Add tests/nan.h.
53995
53996         * tests/test-floorf1.c: Include nan.h.
53997         (main): Use NaNf instead of NAN.
53998         * modules/floorf-tests (Files): Add tests/nan.h.
53999
54000         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
54001         (main): Use NaNf instead of NAN.
54002         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
54003
54004         * tests/test-isnand.c: Include nan.h instead of <math.h>.
54005         (main): Use NaNd instead of NAN.
54006         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
54007
54008         * tests/test-frexp.c: Include nan.h.
54009         (main): Use NaNd instead of NAN.
54010         * modules/frexp-tests (Files): Add tests/nan.h.
54011
54012         * lib/isnan.c: Don't include <math.h>.
54013         (FUNC): Don't use NAN macro.
54014         * modules/isnand-nolibm (Depends-on): Remove math.
54015         * modules/isnanf-nolibm (Depends-on): Remove math.
54016         * modules/isnanl (Depends-on): Remove math.
54017         * modules/isnanl-nolibm (Depends-on): Remove math.
54018
54019         * tests/nan.h: New file.
54020
54021 2008-04-01  Eric Blake  <ebb9@byu.net>
54022
54023         Fix typos.
54024         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
54025         values to be the right type.
54026
54027         For now, cater to gnulib strtod inaccuracies.
54028         * tests/test-strtod.c (main): Allow 1-ulp error on expected
54029         fractional results.  While not as nice from a QoI perspective, it
54030         is a quicker patch than correctly implementing decimal to binary
54031         rounding.
54032
54033 2008-03-31  Eric Blake  <ebb9@byu.net>
54034
54035         Guarantee a definition of NAN.
54036         * lib/math.in.h (NAN): Define if missing.
54037         * tests/test-math.c (main): Test it.
54038         * doc/posix-headers/math.texi (math.h): Document this.
54039         * lib/isnan.c (rpl_isnand): Use it.
54040         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
54041         * tests/test-floorf1.c (NaN): Likewise.
54042         * tests/test-frexp.c (NaN): Likewise.
54043         * tests/test-isnand.c (NaN): Likewise.
54044         * tests/test-isnanf.c (NaN): Likewise.
54045         * tests/test-round1.c (NaN): Likewise.
54046         * tests/test-roundf1.c (NaN): Likewise.
54047         * tests/test-snprintf-posix.h (NaN): Likewise.
54048         * tests/test-sprintf-posix.h (NaN): Likewise.
54049         * tests/test-trunc1.c (NaN): Likewise.
54050         * tests/test-truncf1.c (NaN): Likewise.
54051         * tests/test-vasnprintf-posix.c (NaN): Likewise.
54052         * tests/test-vasprintf-posix.c (NaN): Likewise.
54053         * modules/isnand-nolibm (Depends-on): Add math.
54054         * modules/isnanf-nolibm (Depends-on): Likewise.
54055         * modules/isnanl (Depends-on): Likewise.
54056         * modules/isnanl-nolibm (Depends-on): Likewise.
54057         * modules/snprintf-posix-tests (Depends-on): Likewise.
54058         * modules/sprintf-posix-tests (Depends-on): Likewise.
54059         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
54060         * modules/vsprintf-posix-tests (Depends-on): Likewise.
54061         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
54062         * modules/vasprintf-posix-tests (Depends-on): Likewise.
54063
54064 2008-03-31  Bruno Haible  <bruno@clisp.org>
54065
54066         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
54067         * doc/posix-functions/strtod.texi: Likewise.
54068
54069 2008-03-31  Bruno Haible  <bruno@clisp.org>
54070
54071         * tests/test-strtod.c (main): Don't use C99 syntax.
54072
54073 2008-03-31  Bruno Haible  <bruno@clisp.org>
54074
54075         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
54076         Reported by Eric Blake.
54077
54078 2008-03-31  Jim Meyering  <meyering@redhat.com>
54079
54080         Don't compare actual signbit return values.
54081         * tests/test-strtod.c (main): Rather, compare only their
54082         zero/non-zero nature.
54083
54084 2008-03-31  Eric Blake  <ebb9@byu.net>
54085
54086         More strtod documentation.
54087         * doc/posix-functions/strtod.texi (strtod): Interpret more test
54088         failures as distinct bugs.
54089
54090 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54091
54092         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
54093         Problem reported by Erik Benada in
54094         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
54095
54096 2008-03-30  Bruno Haible  <bruno@clisp.org>
54097
54098         * tests/test-strtod.c: Add comments about which assertion fails on which
54099         platform.
54100         * doc/posix-functions/strtod.texi: Add info about many more platforms.
54101
54102 2008-03-30  Eric Blake  <ebb9@byu.net>
54103
54104         Test signbit behavior on zeros.
54105         * tests/test-signbit.c (test_signbitf): Add tests for zero.
54106         (test_signbitd, test_signbitl): Likewise.
54107
54108         More strtod touchups.
54109         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
54110         sign of negative underflow, for now.  Use .5, not .1.
54111         * doc/posix-functions/strtod.texi (strtod): Mention these
54112         limitations.
54113         Reported by Jim Meyering.
54114
54115 2008-03-30  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
54118         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
54119
54120 2008-03-30  Bruno Haible  <bruno@clisp.org>
54121
54122         Avoid failure when attempting to return empty iconv results on some
54123         platforms.
54124         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
54125         allocation, don't report ENOMEM when the resulting string is empty.
54126
54127 2008-03-30  Bruno Haible  <bruno@clisp.org>
54128
54129         Fix buffer overrun.
54130         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
54131         Don't consider the width for tmp_length. Check count against tmp_length
54132         before doing the padding. Ensure enough allocation during padding.
54133
54134 2008-03-30  Eric Blake  <ebb9@byu.net>
54135
54136         strtod touchups.
54137         * lib/strtod.c (strtod): Avoid compiler warnings.
54138         Reported by Jim Meyering.
54139
54140 2008-03-30  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
54143         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
54144         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
54145         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
54146         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
54147         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
54148         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54149         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54150
54151         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54152         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54153         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54154         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54155         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54156         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54157         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54158         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54159
54160         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54161         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54162         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54163         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54164         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54165         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54166         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54167         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54168
54169         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54170         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54171
54172         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54173         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54174
54175         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54176         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54177
54178         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54180         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54181
54182         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54184         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54185
54186         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54187         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54188         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54189
54190         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54192         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54193
54194         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54195         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54197         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54198         (Depends-on): Add EOVERFLOW.
54199         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54200         (Depends-on): Add EOVERFLOW.
54201         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54202         (Depends-on): Add EOVERFLOW.
54203         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54204         (Depends-on): Add EOVERFLOW.
54205         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54206         (Depends-on): Add EOVERFLOW.
54207         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54208         (Depends-on): Add EOVERFLOW.
54209         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54210         (Depends-on): Add EOVERFLOW.
54211         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54212         (Depends-on): Add EOVERFLOW.
54213
54214         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54216         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54217
54218         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54220         * modules/snprintf (Depends-on): Add EOVERFLOW.
54221
54222         * lib/poll.c (EOVERFLOW): Remove fallback.
54223         * modules/poll (Depends-on): Add EOVERFLOW.
54224
54225         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54226         * modules/getugroups (Depends-on): Add EOVERFLOW.
54227
54228         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54229         * modules/getdelim (Depends-on): Add EOVERFLOW.
54230
54231         * lib/ftell.c (EOVERFLOW): Remove fallback.
54232         * modules/ftell (Depends-on): Add EOVERFLOW.
54233
54234         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54235         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54236         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54237
54238         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54239
54240         * modules/EOVERFLOW-tests: New file.
54241         * tests/test-EOVERFLOW.c: New file.
54242
54243         * modules/EOVERFLOW: New file.
54244         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54245
54246 2008-03-30  Bruno Haible  <bruno@clisp.org>
54247
54248         Fix bug introduced on 2007-06-10.
54249         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54250         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54251
54252 2008-03-30  Bruno Haible  <bruno@clisp.org>
54253
54254         Improve freadseek's efficiency after ungetc.
54255         * lib/freadseek.c: Include freadahead.h.
54256         (freadptrinc): New function, extracted from freadseek.
54257         (freadseek): Use it in a loop. Use freadahead to determine the number
54258         of loop iterations.
54259         * modules/freadseek (Depends-on): Add freadahead.
54260         (configure.ac): Require AC_C_INLINE.
54261
54262 2008-03-30  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/freadseek.c (freadseek): Don't ignore the return value of
54265         freadptr.
54266
54267 2008-03-29  Eric Blake  <ebb9@byu.net>
54268
54269         Add hex float support.
54270         * modules/strtod (Depends-on): Add c-ctype.
54271         (Link): Mention POW_LIB.
54272         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54273         whitespace between 'e' and exponent.
54274         * tests/test-strtod.c (main): Enable hex float tests.
54275         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54276         now provides.
54277
54278         Document various strtod bugs, with some fixes.
54279         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54280         "-0x", "inf", "nan", and hex constants.
54281         * doc/posix-functions/atof.texi (atof): Likewise.
54282         * modules/stdlib (Makefile.am): Support strtod.
54283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54284         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54285         detect additional strtod bugs.
54286         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54287         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54288         bool where appropriate.  Parse 'inf' and 'nan'.
54289         * tests/test-strtod.c: New file.
54290         * modules/strtod (Depends-on): Add stdbool, stdlib.
54291         (configure.ac): Turn on module indicator.
54292         * modules/strtod-tests: New module.
54293
54294 2008-03-29  Eric Blake  <ebb9@byu.net>
54295
54296         Fix ftell on mingw.
54297         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54298         * modules/ftell-tests (Depends-on): Add binary-io.
54299         * modules/ftello-tests (Depends-on): Likewise.
54300         * tests/test-ftell.c (main): Enhance test to cover behavior after
54301         ungetc.  Enforce binary mode.
54302         * tests/test-ftello.c (main): Likewise.
54303
54304         Pass test-freadseek on cygwin.
54305         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54306         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54307         ungetc buffer.
54308
54309         * tests/test-fflush2.c (main): Fix typo.
54310
54311 2008-03-29  Bruno Haible  <bruno@clisp.org>
54312
54313         * tests/test-fflush2.c (main): Temporarily disable the contents of
54314         this test.
54315         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54316         Reported by Eric Blake.
54317
54318 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54319
54320         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54321         (GC_SHA224_DIGEST_SIZE): Add.
54322
54323         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54324         (gc_hash_digest_length): Likewise.
54325         (gc_hash_buffer): Likewise.
54326
54327 2008-03-25  Bruno Haible  <bruno@clisp.org>
54328
54329         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54330         detail which gettext release to use.
54331         Reported by Simon Josefsson.
54332
54333 2008-03-26  Jim Meyering  <meyering@redhat.com>
54334
54335         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54336         * modules/gnumakefile (clean-GNUmakefile): Also, use
54337         test ... && ... || : syntax rather than if-then ... fi.
54338
54339         gnumakefile: Don't double-quote-expand $(VPATH) value.
54340         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54341
54342 2008-03-24  Eric Blake  <ebb9@byu.net>
54343
54344         Alter GNUmakefile to install into top directory.
54345         * modules/maintainer-makefile: Split, and add dependency...
54346         * modules/gnumakefile: to this new module.
54347         * build-aux/GNUmakefile: Move...
54348         * top/GNUmakefile: ...here.
54349         * build-aux/maint.mk: Move...
54350         * top/maint.mk: ...here.
54351         * MODULES.html.sh (Support for maintaining...): Document new
54352         module.
54353
54354 2008-03-23  Bruno Haible  <bruno@clisp.org>
54355
54356         * gnulib-tool: New options --vc-files, --no-vc-files.
54357         (func_usage): Document them.
54358         (vc_files): New variable.
54359         (func_import): Consider vc_files.
54360         (func_create_testdir): Set vc_files to empty.
54361         Suggested by Jim Meyering and Karl Berry.
54362
54363 2008-03-23  Bruno Haible  <bruno@clisp.org>
54364
54365         Fix regex compilation error on HP-UX 11.
54366         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54367         * modules/regex (Files): Add m4/mbstate_t.m4.
54368         Reported by Ton Voon <ton.voon@altinity.com>.
54369
54370 2008-03-23  Bruno Haible  <bruno@clisp.org>
54371
54372         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54373
54374 2008-03-23  Eric Blake  <ebb9@byu.net>
54375             Bruno Haible  <bruno@clisp.org>
54376
54377         Install files from top/ in the destination directory.
54378         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54379         augmentation also for the files from top/.
54380         (func_import, func_create_testdir): Rewrite file names:
54381         top/filename -> filename.
54382
54383 2008-03-23  Bruno Haible  <bruno@clisp.org>
54384
54385         Tweak "gnulib --version" output.
54386         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54387
54388 2008-03-23  Bruno Haible  <bruno@clisp.org>
54389
54390         Tweak "gnulib --version" output.
54391         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54392         rather than contents of ChangeLog, when possible.
54393
54394 2008-03-21  Eric Blake  <ebb9@byu.net>
54395
54396         More --version tweaks.
54397         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54398         date of last ChangeLog entry.
54399
54400 2008-03-21  Jim Meyering  <meyering@redhat.com>
54401
54402         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54403
54404 2008-03-20  Eric Blake  <ebb9@byu.net>
54405
54406         VPATH fix.
54407         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54408
54409 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54410
54411         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54412         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54413
54414 2008-03-20  Eric Blake  <ebb9@byu.net>
54415
54416         Sync GNUmakefile with coreutils.
54417         * build-aux/GNUmakefile (have-Makefile): Rename...
54418         (_have-Makefile): ...to this, for namespace consideration.
54419         (GNUmakefile.cfg): Include, if present.
54420         (_autoreconf): Define a default.
54421         (_is-dist-target): New rule for rebuilds to pick up intra-release
54422         version.
54423         (maint-cfg.mk): Rename...
54424         (cfg.mk): ...to this.
54425
54426 2008-03-18  Jim Meyering  <meyering@redhat.com>
54427
54428         New script and module: mktempd
54429         * MODULES.html.sh (maint+release support): Add mktempd.
54430         * build-aux/mktempd: New file.
54431         * modules/mktempd: New file.
54432
54433 2008-03-15  Jim Meyering  <meyering@redhat.com>
54434
54435         Undo last change.
54436         * lib/sha1.c, lib/md5.c: 63 != ~63.
54437         Reported by Andreas Schwab.
54438
54439         sha1.c, md5.c: Hoist a redundant expression.
54440         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54441         "ctx->buflen" only once, before calling *_process_block.
54442         * lib/md5.c (md5_process_bytes): Likewise.
54443
54444 2008-03-14  Eric Blake  <ebb9@byu.net>
54445
54446         Bump copyright year in files generated by gnulib-tool.
54447         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54448         gnulib-tool, rather than hard-coding it.
54449
54450         Fix 'gnulib-tool --version' output to work with git.
54451         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54452         (startup): ...here.
54453         (func_version): Use it to invoke git-version-gen, rather than
54454         relying on CVS keyword expansion.  Modernize wording.
54455         (cvsdatestamp, last_checkin_date, version): Kill unused
54456         variables.
54457
54458 2008-03-12  Jim Meyering  <meyering@redhat.com>
54459
54460         Recognize optional cast of the argument to free.
54461         * build-aux/useless-if-before-free: Update regexps.
54462
54463         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54464
54465 2008-03-11  Bruno Haible  <bruno@clisp.org>
54466
54467         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54468         by a single package.
54469         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54470         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54471         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54472         Reported by Sam Steingold <sds@gnu.org>.
54473
54474 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54475
54476         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54477         repositories.
54478
54479 2008-03-11  Bruno Haible  <bruno@clisp.org>
54480
54481         Avoid conflicts between local macro definitions.
54482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54483         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54484
54485 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54486             Bruno Haible  <bruno@clisp.org>
54487
54488         Make va_copy work with some version of xlc on AIX 5.1.
54489         * lib/stdarg.in.h: New file.
54490         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54491         On AIX, use a <stdarg.h> file substitute.
54492         * modules/stdarg (Files): Add lib/stdarg.in.h.
54493         (Depends-on): Add include_next.
54494         (Makefile.am): Build a stdarg.h substitute if requested.
54495         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54496
54497 2008-03-10  Bruno Haible  <bruno@clisp.org>
54498
54499         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54500         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54501         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54502
54503 2008-03-10  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/stdlib (Depends-on): Add include_next, remove
54506         absolute-header.
54507
54508 2008-03-09  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/freadahead.h (freadahead): Document more precisely.
54511         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54512         the sum of both buffer sizes.
54513         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54514         * NEWS: Document the change.
54515
54516 2008-03-09  Bruno Haible  <bruno@clisp.org>
54517
54518         Extend freadptr to return also the buffer size.
54519         * lib/freadptr.h (freadptr): Add sizep argument.
54520         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54521         (freadptr): Add sizep argument. Determine buffer size like freadahead
54522         does.
54523         * tests/test-freadptr.c: Don't include freadahead.h.
54524         (main): Adapt for new calling convention of freadptr.
54525         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54526         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54527         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54528         tests/test-freadptr2.sh.
54529         (Depends): Remove freadahead.
54530         (TESTS): Add test-freadptr2.sh.
54531         (check_PROGRAMS): Add test-freadptr2.
54532
54533 2008-03-09  Bruno Haible  <bruno@clisp.org>
54534
54535         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54536         Report and solution by Simon Josefsson.
54537
54538 2008-03-06  Bruno Haible  <bruno@clisp.org>
54539
54540         Make fflush after ungetc work on BSD platforms.
54541         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54542         * tests/test-fflush2.c: New file.
54543         * tests/test-fflush2.sh: New file.
54544         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54545         tests/test-fflush2.c.
54546         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54547         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54548
54549 2008-03-06  Eric Blake  <ebb9@byu.net>
54550
54551         Likewise for ftello.
54552         * modules/ftello (Dependencies): Add extensions.
54553         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54554
54555 2008-03-06  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/fseeko (Dependencies): Add extensions.
54558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54559         Needed on glibc systems.
54560
54561 2008-03-06  Bruno Haible  <bruno@clisp.org>
54562
54563         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54564         email address.
54565         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54566
54567 2008-03-06  Bruno Haible  <bruno@clisp.org>
54568
54569         * users.txt: Add libgnupdf.
54570
54571 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54572
54573         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54574         (Header File Substitutes, Function Substitutes,
54575         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54576         (Build robot for gnulib): Fix typo.
54577
54578 2008-03-06  Bruno Haible  <bruno@clisp.org>
54579
54580         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54581         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54582
54583 2008-03-06  Bruno Haible  <bruno@clisp.org>
54584
54585         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54586         * doc/gnulib.texi: Include it.
54587
54588 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54589
54590         * modules/func (License): Change license to unlimited; there was
54591         no LGPL parts in the module anyway.
54592
54593 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54594
54595         * modules/__func__: Renamed to modules/func.
54596         * modules/__func__-tests: Renamed to modules/func-tests.
54597         * tests/test-__func__.c: Renamed to tests/test-func.c.
54598         * m4/__func__.m4: Renamed to m4/func.m4.
54599         * doc/gnulib.texi (__func__): Section renamed to func.
54600         Suggested by Eric Blake <ebb9@byu.net>.
54601
54602 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54603
54604         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54605         about __func__.  Make example self-contained.  Suggested by Eric
54606         Blake <ebb9@byu.net>.
54607
54608         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54609         Suggested by Eric Blake <ebb9@byu.net>.
54610
54611 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54612
54613         * modules/__func__: New file.
54614         * modules/__func__-tests: New file.
54615         * tests/test-__func__.c: New file.
54616         * m4/__func__.m4: New file.
54617         * doc/gnulib.texi (__func__): Document __func__ module.
54618
54619 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54620
54621         * modules/byteswap (License): Re-license as LGPLv2+.
54622
54623 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54624
54625         * doc/Makefile: Add pdf target.
54626
54627 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54628
54629         * modules/inline (License): Use 'unlimited', since there are only
54630         *.m4 files in this module.
54631
54632 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54633             Bruno Haible  <bruno@clisp.org>
54634
54635         Add support for HP C 7.1 on OpenVMS 8.3.
54636         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54637
54638 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54639
54640         Update VMS specifics.
54641         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54642
54643 2008-03-02  Jim Meyering  <meyering@redhat.com>
54644
54645         Remove the last dependency on the "free" module.
54646         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54647         Reported by Bob Proulx.
54648
54649         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54650
54651         Remove useless "if" tests before free.  Deprecate "free" module.
54652         * doc/posix-functions/free.texi: Mention that this
54653         module is no longer useful.
54654         * modules/free (Notice): Say this module is obsolete.
54655         * modules/readutmp (Depends-on): Remove free.
54656         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54657         * lib/putenv.c (putenv): Likewise.
54658         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54659         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54660         * tests/test-c-strcasestr.c (main): Likewise.
54661         * tests/test-c-strstr.c (main): Likewise.
54662         * tests/test-mbscasestr1.c (main): Likewise.
54663         * tests/test-mbscasestr2.c (main): Likewise.
54664         * tests/test-mbsstr1.c (main): Likewise.
54665         * tests/test-mbsstr2.c (main): Likewise.
54666         * tests/test-memmem.c (main): Likewise.
54667         * tests/test-strcasestr.c (main): Likewise.
54668         * tests/test-striconv.c (main): Likewise.
54669         * tests/test-striconveh.c (main): Likewise.
54670         * tests/test-striconveha.c (main): Likewise.
54671         * tests/test-strstr.c (main): Likewise.
54672
54673         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54674
54675         bootstrap: sync from coreutils again
54676         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54677
54678 2008-03-01  Jim Meyering  <meyering@redhat.com>
54679
54680         bootstrap: sync from coreutils
54681         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54682         also when the target doesn't exist.
54683
54684 2008-03-01  Eric Blake  <ebb9@byu.net>
54685
54686         Fix bugs in last patch.
54687         * lib/memchr2.c (memchr2): Fix typo.
54688         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54689         extension.
54690         Reported by Bruce Korb.
54691
54692         New module 'memchr2'.
54693         * modules/memchr2: New file.
54694         * modules/memchr2-tests: Likewise.
54695         * lib/memchr2.h: Likewise.
54696         * lib/memchr2.c: Likewise, based on memchr.c.
54697         * tests/test-memchr2.c: New test.
54698         * MODULES.html.sh (String handling): Add memchr2.
54699
54700 2008-02-29  Bruno Haible  <bruno@clisp.org>
54701
54702         * modules/freadseek-tests: New file.
54703         * tests/test-freadseek.sh: New file.
54704         * tests/test-freadseek.c: New file.
54705
54706         New module 'freadseek'.
54707         * modules/freadseek: New file.
54708         * lib/freadseek.h: New file.
54709         * lib/freadseek.c: New file.
54710         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54711
54712 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54713
54714         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54715         wydawca.
54716
54717         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54718         program_invocation_name and program_invocation_short_name are
54719         present.
54720
54721 2008-02-28  Bruno Haible  <bruno@clisp.org>
54722
54723         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54724         * tests/test-freadptr.sh: Also test non-seekable stdin.
54725
54726 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54727
54728         * build-aux/bootstrap (source_base, m4_base)
54729         (doc_base, tests_base): New variables.
54730         (gnulib_tool_options): Do not hardcode base directories, use
54731         the above variables instead.
54732
54733 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54734
54735         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54736
54737 2008-02-28  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/freadptr-tests: New file.
54740         * tests/test-freadptr.sh: New file.
54741         * tests/test-freadptr.c: New file.
54742
54743         New module 'freadptr'.
54744         * modules/freadptr: New file.
54745         * lib/freadptr.h: New file.
54746         * lib/freadptr.c: New file.
54747         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54748
54749 2008-02-26  Karl Berry  <karl@freefriends.org>
54750
54751         Sync from Libtool:
54752         * libltdl/argz.c (argz_add, argz_count): New functions.
54753         * libltdl/argz.in.h: Declare them.
54754         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54755
54756 2008-02-22  Bruno Haible  <bruno@clisp.org>
54757
54758         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54759         is a pointer type.  Needed for HP-UX 10.
54760         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54761         * doc/posix-functions/gmtime_r.texi: Likewise.
54762         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54763
54764 2008-02-24  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/environ-tests: New file.
54767         * tests/test-environ.c: New file.
54768
54769         New module 'environ'.
54770         * modules/environ: New file.
54771         * lib/unistd.in.h (environ): New declaration.
54772         * m4/environ.m4: New file.
54773         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54774         after use.
54775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54776         HAVE_DECL_ENVIRON.
54777         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54778         HAVE_DECL_ENVIRON.
54779         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54780         wrong claim that 'environ' is missing on some systems.
54781         * modules/execute (Depends-on): Add environ.
54782         * lib/execute.c (environ): Remove fallback declaration.
54783         * modules/pipe (Depends-on): Add environ.
54784         * lib/pipe.c (environ): Remove fallback declaration.
54785         * modules/setenv (Depends-on): Add environ.
54786         * lib/setenv.c (environ): Remove fallback declaration.
54787         * modules/unsetenv (Depends-on): Add environ.
54788         * lib/unsetenv.c (environ): Remove fallback declaration.
54789         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54790         m4/environ.m4.
54791         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54792         (gl_PREREQ_UNSETENV): Likewise.
54793
54794 2008-02-24  Bruno Haible  <bruno@clisp.org>
54795
54796         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54797
54798 2008-02-20  Bob Proulx  <bob@proulx.com>
54799
54800         Enable use of older two part flavor 'git describe'.
54801         * build-aux/git-version-gen: If using the older two part flavor of
54802         git version then recreate the third part now present in the
54803         newer three part flavor of git describe.
54804
54805 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54806
54807         * lib/fts.c (fts_build): Typo correction to comment.
54808
54809 2008-02-17  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54812         generating no-op conflicts.
54813
54814 2008-02-17  Bruno Haible  <bruno@clisp.org>
54815
54816         Speed up by 10%.
54817         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54818         result_entries, rather than an index-based loop.
54819
54820 2008-02-17  Bruno Haible  <bruno@clisp.org>
54821
54822         Speed up by 25%.
54823         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54824         'hashcode_cached'.
54825         (entry_create): New function.
54826         (entry_hashcode): Use the cached hashcode if possible.
54827         (read_changelog_file, try_split_merged_entry): Use entry_create.
54828
54829 2008-02-17  Bruno Haible  <bruno@clisp.org>
54830
54831         Speed up from O(n^2) to O(n) for long ChangeLog files.
54832         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54833         (read_changelog_file): Change implementation of entries_reversed list
54834         to rbtreehash.
54835         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54836
54837 2008-02-17  Bruno Haible  <bruno@clisp.org>
54838
54839         New option --split-merged-entry.
54840         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54841         (find_paragraph_end, try_split_merged_entry): New functions.
54842         (long_options): Add option --split-merged-entry.
54843         (usage): Document option --split-merged-entry.
54844         (main): Implement option --split-merged-entry.
54845         Reported by Eric Blake.
54846
54847 2008-02-17  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/git-merge-changelog.c: Include c-strstr.h.
54850         (main): Support the "git pull --rebase" situation.
54851         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54852         Reported by Eric Blake.
54853
54854 2008-02-16  Eric Blake  <ebb9@byu.net>
54855
54856         Avoid doubling \ in common case of "c-maybe" quoting style.
54857         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54858         eliding outer quotes.
54859         * lib/quotearg.h: Document this.
54860         * tests/test-quotearg.c (result_strings, inputs, results_g)
54861         (flag_results, locale_results): Test it by adding a new string to
54862         each test group.
54863         (compare_strings): Test new string.
54864
54865 2008-02-13  Eric Blake  <ebb9@byu.net>
54866
54867         Avoid trigraph quoting in default output.
54868         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54869         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54870         unless explicitly requested.
54871         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54872
54873 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54874
54875         Don't rely on signed integer overflowing to negative value.
54876         * lib/getugroups.c (getugroups): Include <limits.h>.
54877         Instead, compare against INT_MAX, and increment only if the test passes.
54878
54879 2008-02-13  Jim Meyering  <meyering@redhat.com>
54880         and Eric Blake  <ebb9@byu.net>
54881
54882         Avoid shadowing warning and compile errors on Linux.
54883         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54884         forwarding macros on Linux.
54885         (dcgettext): Define a stub, for Linux.
54886         (results_g, main): Avoid warnings.
54887
54888 2008-02-12  Eric Blake  <ebb9@byu.net>
54889
54890         Silence warning in last patch.
54891         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54892
54893         Quotearg part 4: add tests, fix c-maybe colon quoting.
54894         * lib/quotearg.h: Improve documentation.
54895         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54896         escapes when adding outer quotes.  When quoting trigraphs, use
54897         valid C notation.  When quoting NUL, omit extra characters if next
54898         character is not digit.  Alter prototype.
54899         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54900         callers.
54901         * modules/quotearg-tests: New module.
54902         * tests/test-quotearg.c: New test.
54903
54904 2008-02-07  Eric Blake  <ebb9@byu.net>
54905
54906         Quotearg part 3: add flag to control outer quote elision.
54907         * lib/quotearg.h (c_maybe_quoting_style): New style.
54908         (enum quoting_flags): Better documentation of flags.
54909         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54910         c-maybe style.
54911         (quotearg_buffer_restyled): Handle new flag to elide outer
54912         quotes.
54913
54914         Quotearg part 2: add flag that can control NUL elision.
54915         * lib/quotearg.h (set_quoting_flags): New prototype.
54916         * lib/quotearg.c (struct quoting_options): Add flag field.
54917         (set_quoting_flags): New function.
54918         (quotearg_buffer_restyled): Add flags parameter.
54919         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54920         (quotearg_n_options): Set the flag, since length cannot be
54921         returned.
54922         (quoting_options_from_style): Default flags correctly.
54923
54924         Quotearg part 1: more wrappers, restore quotearg_char state.
54925         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54926         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54927         (quotearg_colon_mem): New wrappers.
54928         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54929         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54930         functions.
54931         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54932         (quotearg_colon_mem): New functions.
54933
54934 2008-02-11  Bruno Haible  <bruno@clisp.org>
54935
54936         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54937         library in the current directory: it does not work with parallel make.
54938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54939
54940 2008-02-11  Bruno Haible  <bruno@clisp.org>
54941
54942         * .gitattributes: New file.
54943
54944 2008-02-11  Jim Meyering  <meyering@redhat.com>
54945
54946         useless-if-before-free: Fix reversed exit values.
54947         * build-aux/useless-if-before-free: Use correct values
54948         for EXIT_MATCH and EXIT_NO_MATCH.
54949
54950         * build-aux/useless-if-before-free: Close stdout carefully.
54951
54952 2008-02-10  Bruno Haible  <bruno@clisp.org>
54953
54954         New module 'git-merge-changelog'.
54955         * modules/git-merge-changelog: New file.
54956         * lib/git-merge-changelog.c: New file.
54957
54958 2008-02-10  Jim Meyering  <meyering@redhat.com>
54959
54960         useless-if-before-free: New option: --list (-l).
54961
54962         useless-if-before-free: Don't exit immediately upon open failure.
54963         * build-aux/useless-if-before-free: Exit 2 for errors.
54964         Upon failure to open a file, don't exit immediately.
54965         Rather, just warn and continue with any remaining files.
54966
54967 2008-02-10  Bruno Haible  <bruno@clisp.org>
54968
54969         New abstract list operation 'node_set_value'.
54970         * lib/gl_list.h (gl_list_node_set_value): New function.
54971         (struct gl_list_implementation): New field node_set_value.
54972         * lib/gl_list.c (gl_list_node_set_value): New function.
54973         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54974         (gl_array_list_implementation): Update.
54975         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54976         (gl_carray_list_implementation): Update.
54977         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54978         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54979         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54980         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54981         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54982         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54983         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54984         Update.
54985         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54986         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54987         (gl_sublist_list_implementation): Update.
54988
54989 2008-02-10  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54992         Needed when ELEMENT is #defined to 'some_type *'.
54993
54994 2008-02-10  Jim Meyering  <meyering@redhat.com>
54995
54996         New script and module: useless-if-before-free
54997         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54998         * build-aux/useless-if-before-free: New file.
54999         * modules/useless-if-before-free: New file.
55000
55001         * build-aux/gitlog-to-changelog: Use committer date, not author date.
55002
55003         xstrtol_error: Fix typo.
55004         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
55005         s/exit_failure/exit_status/.
55006
55007 2008-02-09  Jim Meyering  <meyering@redhat.com>
55008
55009         New script and module: gitlog-to-changelog
55010         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
55011         * modules/gitlog-to-changelog: New file.
55012         * build-aux/gitlog-to-changelog: New file.
55013
55014 2008-02-08  Jim Meyering  <meyering@redhat.com>
55015
55016         Avoid two "parameter unused" warnings.
55017         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
55018         Mark "st" as used.
55019
55020         Use "git COMMAND", not "git-COMMAND".
55021         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
55022         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
55023         * build-aux/git-version-gen: Use "git status", not "git-status".
55024
55025 2008-02-07  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
55028         Avoids a crash on Windows Vista.
55029         Reported by Adam Strzelecki <ono@java.pl> via
55030         Simon Josefsson <simon@josefsson.org>.
55031
55032 2008-02-06  Bruno Haible  <bruno@clisp.org>
55033
55034         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
55035         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
55036         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
55037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
55038         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55040         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
55041         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
55042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55049         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
55050         left-adjust flag.
55051         * tests/test-snprintf-posix.h (test_function): Likewise.
55052         * tests/test-sprintf-posix.h (test_function): Likewise.
55053         * tests/test-vasprintf-posix.c (test_function): Likewise.
55054         * doc/posix-functions/fprintf.texi: Update.
55055         * doc/posix-functions/printf.texi: Update.
55056         * doc/posix-functions/snprintf.texi: Update.
55057         * doc/posix-functions/sprintf.texi: Update.
55058         * doc/posix-functions/vfprintf.texi: Update.
55059         * doc/posix-functions/vprintf.texi: Update.
55060         * doc/posix-functions/vsnprintf.texi: Update.
55061         * doc/posix-functions/vsprintf.texi: Update.
55062         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55063
55064 2008-02-06  Bruno Haible  <bruno@clisp.org>
55065
55066         Fix bug introduced on 2008-01-26.
55067         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
55068
55069 2008-02-06  Bruno Haible  <bruno@clisp.org>
55070
55071         Fix bug introduced on 2007-06-10.
55072         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
55073         !NEED_PRINTF_FLAG_ZERO.
55074
55075 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
55076
55077         getloadavg: use libperfstat on AIX5
55078         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
55079
55080 2008-02-03  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/diffseq.h: Add comments about required #includes.
55083         Reported by Michael Biggs <gnulib@doubleplum.net>.
55084
55085 2008-02-01  Bruno Haible  <bruno@clisp.org>
55086
55087         * users.txt: Add gnuit.
55088
55089 2008-01-31  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/md4.c (set_uint32): Mark as inline.
55092         * lib/md5.c (set_uint32): Likewise.
55093         * lib/sha1.c (set_uint32): Likewise.
55094         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
55095         * m4/md5.m4 (gl_MD5): Likewise.
55096         * m4/sha1.m4 (gl_SHA1): Likewise.
55097
55098 2008-01-31  Jim Meyering  <meyering@redhat.com>
55099
55100         Use "sizeof VAR", rather than a literal "4".
55101         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
55102         * lib/md4.c (md4_read_ctx): Likewise.
55103         * lib/sha1.c (sha1_read_ctx): Likewise.
55104
55105 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55106
55107         * tests/test-sha1.c: New file, based on test-md5.c.
55108
55109         * modules/crypto/sha1-tests: New file.
55110
55111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55112
55113         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
55114
55115 2008-01-31  Jim Meyering  <meyering@redhat.com>
55116
55117         Prefer "sizeof v" over the equivalent "4".
55118         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
55119         * lib/md5.c (set_uint32): Likewise.
55120         * lib/sha1.c (set_uint32): Likewise.
55121
55122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55123
55124         * lib/sha1.c (set_uint32): Mark function as static.
55125
55126 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55127
55128         md2: clarify comments to say that alignment is not required.
55129         * lib/md2.h: Remove warning about alignment in comment.
55130         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
55131         never been required.
55132
55133 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55134
55135         md4: adapt alignment constraint fix from sha1.
55136         * lib/md4.c (set_uint32): New function, from sha1.c
55137         (md4_read_ctx): Use it.
55138         (md4_finish_ctx): Doc fix.
55139         * lib/md4.h: Doc fix.
55140
55141 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55142
55143         md5: adapt alignment constraint fix from sha1.
55144         * lib/md5.c (set_uint32): New function, from sha1.c
55145         (md5_read_ctx): Use it.
55146         (md5_finish_ctx): Doc fix.
55147         * lib/md5.h: Doc fix.
55148
55149 2008-01-30  Peter Palfrader  <weasel@debian.org>
55150
55151         sha1: remove the result buffer alignment constraint
55152         * lib/sha1.c (set_uint32): New function.
55153         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55154         constraint.
55155         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55156         * lib/sha1.h: Likewise.
55157
55158 2008-01-30  Andreas Schwab  <schwab@suse.de>
55159             Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55162         correct definition of LDBL_MIN_EXP.
55163
55164 2008-01-30  Karl Berry  <karl@gnu.org>
55165
55166         * config/srclist-update: try to preserve x bit on updates.
55167         * config/srclistvars.sh: update for karl.
55168
55169 2008-01-29  Jim Meyering  <meyering@redhat.com>
55170
55171         vasnprintf.c: Avoid warning about unused label
55172         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55173         "overflow" label definition and associated code with the
55174         same cpp condition that guards the sole use of that label.
55175
55176 2008-01-26  Bruno Haible  <bruno@clisp.org>
55177
55178         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55179         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55180         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55181         * lib/isnanl-nolibm.h (isnanl): Likewise.
55182         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55183
55184 2008-01-26  Bruno Haible  <bruno@clisp.org>
55185
55186         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55187         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55188
55189 2008-01-26  Bruno Haible  <bruno@clisp.org>
55190
55191         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55192         GCC >= 4.0 built-in.
55193         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55194
55195 2008-01-26  Bruno Haible  <bruno@clisp.org>
55196
55197         Rename isnan, applicable to 'double' only, to isnand.
55198         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55199         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55200         (configure.ac): Update.
55201         (Include): Replace "isnan.h" with "isnand.h".
55202         * m4/isnand.m4: Renamed from m4/isnan.m4.
55203         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55204         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55205         instead of isnan.c.
55206         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55207         instead of HAVE_ISNAN_IN_LIBC.
55208         (isnand): Renamed from isnan.
55209         * lib/isnand.c: New file.
55210         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55211         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55212         (Makefile.am): Update.
55213         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55214         Include isnand.h instead of isnan.h.
55215         (main): Test isnand instead of isnan.
55216         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55217         isnan-nolibm.
55218         * modules/frexp (Depends-on): Likewise.
55219         * modules/frexp-tests (Depends-on): Likewise.
55220         * modules/frexp-nolibm (Depends-on): Likewise.
55221         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55222         * modules/isfinite (Depends-on): Likewise.
55223         * modules/round-tests (Depends-on): Likewise.
55224         * modules/signbit (Depends-on): Likewise.
55225         * modules/signbit-tests (Depends-on): Likewise.
55226         * modules/snprintf-posix (Depends-on): Likewise.
55227         * modules/sprintf-posix (Depends-on): Likewise.
55228         * modules/trunc-tests (Depends-on): Likewise.
55229         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55230         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55231         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55232         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55233         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55234         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55235         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55236         * modules/vasnprintf-posix (Depends-on): Likewise.
55237         * modules/vasprintf-posix (Depends-on): Likewise.
55238         * modules/vfprintf-posix (Depends-on): Likewise.
55239         * modules/vsnprintf-posix (Depends-on): Likewise.
55240         * modules/vsprintf-posix (Depends-on): Likewise.
55241         * lib/frexp.c: Include isnand.h instead of isnan.h.
55242         (ISNAN): Set to isnand instead of isnan.
55243         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55244         (gl_isfinited): Use isnand instead of isnan.
55245         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55246         (gl_signbitd): Use isnand instead of isnan.
55247         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55248         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55249         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55250         (main): Use isnand instead of isnan.
55251         * tests/test-round1.c: Include isnand.h.
55252         (main): Use isnand instead of isnan.
55253         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55254         (ISNAN): Set to isnand instead of isnan.
55255         * tests/test-trunc1.c: Include isnand.h.
55256         (main): Use isnand instead of isnan.
55257         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55258         (equal): Use isnand instead of isnan.
55259         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55260         isnand-nolibm.
55261         * NEWS: Mention the change.
55262
55263 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55264             Bruno Haible  <bruno@clisp.org>
55265
55266         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55267         the GCC builtins for signbits are present and set
55268         REPLACE_SIGNBIT_USING_GCC if so.
55269         * lib/math.in.h (signbit): Define using GCC builtins if
55270         REPLACE_SIGNBIT_USING_GCC is set.
55271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55272         REPLACE_SIGNBIT_USING_GCC.
55273         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55274
55275 2008-01-25  Jim Meyering  <meyering@redhat.com>
55276
55277         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55278         * lib/poll.c: Include <config.h>, not "config.h".
55279         * tests/test-getaddrinfo.c: Likewise.
55280
55281 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55282
55283         * modules/sockets-tests: New file.
55284
55285 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55286
55287         * modules/sockets: New module, can be used to call WSA_Startup and
55288         WSA_Cleanup when needed.
55289
55290         * lib/sockets.h, lib/sockets.c: New files.
55291
55292         * m4/sockets.m4: New file.
55293
55294         * tests/test-sockets.c: New file.
55295
55296 2008-01-19  Bruno Haible  <bruno@clisp.org>
55297
55298         * doc/posix-headers: Renamed from doc/headers.
55299         * doc/posix-functions: Renamed from doc/functions.
55300         * doc/gnulib.texi: Update.
55301
55302 2008-01-19  Bruno Haible  <bruno@clisp.org>
55303
55304         * doc/glibc-functions/strcasestr.texi: Include contents of
55305         doc/functions/strcasestr.texi, fixing the list of platforms.
55306         * doc/functions/strcasestr.texi: Remove file.
55307
55308 2008-01-19  Bruno Haible  <bruno@clisp.org>
55309
55310         * doc/glibc-functions/memmem.texi: Include contents of
55311         doc/functions/memmem.texi.
55312         * doc/functions/memmem.texi: Remove file.
55313
55314 2008-01-18  Bruno Haible  <bruno@clisp.org>
55315
55316         * doc/glibc-functions/*.texi: New files.
55317         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55318         to use the new files.
55319
55320 2008-01-17  Bruno Haible  <bruno@clisp.org>
55321
55322         * tests/test-gethostname.c (main): Fix printf statement.
55323
55324 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55325
55326         * modules/gethostname-tests: New file.
55327
55328         * tests/test-gethostname.c: New file.
55329
55330 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55331
55332         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55333         used by the UNAME case.  Reported by Bruno Haible
55334         <bruno@clisp.org>.
55335
55336 2008-01-17  Eric Blake  <ebb9@byu.net>
55337
55338         Convert c-strcasestr to be more efficient.
55339         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55340         (Depends-on): Add c-strcase, remove malloca, strnlen.
55341         * tests/test-c-strcasestr.c (main): Enhance test.
55342         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55343
55344 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55345
55346         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55347         Use it in creating po/Makevars.
55348
55349 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55350
55351         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55352         Applications that requires it should initialize libgcrypt
55353         manually.
55354
55355 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55356
55357         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55358
55359 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55360
55361         Fix problem with getdate on mingw32 reported by Simon Josefsson
55362         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55363         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55364         tzname", when deciding whether to declare tzname.
55365         * lib/strftime.c (tzname): Likewise.
55366
55367 2008-01-15  Bruno Haible  <bruno@clisp.org>
55368
55369         Work around a MacOS X 10.5 bug in frexpl().
55370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55371         * doc/functions/frexpl.texi: Document the bug.
55372         Reported by Elias Pipping <pipping@gentoo.org>.
55373
55374 2008-01-14  Eric Blake  <ebb9@byu.net>
55375
55376         Touch up previous patch.
55377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55378         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55379
55380         Convert strcasestr module to use Two-Way algorithm.
55381         * modules/strcasestr-simple: New module, based on the old
55382         strcasestr, but with Two-Way rather than KMP.
55383         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55384         * lib/string.in.h (rpl_strcasestr): Declare.
55385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55386         performance.
55387         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55388         * modules/string (Makefile.am): Support strcasestr.
55389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55390         * modules/strcasestr-tests (Depends-on): Check for alarm.
55391         * tests/test-strcasestr.c: Augment test.
55392         * lib/str-two-way.h: Clean up stray macro.
55393         * NEWS: Document new module.
55394         * MODULES.html.sh (string handling): Likewise.
55395         * doc/functions/strcasestr.texi: New file.
55396         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55397         here, since it is not a POSIX function.
55398
55399 2008-01-14  Colin Watson  <cjwatson@debian.org>
55400             Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55403         works fine; if not, set REPLACE_STRSIGNAL.
55404         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55406         REPLACE_STRSIGNAL.
55407         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55408         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55409         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55410
55411 2008-01-14  Bruno Haible  <bruno@clisp.org>
55412
55413         * modules/strsignal (Include): Change to <string.h>.
55414
55415 2008-01-14  Colin Watson  <cjwatson@debian.org>
55416
55417         * modules/argp (Notice): Add a notice recommending to change
55418         XGETTEXT_OPTIONS.
55419         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55420
55421 2008-01-13  Colin Watson  <cjwatson@debian.org>
55422
55423         * modules/strsignal-tests: New file.
55424         * tests/test-strsignal.c: New file.
55425
55426         * lib/strsignal.c: New file, from glibc with modifications.
55427         * lib/siglist.h: New file, from glibc with modifications.
55428         * lib/string.in.h (strsignal): New declaration.
55429         * m4/strsignal.m4: New file.
55430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55431         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55432         * modules/strsignal: New file.
55433         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55434         HAVE_DECL_STRSIGNAL.
55435
55436 2008-01-13  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55439         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55440         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55442
55443 2008-01-13  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55446         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55447         * lib/argp.h (__attribute__): Likewise.
55448         * lib/c-stack.c (__attribute__): Likewise.
55449         * lib/error.h (__attribute__): Likewise.
55450         * lib/fts.c (__attribute__): Likewise.
55451         * lib/openat.h (__attribute__): Likewise.
55452         * lib/stdio.in.h (__attribute__): Likewise.
55453         * lib/string.in.h (__attribute__): Likewise.
55454         * lib/utimens.c (__attribute__): Likewise.
55455         * lib/vasnprintf.h (__attribute__): Likewise.
55456         * lib/xalloc.h (__attribute__): Likewise.
55457         * lib/xprintf.h (__attribute__): Likewise.
55458         * lib/xstrtol.h (__attribute__): Likewise.
55459         * lib/xvasprintf.h (__attribute__): Likewise.
55460
55461 2008-01-12  Bruno Haible  <bruno@clisp.org>
55462
55463         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55464         * doc/glibc-headers/a.out.texi: New file.
55465         * doc/glibc-headers/aliases.texi: New file.
55466         * doc/glibc-headers/alloca.texi: New file.
55467         * doc/glibc-headers/ar.texi: New file.
55468         * doc/glibc-headers/argp.texi: New file.
55469         * doc/glibc-headers/argz.texi: New file.
55470         * doc/glibc-headers/byteswap.texi: New file.
55471         * doc/glibc-headers/crypt.texi: New file.
55472         * doc/glibc-headers/endian.texi: New file.
55473         * doc/glibc-headers/envz.texi: New file.
55474         * doc/glibc-headers/err.texi: New file.
55475         * doc/glibc-headers/error.texi: New file.
55476         * doc/glibc-headers/execinfo.texi: New file.
55477         * doc/glibc-headers/fpu_control.texi: New file.
55478         * doc/glibc-headers/fstab.texi: New file.
55479         * doc/glibc-headers/fts.texi: New file.
55480         * doc/glibc-headers/getopt.texi: New file.
55481         * doc/glibc-headers/ieee754.texi: New file.
55482         * doc/glibc-headers/ifaddrs.texi: New file.
55483         * doc/glibc-headers/libintl.texi: New file.
55484         * doc/glibc-headers/mcheck.texi: New file.
55485         * doc/glibc-headers/mntent.texi: New file.
55486         * doc/glibc-headers/obstack.texi: New file.
55487         * doc/glibc-headers/paths.texi: New file.
55488         * doc/glibc-headers/printf.texi: New file.
55489         * doc/glibc-headers/pty.texi: New file.
55490         * doc/glibc-headers/resolv.texi: New file.
55491         * doc/glibc-headers/shadow.texi: New file.
55492         * doc/glibc-headers/sysexits.texi: New file.
55493         * doc/glibc-headers/ttyent.texi: New file.
55494
55495 2008-01-12  Jim Meyering  <meyering@redhat.com>
55496
55497         announce-gen: emit Gnulib's git-based version string.
55498         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55499         New option --gnulib-version=V, where V is expected to be
55500         the output of running git describe in the gnulib directory.
55501         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55502         not useful, and plan to stop publishing an xdelta file with each
55503         coreutils release.
55504
55505         * build-aux/announce-gen: Also check for lzma-compressed files.
55506
55507 2008-01-11  Bruno Haible  <bruno@clisp.org>
55508
55509         * tests/test-memmem.c (main): Increase maximum allowed time.
55510         * tests/test-strstr.c (main): Likewise.
55511
55512 2008-01-11  Bruno Haible  <bruno@clisp.org>
55513
55514         * doc/functions/memmem.texi: Add more precisions about platforms.
55515         * doc/functions/strstr.texi: Likewise.
55516
55517 2008-01-10  Eric Blake  <ebb9@byu.net>
55518
55519         * m4/strstr.m4: Delete cruft from copy-n-paste.
55520         Reported by Bruno Haible.
55521
55522 2008-01-10  Bruno Haible  <bruno@clisp.org>
55523
55524         Make c-strstr rely on strstr.
55525         * lib/c-strstr.c: Don't include str-kmp.h.
55526         (c_strstr): Define in terms of strstr.
55527         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55528         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55529
55530 2008-01-10  Bruno Haible  <bruno@clisp.org>
55531
55532         * doc/gnulib.texi (String Functions in C Locale): New section.
55533         * doc/c-ctype.texi: New file.
55534         * doc/c-strcase.texi: New file.
55535         * doc/c-strcaseeq.texi: New file.
55536         * doc/c-strcasestr.texi: New file.
55537         * doc/c-strstr.texi: New file.
55538         * doc/c-strtod.texi: New file.
55539         * doc/c-strtold.texi: New file.
55540
55541 2008-01-10  Eric Blake  <ebb9@byu.net>
55542
55543         * lib/relocatable.h: Fix a comment.
55544
55545 2008-01-10  Eric Blake  <ebb9@byu.net>
55546
55547         Share two-way algorithm.
55548         * lib/str-two-way.h: New file, merged from...
55549         * lib/memmem.c: ...here...
55550         * lib/strstr.c: ...and here.
55551         * modules/memmem (Files): Use it.
55552         * modules/strstr (Files): Likewise.
55553
55554         Avoid quadratic strstr implementations.
55555         * lib/strstr.c: New file.
55556         * m4/strstr.m4: Likewise.
55557         * modules/strstr: Likewise.
55558         * modules/strstr-tests: Likewise.
55559         * tests/test-strstr.c: Likewise.
55560         * lib/string.in.h (rpl_strstr): Declare.
55561         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55563         * modules/string (Makefile.am): Likewise.
55564         * MODULES.html.sh (string handling): Mention new module.
55565         * doc/functions/strstr.texi (strstr): Document the bug.
55566
55567 2008-01-10  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/relocatable.h (relocate): State whether result is freshly
55570         allocated or not.
55571         * lib/relocatable.c (relocate): Return a freshly allocated string
55572         instead of a pointer to a privately held string.
55573         Reported by Sylvain Beucler <beuc@gnu.org>.
55574
55575 2008-01-10  Colin Watson  <cjwatson@debian.org>
55576
55577         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55578         s/S_ISNLK/S_ISLNK/.
55579
55580 2008-01-09  Bruno Haible  <bruno@clisp.org>
55581
55582         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55583         and other files.
55584         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55585         if it's only a guess.
55586         * modules/memmem: Simplify by depending on memmem-simple.
55587
55588 2008-01-09  Bruno Haible  <bruno@clisp.org>
55589
55590         Work around OpenBSD 4.0 tdelete() bug.
55591         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55592         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55593         macros and don't redefine the enum values.
55594         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55595         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55596         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55597
55598 2008-01-09  Bruno Haible  <bruno@clisp.org>
55599
55600         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55601         (main): Don't perform the tests if setlocale did not install a UTF-8
55602         locale. Needed on OpenBSD 4.0.
55603         * modules/wcwidth-tests (Depends-on): Add localcharset.
55604
55605 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55606
55607         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55608         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55609         * NEWS: announce this.
55610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55611
55612 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55613         and Eric Blake  <ebb9@byu.net>
55614
55615         Add memmem-simple module.
55616         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55617         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55618         * modules/memmem-simple: New file.
55619         * modules/memmem (Description): Tweak.
55620         * MODULES.html.sh (string handling): Mention new module.
55621         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55622         addressed by memmem-simple.
55623         * NEWS: Document the difference.
55624
55625 2008-01-09  Eric Blake  <ebb9@byu.net>
55626
55627         Give gcc some memmem optimization hints.
55628         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55629         (strcasestr): Declare as pure.
55630         * modules/memmem (Maintainer): Claim my implementation.
55631
55632 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55633
55634         Support AIX 6.1 and higher.
55635         * build-aux/config.libpath: Likewise.
55636         * build-aux/config.rpath: Likewise.
55637
55638 2008-01-08  Jim Meyering  <meyering@redhat.com>
55639             Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55642         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55643         Reported by Peter Fales in
55644         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55645
55646 2008-01-08  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/unictype/category-of (Depends-on): Add
55649         unictype/category-none.
55650         * modules/unictype/category-and-tests (Depends-on): Add
55651         unictype/category-{L,N,Lu,Nd}.
55652         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55653         * modules/unictype/category-or-tests (Depends-on): Add
55654         unictype/category-{L,N}.
55655         * modules/unictype/category-name-tests (Depends-on): Add
55656         unictype/category-{Z,Nl}.
55657         Reported by Simon Josefsson.
55658
55659 2008-01-08  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55662         convention better.
55663         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55664         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55665         Reported by Peter Miller <millerp@canb.auug.org.au>.
55666
55667 2008-01-08  Eric Blake  <ebb9@byu.net>
55668
55669         Rewrite memmem to guarantee linear complexity without malloc.
55670         * lib/memmem.c (memmem): Use Two-Way rather than
55671         Knuth-Morris-Pratt, to allow O(1) space usage.
55672         (critical_factorization, two_way_short_needle)
55673         (two_way_long_needle): New functions.
55674         (knuth_morris_pratt): Delete.
55675         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55676         Add stdint.
55677         * tests/test-memmem.c (main): Add tests for periodic needle and
55678         sublinear performance.
55679         * doc/functions/memmem.texi (memmem): Document other deficiencies
55680         in cygwin and older glibc.
55681
55682 2008-01-08  Bruno Haible  <bruno@clisp.org>
55683
55684         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55685         augmentation.
55686
55687 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55688
55689         Add a configure time option: --disable-acl.
55690         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55691         AC_ARG_ENABLE(acl).
55692
55693 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55694
55695         * tests/test-localename.c: Don't include obsolete "setenv.h".
55696
55697         * modules/localename-tests (Depends-on): Need unsetenv.
55698
55699 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55700
55701         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55702
55703 2008-01-06  Colin Watson  <cjwatson@debian.org>
55704
55705         * users.txt: Add man-db.
55706
55707 2008-01-07  Bruno Haible  <bruno@clisp.org>
55708
55709         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55710         previous section name.
55711
55712 2008-01-07  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/progname.c (set_program_name): Don't strip off a leading
55715         "lt-" prefix outside a .libs directory.
55716         Suggested by Paul Eggert.
55717
55718 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55719             Bruno Haible  <bruno@clisp.org>
55720
55721         Improve memory cleanup in 'relocatable' module.
55722         * lib/relocatable.h (compute_curr_prefix): Change return type to
55723         'char *'.
55724         * lib/relocatable.c (compute_curr_prefix): Change return type to
55725         'char *'. Free curr_installdir after use.
55726         (relocate): Free curr_prefix_better after use.
55727         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55728
55729 2008-01-01  Bruno Haible  <bruno@clisp.org>
55730
55731         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55732         failure on older glibc systems.
55733         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55734
55735 2008-01-05  Eric Blake  <ebb9@byu.net>
55736
55737         Avoid quadratic system memmem.
55738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55739         Reported by Ralf Wildenhues.
55740
55741         Fix memmem test for mingw.
55742         * modules/memmem-tests (configure.ac): Check for alarm.
55743         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55744         it.
55745         * doc/functions/memmem.texi: New file.
55746         * doc/gnulib.texi (Function Substitutes): Add memmem.
55747         Reported by Bruno Haible.
55748
55749 2008-01-04  Bruno Haible  <bruno@clisp.org>
55750
55751         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55752         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55753         gl_HEADER_STRING_H_DEFAULTS.
55754
55755 2008-01-04  Eric Blake  <ebb9@byu.net>
55756
55757         Shorten duration of memmem test.
55758         * tests/test-memmem.c (main): Use alarm to declare failure if test
55759         is taking too long.
55760         Reported by Ralf Wildenhues.
55761
55762 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55763
55764         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55765         string, needed by strerror.
55766
55767 2008-01-03  Colin Watson  <cjwatson@debian.org>
55768             Bruno Haible  <bruno@clisp.org>
55769
55770         * doc/gnulib-tool.texi (Localization): New section.
55771
55772 2008-01-02  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55775         variables to 'unsigned char *' type.
55776         Reported by Paul Eggert.
55777
55778 2008-01-02  Jim Meyering  <jim@meyering.net>
55779
55780         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55781
55782 2007-12-31  Jim Meyering  <jim@meyering.net>
55783
55784         Avoid use of private FTS type name.
55785         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55786
55787 2007-12-30  Karl Berry  <karl@gnu.org>
55788
55789         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55790         work around defect in Texinfo and/or the standalone Info browser.
55791
55792 2007-12-30  Bruno Haible  <bruno@clisp.org>
55793
55794         Unify 5 copies of the KMP code.
55795         * lib/str-kmp.h: New file.
55796         * lib/c-strcasestr.c: Include str-kmp.h.
55797         (knuth_morris_pratt): Remove function.
55798         (c_strcasestr): Update.
55799         * lib/c-strstr.c: Include str-kmp.h.
55800         (knuth_morris_pratt): Remove function.
55801         (c_strcasestr): Update.
55802         * lib/mbscasestr.c: Include str-kmp.h.
55803         (knuth_morris_pratt_unibyte): Remove function.
55804         * lib/mbsstr.c: Include str-kmp.h.
55805         (knuth_morris_pratt_unibyte): Remove function.
55806         * lib/strcasestr.c: Include str-kmp.h.
55807         (knuth_morris_pratt): Remove function.
55808         (strcasestr): Update.
55809         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55810         * modules/c-strstr (Files): Likewise.
55811         * modules/mbscasestr (Files): Likewise.
55812         * modules/mbsstr (Files): Likewise.
55813         * modules/strcasestr (Files): Likewise.
55814         Suggested by Paul Eggert.
55815
55816 2007-12-30  Bruno Haible  <bruno@clisp.org>
55817
55818         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55819         defined.
55820
55821 2007-12-30  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/xmalloca.h: Include xalloc.h.
55824         (xnmalloca): New macro.
55825
55826 2007-12-30  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/malloca.h (nmalloca): New macro.
55829         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55830         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55831         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55832         knuth_morris_pratt_multibyte): Likewise.
55833         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55834         knuth_morris_pratt_multibyte): Likewise.
55835         * lib/memmem.c (knuth_morris_pratt): Likewise.
55836         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55837
55838 2007-12-25  Bruno Haible  <bruno@clisp.org>
55839
55840         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55841         * lib/glob.c: Don't include openat.h.
55842         (link_exists2_p): Add back the code that deals with the
55843         !GLOB_ALTDIRFUNC case.
55844         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55845         let it do the filename concatenation.
55846         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55847         * modules/glob (Depends-on): Remove openat.
55848
55849 2007-12-31  Bruno Haible  <bruno@clisp.org>
55850
55851         * modules/dirfd (License): Change to LGPLv2+.
55852         Approved by Jim Meyering.
55853
55854 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55855
55856         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55857         when multiplying M by sizeof (size_t).
55858
55859 2007-12-10  Martin Lambers  <marlam@marlam.de>
55860
55861         Override getpagesize on mingw.
55862         * lib/getpagesize.c: New file.
55863         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55864         * modules/getpagesize (Files): Add lib/getpagesize.c.
55865         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55867         REPLACE_GETPAGESIZE.
55868         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55869
55870 2007-12-25  Bruno Haible  <bruno@clisp.org>
55871
55872         * modules/localcharset (Notice): New field.
55873         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55874         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55875
55876 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55877             Bruno Haible  <bruno@clisp.org>
55878
55879         Avoid using the syntax symbol() in formatted documentation.
55880         * MODULES.html.sh (func_module): When replacing symbol() with a
55881         hyperlink, remove the parentheses. Show an error if some remain.
55882         Recognize and render the '...' syntax.
55883         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55884         Rework. Add paragraph about GCC's inlining.
55885         * doc/alloca.texi: Likewise.
55886         * doc/error.texi: Remove parentheses from symbol reference.
55887         * doc/gnulib-intro.texi: Likewise.
55888         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55889         * modules/fnmatch (Description): Reword to say "the ... function".
55890         * modules/full-read (Description): Likewise.
55891         * modules/full-write (Description): Likewise.
55892         * modules/safe-read (Description): Likewise.
55893         * modules/safe-write (Description): Likewise.
55894         * modules/strchrnul (Description): Likewise.
55895         * modules/trim (Description): Likewise.
55896         * modules/error (Description): Remove parentheses from symbol
55897         references.
55898         * modules/verror (Description): Likewise.
55899         Reported by Karl Berry.
55900
55901 2007-12-25  Bruno Haible  <bruno@clisp.org>
55902
55903         Fixup after 2007-10-16 commit.
55904         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55905
55906 2007-12-24  Bruno Haible  <bruno@clisp.org>
55907
55908         Make --enable-relocatable work with DESTDIR.
55909         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55910         to compute installdir from destprog.
55911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55912         also set the RELOC_DESTDIR variable.
55913         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55914
55915 2007-12-24  Bruno Haible  <bruno@clisp.org>
55916
55917         Fix link error due to xalloc_die().
55918         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55919         of xreadlink.
55920         * lib/relocwrapper.c: Update comments.
55921         * build-aux/install-reloc: Remove xreadlink.c from file list.
55922         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55923         xreadlink.c.
55924         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55925
55926 2007-12-24  Bruno Haible  <bruno@clisp.org>
55927
55928         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55929         * lib/setenv.h: Remove file.
55930         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55931         lib/setenv.h.
55932         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55933         (Depends-on): Add stdlib.
55934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55935         gl_FUNC_UNSETENV.
55936         (Include): Replace setenv.h with <stdlib.h>.
55937         * modules/unsetenv: New file.
55938         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55939         * lib/unsetenv.c: Include <stdlib.h> first.
55940         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55941         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55942         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55943         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55944         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55945         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55947         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55948         * doc/functions/unsetenv.texi: Update.
55949         * modules/xsetenv (Depends-on): Add unsetenv.
55950         * modules/getdate (Depends-on): Likewise.
55951         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55952         * lib/xsetenv.c: Don't include setenv.h.
55953         * lib/getdate.y: Likewise.
55954         * lib/relocwrapper.c: Likewise.
55955         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55956         (Depends-on): Add stdlib.
55957         * NEWS: Mention the changes.
55958         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55959
55960 2007-12-23  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55963         indentation.
55964
55965 2007-12-23  Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/c-strcasestr.c: Add more comments.
55968         * lib/c-strstr.c: Likewise.
55969         * lib/mbscasestr.c: Likewise.
55970         * lib/mbsstr.c: Likewise.
55971         * lib/strcasestr.c: Likewise.
55972         * lib/memmem.c: Likewise.
55973
55974 2007-12-23  Bruno Haible  <bruno@clisp.org>
55975
55976         * tests/test-memmem.c: Include <string.h> first.
55977
55978 2007-12-22  Bruno Haible  <bruno@clisp.org>
55979
55980         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55981         the contents of $testsbase.
55982         Reported by Ralf Wildenhues.
55983
55984 2007-12-22  Bruno Haible  <bruno@clisp.org>
55985
55986         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55987         two variables local_ldadd_before, local_ldadd_last.
55988
55989 2007-12-20  Eric Blake  <ebb9@byu.net>
55990
55991         Work around circular library issue when cross-compiling.
55992         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55993         that progname.o does not need to pull in rpl_memcmp.
55994
55995 2007-12-19  Eric Blake  <ebb9@byu.net>
55996
55997         Fix memmem to avoid O(n^2) worst-case complexity.
55998         * lib/memmem.c (knuth_morris_pratt): New function.
55999         (memmem): Use it if first few naive iterations fail.
56000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
56001         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
56002         * modules/memchr (License): Likewise.
56003         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
56004         malloca.
56005         * tests/test-memmem.c: Rewrite, borrowing ideas from
56006         test-mbsstr1.c; the old version wouldn't even compile!
56007         * modules/memmem-tests: New file.
56008         * lib/string.in.h (rpl_memmem): Add declaration.
56009         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
56010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
56011         REPLACE_MEMMEM.
56012
56013 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56014
56015         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
56016         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
56017         before any system include files, and undef after them all.  This
56018         should fix a problem on VMS reported by John E. Malmberg in
56019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
56020
56021 2007-12-17  Eric Blake  <ebb9@byu.net>
56022
56023         Revert addition of verify, for BSD/OS.
56024         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
56025         can't handle large files, for the sake of obsolete platforms.
56026         * modules/fseeko (Depends-on): Remove verify.
56027         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
56028         * doc/functions/ftello.texi (ftello): Likewise.
56029         * doc/functions/fgetpos.texi (fgetpos): Likewise.
56030         Reported by Larry Jones.
56031
56032 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
56033
56034         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
56035         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
56036
56037 2007-12-17  Jim Meyering  <meyering@redhat.com>
56038
56039         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
56040         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
56041         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
56042         * modules/getcwd (Depends-on): Add openat.
56043         Reported by Petr Salinger.
56044
56045 2007-12-17  Bruno Haible  <bruno@clisp.org>
56046
56047         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
56048         avoid a segmentation fault of the configure test on x86_64 systems.
56049
56050 2007-12-15  Jim Meyering  <meyering@redhat.com>
56051
56052         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
56053
56054 2007-12-13  Eric Blake  <ebb9@byu.net>
56055
56056         Another fseek test.
56057         * tests/test-fseek.c (main): Also test ungetc handling.
56058         * tests/test-fseeko.c (main): Likewise.
56059         * modules/fseeko (Depends-on): Add verify.
56060         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
56061         large.
56062         Reported by Larry Jones.
56063
56064         Fix fseeko on mingw.
56065         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
56066         seek.
56067
56068         Beef up fseek tests.
56069         * tests/test-fseek.c (main): Also test eof handling.
56070         * tests/test-fseeko.c (main): Likewise.
56071         Reported by Larry Jones.
56072
56073 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
56074
56075         Fix fseeko on BSD-based platforms.
56076         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
56077         successful seek.
56078
56079 2007-12-12  Eric Blake  <ebb9@byu.net>
56080
56081         Allow circular dependency of separate libtests.a
56082         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
56083         when use_libtests.
56084
56085 2007-12-11  Eric Blake  <ebb9@byu.net>
56086
56087         Fix bug with -0.0L in previous patch.
56088         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
56089         * tests/test-isnan.c (main): Also test on zeroes.
56090         * tests/test-isnanf.c (main): Likewise.
56091         * tests/test-isnanl.h (main): Likewise.
56092
56093         Detect pseudo-denormals on x86 even when cross-compiling.
56094         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
56095         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
56096         invalid bit patterns that happen to satisfy ==.
56097
56098         Avoid link failures with separate libtests.a.
56099         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
56100         last, to satisfy circular dependencies.
56101
56102 2007-12-11  Eric Blake  <ebb9@byu.net>
56103         and Bruno Haible  <bruno@clisp.org>
56104
56105         Fix OpenBSD 4.0 <float.h> handling of long double.
56106         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
56107         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
56108         * doc/headers/float.texi (float.h): Document OpenBSD bug.
56109
56110 2007-12-11  Jim Meyering  <meyering@redhat.com>
56111
56112         * users.txt: Add libvirt.
56113
56114         Support versions of autoconf prior to 2.59c.
56115         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
56116         if it is not already defined.
56117
56118 2007-12-09  Bruno Haible  <bruno@clisp.org>
56119
56120         Let 'gnulib-tool --import' collect sources needed for the tests in
56121         tests/ rather than in lib/.
56122         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
56123         argument. If true, add rules to generate libtests.a, and put libtests.a
56124         into $(LDADD). Consider source files in subdirectories and set
56125         uses_subdirs.
56126         (func_emit_initmacro_start, func_emit_initmacro_end,
56127         func_emit_initmacro_done): Pass all arguments explicitly.
56128         (func_import): Determine two module lists main_modules,
56129         testsrelated_modules. Determine use_libtests. Determine two variables
56130         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
56131         instead of just sed_transform_lib_file. Determine two variables
56132         main_files and testsrelated_files. Compute 'files' as the union of
56133         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
56134         func_add_or_update. In the generated gnulib-comp.m4, collect the
56135         object files for tests/ in different variables than those for lib/.
56136         Substitute LIBTESTS_LIBDEPS.
56137         (func_create_testdir): Combine the uses_subdirs results from
56138         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
56139
56140 2007-12-09  Bruno Haible  <bruno@clisp.org>
56141
56142         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
56143         the build-aux directory.
56144
56145 2007-12-09  Bruno Haible  <bruno@clisp.org>
56146
56147         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
56148         introduced on 2006-09-09.
56149
56150 2007-12-07  Jim Meyering  <meyering@redhat.com>
56151
56152         Let these macros work also with autoconf-2.59.
56153         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56154         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56155         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56156
56157 2007-12-06  Jim Meyering  <meyering@redhat.com>
56158
56159         Avoid a configure-time syntax error in gl_FUNC_ACL.
56160         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56161         function in each branch, before testing the cache variable.
56162
56163 2007-12-04  Eric Blake  <ebb9@byu.net>
56164
56165         Make scripts executable.
56166         * build-aux/config.guess: Add execute permissions.
56167         * build-aux/config.sub: Likewise.
56168         * build-aux/gendocs.sh: Likewise.
56169
56170         Fix frexp on mingw.
56171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56172         cross-compiling.
56173         * doc/functions/frexp.texi (frexp): Document the bug.
56174
56175         Make cygwin fseeko check more reliable.
56176         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56177         version numbers, rather than unrelated feature check.
56178         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56179         * doc/functions/ftello.texi (ftello): Likewise.
56180         Reported by Bruno Haible.
56181
56182         * m4/strerror.m4: Bump version number.
56183
56184 2007-12-03  Bruno Haible  <bruno@clisp.org>
56185
56186         * doc/functions/mprotect.texi: Mention the mingw problem.
56187
56188 2007-12-03  Eric Blake  <ebb9@byu.net>
56189
56190         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56191         REPLACE_STRERROR is initialized before this macro.
56192
56193 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56196         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56197         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56198         put -lsec in even for programs other than 'ls'.  This fixes a problem
56199         for gettext reported by Bruno Haible in
56200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56201         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56202         Add support for Solaris 10.  This isn't efficient, but should get the
56203         job done for now.
56204
56205 2007-12-03  James Youngman  <jay@gnu.org>
56206
56207         * doc/regexprops-generic.texi: change "an close-group" to "a
56208         close-group" and "illegal" to "not allowed".
56209
56210 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56211
56212         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56213         pr_byname.h. Needed for the rare case when the maintainer has done
56214         "make maintainer-clean" in the source directory and then attempts a
56215         build outside the source directory.
56216         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56217         scripts_byname.h.
56218
56219 2007-12-02  Martin Lambers <marlam@marlam.de>
56220             Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/getpagesize.h: Remove file.
56223         * lib/unistd.in.h: Include declaration of getpagesize here.
56224         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56225         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56226         HAVE_SYS_PARAM_H.
56227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56228         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56229         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56230         (Depends-on): Add unistd.
56231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56232         (Include): Use <unistd.h> instead of getpagesize.h.
56233         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56234         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56235         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56236         gl_GETPAGESIZE invocation, already handled by module dependency.
56237         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56238
56239 2007-12-02  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/strings-tests: New file.
56242         * tests/test-strings.c: New file.
56243
56244         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56245         * lib/strings.in.h: New file.
56246         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56247         * m4/strings_h.m4: New file.
56248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56249         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56250         * modules/strings: New file.
56251         * modules/string (Makefile.am): Update.
56252         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56253         Reported by Karl Berry.
56254
56255 2007-12-01  Eric Blake  <ebb9@byu.net>
56256
56257         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56258         accomodate fix in cygwin 1.5.25.
56259
56260 2007-12-01  Jim Meyering  <meyering@redhat.com>
56261
56262         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56263         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56264         that would inhibit utf8-optimization of a regexp containing line-
56265         or buffer-anchors, e.g., `^', `$'.
56266
56267 2007-11-30  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56270         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56271         glthread_recursive_lock_init.
56272         * lib/lock.c (glthread_recursive_lock_init)
56273         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56274         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56275
56276 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56277
56278         New function qset_acl, like set_acl but with syscall semantics.
56279         * lib/acl.h (qset_acl): New decl.
56280         * lib/acl.c (qset_acl): New function.
56281         (set_acl): Use new function.  Use more-consistent diagnostics.
56282
56283 2007-11-28  Jim Meyering  <meyering@redhat.com>
56284
56285         * modules/physmem (License): Change from GPL to LGPLv2+.
56286
56287 2007-11-26  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56290         'long double' type has excess precision.
56291         Reported by Jim Meyering in
56292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56293
56294 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56295
56296         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56297         Sync from <http://gnu.org/licenses>.
56298         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56299         with license text from same location.
56300         * doc/maintain.texi, doc/standards.texi:  Sync from
56301         <http://savannah.gnu.org/projects/gnustandards>.
56302
56303 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56304         and Jim Meyering  <meyering@redhat.com>
56305
56306         Adjust getdate' grammar to accept a slightly more regular language.
56307         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56308         Before, the former was rejected.
56309         * lib/getdate.y (digits_to_date_time): New function, factored
56310         out of ...
56311         (number): ...here.  Just call digits_to_date_time.
56312         (hybrid): New non-terminal to handle an <unsigned number,
56313         signed relative offset> sequence consistently.
56314
56315 2007-11-18  Jim Meyering  <meyering@redhat.com>
56316
56317         Pull my changes from coreutils:
56318         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56319         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56320         use of $gnulib_tool_option_extras, so that it's separated from the
56321         preceding argument.
56322
56323         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56324         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56325         parent destination directories before copying a file into place.
56326
56327 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56328
56329         bootstrap: work also with 4-argument variant of AC_INIT
56330         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56331
56332 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         Port test-getaddrinfo to Solaris.
56335         Problem reported by Bruno Haible in
56336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56337         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56338         explanation of setting 'hints'.
56339         Don't reject an implementation merely because it returns EAI_SERVICE.
56340         (EAI_SERVICE): Define to 0 if not defined.
56341
56342 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         The license of gnu-make and posix-shell is now "GPLed build tool".
56345         * modules/gnu-make (License): Likewise.
56346         * modules/posix-shell (License): Likewise.
56347
56348         New module posix-shell, for determining a POSIX shell
56349         or perhaps something that is close enough to a POSIX shell.
56350         * m4/posix-shell.m4: New file.
56351         * modules/posix-shell: New file.
56352
56353         * MODULES.html.sh: Mention new module.
56354
56355         New module gnu-make, for determining whether we're using GNU Make.
56356         * m4/gnu-make.m4: New file.
56357         * modules/gnu-make: New file.
56358         * MODULES.html.sh: Mention new module.
56359
56360 2007-11-14  Jim Meyering  <meyering@redhat.com>
56361
56362         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56363         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56364         use this macro to create a function _definition_.
56365         Remove useless "#undef ARGMATCH_DIE".
56366
56367 2007-11-14  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/config.charset: Update for OpenBSD 4.1.
56370         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56371
56372 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         Document 64-bit #if problems in stdint.texi.
56375         * doc/headers/stdint.texi (stdint.h): Mention problems with
56376         64-bit-#if, and how to work around them.
56377
56378         Don't insist on 'long long int' support in the preprocessor.  It
56379         breaks too many things.  For example, PRIdMAX still uses a 'long
56380         long int' format with the latest Sun compiler, even though
56381         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56382         preprocessor problem.  This causes the latest coreutils to dump
56383         core on Solaris 10 sparc with the Sun C compiler.
56384         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56385         the troublesome expressions at configure-time, not at #if-time.
56386         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56387         preprocessor.
56388         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56389         compile-time C checks, done at 'configure'-time.
56390         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56391         * modules/inttypes (Makefile): Substitute the new symbols that
56392         gl_INTTYPES_H now generates.
56393         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56394
56395 2007-11-12  Bruno Haible  <bruno@clisp.org>
56396
56397         Tests for Unicode character classification functions.
56398
56399         * modules/unictype/bidicategory-byname-tests: New file.
56400         * modules/unictype/bidicategory-name-tests: New file.
56401         * modules/unictype/bidicategory-of-tests: New file.
56402         * modules/unictype/bidicategory-test-tests: New file.
56403         * modules/unictype/block-list-tests: New file.
56404         * modules/unictype/block-of-tests: New file.
56405         * modules/unictype/block-test-tests: New file.
56406         * modules/unictype/category-C-tests: New file.
56407         * modules/unictype/category-Cc-tests: New file.
56408         * modules/unictype/category-Cf-tests: New file.
56409         * modules/unictype/category-Cn-tests: New file.
56410         * modules/unictype/category-Co-tests: New file.
56411         * modules/unictype/category-Cs-tests: New file.
56412         * modules/unictype/category-L-tests: New file.
56413         * modules/unictype/category-Ll-tests: New file.
56414         * modules/unictype/category-Lm-tests: New file.
56415         * modules/unictype/category-Lo-tests: New file.
56416         * modules/unictype/category-Lt-tests: New file.
56417         * modules/unictype/category-Lu-tests: New file.
56418         * modules/unictype/category-M-tests: New file.
56419         * modules/unictype/category-Mc-tests: New file.
56420         * modules/unictype/category-Me-tests: New file.
56421         * modules/unictype/category-Mn-tests: New file.
56422         * modules/unictype/category-N-tests: New file.
56423         * modules/unictype/category-Nd-tests: New file.
56424         * modules/unictype/category-Nl-tests: New file.
56425         * modules/unictype/category-No-tests: New file.
56426         * modules/unictype/category-P-tests: New file.
56427         * modules/unictype/category-Pc-tests: New file.
56428         * modules/unictype/category-Pd-tests: New file.
56429         * modules/unictype/category-Pe-tests: New file.
56430         * modules/unictype/category-Pf-tests: New file.
56431         * modules/unictype/category-Pi-tests: New file.
56432         * modules/unictype/category-Po-tests: New file.
56433         * modules/unictype/category-Ps-tests: New file.
56434         * modules/unictype/category-S-tests: New file.
56435         * modules/unictype/category-Sc-tests: New file.
56436         * modules/unictype/category-Sk-tests: New file.
56437         * modules/unictype/category-Sm-tests: New file.
56438         * modules/unictype/category-So-tests: New file.
56439         * modules/unictype/category-Z-tests: New file.
56440         * modules/unictype/category-Zl-tests: New file.
56441         * modules/unictype/category-Zp-tests: New file.
56442         * modules/unictype/category-Zs-tests: New file.
56443         * modules/unictype/category-and-not-tests: New file.
56444         * modules/unictype/category-and-tests: New file.
56445         * modules/unictype/category-byname-tests: New file.
56446         * modules/unictype/category-name-tests: New file.
56447         * modules/unictype/category-none-tests: New file.
56448         * modules/unictype/category-of-tests: New file.
56449         * modules/unictype/category-or-tests: New file.
56450         * modules/unictype/category-test-withtable-tests: New file.
56451         * modules/unictype/combining-class-tests: New file.
56452         * modules/unictype/ctype-alnum-tests: New file.
56453         * modules/unictype/ctype-alpha-tests: New file.
56454         * modules/unictype/ctype-blank-tests: New file.
56455         * modules/unictype/ctype-cntrl-tests: New file.
56456         * modules/unictype/ctype-digit-tests: New file.
56457         * modules/unictype/ctype-graph-tests: New file.
56458         * modules/unictype/ctype-lower-tests: New file.
56459         * modules/unictype/ctype-print-tests: New file.
56460         * modules/unictype/ctype-punct-tests: New file.
56461         * modules/unictype/ctype-space-tests: New file.
56462         * modules/unictype/ctype-upper-tests: New file.
56463         * modules/unictype/ctype-xdigit-tests: New file.
56464         * modules/unictype/decimal-digit-tests: New file.
56465         * modules/unictype/digit-tests: New file.
56466         * modules/unictype/mirror-tests: New file.
56467         * modules/unictype/numeric-tests: New file.
56468         * modules/unictype/property-alphabetic-tests: New file.
56469         * modules/unictype/property-ascii-hex-digit-tests: New file.
56470         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56471         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56472         * modules/unictype/property-bidi-block-separator-tests: New file.
56473         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56474         * modules/unictype/property-bidi-common-separator-tests: New file.
56475         * modules/unictype/property-bidi-control-tests: New file.
56476         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56477         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56478         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56479         * modules/unictype/property-bidi-european-digit-tests: New file.
56480         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56481         * modules/unictype/property-bidi-left-to-right-tests: New file.
56482         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56483         * modules/unictype/property-bidi-other-neutral-tests: New file.
56484         * modules/unictype/property-bidi-pdf-tests: New file.
56485         * modules/unictype/property-bidi-segment-separator-tests: New file.
56486         * modules/unictype/property-bidi-whitespace-tests: New file.
56487         * modules/unictype/property-byname-tests: New file.
56488         * modules/unictype/property-combining-tests: New file.
56489         * modules/unictype/property-composite-tests: New file.
56490         * modules/unictype/property-currency-symbol-tests: New file.
56491         * modules/unictype/property-dash-tests: New file.
56492         * modules/unictype/property-decimal-digit-tests: New file.
56493         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56494         * modules/unictype/property-deprecated-tests: New file.
56495         * modules/unictype/property-diacritic-tests: New file.
56496         * modules/unictype/property-extender-tests: New file.
56497         * modules/unictype/property-format-control-tests: New file.
56498         * modules/unictype/property-grapheme-base-tests: New file.
56499         * modules/unictype/property-grapheme-extend-tests: New file.
56500         * modules/unictype/property-grapheme-link-tests: New file.
56501         * modules/unictype/property-hex-digit-tests: New file.
56502         * modules/unictype/property-hyphen-tests: New file.
56503         * modules/unictype/property-id-continue-tests: New file.
56504         * modules/unictype/property-id-start-tests: New file.
56505         * modules/unictype/property-ideographic-tests: New file.
56506         * modules/unictype/property-ids-binary-operator-tests: New file.
56507         * modules/unictype/property-ids-trinary-operator-tests: New file.
56508         * modules/unictype/property-ignorable-control-tests: New file.
56509         * modules/unictype/property-iso-control-tests: New file.
56510         * modules/unictype/property-join-control-tests: New file.
56511         * modules/unictype/property-left-of-pair-tests: New file.
56512         * modules/unictype/property-line-separator-tests: New file.
56513         * modules/unictype/property-logical-order-exception-tests: New file.
56514         * modules/unictype/property-lowercase-tests: New file.
56515         * modules/unictype/property-math-tests: New file.
56516         * modules/unictype/property-non-break-tests: New file.
56517         * modules/unictype/property-not-a-character-tests: New file.
56518         * modules/unictype/property-numeric-tests: New file.
56519         * modules/unictype/property-other-alphabetic-tests: New file.
56520         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56521         * modules/unictype/property-other-grapheme-extend-tests: New file.
56522         * modules/unictype/property-other-id-continue-tests: New file.
56523         * modules/unictype/property-other-id-start-tests: New file.
56524         * modules/unictype/property-other-lowercase-tests: New file.
56525         * modules/unictype/property-other-math-tests: New file.
56526         * modules/unictype/property-other-uppercase-tests: New file.
56527         * modules/unictype/property-paired-punctuation-tests: New file.
56528         * modules/unictype/property-paragraph-separator-tests: New file.
56529         * modules/unictype/property-pattern-syntax-tests: New file.
56530         * modules/unictype/property-pattern-white-space-tests: New file.
56531         * modules/unictype/property-private-use-tests: New file.
56532         * modules/unictype/property-punctuation-tests: New file.
56533         * modules/unictype/property-quotation-mark-tests: New file.
56534         * modules/unictype/property-radical-tests: New file.
56535         * modules/unictype/property-sentence-terminal-tests: New file.
56536         * modules/unictype/property-soft-dotted-tests: New file.
56537         * modules/unictype/property-space-tests: New file.
56538         * modules/unictype/property-terminal-punctuation-tests: New file.
56539         * modules/unictype/property-test-tests: New file.
56540         * modules/unictype/property-titlecase-tests: New file.
56541         * modules/unictype/property-unassigned-code-value-tests: New file.
56542         * modules/unictype/property-unified-ideograph-tests: New file.
56543         * modules/unictype/property-uppercase-tests: New file.
56544         * modules/unictype/property-variation-selector-tests: New file.
56545         * modules/unictype/property-white-space-tests: New file.
56546         * modules/unictype/property-xid-continue-tests: New file.
56547         * modules/unictype/property-xid-start-tests: New file.
56548         * modules/unictype/property-zero-width-tests: New file.
56549         * modules/unictype/scripts-tests: New file.
56550         * modules/unictype/syntax-c-ident-tests: New file.
56551         * modules/unictype/syntax-c-whitespace-tests: New file.
56552         * modules/unictype/syntax-java-ident-tests: New file.
56553         * modules/unictype/syntax-java-whitespace-tests: New file.
56554         * tests/unictype/test-bidi_byname.c: New file.
56555         * tests/unictype/test-bidi_name.c: New file.
56556         * tests/unictype/test-bidi_of.c: New file.
56557         * tests/unictype/test-bidi_test.c: New file.
56558         * tests/unictype/test-block_list.c: New file.
56559         * tests/unictype/test-block_of.c: New file.
56560         * tests/unictype/test-block_test.c: New file.
56561         * tests/unictype/test-categ_and.c: New file.
56562         * tests/unictype/test-categ_and_not.c: New file.
56563         * tests/unictype/test-categ_byname.c: New file.
56564         * tests/unictype/test-categ_name.c: New file.
56565         * tests/unictype/test-categ_none.c: New file.
56566         * tests/unictype/test-categ_of.c: New file.
56567         * tests/unictype/test-categ_or.c: New file.
56568         * tests/unictype/test-categ_test_withtable.c: New file.
56569         * tests/unictype/test-combining.c: New file.
56570         * tests/unictype/test-decdigit.c: New file.
56571         * tests/unictype/test-digit.c: New file.
56572         * tests/unictype/test-mirror.c: New file.
56573         * tests/unictype/test-numeric.c: New file.
56574         * tests/unictype/test-pr_byname.c: New file.
56575         * tests/unictype/test-pr_test.c: New file.
56576         * tests/unictype/test-predicate-part1.h: New file.
56577         * tests/unictype/test-predicate-part2.h: New file.
56578         * tests/unictype/test-scripts.c: New file.
56579         * tests/unictype/test-sy_c_ident.c: New file.
56580         * tests/unictype/test-sy_java_ident.c: New file.
56581
56582         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56583         for Unicode 5.0.0.
56584         * tests/unictype/test-categ_Cc.c: Likewise.
56585         * tests/unictype/test-categ_Cf.c: Likewise.
56586         * tests/unictype/test-categ_Cn.c: Likewise.
56587         * tests/unictype/test-categ_Co.c: Likewise.
56588         * tests/unictype/test-categ_Cs.c: Likewise.
56589         * tests/unictype/test-categ_L.c: Likewise.
56590         * tests/unictype/test-categ_Ll.c: Likewise.
56591         * tests/unictype/test-categ_Lm.c: Likewise.
56592         * tests/unictype/test-categ_Lo.c: Likewise.
56593         * tests/unictype/test-categ_Lt.c: Likewise.
56594         * tests/unictype/test-categ_Lu.c: Likewise.
56595         * tests/unictype/test-categ_M.c: Likewise.
56596         * tests/unictype/test-categ_Mc.c: Likewise.
56597         * tests/unictype/test-categ_Me.c: Likewise.
56598         * tests/unictype/test-categ_Mn.c: Likewise.
56599         * tests/unictype/test-categ_N.c: Likewise.
56600         * tests/unictype/test-categ_Nd.c: Likewise.
56601         * tests/unictype/test-categ_Nl.c: Likewise.
56602         * tests/unictype/test-categ_No.c: Likewise.
56603         * tests/unictype/test-categ_P.c: Likewise.
56604         * tests/unictype/test-categ_Pc.c: Likewise.
56605         * tests/unictype/test-categ_Pd.c: Likewise.
56606         * tests/unictype/test-categ_Pe.c: Likewise.
56607         * tests/unictype/test-categ_Pf.c: Likewise.
56608         * tests/unictype/test-categ_Pi.c: Likewise.
56609         * tests/unictype/test-categ_Po.c: Likewise.
56610         * tests/unictype/test-categ_Ps.c: Likewise.
56611         * tests/unictype/test-categ_S.c: Likewise.
56612         * tests/unictype/test-categ_Sc.c: Likewise.
56613         * tests/unictype/test-categ_Sk.c: Likewise.
56614         * tests/unictype/test-categ_Sm.c: Likewise.
56615         * tests/unictype/test-categ_So.c: Likewise.
56616         * tests/unictype/test-categ_Z.c: Likewise.
56617         * tests/unictype/test-categ_Zl.c: Likewise.
56618         * tests/unictype/test-categ_Zp.c: Likewise.
56619         * tests/unictype/test-categ_Zs.c: Likewise.
56620         * tests/unictype/test-ctype_alnum.c: Likewise.
56621         * tests/unictype/test-ctype_alpha.c: Likewise.
56622         * tests/unictype/test-ctype_blank.c: Likewise.
56623         * tests/unictype/test-ctype_cntrl.c: Likewise.
56624         * tests/unictype/test-ctype_digit.c: Likewise.
56625         * tests/unictype/test-ctype_graph.c: Likewise.
56626         * tests/unictype/test-ctype_lower.c: Likewise.
56627         * tests/unictype/test-ctype_print.c: Likewise.
56628         * tests/unictype/test-ctype_punct.c: Likewise.
56629         * tests/unictype/test-ctype_space.c: Likewise.
56630         * tests/unictype/test-ctype_upper.c: Likewise.
56631         * tests/unictype/test-ctype_xdigit.c: Likewise.
56632         * tests/unictype/test-decdigit.h: Likewise.
56633         * tests/unictype/test-digit.h: Likewise.
56634         * tests/unictype/test-numeric.h: Likewise.
56635         * tests/unictype/test-pr_alphabetic.c: Likewise.
56636         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56637         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56638         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56639         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56640         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56641         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56642         * tests/unictype/test-pr_bidi_control.c: Likewise.
56643         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56644         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56645         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56646         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56647         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56648         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56649         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56650         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56651         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56652         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56653         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56654         * tests/unictype/test-pr_combining.c: Likewise.
56655         * tests/unictype/test-pr_composite.c: Likewise.
56656         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56657         * tests/unictype/test-pr_dash.c: Likewise.
56658         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56659         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56660         * tests/unictype/test-pr_deprecated.c: Likewise.
56661         * tests/unictype/test-pr_diacritic.c: Likewise.
56662         * tests/unictype/test-pr_extender.c: Likewise.
56663         * tests/unictype/test-pr_format_control.c: Likewise.
56664         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56665         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56666         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56667         * tests/unictype/test-pr_hex_digit.c: Likewise.
56668         * tests/unictype/test-pr_hyphen.c: Likewise.
56669         * tests/unictype/test-pr_id_continue.c: Likewise.
56670         * tests/unictype/test-pr_id_start.c: Likewise.
56671         * tests/unictype/test-pr_ideographic.c: Likewise.
56672         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56673         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56674         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56675         * tests/unictype/test-pr_iso_control.c: Likewise.
56676         * tests/unictype/test-pr_join_control.c: Likewise.
56677         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56678         * tests/unictype/test-pr_line_separator.c: Likewise.
56679         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56680         * tests/unictype/test-pr_lowercase.c: Likewise.
56681         * tests/unictype/test-pr_math.c: Likewise.
56682         * tests/unictype/test-pr_non_break.c: Likewise.
56683         * tests/unictype/test-pr_not_a_character.c: Likewise.
56684         * tests/unictype/test-pr_numeric.c: Likewise.
56685         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56686         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56687         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56688         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56689         * tests/unictype/test-pr_other_id_start.c: Likewise.
56690         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56691         * tests/unictype/test-pr_other_math.c: Likewise.
56692         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56693         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56694         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56695         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56696         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56697         * tests/unictype/test-pr_private_use.c: Likewise.
56698         * tests/unictype/test-pr_punctuation.c: Likewise.
56699         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56700         * tests/unictype/test-pr_radical.c: Likewise.
56701         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56702         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56703         * tests/unictype/test-pr_space.c: Likewise.
56704         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56705         * tests/unictype/test-pr_titlecase.c: Likewise.
56706         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56707         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56708         * tests/unictype/test-pr_uppercase.c: Likewise.
56709         * tests/unictype/test-pr_variation_selector.c: Likewise.
56710         * tests/unictype/test-pr_white_space.c: Likewise.
56711         * tests/unictype/test-pr_xid_continue.c: Likewise.
56712         * tests/unictype/test-pr_xid_start.c: Likewise.
56713         * tests/unictype/test-pr_zero_width.c: Likewise.
56714         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56715         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56716
56717 2007-11-12  Bruno Haible  <bruno@clisp.org>
56718
56719         Unicode character classification functions.
56720         * lib/unictype.h: New file.
56721         * modules/unictype/base: New file.
56722         * modules/unictype/category-L: New file.
56723         * modules/unictype/category-Lu: New file.
56724         * modules/unictype/category-Ll: New file.
56725         * modules/unictype/category-Lt: New file.
56726         * modules/unictype/category-Lm: New file.
56727         * modules/unictype/category-Lo: New file.
56728         * modules/unictype/category-M: New file.
56729         * modules/unictype/category-Mn: New file.
56730         * modules/unictype/category-Mc: New file.
56731         * modules/unictype/category-Me: New file.
56732         * modules/unictype/category-N: New file.
56733         * modules/unictype/category-Nd: New file.
56734         * modules/unictype/category-Nl: New file.
56735         * modules/unictype/category-No: New file.
56736         * modules/unictype/category-P: New file.
56737         * modules/unictype/category-Pc: New file.
56738         * modules/unictype/category-Pd: New file.
56739         * modules/unictype/category-Ps: New file.
56740         * modules/unictype/category-Pe: New file.
56741         * modules/unictype/category-Pi: New file.
56742         * modules/unictype/category-Pf: New file.
56743         * modules/unictype/category-Po: New file.
56744         * modules/unictype/category-S: New file.
56745         * modules/unictype/category-Sm: New file.
56746         * modules/unictype/category-Sc: New file.
56747         * modules/unictype/category-Sk: New file.
56748         * modules/unictype/category-So: New file.
56749         * modules/unictype/category-Z: New file.
56750         * modules/unictype/category-Zs: New file.
56751         * modules/unictype/category-Zl: New file.
56752         * modules/unictype/category-Zp: New file.
56753         * modules/unictype/category-C: New file.
56754         * modules/unictype/category-Cc: New file.
56755         * modules/unictype/category-Cf: New file.
56756         * modules/unictype/category-Cs: New file.
56757         * modules/unictype/category-Co: New file.
56758         * modules/unictype/category-Cn: New file.
56759         * modules/unictype/category-or: New file.
56760         * modules/unictype/category-of: New file.
56761         * modules/unictype/category-test: New file.
56762         * modules/unictype/category-test-withtable: New file.
56763         * modules/unictype/category-byname: New file.
56764         * modules/unictype/category-none: New file.
56765         * modules/unictype/category-and: New file.
56766         * modules/unictype/category-and-not: New file.
56767         * modules/unictype/category-name: New file.
56768         * modules/unictype/combining-class: New file.
56769         * modules/unictype/category-all: New file.
56770         * modules/unictype/bidicategory-all: New file.
56771         * modules/unictype/bidicategory-byname: New file.
56772         * modules/unictype/bidicategory-name: New file.
56773         * modules/unictype/bidicategory-of: New file.
56774         * modules/unictype/bidicategory-test: New file.
56775         * modules/unictype/decimal-digit: New file.
56776         * modules/unictype/digit: New file.
56777         * modules/unictype/numeric: New file.
56778         * modules/unictype/mirror: New file.
56779         * modules/unictype/property-white-space: New file.
56780         * modules/unictype/property-alphabetic: New file.
56781         * modules/unictype/property-other-alphabetic: New file.
56782         * modules/unictype/property-not-a-character: New file.
56783         * modules/unictype/property-default-ignorable-code-point: New file.
56784         * modules/unictype/property-other-default-ignorable-code-point: New
56785         file.
56786         * modules/unictype/property-deprecated: New file.
56787         * modules/unictype/property-logical-order-exception: New file.
56788         * modules/unictype/property-variation-selector: New file.
56789         * modules/unictype/property-private-use: New file.
56790         * modules/unictype/property-unassigned-code-value: New file.
56791         * modules/unictype/property-uppercase: New file.
56792         * modules/unictype/property-other-uppercase: New file.
56793         * modules/unictype/property-lowercase: New file.
56794         * modules/unictype/property-other-lowercase: New file.
56795         * modules/unictype/property-titlecase: New file.
56796         * modules/unictype/property-soft-dotted: New file.
56797         * modules/unictype/property-id-start: New file.
56798         * modules/unictype/property-other-id-start: New file.
56799         * modules/unictype/property-id-continue: New file.
56800         * modules/unictype/property-other-id-continue: New file.
56801         * modules/unictype/property-xid-start: New file.
56802         * modules/unictype/property-xid-continue: New file.
56803         * modules/unictype/property-pattern-white-space: New file.
56804         * modules/unictype/property-pattern-syntax: New file.
56805         * modules/unictype/property-join-control: New file.
56806         * modules/unictype/property-grapheme-base: New file.
56807         * modules/unictype/property-grapheme-extend: New file.
56808         * modules/unictype/property-other-grapheme-extend: New file.
56809         * modules/unictype/property-grapheme-link: New file.
56810         * modules/unictype/property-bidi-control: New file.
56811         * modules/unictype/property-bidi-left-to-right: New file.
56812         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56813         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56814         * modules/unictype/property-bidi-european-digit: New file.
56815         * modules/unictype/property-bidi-eur-num-separator: New file.
56816         * modules/unictype/property-bidi-eur-num-terminator: New file.
56817         * modules/unictype/property-bidi-arabic-digit: New file.
56818         * modules/unictype/property-bidi-common-separator: New file.
56819         * modules/unictype/property-bidi-block-separator: New file.
56820         * modules/unictype/property-bidi-segment-separator: New file.
56821         * modules/unictype/property-bidi-whitespace: New file.
56822         * modules/unictype/property-bidi-non-spacing-mark: New file.
56823         * modules/unictype/property-bidi-boundary-neutral: New file.
56824         * modules/unictype/property-bidi-pdf: New file.
56825         * modules/unictype/property-bidi-embedding-or-override: New file.
56826         * modules/unictype/property-bidi-other-neutral: New file.
56827         * modules/unictype/property-hex-digit: New file.
56828         * modules/unictype/property-ascii-hex-digit: New file.
56829         * modules/unictype/property-ideographic: New file.
56830         * modules/unictype/property-unified-ideograph: New file.
56831         * modules/unictype/property-radical: New file.
56832         * modules/unictype/property-ids-binary-operator: New file.
56833         * modules/unictype/property-ids-trinary-operator: New file.
56834         * modules/unictype/property-zero-width: New file.
56835         * modules/unictype/property-space: New file.
56836         * modules/unictype/property-non-break: New file.
56837         * modules/unictype/property-iso-control: New file.
56838         * modules/unictype/property-format-control: New file.
56839         * modules/unictype/property-dash: New file.
56840         * modules/unictype/property-hyphen: New file.
56841         * modules/unictype/property-punctuation: New file.
56842         * modules/unictype/property-line-separator: New file.
56843         * modules/unictype/property-paragraph-separator: New file.
56844         * modules/unictype/property-quotation-mark: New file.
56845         * modules/unictype/property-sentence-terminal: New file.
56846         * modules/unictype/property-terminal-punctuation: New file.
56847         * modules/unictype/property-currency-symbol: New file.
56848         * modules/unictype/property-math: New file.
56849         * modules/unictype/property-other-math: New file.
56850         * modules/unictype/property-paired-punctuation: New file.
56851         * modules/unictype/property-left-of-pair: New file.
56852         * modules/unictype/property-combining: New file.
56853         * modules/unictype/property-composite: New file.
56854         * modules/unictype/property-decimal-digit: New file.
56855         * modules/unictype/property-numeric: New file.
56856         * modules/unictype/property-diacritic: New file.
56857         * modules/unictype/property-extender: New file.
56858         * modules/unictype/property-ignorable-control: New file.
56859         * modules/unictype/property-test: New file.
56860         * modules/unictype/property-byname: New file.
56861         * modules/unictype/property-all: New file.
56862         * modules/unictype/scripts: New file.
56863         * modules/unictype/scripts-all: New file.
56864         * modules/unictype/block-of: New file.
56865         * modules/unictype/block-test: New file.
56866         * modules/unictype/block-list: New file.
56867         * modules/unictype/block-all: New file.
56868         * modules/unictype/syntax-c-whitespace: New file.
56869         * modules/unictype/syntax-java-whitespace: New file.
56870         * modules/unictype/syntax-c-ident: New file.
56871         * modules/unictype/syntax-java-ident: New file.
56872         * modules/unictype/ctype-alnum: New file.
56873         * modules/unictype/ctype-alpha: New file.
56874         * modules/unictype/ctype-cntrl: New file.
56875         * modules/unictype/ctype-digit: New file.
56876         * modules/unictype/ctype-graph: New file.
56877         * modules/unictype/ctype-lower: New file.
56878         * modules/unictype/ctype-print: New file.
56879         * modules/unictype/ctype-punct: New file.
56880         * modules/unictype/ctype-space: New file.
56881         * modules/unictype/ctype-upper: New file.
56882         * modules/unictype/ctype-xdigit: New file.
56883         * modules/unictype/ctype-blank: New file.
56884         * lib/unictype/bidi_byname.c: New file.
56885         * lib/unictype/bidi_name.c: New file.
56886         * lib/unictype/bidi_of.c: New file.
56887         * lib/unictype/bidi_test.c: New file.
56888         * lib/unictype/bitmap.h: New file.
56889         * lib/unictype/block_test.c: New file.
56890         * lib/unictype/blocks.c: New file.
56891         * lib/unictype/categ_C.c: New file.
56892         * lib/unictype/categ_Cc.c: New file.
56893         * lib/unictype/categ_Cf.c: New file.
56894         * lib/unictype/categ_Cn.c: New file.
56895         * lib/unictype/categ_Co.c: New file.
56896         * lib/unictype/categ_Cs.c: New file.
56897         * lib/unictype/categ_L.c: New file.
56898         * lib/unictype/categ_Ll.c: New file.
56899         * lib/unictype/categ_Lm.c: New file.
56900         * lib/unictype/categ_Lo.c: New file.
56901         * lib/unictype/categ_Lt.c: New file.
56902         * lib/unictype/categ_Lu.c: New file.
56903         * lib/unictype/categ_M.c: New file.
56904         * lib/unictype/categ_Mc.c: New file.
56905         * lib/unictype/categ_Me.c: New file.
56906         * lib/unictype/categ_Mn.c: New file.
56907         * lib/unictype/categ_N.c: New file.
56908         * lib/unictype/categ_Nd.c: New file.
56909         * lib/unictype/categ_Nl.c: New file.
56910         * lib/unictype/categ_No.c: New file.
56911         * lib/unictype/categ_P.c: New file.
56912         * lib/unictype/categ_Pc.c: New file.
56913         * lib/unictype/categ_Pd.c: New file.
56914         * lib/unictype/categ_Pe.c: New file.
56915         * lib/unictype/categ_Pf.c: New file.
56916         * lib/unictype/categ_Pi.c: New file.
56917         * lib/unictype/categ_Po.c: New file.
56918         * lib/unictype/categ_Ps.c: New file.
56919         * lib/unictype/categ_S.c: New file.
56920         * lib/unictype/categ_Sc.c: New file.
56921         * lib/unictype/categ_Sk.c: New file.
56922         * lib/unictype/categ_Sm.c: New file.
56923         * lib/unictype/categ_So.c: New file.
56924         * lib/unictype/categ_Z.c: New file.
56925         * lib/unictype/categ_Zl.c: New file.
56926         * lib/unictype/categ_Zp.c: New file.
56927         * lib/unictype/categ_Zs.c: New file.
56928         * lib/unictype/categ_and.c: New file.
56929         * lib/unictype/categ_and_not.c: New file.
56930         * lib/unictype/categ_byname.c: New file.
56931         * lib/unictype/categ_name.c: New file.
56932         * lib/unictype/categ_none.c: New file.
56933         * lib/unictype/categ_of.c: New file.
56934         * lib/unictype/categ_or.c: New file.
56935         * lib/unictype/categ_test.c: New file.
56936         * lib/unictype/combining.c: New file.
56937         * lib/unictype/ctype_alnum.c: New file.
56938         * lib/unictype/ctype_alpha.c: New file.
56939         * lib/unictype/ctype_blank.c: New file.
56940         * lib/unictype/ctype_cntrl.c: New file.
56941         * lib/unictype/ctype_digit.c: New file.
56942         * lib/unictype/ctype_graph.c: New file.
56943         * lib/unictype/ctype_lower.c: New file.
56944         * lib/unictype/ctype_print.c: New file.
56945         * lib/unictype/ctype_punct.c: New file.
56946         * lib/unictype/ctype_space.c: New file.
56947         * lib/unictype/ctype_upper.c: New file.
56948         * lib/unictype/ctype_xdigit.c: New file.
56949         * lib/unictype/decdigit.c: New file.
56950         * lib/unictype/digit.c: New file.
56951         * lib/unictype/identsyntaxmap.h: New file.
56952         * lib/unictype/mirror.c: New file.
56953         * lib/unictype/numeric.c: New file.
56954         * lib/unictype/pr_alphabetic.c: New file.
56955         * lib/unictype/pr_ascii_hex_digit.c: New file.
56956         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56957         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56958         * lib/unictype/pr_bidi_block_separator.c: New file.
56959         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56960         * lib/unictype/pr_bidi_common_separator.c: New file.
56961         * lib/unictype/pr_bidi_control.c: New file.
56962         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56963         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56964         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56965         * lib/unictype/pr_bidi_european_digit.c: New file.
56966         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56967         * lib/unictype/pr_bidi_left_to_right.c: New file.
56968         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56969         * lib/unictype/pr_bidi_other_neutral.c: New file.
56970         * lib/unictype/pr_bidi_pdf.c: New file.
56971         * lib/unictype/pr_bidi_segment_separator.c: New file.
56972         * lib/unictype/pr_bidi_whitespace.c: New file.
56973         * lib/unictype/pr_byname.c: New file.
56974         * lib/unictype/pr_byname.gperf: New file.
56975         * lib/unictype/pr_combining.c: New file.
56976         * lib/unictype/pr_composite.c: New file.
56977         * lib/unictype/pr_currency_symbol.c: New file.
56978         * lib/unictype/pr_dash.c: New file.
56979         * lib/unictype/pr_decimal_digit.c: New file.
56980         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56981         * lib/unictype/pr_deprecated.c: New file.
56982         * lib/unictype/pr_diacritic.c: New file.
56983         * lib/unictype/pr_extender.c: New file.
56984         * lib/unictype/pr_format_control.c: New file.
56985         * lib/unictype/pr_grapheme_base.c: New file.
56986         * lib/unictype/pr_grapheme_extend.c: New file.
56987         * lib/unictype/pr_grapheme_link.c: New file.
56988         * lib/unictype/pr_hex_digit.c: New file.
56989         * lib/unictype/pr_hyphen.c: New file.
56990         * lib/unictype/pr_id_continue.c: New file.
56991         * lib/unictype/pr_id_start.c: New file.
56992         * lib/unictype/pr_ideographic.c: New file.
56993         * lib/unictype/pr_ids_binary_operator.c: New file.
56994         * lib/unictype/pr_ids_trinary_operator.c: New file.
56995         * lib/unictype/pr_ignorable_control.c: New file.
56996         * lib/unictype/pr_iso_control.c: New file.
56997         * lib/unictype/pr_join_control.c: New file.
56998         * lib/unictype/pr_left_of_pair.c: New file.
56999         * lib/unictype/pr_line_separator.c: New file.
57000         * lib/unictype/pr_logical_order_exception.c: New file.
57001         * lib/unictype/pr_lowercase.c: New file.
57002         * lib/unictype/pr_math.c: New file.
57003         * lib/unictype/pr_non_break.c: New file.
57004         * lib/unictype/pr_not_a_character.c: New file.
57005         * lib/unictype/pr_numeric.c: New file.
57006         * lib/unictype/pr_other_alphabetic.c: New file.
57007         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
57008         * lib/unictype/pr_other_grapheme_extend.c: New file.
57009         * lib/unictype/pr_other_id_continue.c: New file.
57010         * lib/unictype/pr_other_id_start.c: New file.
57011         * lib/unictype/pr_other_lowercase.c: New file.
57012         * lib/unictype/pr_other_math.c: New file.
57013         * lib/unictype/pr_other_uppercase.c: New file.
57014         * lib/unictype/pr_paired_punctuation.c: New file.
57015         * lib/unictype/pr_paragraph_separator.c: New file.
57016         * lib/unictype/pr_pattern_syntax.c: New file.
57017         * lib/unictype/pr_pattern_white_space.c: New file.
57018         * lib/unictype/pr_private_use.c: New file.
57019         * lib/unictype/pr_punctuation.c: New file.
57020         * lib/unictype/pr_quotation_mark.c: New file.
57021         * lib/unictype/pr_radical.c: New file.
57022         * lib/unictype/pr_sentence_terminal.c: New file.
57023         * lib/unictype/pr_soft_dotted.c: New file.
57024         * lib/unictype/pr_space.c: New file.
57025         * lib/unictype/pr_terminal_punctuation.c: New file.
57026         * lib/unictype/pr_test.c: New file.
57027         * lib/unictype/pr_titlecase.c: New file.
57028         * lib/unictype/pr_unassigned_code_value.c: New file.
57029         * lib/unictype/pr_unified_ideograph.c: New file.
57030         * lib/unictype/pr_uppercase.c: New file.
57031         * lib/unictype/pr_variation_selector.c: New file.
57032         * lib/unictype/pr_white_space.c: New file.
57033         * lib/unictype/pr_xid_continue.c: New file.
57034         * lib/unictype/pr_xid_start.c: New file.
57035         * lib/unictype/pr_zero_width.c: New file.
57036         * lib/unictype/scripts.c: New file.
57037         * lib/unictype/sy_c_ident.c: New file.
57038         * lib/unictype/sy_c_whitespace.c: New file.
57039         * lib/unictype/sy_java_ident.c: New file.
57040         * lib/unictype/sy_java_whitespace.c: New file.
57041
57042         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
57043         Unicode 5.0.0.
57044         * lib/unictype/blocks.h: Likewise.
57045         * lib/unictype/categ_C.h: Likewise.
57046         * lib/unictype/categ_Cc.h: Likewise.
57047         * lib/unictype/categ_Cf.h: Likewise.
57048         * lib/unictype/categ_Cn.h: Likewise.
57049         * lib/unictype/categ_Co.h: Likewise.
57050         * lib/unictype/categ_Cs.h: Likewise.
57051         * lib/unictype/categ_L.h: Likewise.
57052         * lib/unictype/categ_Ll.h: Likewise.
57053         * lib/unictype/categ_Lm.h: Likewise.
57054         * lib/unictype/categ_Lo.h: Likewise.
57055         * lib/unictype/categ_Lt.h: Likewise.
57056         * lib/unictype/categ_Lu.h: Likewise.
57057         * lib/unictype/categ_M.h: Likewise.
57058         * lib/unictype/categ_Mc.h: Likewise.
57059         * lib/unictype/categ_Me.h: Likewise.
57060         * lib/unictype/categ_Mn.h: Likewise.
57061         * lib/unictype/categ_N.h: Likewise.
57062         * lib/unictype/categ_Nd.h: Likewise.
57063         * lib/unictype/categ_Nl.h: Likewise.
57064         * lib/unictype/categ_No.h: Likewise.
57065         * lib/unictype/categ_P.h: Likewise.
57066         * lib/unictype/categ_Pc.h: Likewise.
57067         * lib/unictype/categ_Pd.h: Likewise.
57068         * lib/unictype/categ_Pe.h: Likewise.
57069         * lib/unictype/categ_Pf.h: Likewise.
57070         * lib/unictype/categ_Pi.h: Likewise.
57071         * lib/unictype/categ_Po.h: Likewise.
57072         * lib/unictype/categ_Ps.h: Likewise.
57073         * lib/unictype/categ_S.h: Likewise.
57074         * lib/unictype/categ_Sc.h: Likewise.
57075         * lib/unictype/categ_Sk.h: Likewise.
57076         * lib/unictype/categ_Sm.h: Likewise.
57077         * lib/unictype/categ_So.h: Likewise.
57078         * lib/unictype/categ_Z.h: Likewise.
57079         * lib/unictype/categ_Zl.h: Likewise.
57080         * lib/unictype/categ_Zp.h: Likewise.
57081         * lib/unictype/categ_Zs.h: Likewise.
57082         * lib/unictype/categ_of.h: Likewise.
57083         * lib/unictype/combining.h: Likewise.
57084         * lib/unictype/ctype_alnum.h: Likewise.
57085         * lib/unictype/ctype_alpha.h: Likewise.
57086         * lib/unictype/ctype_blank.h: Likewise.
57087         * lib/unictype/ctype_cntrl.h: Likewise.
57088         * lib/unictype/ctype_digit.h: Likewise.
57089         * lib/unictype/ctype_graph.h: Likewise.
57090         * lib/unictype/ctype_lower.h: Likewise.
57091         * lib/unictype/ctype_print.h: Likewise.
57092         * lib/unictype/ctype_punct.h: Likewise.
57093         * lib/unictype/ctype_space.h: Likewise.
57094         * lib/unictype/ctype_upper.h: Likewise.
57095         * lib/unictype/ctype_xdigit.h: Likewise.
57096         * lib/unictype/decdigit.h: Likewise.
57097         * lib/unictype/digit.h: Likewise.
57098         * lib/unictype/mirror.h: Likewise.
57099         * lib/unictype/numeric.h: Likewise.
57100         * lib/unictype/pr_alphabetic.h: Likewise.
57101         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57102         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57103         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57104         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57105         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57106         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57107         * lib/unictype/pr_bidi_control.h: Likewise.
57108         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57109         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57110         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57111         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57112         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57113         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57114         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57115         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57116         * lib/unictype/pr_bidi_pdf.h: Likewise.
57117         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57118         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57119         * lib/unictype/pr_combining.h: Likewise.
57120         * lib/unictype/pr_composite.h: Likewise.
57121         * lib/unictype/pr_currency_symbol.h: Likewise.
57122         * lib/unictype/pr_dash.h: Likewise.
57123         * lib/unictype/pr_decimal_digit.h: Likewise.
57124         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57125         * lib/unictype/pr_deprecated.h: Likewise.
57126         * lib/unictype/pr_diacritic.h: Likewise.
57127         * lib/unictype/pr_extender.h: Likewise.
57128         * lib/unictype/pr_format_control.h: Likewise.
57129         * lib/unictype/pr_grapheme_base.h: Likewise.
57130         * lib/unictype/pr_grapheme_extend.h: Likewise.
57131         * lib/unictype/pr_grapheme_link.h: Likewise.
57132         * lib/unictype/pr_hex_digit.h: Likewise.
57133         * lib/unictype/pr_hyphen.h: Likewise.
57134         * lib/unictype/pr_id_continue.h: Likewise.
57135         * lib/unictype/pr_id_start.h: Likewise.
57136         * lib/unictype/pr_ideographic.h: Likewise.
57137         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57138         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57139         * lib/unictype/pr_ignorable_control.h: Likewise.
57140         * lib/unictype/pr_iso_control.h: Likewise.
57141         * lib/unictype/pr_join_control.h: Likewise.
57142         * lib/unictype/pr_left_of_pair.h: Likewise.
57143         * lib/unictype/pr_line_separator.h: Likewise.
57144         * lib/unictype/pr_logical_order_exception.h: Likewise.
57145         * lib/unictype/pr_lowercase.h: Likewise.
57146         * lib/unictype/pr_math.h: Likewise.
57147         * lib/unictype/pr_non_break.h: Likewise.
57148         * lib/unictype/pr_not_a_character.h: Likewise.
57149         * lib/unictype/pr_numeric.h: Likewise.
57150         * lib/unictype/pr_other_alphabetic.h: Likewise.
57151         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57152         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57153         * lib/unictype/pr_other_id_continue.h: Likewise.
57154         * lib/unictype/pr_other_id_start.h: Likewise.
57155         * lib/unictype/pr_other_lowercase.h: Likewise.
57156         * lib/unictype/pr_other_math.h: Likewise.
57157         * lib/unictype/pr_other_uppercase.h: Likewise.
57158         * lib/unictype/pr_paired_punctuation.h: Likewise.
57159         * lib/unictype/pr_paragraph_separator.h: Likewise.
57160         * lib/unictype/pr_pattern_syntax.h: Likewise.
57161         * lib/unictype/pr_pattern_white_space.h: Likewise.
57162         * lib/unictype/pr_private_use.h: Likewise.
57163         * lib/unictype/pr_punctuation.h: Likewise.
57164         * lib/unictype/pr_quotation_mark.h: Likewise.
57165         * lib/unictype/pr_radical.h: Likewise.
57166         * lib/unictype/pr_sentence_terminal.h: Likewise.
57167         * lib/unictype/pr_soft_dotted.h: Likewise.
57168         * lib/unictype/pr_space.h: Likewise.
57169         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57170         * lib/unictype/pr_titlecase.h: Likewise.
57171         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57172         * lib/unictype/pr_unified_ideograph.h: Likewise.
57173         * lib/unictype/pr_uppercase.h: Likewise.
57174         * lib/unictype/pr_variation_selector.h: Likewise.
57175         * lib/unictype/pr_white_space.h: Likewise.
57176         * lib/unictype/pr_xid_continue.h: Likewise.
57177         * lib/unictype/pr_xid_start.h: Likewise.
57178         * lib/unictype/pr_zero_width.h: Likewise.
57179         * lib/unictype/scripts.h: Likewise.
57180         * lib/unictype/scripts_byname.gperf: Likewise.
57181         * lib/unictype/sy_c_ident.h: Likewise.
57182         * lib/unictype/sy_c_whitespace.h: Likewise.
57183         * lib/unictype/sy_java_ident.h: Likewise.
57184         * lib/unictype/sy_java_whitespace.h: Likewise.
57185
57186         * lib/unictype/Makefile: New file.
57187         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57188         glibc.
57189         * lib/unictype/3level.h: New file, copied from glibc.
57190         * lib/unictype/3levelbit.h: New file.
57191
57192 2007-11-11  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/gperf: New file.
57195         * modules/iconv_open (Depends-on): Add it.
57196         (Makefile.am): Remove the GPERF definition.
57197
57198 2007-11-11  Bruno Haible  <bruno@clisp.org>
57199
57200         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57201         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57202
57203 2007-11-11  Bruno Haible  <bruno@clisp.org>
57204
57205         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57206         (usage): Remove function.
57207
57208 2007-11-11  Bruno Haible  <bruno@clisp.org>
57209
57210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57211         gl_FUNC_CEILF_LIBS.
57212         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57213         gl_FUNC_CEIL_LIBS.
57214         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57215         gl_FUNC_CEILL_LIBS.
57216         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57217         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57218         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57219
57220 2007-11-11  Bruno Haible  <bruno@clisp.org>
57221
57222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57223         roundf were declared but do not exist on functions.
57224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57225         roundl were declared but do not exist on functions.
57226         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57227         HAVE_FLOORL_AND_CEILL, respectively.
57228         Needed for Sun C on Solaris 10.
57229
57230 2007-11-11  Bruno Haible  <bruno@clisp.org>
57231
57232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57233         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57234         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57235         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57236         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57237         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57238         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57239         HAVE_DECL_ROUNDF.
57240         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57241         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57243         of HAVE_DECL_ROUND*.
57244         * modules/math (Makefile.am): Update.
57245
57246 2007-11-10  Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57249         ptrdiff_t as m4/intl.m4.
57250
57251 2007-11-10  Jim Meyering  <meyering@redhat.com>
57252
57253         Avoid link failure for the argmatch test.
57254         * tests/test-argmatch.c (usage): Define function to avoid a link
57255         failure: argmatch_die requires a usage function.
57256
57257 2007-11-09  Bruno Haible  <bruno@clisp.org>
57258
57259         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57260         * doc/functions/vsnprintf.texi: Likewise.
57261         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57262         with a size argument < 2.
57263
57264 2007-11-09  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57267         buffer. Fixes an inefficiency introduced on 2007-11-03.
57268
57269 2007-11-09  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57272         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57273
57274 2007-11-08  Jim Meyering  <meyering@redhat.com>
57275
57276         Change cache variable name prefix "jm_" to "gl_" everywhere.
57277         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57278         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57279         * m4/uptime.m4: s/gl_/jm_/
57280
57281 2007-11-07  Bruno Haible  <bruno@clisp.org>
57282
57283         Update to GNU gettext 0.17.
57284         * m4/intl.m4: Update to GNU gettext 0.17.
57285         * m4/po.m4: Likewise.
57286         * modules/gettext (Files): Remove m4/ulonglong.m4.
57287         (configure.ac): Require gettext infrastructure from version 0.17.
57288
57289 2007-11-06  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57292         symbolic values are not defined in a public header.
57293         * lib/freadable.c (freadable) [QNX]: Likewise.
57294         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57295         * lib/freading.c (freading) [QNX]: Likewise.
57296         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57297         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57298         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57299         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57300         Reported by Alain Magloire.
57301
57302         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57303
57304 2007-11-05  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57307         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57308         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57309         Reported by Eric Blake.
57310
57311 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57312             Bruno Haible  <bruno@clisp.org>
57313
57314         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57315         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57316         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57317         (malloc): Undefine also before including <stdlib.h>.
57318         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57319         Needed on OSF/1 4.0.
57320
57321 2007-11-05  Jim Meyering  <meyering@redhat.com>
57322
57323         git-version-gen: sync from coreutils.
57324         * build-aux/git-version-gen: Add comments.
57325         Change the first '-' to '.' in the snapshot version string,
57326         e.g., 6.9-377-08144 -> 6.9.377-08144
57327         Remove first parameter.
57328         Don't declare a version "-dirty" merely because a time
57329         stamp has changed.
57330
57331 2007-11-04  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/lock.h: Protect all macro definitions containing an 'if'
57334         statement through a "do { ... } while (0)".
57335         * lib/tls.h: Likewise.
57336
57337 2007-11-04  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57340
57341 2007-11-04  Bruno Haible  <bruno@clisp.org>
57342
57343         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57344         * modules/fprintf-posix (Depends-on): Add nocrash.
57345         * modules/snprintf-posix (Depends-on): Likewise.
57346         * modules/sprintf-posix (Depends-on): Likewise.
57347         * modules/vasnprintf-posix (Depends-on): Likewise.
57348         * modules/vasprintf-posix (Depends-on): Likewise.
57349         * modules/vfprintf-posix (Depends-on): Likewise.
57350         * modules/vsnprintf-posix (Depends-on): Likewise.
57351         * modules/vsprintf-posix (Depends-on): Likewise.
57352         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57353         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57354         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57355         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57356         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57357         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57358         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57359
57360 2007-11-04  Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/nocrash: New file.
57363         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57364         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57365
57366 2007-11-04  Bruno Haible  <bruno@clisp.org>
57367
57368         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57369         precision handling.
57370         * tests/test-vasprintf-posix.c (test_function): Likewise.
57371         * tests/test-snprintf-posix.h (test_function): Likewise.
57372         * tests/test-sprintf-posix.h (test_function): Likewise.
57373
57374         Fix *printf behaviour for large precisions on mingw and BeOS.
57375         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57376         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57378         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57379         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57380         gl_PRINTF_PRECISION and test its result. Invoke
57381         gl_PREREQ_VASNPRINTF_PRECISION.
57382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57389         * doc/functions/fprintf.texi: Update.
57390         * doc/functions/printf.texi: Update.
57391         * doc/functions/snprintf.texi: Update.
57392         * doc/functions/sprintf.texi: Update.
57393         * doc/functions/vfprintf.texi: Update.
57394         * doc/functions/vprintf.texi: Update.
57395         * doc/functions/vsnprintf.texi: Update.
57396         * doc/functions/vsprintf.texi: Update.
57397
57398 2007-11-04  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57401
57402 2007-11-04  Bruno Haible  <bruno@clisp.org>
57403
57404         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57405         Reported by Sylvain Beucler <beuc@gnu.org>.
57406
57407 2007-11-03  Bruno Haible  <bruno@clisp.org>
57408
57409         * tests/test-fprintf-posix2.sh: New file.
57410         * tests/test-fprintf-posix2.c: New file.
57411         * modules/fprintf-posix-tests (Files): Add them.
57412         (TESTS): Add test-fprintf-posix2.sh.
57413         (configure.ac): Check for getrlimit and setrlimit.
57414         (check_PROGRAMS): Add test-fprintf-posix2.
57415
57416         * tests/test-printf-posix2.sh: New file.
57417         * tests/test-printf-posix2.c: New file.
57418         * modules/printf-posix-tests (Files): Add them.
57419         (TESTS): Add test-printf-posix2.sh.
57420         (configure.ac): Check for getrlimit and setrlimit.
57421         (check_PROGRAMS): Add test-printf-posix2.
57422
57423         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57424         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57425         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57426         (decode_double): New function, copied from decode_long_double.
57427         (scale10_round_decimal_decoded): New function, extracted from
57428         scale10_round_decimal_long_double.
57429         (scale10_round_decimal_long_double): Use it.
57430         (scale10_round_decimal_double): New function.
57431         (floorlog10): New function.
57432         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57434         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57435         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57436         gl_PRINTF_ENOMEM and test its result. Invoke
57437         gl_PREREQ_VASNPRINTF_ENOMEM.
57438         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57442         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57443         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57444         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57445         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57446         * modules/snprintf-posix (Depends-on): Likewise.
57447         * modules/sprintf-posix (Depends-on): Likewise.
57448         * modules/vasnprintf-posix (Depends-on): Likewise.
57449         * modules/vasprintf-posix (Depends-on): Likewise.
57450         * modules/vfprintf-posix (Depends-on): Likewise.
57451         * modules/vsnprintf-posix (Depends-on): Likewise.
57452         * modules/vsprintf-posix (Depends-on): Likewise.
57453         * doc/functions/fprintf.texi: Update.
57454         * doc/functions/printf.texi: Update.
57455         * doc/functions/snprintf.texi: Update.
57456         * doc/functions/sprintf.texi: Update.
57457         * doc/functions/vfprintf.texi: Update.
57458         * doc/functions/vprintf.texi: Update.
57459         * doc/functions/vsnprintf.texi: Update.
57460         * doc/functions/vsprintf.texi: Update.
57461
57462 2007-11-03  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/frexp-nolibm-tests: New file.
57465
57466         * modules/frexp-nolibm: New file.
57467         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57468
57469 2007-11-03  Bruno Haible  <bruno@clisp.org>
57470
57471         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57472         value is C99 compliant.
57473         Needed for OSF/1 5.1.
57474
57475 2007-11-03  Bruno Haible  <bruno@clisp.org>
57476
57477         Fix out-of-memory handling of vasnprintf.
57478         * lib/printf-parse.c: Include <errno.h>.
57479         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57480         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57481         is already set.
57482
57483 2007-11-02  Eric Blake  <ebb9@byu.net>
57484
57485         Fix tests on cygwin.
57486         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57487
57488 2007-11-01  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57491         warning.
57492         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57493         needed for POSIX compatibility.
57494
57495 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57498         for compatibility with GNU.
57499
57500 2007-11-01  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57503         (putenv): Renamed from rpl_putenv. Change argument type from
57504         'const char *' to 'char *'.
57505         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57506         of defining putenv in config.h, just set REPLACE_PUTENV.
57507         * modules/putenv (Depends-on): Add stdlib.
57508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57509         (Include): Use <stdlib.h>.
57510         * lib/stdlib.in.h (putenv): New declaration.
57511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57512         REPLACE_PUTENV.
57513         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57514         REPLACE_PUTENV.
57515         Needed for MacOS X 10.5.0.
57516         Reported by Peter O'Gorman <peter@pogma.com>.
57517
57518 2007-11-01  Jim Meyering  <meyering@redhat.com>
57519
57520         Treat an empty date string exactly like "0".
57521         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57522         if the remaining date string (to be parsed) is empty, use "0".
57523         Reported by Mischa Molhoek and discussed in this thread:
57524         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57525
57526 2007-10-31  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57529         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57530         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57531         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57532         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57533         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57534
57535 2007-10-31  Bruno Haible  <bruno@clisp.org>
57536
57537         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57538         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57539         (AC_TYPE_LONG_LONG_INT): Use it.
57540         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57541         it as well.
57542         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57543         to m4/longlong.m4.
57544         * modules/stdint (Files): Remove m4/ulonglong.m4.
57545         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57546         m4/ulonglong.m4.
57547         * modules/strtoumax (Files): Likewise.
57548
57549 2007-10-30  Bruno Haible  <bruno@clisp.org>
57550
57551         * modules/xvasprintf-posix: New file.
57552         Suggested by Eric Blake.
57553
57554 2007-10-30  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/xprintf-posix-tests: New file.
57557         * tests/test-xprintf-posix.sh: New file.
57558         * tests/test-xprintf-posix.c: New file.
57559         * tests/test-xfprintf-posix.c: New file.
57560
57561         * modules/xprintf-posix: New file.
57562
57563 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57564
57565         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57566         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57567         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57568
57569 2007-10-29  Bruno Haible  <bruno@clisp.org>
57570
57571         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57572         contain the special marker '_cv_'.
57573         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57574         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57575         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57576         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57577         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57578         Reported by Ralf Wildenhues.
57579
57580 2007-10-29  Bruno Haible  <bruno@clisp.org>
57581
57582         * gnulib-tool (func_import): When --lgpl is not specified, set
57583         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57584         GPLv3.
57585         Reported by Simon Josefsson.
57586
57587 2007-10-28  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57590         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57591         HAVE_DECL_ISFINITE.
57592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57593         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57594         HAVE_DECL_ISFINITE.
57595
57596 2007-10-28  Bruno Haible  <bruno@clisp.org>
57597
57598         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57599         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57600
57601 2007-10-28  Bruno Haible  <bruno@clisp.org>
57602
57603         Fix link errors with Sun C 5.0 on Solaris 10.
57604         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57605         function is declared but not present in the compiler's libm.
57606         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57607         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57608         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57609         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57610         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57611         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57612         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57614         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57615         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57616         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57617         HAVE_DECL_FLOORL.
57618
57619 2007-10-28  Bruno Haible  <bruno@clisp.org>
57620
57621         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57622         gl_FUNC_FLOORL. Cache the result.
57623         (gl_FUNC_FLOORL): Use it.
57624         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57625         gl_FUNC_CEILL. Cache the result.
57626         (gl_FUNC_CEILL): Use it.
57627
57628         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57629         gl_FUNC_FLOOR. Cache the result.
57630         (gl_FUNC_FLOOR): Use it.
57631         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57632         gl_FUNC_CEIL. Cache the result.
57633         (gl_FUNC_CEIL): Use it.
57634
57635         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57636         gl_FUNC_FLOORF. Cache the result.
57637         (gl_FUNC_FLOORF): Use it.
57638         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57639         gl_FUNC_CEILF. Cache the result.
57640         (gl_FUNC_CEILF): Use it.
57641
57642 2007-10-28  Bruno Haible  <bruno@clisp.org>
57643
57644         * gnulib-tool: Allow specifying the LGPL version number through
57645         --lgpl=2 or --lgpl=3.
57646         (func_usage): Document --lgpl with argument.
57647         Handle --lgpl=... arguments.
57648         (func_import): Recognize also gl_LGPL calls with an argument. When
57649         --lgpl=2 is used and the module's license is just LGPL, report an
57650         error. Set sed_transform_lib_file according to the lgpl variable. In
57651         the generated files, use --lgpl or gl_LGPL invocations with argument,
57652         if necessary.
57653         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57654         an LGPv2+ license.
57655         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57656         gl_LGPL macro.
57657
57658 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57659             Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57662         (u16_uctomb_aux): Likewise.
57663         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57664         !HAVE_INLINE.
57665         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57666
57667 2007-10-28  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57670         Invoke AM_GETTEXT_OPTION if it exists.
57671         * modules/vasprintf: Likewise.
57672         * modules/verror: Likewise.
57673         * modules/xprintf: Likewise.
57674         * modules/xvasprintf: Likewise.
57675
57676 2007-10-27  Ben Pfaff  <blp@gnu.org>
57677
57678         * lib/math.in.h: Define isfinite macro and prototypes for
57679         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57680         implementations.
57681         * m4/math_h.m4: New substitutions for isfinite module.
57682         * lib/isfinite.c: New file.
57683         * m4/isfinite.m4: New file.
57684         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57685         * modules/isfinite: New file.
57686         * modules/isfinite-tests: New file.
57687         * tests/tests-isfinite.c: New file.
57688         * doc/functions/isfinite.texi: Mention isfinite module.
57689         * MODULES.html.sh: Mention new module.
57690
57691 2007-10-27  Ben Pfaff  <blp@gnu.org>
57692
57693         Ralf Wildenhues reported that Tru64 4.0D declares the round
57694         functions but does not have definitions.
57695         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57696         cannot be found in any library, set the output variable to
57697         "missing" instead of "".
57698         * m4/round.m4: Also use our substitute if we cannot find round in
57699         any library, even if it is declared.
57700         * m4/roundf.m4: Likewise for roundf.
57701         * m4/roundl.m4: Likewise for roundl.
57702         * lib/math.in.h: Undefine roundf, round, roundl before defining
57703         their replacements, to allow for hypothetical systems where these
57704         may be defined as macros but not available in libraries.
57705
57706 2007-10-27  Bruno Haible  <bruno@clisp.org>
57707
57708         * doc/gnulib.texi: Invoke @firstparagraphindent.
57709         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57710         changes in gnulib.
57711         (Source changes): New section.
57712
57713 2007-10-26  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57716         borrowed from autoconf.
57717
57718 2007-10-26  Bruno Haible  <bruno@clisp.org>
57719
57720         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57721         strerror returned the empty string. Needed on HP-UX 11.00.
57722
57723 2007-10-24  Micah Cowan  <micah@cowan.name>
57724
57725         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57726         * build-aux/bootstrap: Remove support for now-unnecessary option,
57727         --cvs-user, and envvars CVS_USER, CVS_RSH.
57728
57729 2007-10-24  Jim Meyering  <meyering@redhat.com>
57730
57731         Avoid diagnostics from sha1sum when there is no cached checksum.
57732         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57733         if the po.s1 file hasn't been created yet.
57734
57735         * build-aux/bootstrap: Sync from coreutils:
57736         2007-10-24  Jim Meyering  <meyering@redhat.com>
57737         Get gnulib from the git repository, not from an obsolete cvs one.
57738         * build-aux/bootstrap: Suggestion from Micah Cowan.
57739         2007-10-04  Jim Meyering  <jim@meyering.net>
57740         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57741         (update_po_files): Work also when there are no .po files in po/.
57742
57743 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * README: Append ".git" to git and cg examples.
57746         Problem reported by Benoit Sigoure.
57747
57748 2007-10-23  Micah Cowan  <micah@cowan.name>
57749
57750         * users.txt: Add wget.
57751
57752 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57753
57754         Fix linking of some unistdio tests on FreeBSD.
57755         * modules/unistdio/u16-vsnprintf-tests
57756         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57757         * modules/unistdio/u16-vsprintf-tests
57758         (test_u16_vsnprintf1_LDADD): Likewise.
57759         * modules/unistdio/u32-vsnprintf-tests
57760         (test_u32_vsnprintf1_LDADD): Likewise.
57761         * modules/unistdio/u32-vsprintf-tests
57762         (test_u32_vsprintf1_LDADD): Likewise.
57763         * modules/unistdio/u8-vsnprintf-tests
57764         (test_u8_vsnprintf1_LDADD): Likewise.
57765         * modules/unistdio/u8-vsprintf-tests
57766         (test_u8_vsprintf1_LDADD): Likewise.
57767         * modules/unistdio/ulc-vsnprintf-tests
57768         (test_ulc_vsnprintf1_LDADD): Likewise.
57769         * modules/unistdio/ulc-vsprintf-tests
57770         (test_ulc_vsprintf1_LDADD): Likewise.
57771
57772         Fix linking of some uniconv tests on FreeBSD.
57773         * modules/uniconv/u16-conv-from-enc-tests
57774         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57775         * modules/uniconv/u16-conv-to-enc-tests
57776         (test_u16_conv_to_enc_LDADD): Likewise.
57777         * modules/uniconv/u16-strconv-from-enc-tests
57778         (test_u16_strconv_from_enc_LDADD): Likewise.
57779         * modules/uniconv/u16-strconv-to-enc-tests
57780         (test_u16_strconv_to_enc_LDADD): Likewise.
57781         * modules/uniconv/u32-conv-from-enc-tests
57782         (test_u32_conv_from_enc_LDADD): Likewise.
57783         * modules/uniconv/u32-conv-to-enc-tests
57784         (test_u32_conv_to_enc_LDADD): Likewise.
57785         * modules/uniconv/u32-strconv-from-enc-tests
57786         (test_u32_strconv_from_enc_LDADD): Likewise.
57787         * modules/uniconv/u32-strconv-to-enc-tests
57788         (test_u32_strconv_to_enc_LDADD): Likewise.
57789         * modules/uniconv/u8-conv-from-enc-tests
57790         (test_u8_conv_from_enc_LDADD): Likewise.
57791         * modules/uniconv/u8-conv-to-enc-tests
57792         (test_u8_conv_to_enc_LDADD): Likewise.
57793         * modules/uniconv/u8-strconv-from-enc-tests
57794         (test_u8_strconv_from_enc_LDADD): Likewise.
57795         * modules/uniconv/u8-strconv-to-enc-tests
57796         (test_u8_strconv_to_enc_LDADD): Likewise.
57797
57798 2007-10-22  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57801         size.
57802
57803 2007-10-22  Eric Blake  <ebb9@byu.net>
57804
57805         Tweak x*printf documentation.
57806         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57807         variable name and comments.
57808         Suggested by Bruno Haible.
57809
57810 2007-10-22  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/acl.c (copy_acl): Fix file name in comment.
57813
57814 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         Fix Tru64 problem with stdbool.h.
57817         * lib/stdbool.in.h (false, true):
57818         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57819         Don't declare as an enum in this situation; it runs afoul of Tru64.
57820         Problem reported by Steven M. Schweda in
57821         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57822
57823 2007-10-22  Eric Blake  <ebb9@byu.net>
57824
57825         Also wrap vf?printf.
57826         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57827         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57828         (xvprintf, xvfprintf): New functions.
57829
57830 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57831
57832         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57833         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57834
57835         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57836         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57837
57838 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57841         by Bruno Haible.
57842
57843 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57844
57845         * lib/getloadavg.c
57846         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57847         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57848
57849         * tests/test-i-ring.c: Work for C89.
57850
57851 2007-10-22  Bruno Haible  <bruno@clisp.org>
57852
57853         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57854         -1u, in preprocessor expression, so that we don't test for the bug
57855         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57857
57858 2007-10-22  Eric Blake  <ebb9@byu.net>
57859
57860         * tests/test-yesno.sh: Silence stderr during test.
57861
57862 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57863
57864         * modules/crypto/gc-camellia: New file.
57865
57866         * m4/gc-camellia.m4: New file.
57867
57868         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57869
57870         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57871
57872 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57873
57874         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57875         --help to stdout.  Reported by sms@antinode.org (Steven
57876         M. Schweda).
57877
57878 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57879
57880         * users.txt: Fix link to libksba.
57881
57882 2007-10-21  Ben Pfaff  <blp@gnu.org>
57883
57884         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57885         round.c roundf implementation that depends on floorf and ceilf to
57886         be tested unconditionally.
57887
57888 2007-10-21  Ben Pfaff  <blp@gnu.org>
57889
57890         * m4/check-libm-func.m4: Removed.
57891         * m4/check-math-lib.m4: New file.
57892         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57893         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57894         definition and lack of AC_LIBOBJ([roundf]).
57895         * m4/roundl.m4: Ditto, and similarly for roundl.
57896         * modules/round: Reference new m4 file.
57897         * modules/roundf: Ditto.
57898         * modules/roundl: Ditto.
57899         * tests/test-round2.c (main): Use ROUND instead of round.
57900         Bug report from Bruno Haible.
57901
57902 2007-10-21  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57905         context.
57906
57907 2007-10-21  Bruno Haible  <bruno@clisp.org>
57908
57909         * tests/test-wcwidth.c (main): Allow negative result for some control
57910         characters.
57911
57912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57913         Needed on OSF/1 5.1.
57914
57915 2007-10-21  Bruno Haible  <bruno@clisp.org>
57916
57917         * tests/test-floorf1.c: Include isnanf.h.
57918         (main): Use isnanf() instead of isnan().
57919         * tests/test-ceilf1.c: Include isnanf.h.
57920         (main): Use isnanf() instead of isnan().
57921         * tests/test-truncf1.c: Include isnanf.h.
57922         (main): Use isnanf() instead of isnan().
57923         * tests/test-roundf1.c: Include isnanf.h.
57924         (main): Use isnanf() instead of isnan().
57925
57926 2007-10-21  Eric Blake  <ebb9@byu.net>
57927
57928         * users.txt: Update URL for m4.
57929
57930 2007-10-21  Bruno Haible  <bruno@clisp.org>
57931
57932         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57933
57934 2007-10-21  Bruno Haible  <bruno@clisp.org>
57935
57936         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57937         Git's management files if the CVS files are not present.
57938
57939 2007-10-20  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57942         gcc-3.4.x.
57943
57944 2007-10-20  Ben Pfaff  <blp@gnu.org>
57945
57946         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57947         implementations.
57948         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57949         * lib/round.c: New file.
57950         * lib/roundf.c: New file.
57951         * lib/roundl.c: New file.
57952         * m4/round.m4: New file.
57953         * m4/roundf.m4: New file.
57954         * m4/roundl.m4: New file.
57955         * m4/check-libm-func-m4: New file.
57956         * modules/math: Replace round, roundf, roundl related @VARS@ in
57957         math.in.h.
57958         * modules/round: New file.
57959         * modules/round-tests: New file.
57960         * modules/roundf: New file.
57961         * modules/roundf-tests: New file.
57962         * modules/roundl: New file.
57963         * modules/roundl-tests: New file.
57964         * tests/test-round1.c: New file.
57965         * tests/test-round2.c: New file.
57966         * tests/test-roundf1.c: New file.
57967         * tests/test-roundf2.c: New file.
57968         * tests/test-roundl.c: New file.
57969         * doc/functions/round.texi: Mention round module.
57970         * doc/functions/roundf.texi: Mention roundf module.
57971         * doc/functions/roundl.texi: Mention roundl module.
57972         * MODULES.html.sh: Mention new modules.
57973         Thanks to Bruno Haible for suggestions.
57974
57975 2007-10-20  Jim Meyering  <meyering@redhat.com>
57976
57977         * lib/xprintf.c: Include <config.h> unconditionally.
57978
57979         Change xprintf's license to GPL.
57980         * modules/xprintf (License): s/LGPL/GPL/, since this module
57981         depends on modules (exit and exitfail) which are GPL.
57982         Suggestion from Bruno Haible.
57983
57984         xprintf fixes.
57985         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57986         Use a clearer diagnostic.
57987         Patch from Bruno Haible.
57988
57989 2007-10-20  Bruno Haible  <bruno@clisp.org>
57990
57991         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57992         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57994
57995 2007-10-20  Bruno Haible  <bruno@clisp.org>
57996
57997         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57998         precision in the comparison result > x - 1 or similar.
57999         * tests/test-ceilf2.c (correct_result_p): Likewise.
58000         * tests/test-truncf2.c (correct_result_p): Likewise.
58001         * tests/test-trunc2.c (correct_result_p): Likewise.
58002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58003
58004 2007-10-20  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/ceil: New file.
58007         * m4/ceil.m4: New file.
58008         * doc/functions/ceil.texi: Mention the 'ceil' module.
58009
58010 2007-10-20  Bruno Haible  <bruno@clisp.org>
58011
58012         * modules/floor: New file.
58013         * m4/floor.m4: New file.
58014         * doc/functions/floor.texi: Mention the 'floor' module.
58015
58016 2007-10-20  Bruno Haible  <bruno@clisp.org>
58017
58018         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
58019         of %a.
58020         * modules/floorf-tests (Depends-on): Likewise.
58021         * modules/truncf-tests (Depends-on): Likewise.
58022         * modules/trunc-tests (Depends-on): Likewise.
58023         Reported by Ben Pfaff.
58024
58025 2007-10-19  Jim Meyering  <meyering@redhat.com>
58026
58027         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
58028         Don't bother testing specific errno values.  Just test ferror.
58029
58030         New module: xprintf
58031         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
58032
58033 2007-10-19  Bruno Haible  <bruno@clisp.org>
58034
58035         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
58036         syntax.
58037         * modules/javaexec (Makefile.am): Likewise.
58038         * modules/relocatable-prog (Makefile.am): Likewise.
58039         Suggested by Jim Meyering.
58040
58041 2007-10-18  Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
58044         Reported by Jim Meyering.
58045
58046 2007-10-18  Eric Blake  <ebb9@byu.net>
58047
58048         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
58049
58050 2007-10-18  Bruno Haible  <bruno@clisp.org>
58051
58052         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
58053         the format string into writable memory. Needed in Fortify conditions.
58054
58055 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
58056             Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
58059         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
58060         * modules/trim (Depends-on): Add mbchar.
58061         (configure.ac): Add gl_FUNC_MBRTOWC.
58062         (Makefile.am): Augment lib_SOURCES.
58063
58064 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         Modify glob.c to use fstatat and dirfd, to simplify it.
58067         Suggested by Eric Blake.
58068         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
58069         Don't include <stdbool.h>; not used.
58070         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
58071         (link_exists_p): Simplify implementation, since we can now assume
58072         dirfd and fstatat.
58073         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
58074
58075 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58076
58077         * gnulib-tool (func_get_dependencies): Fix sed script to
58078         match only tests.
58079
58080 2007-10-17  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
58083         allow locale names without encoding suffix.
58084         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58085         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58086
58087 2007-10-16  Bruno Haible  <bruno@clisp.org>
58088
58089         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
58090         * lib/getgroups.c (getgroups): Likewise.
58091         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
58092
58093 2007-10-16  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
58096         * modules/malloc-posix (License): Likewise.
58097         * modules/realloc-posix (License): Likewise.
58098         * modules/calloc-posix (License): Likewise.
58099         * modules/intprops (License): Change from GPL to LGPL, with
58100         Paul Eggert's approval.
58101
58102 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         Merge glibc changes into lib/glob.c.
58105
58106         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
58107         2007-10-15 04:59:03 UTC.  Here are the changes:
58108
58109         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
58110
58111         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
58112
58113         * lib/glob.c: Add some branch prediction throughout.
58114
58115         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
58116
58117         [BZ #5103]
58118         * lib/glob.c (glob): Recognize patterns starting \/.
58119
58120         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
58121
58122         [BZ #3996]
58123         * lib/glob.c (attribute_hidden): Define if not defined.
58124         (glob): Unescape dirname, filename or username when needed and not
58125         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
58126         is NULL.  Handle unescaped [ in pattern without closing ].
58127         Don't pass GLOB_CHECK down to recursive glob for directories.
58128         (__glob_pattern_type): New function.
58129         (__glob_pattern_p): Implement using __glob_pattern_type.
58130         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
58131         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
58132         Remove unreachable code.
58133
58134         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
58135
58136         * lib/glob.c (glob_in_dir): Add some comments and asserts to
58137         explain why there are no leaks.
58138
58139         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
58140
58141         [BZ #3253]
58142         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
58143         time, rather allocate increasingly bigger arrays of pointers, if
58144         possible with alloca, if too large with malloc.
58145
58146 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58147
58148         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58149         Problem reported by H.Merijn Brand in
58150         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58151         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58152         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58153
58154 2007-10-15  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58157         with explicit rpl_ prefix.
58158         * lib/fopen.c (fopen): Likewise.
58159         * lib/freopen.c (freopen): Likewise.
58160         * lib/iconv.c (iconv): Likewise.
58161         * lib/iconv_close.c (iconv_close): Likewise.
58162
58163 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58164
58165         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58166
58167 2007-10-15  Bruno Haible  <bruno@clisp.org>
58168
58169         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58170         <stddef.h> instead of <stdlib.h> since we only need NULL.
58171         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58172
58173 2007-10-15  Bruno Haible  <bruno@clisp.org>
58174
58175         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58176         Replace paragraph talking about LIBOBJS.
58177         Reported by Colin Watson <cjwatson@debian.org>.
58178
58179 2007-10-15  Bruno Haible  <bruno@clisp.org>
58180
58181         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58182         <stdlib.h> before using NULL.
58183
58184 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58185
58186         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58187         Reported by Albert Chin <china@thewrittenword.com>.
58188
58189 2007-10-14  Bruno Haible  <bruno@clisp.org>
58190
58191         * modules/iconv_open-utf-tests: New file.
58192         * tests/test-iconv-utf.c: New file.
58193
58194         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58195         * modules/iconv_open-utf: New file.
58196         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58197         (iconv, iconv_close): New declarations.
58198         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58199         be defined.
58200         (iconv_open): Add special handling of conversion between UTF-8 and
58201         UTF-{16,32}{BE,LE}.
58202         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58203         * lib/iconv_close.c: New file.
58204         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58205         gl_FUNC_ICONV_OPEN.
58206         (gl_FUNC_ICONV_OPEN): Use it.
58207         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58208         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58209         and REPLACE_ICONV_UTF.
58210         * modules/iconv_open (Depends-on): Add c-strcase.
58211         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58212         ICONV_CONST.
58213         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58214
58215 2007-10-13  Albert Chin  <china@thewrittenword.com>
58216             Bruno Haible  <bruno@clisp.org>
58217
58218         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58219         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58220
58221 2007-10-13  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58224         defined, use the ISO C99 inline semantics.
58225         * lib/argp.h (ARGP_EI): Likewise.
58226
58227 2007-10-13  Bruno Haible  <bruno@clisp.org>
58228
58229         Handle 'inline' change in gcc 4.3.0.
58230         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58231         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58232         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58233         argp_fmtstream_point): Disable 'extern' declaration if the function
58234         definition is going to be provided inline.
58235         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58236         semantics, not the ISO C99 inline semantics.
58237         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58238         'extern' declaration if the function definition is going to be provided
58239         inline.
58240         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58241         the GNU C inline semantics, not the ISO C99 inline semantics. With
58242         GCC 4.2, avoid a warning.
58243
58244 2007-10-13  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/freading.h (freading): Enable the use of __freading for
58247         glibc >= 2.7.
58248         * lib/freading.c (freading): Likewise.
58249
58250 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58253         "warning: C99 inline functions are not supported; using GNU89".
58254
58255 2007-10-12  Bruno Haible  <bruno@clisp.org>
58256
58257         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58258         of 2.
58259         * tests/test-ceilf2.c: New file.
58260         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58261
58262         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58263         * modules/ceilf-tests: Update.
58264
58265 2007-10-12  Bruno Haible  <bruno@clisp.org>
58266
58267         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58268         of 2.
58269         * tests/test-floorf2.c: New file.
58270         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58271
58272         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58273         * modules/floorf-tests: Update.
58274
58275 2007-10-12  Bruno Haible  <bruno@clisp.org>
58276
58277         * tests/test-trunc2.c: New file.
58278         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58279
58280         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58281         * modules/trunc-tests: Update.
58282
58283 2007-10-12  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58286         of 2.
58287         * tests/test-truncf2.c: New file.
58288         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58289
58290         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58291         * modules/truncf-tests: Update.
58292
58293 2007-10-11  Eric Blake  <ebb9@byu.net>
58294
58295         Don't claim strerror is broken on Interix.
58296         * doc/functions/strerror.texi (strerror): Known broken systems are
58297         now Solaris 8, and not Interix.
58298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58299         Interix on cross-compile.
58300         Reported by Martin Koeppe in
58301         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58302
58303 2007-10-11  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/i-ring-tests: New file.
58306         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58307         instead of assert.
58308
58309 2007-10-11  Bruno Haible  <bruno@clisp.org>
58310
58311         * modules/filenamecat-tests: New file.
58312         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58313         * lib/filenamecat.c: Remove test code.
58314
58315 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58316
58317         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58318
58319         * lib/strerror.c: Include <string.h> always, to test interface,
58320         and to remove the need for the dummy.
58321         Include intprops.h to compute width instead of doing it ourselves
58322         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58323         (strerror): Define it to return NULL if there's no system strerror.
58324         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58325         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58326         ancient pre-strerror Unix systems well any more.  Saying "unknown
58327         system error" is enough.
58328         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58329         simpler strerror.c implementation.
58330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58331         Simplify the tests to reflect the simpler strerror implementation.
58332         * modules/strerror (Depends-on): Add intprops.
58333
58334 2007-10-09  Eric Blake  <ebb9@byu.net>
58335
58336         Silence test-fpending.
58337         * modules/fpending-tests (Files): Add wrapper script.
58338         * tests/test-fpending.sh: New file.
58339
58340 2007-10-09  Bruno Haible  <bruno@clisp.org>
58341
58342         * MODULES.html.sh (func_module): Don't create a hyperlink for
58343         function names like 'printf_frexp'.
58344         (Misc): Add crc, memxor.
58345         (Characteristics of floating types): New section.
58346         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58347         isnanf-nolibm, signbit, trunc, truncf, truncl.
58348         (Enhancements for ISO C 99 functions): New subsection Input/output.
58349         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58350         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58351         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58352         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58353         (Enhancements for POSIX:2001 functions): Add chdir-long.
58354         (File system functions): Add areadlink, chdir-safer, read-file.
58355         Remove cycle-check.
58356         (File system as inode set): New section.
58357         (Date and time): Add gethrxtime.
58358         (Multithreading): Add openmp.
58359         (Internationalization functions): Add localename.
58360         (Unicode string functions): Add unistr/u*-mbsnlen.
58361         (Support for maintaining and releasing projects): Add git-version-gen.
58362         (Lone files): Remove directories.
58363
58364 2007-10-08  Ben Pfaff  <blp@gnu.org>
58365
58366         * lib/xmalloca.h: Fix typo in comment.
58367
58368 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58369
58370         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58371         when avoiding problems with integer overflow.  Use a portable test
58372         instead.
58373
58374 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58375
58376         * modules/dummy (License): Change to LGPLv2+.
58377         * modules/float (License): Likewise
58378         * modules/realloc (License): Likewise
58379         * modules/stdlib (License): Likewise
58380
58381 2007-10-07  Bruno Haible  <bruno@clisp.org>
58382
58383         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58384         * floor.c (TWO_MANT_DIG): Likewise.
58385         * ceil.c (TWO_MANT_DIG): Likewise.
58386         Reported by Ben Pfaff.
58387
58388 2007-10-07  Bruno Haible  <bruno@clisp.org>
58389
58390         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58391         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58392         * lib/frexp.c (FUNC): Likewise.
58393         * lib/printf-frexp.h (printf_frexp): Likewise.
58394         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58395         * lib/printf-frexp.c (FUNC): Likewise.
58396         Suggested by Jim Meyering.
58397
58398 2007-10-07  Jim Meyering  <meyering@redhat.com>
58399
58400         Make xnanosleep's integer overflow test more robust.
58401         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58402         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58403
58404 2007-10-07  Bruno Haible  <bruno@clisp.org>
58405
58406         * NEWS: Mention the license change.
58407
58408         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58409         abbreviations in the modules files.
58410
58411         Change copyright notice from GPLv2+ to GPLv3+.
58412         * README: Change copyright notice.
58413         * MODULES.html.sh: Likewise.
58414         * build-aux/bootstrap.conf: Likewise.
58415         * build-aux/config.libpath: Likewise.
58416         * build-aux/csharpcomp.sh.in: Likewise.
58417         * build-aux/csharpexec.sh.in: Likewise.
58418         * build-aux/install-reloc: Likewise.
58419         * build-aux/javacomp.sh.in: Likewise.
58420         * build-aux/javaexec.sh.in: Likewise.
58421         * build-aux/ldd.sh.in: Likewise.
58422         * build-aux/reloc-ldflags: Likewise.
58423         * build-aux/relocatable.sh.in: Likewise.
58424         * build-aux/x-to-1.in: Likewise.
58425         * check-module: Likewise.
58426         * config/srclistvars.sh: Likewise.
58427         * gnulib-tool: Likewise.
58428         * lib/acl-internal.h: Likewise.
58429         * lib/acl.c: Likewise.
58430         * lib/acl.h: Likewise.
58431         * lib/acl_entries.c: Likewise.
58432         * lib/areadlink-with-size.c: Likewise.
58433         * lib/areadlink.c: Likewise.
58434         * lib/areadlink.h: Likewise.
58435         * lib/argmatch.c: Likewise.
58436         * lib/argmatch.h: Likewise.
58437         * lib/argp-ba.c: Likewise.
58438         * lib/argp-eexst.c: Likewise.
58439         * lib/argp-fmtstream.c: Likewise.
58440         * lib/argp-fmtstream.h: Likewise.
58441         * lib/argp-fs-xinl.c: Likewise.
58442         * lib/argp-help.c: Likewise.
58443         * lib/argp-namefrob.h: Likewise.
58444         * lib/argp-parse.c: Likewise.
58445         * lib/argp-pin.c: Likewise.
58446         * lib/argp-pv.c: Likewise.
58447         * lib/argp-pvh.c: Likewise.
58448         * lib/argp-xinl.c: Likewise.
58449         * lib/argp.h: Likewise.
58450         * lib/at-func.c: Likewise.
58451         * lib/atanl.c: Likewise.
58452         * lib/backupfile.c: Likewise.
58453         * lib/backupfile.h: Likewise.
58454         * lib/basename.c: Likewise.
58455         * lib/binary-io.h: Likewise.
58456         * lib/byteswap.in.h: Likewise.
58457         * lib/c-stack.c: Likewise.
58458         * lib/c-stack.h: Likewise.
58459         * lib/c-strcasestr.c: Likewise.
58460         * lib/c-strcasestr.h: Likewise.
58461         * lib/c-strstr.c: Likewise.
58462         * lib/c-strstr.h: Likewise.
58463         * lib/c-strtod.c: Likewise.
58464         * lib/calloc.c: Likewise.
58465         * lib/canon-host.c: Likewise.
58466         * lib/canon-host.h: Likewise.
58467         * lib/canonicalize-lgpl.c: Likewise.
58468         * lib/canonicalize.c: Likewise.
58469         * lib/canonicalize.h: Likewise.
58470         * lib/ceil.c: Likewise.
58471         * lib/ceilf.c: Likewise.
58472         * lib/ceill.c: Likewise.
58473         * lib/chdir-long.c: Likewise.
58474         * lib/chdir-long.h: Likewise.
58475         * lib/chdir-safer.c: Likewise.
58476         * lib/chdir-safer.h: Likewise.
58477         * lib/chown.c: Likewise.
58478         * lib/classpath.c: Likewise.
58479         * lib/classpath.h: Likewise.
58480         * lib/clean-temp.c: Likewise.
58481         * lib/clean-temp.h: Likewise.
58482         * lib/cloexec.c: Likewise.
58483         * lib/close-stream.c: Likewise.
58484         * lib/closein.c: Likewise.
58485         * lib/closein.h: Likewise.
58486         * lib/closeout.c: Likewise.
58487         * lib/closeout.h: Likewise.
58488         * lib/concat-filename.c: Likewise.
58489         * lib/copy-file.c: Likewise.
58490         * lib/copy-file.h: Likewise.
58491         * lib/count-one-bits.h: Likewise.
58492         * lib/crc.c: Likewise.
58493         * lib/crc.h: Likewise.
58494         * lib/creat-safer.c: Likewise.
58495         * lib/csharpcomp.c: Likewise.
58496         * lib/csharpcomp.h: Likewise.
58497         * lib/csharpexec.c: Likewise.
58498         * lib/csharpexec.h: Likewise.
58499         * lib/cycle-check.c: Likewise.
58500         * lib/cycle-check.h: Likewise.
58501         * lib/diacrit.c: Likewise.
58502         * lib/diacrit.h: Likewise.
58503         * lib/diffseq.h: Likewise.
58504         * lib/dirchownmod.c: Likewise.
58505         * lib/dirent.in.h: Likewise.
58506         * lib/dirfd.c: Likewise.
58507         * lib/dirfd.h: Likewise.
58508         * lib/dirname.c: Likewise.
58509         * lib/dirname.h: Likewise.
58510         * lib/dummy.c: Likewise.
58511         * lib/dup-safer.c: Likewise.
58512         * lib/dup2.c: Likewise.
58513         * lib/eealloc.h: Likewise.
58514         * lib/error.c: Likewise.
58515         * lib/error.h: Likewise.
58516         * lib/euidaccess.c: Likewise.
58517         * lib/exclude.c: Likewise.
58518         * lib/exclude.h: Likewise.
58519         * lib/execute.c: Likewise.
58520         * lib/execute.h: Likewise.
58521         * lib/exitfail.c: Likewise.
58522         * lib/exitfail.h: Likewise.
58523         * lib/expl.c: Likewise.
58524         * lib/fatal-signal.c: Likewise.
58525         * lib/fatal-signal.h: Likewise.
58526         * lib/fbufmode.c: Likewise.
58527         * lib/fbufmode.h: Likewise.
58528         * lib/fchdir.c: Likewise.
58529         * lib/fchmodat.c: Likewise.
58530         * lib/fchownat.c: Likewise.
58531         * lib/fcntl--.h: Likewise.
58532         * lib/fcntl-safer.h: Likewise.
58533         * lib/fcntl.in.h: Likewise.
58534         * lib/fd-safer.c: Likewise.
58535         * lib/fflush.c: Likewise.
58536         * lib/file-has-acl.c: Likewise.
58537         * lib/file-set.c: Likewise.
58538         * lib/file-type.c: Likewise.
58539         * lib/file-type.h: Likewise.
58540         * lib/fileblocks.c: Likewise.
58541         * lib/filemode.c: Likewise.
58542         * lib/filemode.h: Likewise.
58543         * lib/filename.h: Likewise.
58544         * lib/filenamecat.c: Likewise.
58545         * lib/filenamecat.h: Likewise.
58546         * lib/findprog.c: Likewise.
58547         * lib/findprog.h: Likewise.
58548         * lib/float.in.h: Likewise.
58549         * lib/floor.c: Likewise.
58550         * lib/floorf.c: Likewise.
58551         * lib/floorl.c: Likewise.
58552         * lib/fopen-safer.c: Likewise.
58553         * lib/fopen.c: Likewise.
58554         * lib/fpending.c: Likewise.
58555         * lib/fpending.h: Likewise.
58556         * lib/fprintf.c: Likewise.
58557         * lib/fprintftime.h: Likewise.
58558         * lib/fpucw.h: Likewise.
58559         * lib/fpurge.c: Likewise.
58560         * lib/fpurge.h: Likewise.
58561         * lib/freadable.c: Likewise.
58562         * lib/freadable.h: Likewise.
58563         * lib/freadahead.c: Likewise.
58564         * lib/freadahead.h: Likewise.
58565         * lib/freading.c: Likewise.
58566         * lib/freading.h: Likewise.
58567         * lib/free.c: Likewise.
58568         * lib/freopen.c: Likewise.
58569         * lib/frexp.c: Likewise.
58570         * lib/frexpl.c: Likewise.
58571         * lib/fseek.c: Likewise.
58572         * lib/fseterr.c: Likewise.
58573         * lib/fseterr.h: Likewise.
58574         * lib/fstatat.c: Likewise.
58575         * lib/fstrcmp.c: Likewise.
58576         * lib/fstrcmp.h: Likewise.
58577         * lib/fsusage.c: Likewise.
58578         * lib/fsusage.h: Likewise.
58579         * lib/ftell.c: Likewise.
58580         * lib/ftello.c: Likewise.
58581         * lib/fts-cycle.c: Likewise.
58582         * lib/fts.c: Likewise.
58583         * lib/fts_.h: Likewise.
58584         * lib/full-read.c: Likewise.
58585         * lib/full-read.h: Likewise.
58586         * lib/full-write.c: Likewise.
58587         * lib/full-write.h: Likewise.
58588         * lib/fwritable.c: Likewise.
58589         * lib/fwritable.h: Likewise.
58590         * lib/fwriteerror.c: Likewise.
58591         * lib/fwriteerror.h: Likewise.
58592         * lib/fwriting.c: Likewise.
58593         * lib/fwriting.h: Likewise.
58594         * lib/gcd.c: Likewise.
58595         * lib/gcd.h: Likewise.
58596         * lib/getcwd.c: Likewise.
58597         * lib/getdate.h: Likewise.
58598         * lib/getdate.y: Likewise.
58599         * lib/getdomainname.c: Likewise.
58600         * lib/getdomainname.h: Likewise.
58601         * lib/getgroups.c: Likewise.
58602         * lib/gethostname.c: Likewise.
58603         * lib/gethrxtime.c: Likewise.
58604         * lib/gethrxtime.h: Likewise.
58605         * lib/getloadavg.c: Likewise.
58606         * lib/getndelim2.c: Likewise.
58607         * lib/getndelim2.h: Likewise.
58608         * lib/getnline.c: Likewise.
58609         * lib/getnline.h: Likewise.
58610         * lib/getopt.c: Likewise.
58611         * lib/getopt.in.h: Likewise.
58612         * lib/getopt1.c: Likewise.
58613         * lib/getopt_int.h: Likewise.
58614         * lib/getpagesize.h: Likewise.
58615         * lib/getsubopt.c: Likewise.
58616         * lib/gettime.c: Likewise.
58617         * lib/getugroups.c: Likewise.
58618         * lib/getugroups.h: Likewise.
58619         * lib/getusershell.c: Likewise.
58620         * lib/gl_anyavltree_list1.h: Likewise.
58621         * lib/gl_anyavltree_list2.h: Likewise.
58622         * lib/gl_anyhash_list1.h: Likewise.
58623         * lib/gl_anyhash_list2.h: Likewise.
58624         * lib/gl_anylinked_list1.h: Likewise.
58625         * lib/gl_anylinked_list2.h: Likewise.
58626         * lib/gl_anyrbtree_list1.h: Likewise.
58627         * lib/gl_anyrbtree_list2.h: Likewise.
58628         * lib/gl_anytree_list1.h: Likewise.
58629         * lib/gl_anytree_list2.h: Likewise.
58630         * lib/gl_anytree_oset.h: Likewise.
58631         * lib/gl_anytreehash_list1.h: Likewise.
58632         * lib/gl_anytreehash_list2.h: Likewise.
58633         * lib/gl_array_list.c: Likewise.
58634         * lib/gl_array_list.h: Likewise.
58635         * lib/gl_array_oset.c: Likewise.
58636         * lib/gl_array_oset.h: Likewise.
58637         * lib/gl_avltree_list.c: Likewise.
58638         * lib/gl_avltree_list.h: Likewise.
58639         * lib/gl_avltree_oset.c: Likewise.
58640         * lib/gl_avltree_oset.h: Likewise.
58641         * lib/gl_avltreehash_list.c: Likewise.
58642         * lib/gl_avltreehash_list.h: Likewise.
58643         * lib/gl_carray_list.c: Likewise.
58644         * lib/gl_carray_list.h: Likewise.
58645         * lib/gl_linked_list.c: Likewise.
58646         * lib/gl_linked_list.h: Likewise.
58647         * lib/gl_linkedhash_list.c: Likewise.
58648         * lib/gl_linkedhash_list.h: Likewise.
58649         * lib/gl_list.c: Likewise.
58650         * lib/gl_list.h: Likewise.
58651         * lib/gl_oset.c: Likewise.
58652         * lib/gl_oset.h: Likewise.
58653         * lib/gl_rbtree_list.c: Likewise.
58654         * lib/gl_rbtree_list.h: Likewise.
58655         * lib/gl_rbtree_oset.c: Likewise.
58656         * lib/gl_rbtree_oset.h: Likewise.
58657         * lib/gl_rbtreehash_list.c: Likewise.
58658         * lib/gl_rbtreehash_list.h: Likewise.
58659         * lib/gl_sublist.c: Likewise.
58660         * lib/gl_sublist.h: Likewise.
58661         * lib/group-member.c: Likewise.
58662         * lib/group-member.h: Likewise.
58663         * lib/hard-locale.c: Likewise.
58664         * lib/hard-locale.h: Likewise.
58665         * lib/hash-pjw.c: Likewise.
58666         * lib/hash-pjw.h: Likewise.
58667         * lib/hash-triple.c: Likewise.
58668         * lib/hash.c: Likewise.
58669         * lib/hash.h: Likewise.
58670         * lib/human.c: Likewise.
58671         * lib/human.h: Likewise.
58672         * lib/i-ring.c: Likewise.
58673         * lib/i-ring.h: Likewise.
58674         * lib/idcache.c: Likewise.
58675         * lib/imaxabs.c: Likewise.
58676         * lib/imaxdiv.c: Likewise.
58677         * lib/inet_pton.c: Likewise.
58678         * lib/inet_pton.h: Likewise.
58679         * lib/intprops.h: Likewise.
58680         * lib/inttostr.c: Likewise.
58681         * lib/inttostr.h: Likewise.
58682         * lib/inttypes.in.h: Likewise.
58683         * lib/isapipe.c: Likewise.
58684         * lib/isdir.c: Likewise.
58685         * lib/isnan.c: Likewise.
58686         * lib/isnan.h: Likewise.
58687         * lib/isnanf.c: Likewise.
58688         * lib/isnanf.h: Likewise.
58689         * lib/isnanl-nolibm.h: Likewise.
58690         * lib/isnanl.c: Likewise.
58691         * lib/isnanl.h: Likewise.
58692         * lib/javacomp.c: Likewise.
58693         * lib/javacomp.h: Likewise.
58694         * lib/javaexec.c: Likewise.
58695         * lib/javaexec.h: Likewise.
58696         * lib/javaversion.c: Likewise.
58697         * lib/javaversion.h: Likewise.
58698         * lib/javaversion.java: Likewise.
58699         * lib/lbrkprop.h: Likewise.
58700         * lib/lchmod.h: Likewise.
58701         * lib/lchown.c: Likewise.
58702         * lib/ldexpl.c: Likewise.
58703         * lib/linebreak.c: Likewise.
58704         * lib/linebreak.h: Likewise.
58705         * lib/linebuffer.c: Likewise.
58706         * lib/linebuffer.h: Likewise.
58707         * lib/locale.in.h: Likewise.
58708         * lib/logl.c: Likewise.
58709         * lib/long-options.c: Likewise.
58710         * lib/long-options.h: Likewise.
58711         * lib/lstat.c: Likewise.
58712         * lib/lstat.h: Likewise.
58713         * lib/math.in.h: Likewise.
58714         * lib/mbchar.c: Likewise.
58715         * lib/mbchar.h: Likewise.
58716         * lib/mbfile.h: Likewise.
58717         * lib/mbiter.h: Likewise.
58718         * lib/mbscasecmp.c: Likewise.
58719         * lib/mbscasestr.c: Likewise.
58720         * lib/mbschr.c: Likewise.
58721         * lib/mbscspn.c: Likewise.
58722         * lib/mbslen.c: Likewise.
58723         * lib/mbsncasecmp.c: Likewise.
58724         * lib/mbsnlen.c: Likewise.
58725         * lib/mbspbrk.c: Likewise.
58726         * lib/mbspcasecmp.c: Likewise.
58727         * lib/mbsrchr.c: Likewise.
58728         * lib/mbssep.c: Likewise.
58729         * lib/mbsspn.c: Likewise.
58730         * lib/mbsstr.c: Likewise.
58731         * lib/mbstok_r.c: Likewise.
58732         * lib/mbswidth.c: Likewise.
58733         * lib/mbswidth.h: Likewise.
58734         * lib/mbuiter.h: Likewise.
58735         * lib/memcasecmp.c: Likewise.
58736         * lib/memcasecmp.h: Likewise.
58737         * lib/memchr.c: Likewise.
58738         * lib/memcmp.c: Likewise.
58739         * lib/memcoll.c: Likewise.
58740         * lib/memcoll.h: Likewise.
58741         * lib/memcpy.c: Likewise.
58742         * lib/memrchr.c: Likewise.
58743         * lib/mkancesdirs.c: Likewise.
58744         * lib/mkdir-p.c: Likewise.
58745         * lib/mkdir-p.h: Likewise.
58746         * lib/mkdir.c: Likewise.
58747         * lib/mkdirat.c: Likewise.
58748         * lib/mkdtemp.c: Likewise.
58749         * lib/mkstemp-safer.c: Likewise.
58750         * lib/mkstemp.c: Likewise.
58751         * lib/modechange.c: Likewise.
58752         * lib/modechange.h: Likewise.
58753         * lib/mountlist.c: Likewise.
58754         * lib/mountlist.h: Likewise.
58755         * lib/mpsort.c: Likewise.
58756         * lib/nanosleep.c: Likewise.
58757         * lib/obstack.c: Likewise.
58758         * lib/obstack.h: Likewise.
58759         * lib/open-safer.c: Likewise.
58760         * lib/open.c: Likewise.
58761         * lib/openat-die.c: Likewise.
58762         * lib/openat-priv.h: Likewise.
58763         * lib/openat-proc.c: Likewise.
58764         * lib/openat.c: Likewise.
58765         * lib/openat.h: Likewise.
58766         * lib/pagealign_alloc.c: Likewise.
58767         * lib/pagealign_alloc.h: Likewise.
58768         * lib/physmem.c: Likewise.
58769         * lib/physmem.h: Likewise.
58770         * lib/pipe-safer.c: Likewise.
58771         * lib/pipe.c: Likewise.
58772         * lib/pipe.h: Likewise.
58773         * lib/posixtm.c: Likewise.
58774         * lib/posixtm.h: Likewise.
58775         * lib/posixver.c: Likewise.
58776         * lib/printf-frexp.c: Likewise.
58777         * lib/printf-frexp.h: Likewise.
58778         * lib/printf-frexpl.c: Likewise.
58779         * lib/printf-frexpl.h: Likewise.
58780         * lib/printf.c: Likewise.
58781         * lib/progname.c: Likewise.
58782         * lib/progname.h: Likewise.
58783         * lib/progreloc.c: Likewise.
58784         * lib/putenv.c: Likewise.
58785         * lib/quote.c: Likewise.
58786         * lib/quote.h: Likewise.
58787         * lib/quotearg.c: Likewise.
58788         * lib/quotearg.h: Likewise.
58789         * lib/raise.c: Likewise.
58790         * lib/readline.c: Likewise.
58791         * lib/readline.h: Likewise.
58792         * lib/readlink.c: Likewise.
58793         * lib/readtokens.c: Likewise.
58794         * lib/readtokens.h: Likewise.
58795         * lib/readtokens0.c: Likewise.
58796         * lib/readtokens0.h: Likewise.
58797         * lib/readutmp.c: Likewise.
58798         * lib/readutmp.h: Likewise.
58799         * lib/realloc.c: Likewise.
58800         * lib/relocwrapper.c: Likewise.
58801         * lib/rename-dest-slash.c: Likewise.
58802         * lib/rename.c: Likewise.
58803         * lib/rmdir.c: Likewise.
58804         * lib/rpmatch.c: Likewise.
58805         * lib/safe-read.c: Likewise.
58806         * lib/safe-read.h: Likewise.
58807         * lib/safe-write.c: Likewise.
58808         * lib/safe-write.h: Likewise.
58809         * lib/same-inode.h: Likewise.
58810         * lib/same.c: Likewise.
58811         * lib/same.h: Likewise.
58812         * lib/save-cwd.c: Likewise.
58813         * lib/save-cwd.h: Likewise.
58814         * lib/savedir.c: Likewise.
58815         * lib/savedir.h: Likewise.
58816         * lib/savewd.c: Likewise.
58817         * lib/savewd.h: Likewise.
58818         * lib/search.in.h: Likewise.
58819         * lib/setenv.c: Likewise.
58820         * lib/setenv.h: Likewise.
58821         * lib/settime.c: Likewise.
58822         * lib/sh-quote.c: Likewise.
58823         * lib/sh-quote.h: Likewise.
58824         * lib/sig2str.c: Likewise.
58825         * lib/sig2str.h: Likewise.
58826         * lib/signal.in.h: Likewise.
58827         * lib/signbitd.c: Likewise.
58828         * lib/signbitf.c: Likewise.
58829         * lib/signbitl.c: Likewise.
58830         * lib/sigprocmask.c: Likewise.
58831         * lib/sincosl.c: Likewise.
58832         * lib/sleep.c: Likewise.
58833         * lib/sprintf.c: Likewise.
58834         * lib/sqrtl.c: Likewise.
58835         * lib/stat-time.h: Likewise.
58836         * lib/stdio--.h: Likewise.
58837         * lib/stdio-safer.h: Likewise.
58838         * lib/stdlib--.h: Likewise.
58839         * lib/stdlib-safer.h: Likewise.
58840         * lib/stdlib.in.h: Likewise.
58841         * lib/stpcpy.c: Likewise.
58842         * lib/stpncpy.c: Likewise.
58843         * lib/strchrnul.c: Likewise.
58844         * lib/strcspn.c: Likewise.
58845         * lib/strerror.c: Likewise.
58846         * lib/strftime.c: Likewise.
58847         * lib/strftime.h: Likewise.
58848         * lib/striconveh.c: Likewise.
58849         * lib/striconveh.h: Likewise.
58850         * lib/striconveha.c: Likewise.
58851         * lib/striconveha.h: Likewise.
58852         * lib/stripslash.c: Likewise.
58853         * lib/strnlen1.c: Likewise.
58854         * lib/strnlen1.h: Likewise.
58855         * lib/strtod.c: Likewise.
58856         * lib/strtoimax.c: Likewise.
58857         * lib/strtok_r.c: Likewise.
58858         * lib/strtol.c: Likewise.
58859         * lib/strtoll.c: Likewise.
58860         * lib/strtoul.c: Likewise.
58861         * lib/strtoull.c: Likewise.
58862         * lib/sysexits.in.h: Likewise.
58863         * lib/tempname.c: Likewise.
58864         * lib/tempname.h: Likewise.
58865         * lib/timespec.h: Likewise.
58866         * lib/tls.c: Likewise.
58867         * lib/tls.h: Likewise.
58868         * lib/tmpdir.c: Likewise.
58869         * lib/tmpdir.h: Likewise.
58870         * lib/tmpfile-safer.c: Likewise.
58871         * lib/tmpfile.c: Likewise.
58872         * lib/trigl.c: Likewise.
58873         * lib/trigl.h: Likewise.
58874         * lib/trim.c: Likewise.
58875         * lib/trim.h: Likewise.
58876         * lib/trunc.c: Likewise.
58877         * lib/truncf.c: Likewise.
58878         * lib/truncl.c: Likewise.
58879         * lib/tsearch.c: Likewise.
58880         * lib/unicodeio.c: Likewise.
58881         * lib/unicodeio.h: Likewise.
58882         * lib/unistd--.h: Likewise.
58883         * lib/unistd-safer.h: Likewise.
58884         * lib/unistdio/ulc-fprintf.c: Likewise.
58885         * lib/unistdio/ulc-vfprintf.c: Likewise.
58886         * lib/unlinkdir.c: Likewise.
58887         * lib/unlinkdir.h: Likewise.
58888         * lib/unlocked-io.h: Likewise.
58889         * lib/unsetenv.c: Likewise.
58890         * lib/userspec.c: Likewise.
58891         * lib/utime.c: Likewise.
58892         * lib/utimecmp.c: Likewise.
58893         * lib/utimecmp.h: Likewise.
58894         * lib/utimens.c: Likewise.
58895         * lib/verify.h: Likewise.
58896         * lib/verror.c: Likewise.
58897         * lib/verror.h: Likewise.
58898         * lib/version-etc-fsf.c: Likewise.
58899         * lib/version-etc.c: Likewise.
58900         * lib/version-etc.h: Likewise.
58901         * lib/vfprintf.c: Likewise.
58902         * lib/vprintf.c: Likewise.
58903         * lib/vsprintf.c: Likewise.
58904         * lib/w32spawn.h: Likewise.
58905         * lib/wait-process.c: Likewise.
58906         * lib/wait-process.h: Likewise.
58907         * lib/wcwidth.c: Likewise.
58908         * lib/write-any-file.c: Likewise.
58909         * lib/xalloc-die.c: Likewise.
58910         * lib/xalloc.h: Likewise.
58911         * lib/xasprintf.c: Likewise.
58912         * lib/xgetcwd.c: Likewise.
58913         * lib/xgetcwd.h: Likewise.
58914         * lib/xgetdomainname.c: Likewise.
58915         * lib/xgetdomainname.h: Likewise.
58916         * lib/xgethostname.c: Likewise.
58917         * lib/xmalloc.c: Likewise.
58918         * lib/xmalloca.c: Likewise.
58919         * lib/xmalloca.h: Likewise.
58920         * lib/xmemcoll.c: Likewise.
58921         * lib/xnanosleep.c: Likewise.
58922         * lib/xreadlink.c: Likewise.
58923         * lib/xreadlink.h: Likewise.
58924         * lib/xsetenv.c: Likewise.
58925         * lib/xsetenv.h: Likewise.
58926         * lib/xstriconv.c: Likewise.
58927         * lib/xstriconv.h: Likewise.
58928         * lib/xstrndup.c: Likewise.
58929         * lib/xstrndup.h: Likewise.
58930         * lib/xstrtod.c: Likewise.
58931         * lib/xstrtod.h: Likewise.
58932         * lib/xstrtol-error.c: Likewise.
58933         * lib/xstrtol.c: Likewise.
58934         * lib/xstrtol.h: Likewise.
58935         * lib/xtime.h: Likewise.
58936         * lib/xvasprintf.c: Likewise.
58937         * lib/xvasprintf.h: Likewise.
58938         * lib/yesno.c: Likewise.
58939         * lib/yesno.h: Likewise.
58940         * posix-modules: Likewise.
58941         * tests/test-alloca-opt.c: Likewise.
58942         * tests/test-arcfour.c: Likewise.
58943         * tests/test-arctwo.c: Likewise.
58944         * tests/test-argmatch.c: Likewise.
58945         * tests/test-argp-2.sh: Likewise.
58946         * tests/test-argp.c: Likewise.
58947         * tests/test-arpa_inet.c: Likewise.
58948         * tests/test-array_list.c: Likewise.
58949         * tests/test-array_oset.c: Likewise.
58950         * tests/test-atexit.c: Likewise.
58951         * tests/test-avltree_list.c: Likewise.
58952         * tests/test-avltree_oset.c: Likewise.
58953         * tests/test-avltreehash_list.c: Likewise.
58954         * tests/test-base64.c: Likewise.
58955         * tests/test-binary-io.c: Likewise.
58956         * tests/test-byteswap.c: Likewise.
58957         * tests/test-c-ctype.c: Likewise.
58958         * tests/test-c-strcasecmp.c: Likewise.
58959         * tests/test-c-strcasestr.c: Likewise.
58960         * tests/test-c-strncasecmp.c: Likewise.
58961         * tests/test-c-strstr.c: Likewise.
58962         * tests/test-canonicalize-lgpl.c: Likewise.
58963         * tests/test-canonicalize.c: Likewise.
58964         * tests/test-carray_list.c: Likewise.
58965         * tests/test-ceilf.c: Likewise.
58966         * tests/test-ceill.c: Likewise.
58967         * tests/test-count-one-bits.c: Likewise.
58968         * tests/test-crc.c: Likewise.
58969         * tests/test-dirname.c: Likewise.
58970         * tests/test-fbufmode.c: Likewise.
58971         * tests/test-fcntl.c: Likewise.
58972         * tests/test-fflush.c: Likewise.
58973         * tests/test-floorf.c: Likewise.
58974         * tests/test-floorl.c: Likewise.
58975         * tests/test-fopen.c: Likewise.
58976         * tests/test-fprintf-posix.c: Likewise.
58977         * tests/test-fprintf-posix.h: Likewise.
58978         * tests/test-fpurge.c: Likewise.
58979         * tests/test-freadable.c: Likewise.
58980         * tests/test-freadahead.c: Likewise.
58981         * tests/test-freading.c: Likewise.
58982         * tests/test-freopen.c: Likewise.
58983         * tests/test-frexp.c: Likewise.
58984         * tests/test-frexpl.c: Likewise.
58985         * tests/test-fseek.c: Likewise.
58986         * tests/test-fseeko.c: Likewise.
58987         * tests/test-fseterr.c: Likewise.
58988         * tests/test-fstrcmp.c: Likewise.
58989         * tests/test-ftell.c: Likewise.
58990         * tests/test-ftello.c: Likewise.
58991         * tests/test-fwritable.c: Likewise.
58992         * tests/test-fwriting.c: Likewise.
58993         * tests/test-getaddrinfo.c: Likewise.
58994         * tests/test-getpass.c: Likewise.
58995         * tests/test-gettimeofday.c: Likewise.
58996         * tests/test-hmac-md5.c: Likewise.
58997         * tests/test-hmac-sha1.c: Likewise.
58998         * tests/test-iconv.c: Likewise.
58999         * tests/test-iconvme.c: Likewise.
59000         * tests/test-inttypes.c: Likewise.
59001         * tests/test-isnan.c: Likewise.
59002         * tests/test-isnanf.c: Likewise.
59003         * tests/test-isnanl-nolibm.c: Likewise.
59004         * tests/test-isnanl.c: Likewise.
59005         * tests/test-isnanl.h: Likewise.
59006         * tests/test-ldexpl.c: Likewise.
59007         * tests/test-linked_list.c: Likewise.
59008         * tests/test-linkedhash_list.c: Likewise.
59009         * tests/test-locale.c: Likewise.
59010         * tests/test-localename.c: Likewise.
59011         * tests/test-lock.c: Likewise.
59012         * tests/test-lseek.c: Likewise.
59013         * tests/test-malloca.c: Likewise.
59014         * tests/test-math.c: Likewise.
59015         * tests/test-mbscasecmp.c: Likewise.
59016         * tests/test-mbscasestr1.c: Likewise.
59017         * tests/test-mbscasestr2.c: Likewise.
59018         * tests/test-mbscasestr3.c: Likewise.
59019         * tests/test-mbscasestr4.c: Likewise.
59020         * tests/test-mbschr.c: Likewise.
59021         * tests/test-mbscspn.c: Likewise.
59022         * tests/test-mbsncasecmp.c: Likewise.
59023         * tests/test-mbspbrk.c: Likewise.
59024         * tests/test-mbspcasecmp.c: Likewise.
59025         * tests/test-mbsrchr.c: Likewise.
59026         * tests/test-mbsspn.c: Likewise.
59027         * tests/test-mbsstr1.c: Likewise.
59028         * tests/test-mbsstr2.c: Likewise.
59029         * tests/test-mbsstr3.c: Likewise.
59030         * tests/test-md5.c: Likewise.
59031         * tests/test-memmem.c: Likewise.
59032         * tests/test-netinet_in.c: Likewise.
59033         * tests/test-open.c: Likewise.
59034         * tests/test-printf-frexp.c: Likewise.
59035         * tests/test-printf-frexpl.c: Likewise.
59036         * tests/test-printf-posix.c: Likewise.
59037         * tests/test-printf-posix.h: Likewise.
59038         * tests/test-rbtree_list.c: Likewise.
59039         * tests/test-rbtree_oset.c: Likewise.
59040         * tests/test-rbtreehash_list.c: Likewise.
59041         * tests/test-read-file.c: Likewise.
59042         * tests/test-rijndael.c: Likewise.
59043         * tests/test-search.c: Likewise.
59044         * tests/test-signbit.c: Likewise.
59045         * tests/test-sleep.c: Likewise.
59046         * tests/test-snprintf-posix.c: Likewise.
59047         * tests/test-snprintf-posix.h: Likewise.
59048         * tests/test-snprintf.c: Likewise.
59049         * tests/test-sprintf-posix.c: Likewise.
59050         * tests/test-sprintf-posix.h: Likewise.
59051         * tests/test-stat-time.c: Likewise.
59052         * tests/test-stdbool.c: Likewise.
59053         * tests/test-stdint.c: Likewise.
59054         * tests/test-stdio.c: Likewise.
59055         * tests/test-stdlib.c: Likewise.
59056         * tests/test-stpncpy.c: Likewise.
59057         * tests/test-strcasestr.c: Likewise.
59058         * tests/test-striconv.c: Likewise.
59059         * tests/test-striconveh.c: Likewise.
59060         * tests/test-striconveha.c: Likewise.
59061         * tests/test-string.c: Likewise.
59062         * tests/test-sys_select.c: Likewise.
59063         * tests/test-sys_socket.c: Likewise.
59064         * tests/test-sys_stat.c: Likewise.
59065         * tests/test-sys_time.c: Likewise.
59066         * tests/test-sysexits.c: Likewise.
59067         * tests/test-time.c: Likewise.
59068         * tests/test-tls.c: Likewise.
59069         * tests/test-trunc.c: Likewise.
59070         * tests/test-truncf.c: Likewise.
59071         * tests/test-truncl.c: Likewise.
59072         * tests/test-unistd.c: Likewise.
59073         * tests/test-vasnprintf-posix.c: Likewise.
59074         * tests/test-vasnprintf-posix2.c: Likewise.
59075         * tests/test-vasnprintf.c: Likewise.
59076         * tests/test-vasprintf-posix.c: Likewise.
59077         * tests/test-vasprintf.c: Likewise.
59078         * tests/test-verify.c: Likewise.
59079         * tests/test-vfprintf-posix.c: Likewise.
59080         * tests/test-vprintf-posix.c: Likewise.
59081         * tests/test-vsnprintf-posix.c: Likewise.
59082         * tests/test-vsnprintf.c: Likewise.
59083         * tests/test-vsprintf-posix.c: Likewise.
59084         * tests/test-wchar.c: Likewise.
59085         * tests/test-wctype.c: Likewise.
59086         * tests/test-wcwidth.c: Likewise.
59087         * tests/test-xstrtol.c: Likewise.
59088         * tests/test-xvasprintf.c: Likewise.
59089         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59090         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59091         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59092         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59093         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59094         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59095         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59096         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59097         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59098         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59099         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59100         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59101         * tests/uniname/test-uninames.c: Likewise.
59102         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59103         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
59104         * tests/unistdio/test-u16-printf1.h: Likewise.
59105         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59106         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59107         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59108         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59109         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59110         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59111         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59112         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
59113         * tests/unistdio/test-u32-printf1.h: Likewise.
59114         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59115         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59116         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59117         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59118         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59119         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59120         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59121         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
59122         * tests/unistdio/test-u8-printf1.h: Likewise.
59123         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59124         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59125         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59126         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59127         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59128         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59129         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59130         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
59131         * tests/unistdio/test-ulc-printf1.h: Likewise.
59132         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59133         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59134         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59135         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59136         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59137         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59138         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59139         * tests/uniwidth/test-u16-width.c: Likewise.
59140         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59141         * tests/uniwidth/test-u32-width.c: Likewise.
59142         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59143         * tests/uniwidth/test-u8-width.c: Likewise.
59144         * tests/uniwidth/test-uc_width.c: Likewise.
59145         * config/srclist-update: Likewise.
59146         (fixlicense): Update to GPLv3+.
59147
59148         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59149         * tests/test-tsearch.c: Change copyright notice.
59150
59151         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59152         * lib/c-strcaseeq.h: Change copyright notice.
59153         * lib/streq.h: Likewise.
59154         * lib/uniconv.h: Likewise.
59155         * lib/uniconv/u-conv-from-enc.h: Likewise.
59156         * lib/uniconv/u-conv-to-enc.h: Likewise.
59157         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59158         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59159         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59160         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59161         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59162         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59163         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59164         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59165         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59166         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59167         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59168         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59169         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59170         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59171         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59172         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59173         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59174         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59175         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59176         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59177         * lib/uniname.h: Likewise.
59178         * lib/uniname/uniname.c: Likewise.
59179         * lib/unistdio.h: Likewise.
59180         * lib/unistdio/u-asnprintf.h: Likewise.
59181         * lib/unistdio/u-asprintf.h: Likewise.
59182         * lib/unistdio/u-printf-args.c: Likewise.
59183         * lib/unistdio/u-printf-args.h: Likewise.
59184         * lib/unistdio/u-printf-parse.h: Likewise.
59185         * lib/unistdio/u-snprintf.h: Likewise.
59186         * lib/unistdio/u-sprintf.h: Likewise.
59187         * lib/unistdio/u-vasprintf.h: Likewise.
59188         * lib/unistdio/u-vsnprintf.h: Likewise.
59189         * lib/unistdio/u-vsprintf.h: Likewise.
59190         * lib/unistdio/u16-asnprintf.c: Likewise.
59191         * lib/unistdio/u16-asprintf.c: Likewise.
59192         * lib/unistdio/u16-printf-parse.c: Likewise.
59193         * lib/unistdio/u16-snprintf.c: Likewise.
59194         * lib/unistdio/u16-sprintf.c: Likewise.
59195         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59196         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59197         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59198         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59199         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59200         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59201         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59202         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59203         * lib/unistdio/u16-vasnprintf.c: Likewise.
59204         * lib/unistdio/u16-vasprintf.c: Likewise.
59205         * lib/unistdio/u16-vsnprintf.c: Likewise.
59206         * lib/unistdio/u16-vsprintf.c: Likewise.
59207         * lib/unistdio/u32-asnprintf.c: Likewise.
59208         * lib/unistdio/u32-asprintf.c: Likewise.
59209         * lib/unistdio/u32-printf-parse.c: Likewise.
59210         * lib/unistdio/u32-snprintf.c: Likewise.
59211         * lib/unistdio/u32-sprintf.c: Likewise.
59212         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59213         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59214         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59215         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59216         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59217         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59218         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59219         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59220         * lib/unistdio/u32-vasnprintf.c: Likewise.
59221         * lib/unistdio/u32-vasprintf.c: Likewise.
59222         * lib/unistdio/u32-vsnprintf.c: Likewise.
59223         * lib/unistdio/u32-vsprintf.c: Likewise.
59224         * lib/unistdio/u8-asnprintf.c: Likewise.
59225         * lib/unistdio/u8-asprintf.c: Likewise.
59226         * lib/unistdio/u8-printf-parse.c: Likewise.
59227         * lib/unistdio/u8-snprintf.c: Likewise.
59228         * lib/unistdio/u8-sprintf.c: Likewise.
59229         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59230         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59231         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59232         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59233         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59234         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59235         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59236         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59237         * lib/unistdio/u8-vasnprintf.c: Likewise.
59238         * lib/unistdio/u8-vasprintf.c: Likewise.
59239         * lib/unistdio/u8-vsnprintf.c: Likewise.
59240         * lib/unistdio/u8-vsprintf.c: Likewise.
59241         * lib/unistdio/ulc-asnprintf.c: Likewise.
59242         * lib/unistdio/ulc-asprintf.c: Likewise.
59243         * lib/unistdio/ulc-printf-parse.c: Likewise.
59244         * lib/unistdio/ulc-snprintf.c: Likewise.
59245         * lib/unistdio/ulc-sprintf.c: Likewise.
59246         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59247         * lib/unistdio/ulc-vasprintf.c: Likewise.
59248         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59249         * lib/unistdio/ulc-vsprintf.c: Likewise.
59250         * lib/unistr.h: Likewise.
59251         * lib/unistr/u-cpy-alloc.h: Likewise.
59252         * lib/unistr/u-cpy.h: Likewise.
59253         * lib/unistr/u-endswith.h: Likewise.
59254         * lib/unistr/u-move.h: Likewise.
59255         * lib/unistr/u-set.h: Likewise.
59256         * lib/unistr/u-startswith.h: Likewise.
59257         * lib/unistr/u-stpcpy.h: Likewise.
59258         * lib/unistr/u-stpncpy.h: Likewise.
59259         * lib/unistr/u-strcat.h: Likewise.
59260         * lib/unistr/u-strcpy.h: Likewise.
59261         * lib/unistr/u-strcspn.h: Likewise.
59262         * lib/unistr/u-strdup.h: Likewise.
59263         * lib/unistr/u-strlen.h: Likewise.
59264         * lib/unistr/u-strncat.h: Likewise.
59265         * lib/unistr/u-strncpy.h: Likewise.
59266         * lib/unistr/u-strnlen.h: Likewise.
59267         * lib/unistr/u-strpbrk.h: Likewise.
59268         * lib/unistr/u-strspn.h: Likewise.
59269         * lib/unistr/u-strstr.h: Likewise.
59270         * lib/unistr/u-strtok.h: Likewise.
59271         * lib/unistr/u16-check.c: Likewise.
59272         * lib/unistr/u16-chr.c: Likewise.
59273         * lib/unistr/u16-cmp.c: Likewise.
59274         * lib/unistr/u16-cpy-alloc.c: Likewise.
59275         * lib/unistr/u16-cpy.c: Likewise.
59276         * lib/unistr/u16-endswith.c: Likewise.
59277         * lib/unistr/u16-mblen.c: Likewise.
59278         * lib/unistr/u16-mbsnlen.c: Likewise.
59279         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59280         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59281         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59282         * lib/unistr/u16-mbtouc.c: Likewise.
59283         * lib/unistr/u16-mbtoucr.c: Likewise.
59284         * lib/unistr/u16-move.c: Likewise.
59285         * lib/unistr/u16-next.c: Likewise.
59286         * lib/unistr/u16-prev.c: Likewise.
59287         * lib/unistr/u16-set.c: Likewise.
59288         * lib/unistr/u16-startswith.c: Likewise.
59289         * lib/unistr/u16-stpcpy.c: Likewise.
59290         * lib/unistr/u16-stpncpy.c: Likewise.
59291         * lib/unistr/u16-strcat.c: Likewise.
59292         * lib/unistr/u16-strchr.c: Likewise.
59293         * lib/unistr/u16-strcmp.c: Likewise.
59294         * lib/unistr/u16-strcpy.c: Likewise.
59295         * lib/unistr/u16-strcspn.c: Likewise.
59296         * lib/unistr/u16-strdup.c: Likewise.
59297         * lib/unistr/u16-strlen.c: Likewise.
59298         * lib/unistr/u16-strmblen.c: Likewise.
59299         * lib/unistr/u16-strmbtouc.c: Likewise.
59300         * lib/unistr/u16-strncat.c: Likewise.
59301         * lib/unistr/u16-strncmp.c: Likewise.
59302         * lib/unistr/u16-strncpy.c: Likewise.
59303         * lib/unistr/u16-strnlen.c: Likewise.
59304         * lib/unistr/u16-strpbrk.c: Likewise.
59305         * lib/unistr/u16-strrchr.c: Likewise.
59306         * lib/unistr/u16-strspn.c: Likewise.
59307         * lib/unistr/u16-strstr.c: Likewise.
59308         * lib/unistr/u16-strtok.c: Likewise.
59309         * lib/unistr/u16-to-u32.c: Likewise.
59310         * lib/unistr/u16-to-u8.c: Likewise.
59311         * lib/unistr/u16-uctomb-aux.c: Likewise.
59312         * lib/unistr/u16-uctomb.c: Likewise.
59313         * lib/unistr/u32-check.c: Likewise.
59314         * lib/unistr/u32-chr.c: Likewise.
59315         * lib/unistr/u32-cmp.c: Likewise.
59316         * lib/unistr/u32-cpy-alloc.c: Likewise.
59317         * lib/unistr/u32-cpy.c: Likewise.
59318         * lib/unistr/u32-endswith.c: Likewise.
59319         * lib/unistr/u32-mblen.c: Likewise.
59320         * lib/unistr/u32-mbsnlen.c: Likewise.
59321         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59322         * lib/unistr/u32-mbtouc.c: Likewise.
59323         * lib/unistr/u32-mbtoucr.c: Likewise.
59324         * lib/unistr/u32-move.c: Likewise.
59325         * lib/unistr/u32-next.c: Likewise.
59326         * lib/unistr/u32-prev.c: Likewise.
59327         * lib/unistr/u32-set.c: Likewise.
59328         * lib/unistr/u32-startswith.c: Likewise.
59329         * lib/unistr/u32-stpcpy.c: Likewise.
59330         * lib/unistr/u32-stpncpy.c: Likewise.
59331         * lib/unistr/u32-strcat.c: Likewise.
59332         * lib/unistr/u32-strchr.c: Likewise.
59333         * lib/unistr/u32-strcmp.c: Likewise.
59334         * lib/unistr/u32-strcpy.c: Likewise.
59335         * lib/unistr/u32-strcspn.c: Likewise.
59336         * lib/unistr/u32-strdup.c: Likewise.
59337         * lib/unistr/u32-strlen.c: Likewise.
59338         * lib/unistr/u32-strmblen.c: Likewise.
59339         * lib/unistr/u32-strmbtouc.c: Likewise.
59340         * lib/unistr/u32-strncat.c: Likewise.
59341         * lib/unistr/u32-strncmp.c: Likewise.
59342         * lib/unistr/u32-strncpy.c: Likewise.
59343         * lib/unistr/u32-strnlen.c: Likewise.
59344         * lib/unistr/u32-strpbrk.c: Likewise.
59345         * lib/unistr/u32-strrchr.c: Likewise.
59346         * lib/unistr/u32-strspn.c: Likewise.
59347         * lib/unistr/u32-strstr.c: Likewise.
59348         * lib/unistr/u32-strtok.c: Likewise.
59349         * lib/unistr/u32-to-u16.c: Likewise.
59350         * lib/unistr/u32-to-u8.c: Likewise.
59351         * lib/unistr/u32-uctomb.c: Likewise.
59352         * lib/unistr/u8-check.c: Likewise.
59353         * lib/unistr/u8-chr.c: Likewise.
59354         * lib/unistr/u8-cmp.c: Likewise.
59355         * lib/unistr/u8-cpy-alloc.c: Likewise.
59356         * lib/unistr/u8-cpy.c: Likewise.
59357         * lib/unistr/u8-endswith.c: Likewise.
59358         * lib/unistr/u8-mblen.c: Likewise.
59359         * lib/unistr/u8-mbsnlen.c: Likewise.
59360         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59361         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59362         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59363         * lib/unistr/u8-mbtouc.c: Likewise.
59364         * lib/unistr/u8-mbtoucr.c: Likewise.
59365         * lib/unistr/u8-move.c: Likewise.
59366         * lib/unistr/u8-next.c: Likewise.
59367         * lib/unistr/u8-prev.c: Likewise.
59368         * lib/unistr/u8-set.c: Likewise.
59369         * lib/unistr/u8-startswith.c: Likewise.
59370         * lib/unistr/u8-stpcpy.c: Likewise.
59371         * lib/unistr/u8-stpncpy.c: Likewise.
59372         * lib/unistr/u8-strcat.c: Likewise.
59373         * lib/unistr/u8-strchr.c: Likewise.
59374         * lib/unistr/u8-strcmp.c: Likewise.
59375         * lib/unistr/u8-strcpy.c: Likewise.
59376         * lib/unistr/u8-strcspn.c: Likewise.
59377         * lib/unistr/u8-strdup.c: Likewise.
59378         * lib/unistr/u8-strlen.c: Likewise.
59379         * lib/unistr/u8-strmblen.c: Likewise.
59380         * lib/unistr/u8-strmbtouc.c: Likewise.
59381         * lib/unistr/u8-strncat.c: Likewise.
59382         * lib/unistr/u8-strncmp.c: Likewise.
59383         * lib/unistr/u8-strncpy.c: Likewise.
59384         * lib/unistr/u8-strnlen.c: Likewise.
59385         * lib/unistr/u8-strpbrk.c: Likewise.
59386         * lib/unistr/u8-strrchr.c: Likewise.
59387         * lib/unistr/u8-strspn.c: Likewise.
59388         * lib/unistr/u8-strstr.c: Likewise.
59389         * lib/unistr/u8-strtok.c: Likewise.
59390         * lib/unistr/u8-to-u16.c: Likewise.
59391         * lib/unistr/u8-to-u32.c: Likewise.
59392         * lib/unistr/u8-uctomb-aux.c: Likewise.
59393         * lib/unistr/u8-uctomb.c: Likewise.
59394         * lib/unitypes.h: Likewise.
59395         * lib/uniwidth.h: Likewise.
59396         * lib/uniwidth/cjk.h: Likewise.
59397         * lib/uniwidth/u16-strwidth.c: Likewise.
59398         * lib/uniwidth/u16-width.c: Likewise.
59399         * lib/uniwidth/u32-strwidth.c: Likewise.
59400         * lib/uniwidth/u32-width.c: Likewise.
59401         * lib/uniwidth/u8-strwidth.c: Likewise.
59402         * lib/uniwidth/u8-width.c: Likewise.
59403         * lib/uniwidth/width.c: Likewise.
59404
59405 2007-10-07  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59408         The file is still under LGPL (see modules/inttypes).
59409
59410 2007-10-06  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/trunc (Dependencies): Add 'extensions'.
59413         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59414         Reported by Ben Pfaff <blp@gnu.org>.
59415
59416 2007-10-06  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/freopen-tests: New file.
59419         * tests/test-freopen.c: New file.
59420
59421         * modules/fopen-tests: New file.
59422         * tests/test-fopen.c: New file.
59423
59424         * modules/fopen: New file.
59425         * lib/fopen.c: New file.
59426         * m4/fopen.m4: New file.
59427         * modules/freopen: New file.
59428         * lib/freopen.c: New file.
59429         * m4/freopen.m4: New file.
59430         * lib/stdio.in.h (fopen, freopen): New declarations.
59431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59432         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59433         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59434         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59435         * doc/functions/fopen.texi: Mention the 'fopen' module.
59436         * doc/functions/freopen.texi: Mention the 'freopen' module.
59437
59438 2007-10-06  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/open-tests: New file.
59441         * tests/test-open.c: New file.
59442
59443         * modules/open: New file.
59444         * lib/open.c: New file.
59445         * m4/open.m4: New file.
59446         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59447         lib/open.c does.
59448         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59449         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59450         macros.
59451         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59452         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59453         REPLACE_OPEN.
59454         * doc/functions/open.texi: Mention the 'open' module.
59455
59456 2007-10-04  Bruno Haible  <bruno@clisp.org>
59457
59458         * modules/ceill-tests: New file.
59459         * tests/test-ceill.c: New file.
59460
59461         * modules/ceill: New file.
59462         * lib/ceill.c: Replace entire file.
59463         * m4/ceill.m4: New file.
59464         * lib/math.in.h (ceill): Replace declaration.
59465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59466         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59467         * doc/functions/ceill.texi: Mention the 'ceill' module.
59468         * modules/mathl (Files): Remove lib/ceill.c.
59469         (Depends-on): Add ceill.
59470
59471 2007-10-04  Bruno Haible  <bruno@clisp.org>
59472
59473         * modules/ceilf-tests: New file.
59474         * tests/test-ceilf.c: New file.
59475
59476         * modules/ceilf: New file.
59477         * lib/ceil.c: New file.
59478         * lib/ceilf.c: New file.
59479         * m4/ceilf.m4: New file.
59480         * lib/math.in.h (ceilf): New declaration.
59481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59482         HAVE_DECL_CEILF.
59483         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59484         HAVE_DECL_CEILF.
59485         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59486
59487 2007-10-04  Bruno Haible  <bruno@clisp.org>
59488
59489         * modules/floorl-tests: New file.
59490         * tests/test-floorl.c: New file.
59491
59492         * modules/floorl: New file.
59493         * lib/floorl.c: Replace entire file.
59494         * m4/floorl.m4: New file.
59495         * lib/math.in.h (floorl): Replace declaration.
59496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59497         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59498         * doc/functions/floorl.texi: Mention the 'floorl' module.
59499         * modules/mathl (Files): Remove lib/floorl.c.
59500         (Depends-on): Add floorl.
59501
59502 2007-10-04  Bruno Haible  <bruno@clisp.org>
59503
59504         * modules/floorf-tests: New file.
59505         * tests/test-floorf.c: New file.
59506
59507         * modules/floorf: New file.
59508         * lib/floor.c: New file.
59509         * lib/floorf.c: New file.
59510         * m4/floorf.m4: New file.
59511         * lib/math.in.h (floorf): New declaration.
59512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59513         HAVE_DECL_FLOORF.
59514         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59515         HAVE_DECL_FLOORF.
59516         * doc/functions/floorf.texi: Mention the 'floorf' module.
59517
59518 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59519             Bruno Haible  <bruno@clisp.org>
59520
59521         Advertise for the Git server instead of the CVS server.
59522         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59523         repository instead of the CVS one.
59524         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59525         about all VCS systems generically.
59526         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59527
59528 2007-10-04  Bruno Haible  <bruno@clisp.org>
59529
59530         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59531         means.
59532         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59533
59534 2007-10-04  Bruno Haible  <bruno@clisp.org>
59535
59536         * modules/truncl-tests: New file.
59537         * tests/test-truncl.c: New file.
59538
59539         * modules/truncl: New file.
59540         * lib/truncl.c: New file.
59541         * m4/truncl.m4: New file.
59542         * lib/math.in.h (truncl): New declaration.
59543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59544         HAVE_DECL_TRUNCL.
59545         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59546         HAVE_DECL_TRUNCL.
59547         * doc/functions/truncl.texi: Mention the 'truncl' module.
59548
59549 2007-10-04  Bruno Haible  <bruno@clisp.org>
59550
59551         * modules/truncf-tests: New file.
59552         * tests/test-truncf.c: New file.
59553
59554         * modules/truncf: New file.
59555         * lib/trunc.c: Make paramerizable through USE_* macros.
59556         * lib/truncf.c: New file.
59557         * m4/truncf.m4: New file.
59558         * lib/math.in.h (truncf): New declaration.
59559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59560         HAVE_DECL_TRUNCF.
59561         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59562         HAVE_DECL_TRUNCF.
59563         * doc/functions/truncf.texi: Mention the 'truncf' module.
59564
59565 2007-10-03  Bruno Haible  <bruno@clisp.org>
59566
59567         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59568         augmentation also for tests modules.
59569         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59570         * modules/atexit-tests (Makefile.am): Likewise.
59571         * modules/binary-io-tests (Makefile.am): Likewise.
59572         * modules/c-strcase-tests (Makefile.am): Likewise.
59573         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59574         * modules/canonicalize-tests (Makefile.am): Likewise.
59575         * modules/closein-tests (Makefile.am): Likewise.
59576         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59577         * modules/freadahead-tests (Makefile.am): Likewise.
59578         * modules/fseek-tests (Makefile.am): Likewise.
59579         * modules/fseeko-tests (Makefile.am): Likewise.
59580         * modules/ftell-tests (Makefile.am): Likewise.
59581         * modules/ftello-tests (Makefile.am): Likewise.
59582         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59583         * modules/isnanl-tests (Makefile.am): Likewise.
59584         * modules/lseek-tests (Makefile.am): Likewise.
59585         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59586         * modules/mbscasestr-tests (Makefile.am): Likewise.
59587         * modules/mbschr-tests (Makefile.am): Likewise.
59588         * modules/mbscspn-tests (Makefile.am): Likewise.
59589         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59590         * modules/mbspbrk-tests (Makefile.am): Likewise.
59591         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59592         * modules/mbsrchr-tests (Makefile.am): Likewise.
59593         * modules/mbsspn-tests (Makefile.am): Likewise.
59594         * modules/mbsstr-tests (Makefile.am): Likewise.
59595         * modules/printf-posix-tests (Makefile.am): Likewise.
59596         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59597         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59598         * modules/tsearch-tests (Makefile.am): Likewise.
59599         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59600         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59601         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59602         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59603         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59604         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59605         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59606         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59607         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59608         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59609         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59610         * modules/xstrtol-tests (Makefile.am): Likewise.
59611         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59612         * modules/yesno-tests (Makefile.am): Likewise.
59613
59614 2007-10-03  Bruno Haible  <bruno@clisp.org>
59615
59616         * modules/trunc-tests: New file.
59617         * tests/test-trunc.c: New file.
59618
59619         * modules/trunc: New file.
59620         * lib/trunc.c: New file.
59621         * m4/trunc.m4: New file.
59622         * lib/math.in.h (trunc): New declaration.
59623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59624         HAVE_DECL_TRUNC.
59625         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59626         HAVE_DECL_TRUNC.
59627         * doc/functions/trunc.texi: Mention the 'trunc' module.
59628
59629 2007-10-03  Bruno Haible  <bruno@clisp.org>
59630
59631         * tests/test-fpending.c: New file, mostly copied
59632         from coreutils/lib/t-fpending.c.
59633         * modules/fpending-tests: New file.
59634
59635 2007-10-03  Bruno Haible  <bruno@clisp.org>
59636
59637         Port the stdio extensions to QNX (untested).
59638         * lib/fseterr.c (fseterr): Add support for QNX.
59639         * lib/fbufmode.c (fbufmode): Likewise.
59640         * lib/freadable.c (freadable): Likewise.
59641         * lib/fwritable.c (fwritable): Likewise.
59642         * lib/freading.c (freading): Likewise.
59643         * lib/fwriting.c (fwriting): Likewise.
59644         * lib/freadahead.c (freadahed): Likewise.
59645         * lib/fpurge.c (fpurge): Likewise.
59646         * lib/fseeko.c (rpl_fseeko): Likewise.
59647
59648 2007-10-03  Bruno Haible  <bruno@clisp.org>
59649             Jim Meyering  <jim@meyering.net>
59650             Eric Blake  <ebb9@byu.net>
59651
59652         * doc/relocatable.texi: Use @command instead of @program.
59653
59654 2007-10-02  Jim Meyering  <jim@meyering.net>
59655
59656         Perform one more "_.h" -> ".in.h" substitution.
59657         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59658         instead of unistd_.h here, too.
59659
59660 2007-10-01  Bruno Haible  <bruno@clisp.org>
59661
59662         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59663         Needed for the alloca-opt module.
59664
59665 2007-09-30  Bruno Haible  <bruno@clisp.org>
59666
59667         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59668         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59669         alloca_.h.
59670         * lib/argz.in.h: Renamed from lib/argz_.h.
59671         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59672         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59673         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59674         byteswap_.h.
59675         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59676         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59677         dirent_.h.
59678         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59679         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59680         fcntl_.h.
59681         * lib/float.in.h: Renamed from lib/float_.h.
59682         * modules/float (Files, Makefile.am): Use float.in.h instead of
59683         float_.h.
59684         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59685         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59686         fnmatch_.h.
59687         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59688         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59689         getopt_.h.
59690         * lib/glob.in.h: Renamed from lib/glob_.h.
59691         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59692         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59693         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59694         iconv_.h.
59695         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59696         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59697         inttypes_.h.
59698         * lib/locale.in.h: Renamed from lib/locale_.h.
59699         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59700         locale_.h.
59701         * lib/math.in.h: Renamed from lib/math_.h.
59702         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59703         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59704         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59705         of netinet_in_.h. Add dependency.
59706         * lib/poll.in.h: Renamed from lib/poll_.h.
59707         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59708         * lib/search.in.h: Renamed from lib/search_.h.
59709         * modules/search (Files, Makefile.am): Use search.in.h instead of
59710         search_.h.
59711         * lib/signal.in.h: Renamed from lib/signal_.h.
59712         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59713         _signal.h.
59714         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59715         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59716         stdbool_.h.
59717         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59718         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59719         stdint_.h.
59720         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59721         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59722         stdio_.h.
59723         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59724         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59725         stdlib_.h.
59726         * lib/string.in.h: Renamed from lib/string_.h.
59727         * modules/string (Files, Makefile.am): Use string.in.h instead of
59728         string_.h.
59729         * doc/gnulib-tool.texi (Initial import): Update.
59730         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59731         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59732         of sys_select_.h. Add dependency.
59733         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59734         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59735         of sys_socket_.h.
59736         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59737         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59738         sys_stat_.h.
59739         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59740         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59741         sys_time_.h.
59742         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59743         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59744         sysexits_.h.
59745         * lib/time.in.h: Renamed from lib/time_.h.
59746         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59747         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59748         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59749         unistd_.h.
59750         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59751         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59752         wchar_.h.
59753         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59754         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59755         wctype_.h.
59756         * build-aux/bootstrap (slurp): Update.
59757         * lib/.cppi-disable: Update.
59758
59759 2007-09-30  Bruno Haible  <bruno@clisp.org>
59760
59761         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59762         Needed on BeOS.
59763
59764 2007-09-30  Bruno Haible  <bruno@clisp.org>
59765
59766         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59767
59768 2007-09-29  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59771
59772 2007-09-29  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59775         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59776         * build-aux/install-reloc: Compile also areadlink.c.
59777         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59778
59779 2007-09-29  Bruno Haible  <bruno@clisp.org>
59780
59781         * gnulib-tool (func_emit_initmacro_done): Indentation.
59782
59783 2007-09-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * README: Add CVS checkout update instructions.
59786         Info from Bob Proulx <bob@proulx.com>.
59787
59788 2007-09-28  Eric Blake  <ebb9@byu.net>
59789
59790         Provide move-if-change.
59791         * build-aux/move-if-change: New file, based on best practice
59792         rather than any canonical upstream location.
59793
59794 2007-09-28  Jim Meyering  <jim@meyering.net>
59795
59796         Fix canonicalize loop-detection corner case.
59797         Do not attempt to stat the symlink values stored via seen_triple.
59798         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59799         on linux-2.6.18, (but not 2.6.22).
59800         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59801         triple_compare.  The former compares dev,ino,filename, while the latter
59802         would actually stat dirname(filename) when dev and ino were equal.
59803         * lib/hash-triple.c: Install <string.h>.
59804         (STREQ): Define.
59805         (triple_compare_ino_str): New function.
59806         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59807
59808 2007-09-28  Eric Blake  <ebb9@byu.net>
59809
59810         Enforce that AC_REPLACE_FUNCS files exist.
59811         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59812         override check for typos.
59813
59814         Fix test-closein on Solaris 10.
59815         * tests/test-closein.c (main): Don't assume stdin can be inherited
59816         closed on all systems.
59817         * tests/test-closein.sh: Likewise.
59818         Reported by Piotr Tarnowski.
59819
59820 2007-09-28  Jim Meyering  <jim@meyering.net>
59821
59822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59823
59824 2007-09-27  Jim Meyering  <jim@meyering.net>
59825
59826         canonicalize: Avoid a false-positive cycle failure.
59827         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59828         Sort.  Remove cycle-check.
59829         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59830         not cycle-check.h.
59831         (seen_triple): New function.
59832         (canonicalize_filename_mode): Use it instead of cycle-check.
59833         * tests/test-canonicalize.c: Add a test for this bug.
59834         * tests/test-canonicalize.sh: Set up and run the test.
59835
59836         New module, file-set, from coreutils.
59837         * modules/file-set: Define it.
59838         * lib/file-set.c, lib/file-set.h: Implement.
59839
59840         New module, hash-triple, from coreutils.
59841         * modules/hash-triple: Define it.
59842         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59843
59844 2007-09-25  Eric Blake  <ebb9@byu.net>
59845
59846         Fix strerror on Interix.
59847         * lib/string_.h (strerror): Declare replacement.
59848         * doc/functions/strerror.texi (strerror): Document the Interix
59849         shortcoming.
59850         * modules/string (Makefile.am): Support new hooks.
59851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59852         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59853         gl_FUNC_STRERROR_SEPARATE.
59854         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59855         * lib/strerror.c (rpl_strerror): Provide replacement.
59856         * modules/strerror (Depends-on): Add string.
59857         (configure.ac): Detect use of module.
59858         * tests/test-strerror.c: New file.
59859         * modules/strerror-tests: New test module.
59860         * modules/argp (Depends-on): Add strerror.
59861         * modules/error (Depends-on): Likewise.
59862         Reported by Martin Koeppe.
59863
59864 2007-09-24  Bruno Haible  <bruno@clisp.org>
59865
59866         * README: Update git instructions.
59867
59868 2007-09-24  Eric Blake  <ebb9@byu.net>
59869
59870         Revert fpending breakage from 2007-09-08.
59871         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59872         __fpending.c.
59873
59874 2007-09-24  Jim Meyering  <jim@meyering.net>
59875
59876         filenamecat.c: Add a test.
59877         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59878         showing how the function works when DIR is the empty string.
59879
59880 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59881
59882         * tests/test-canonicalize.sh: Turn on executable bit.
59883
59884 2007-09-19  Eric Blake  <ebb9@byu.net>
59885
59886         * README: Update CVS instructions.
59887
59888 2007-09-18  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/areadlink: New file.
59891         * lib/areadlink.h (areadlink): New declaration.
59892         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59893
59894 2007-09-17  Jim Meyering  <jim@meyering.net>
59895
59896         * lib/savewd.c (ESTALE) [!defined]: Define.
59897         Reported to be required on Interix by Martin Koeppe.
59898
59899 2007-09-17  Bruno Haible  <bruno@clisp.org>
59900
59901         * gnulib-tool (func_version): Use $version.
59902
59903 2007-09-16  Bruno Haible  <bruno@clisp.org>
59904
59905         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59906         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59907         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59908         Reported by Greg Schafer <gschafer@zip.com.au>.
59909
59910 2007-09-15  Bruno Haible  <bruno@clisp.org>
59911
59912         * gnulib-tool (sed): Try a little harder to make bash understand the
59913         alias.
59914         Reported by Bruce Korb <bruce.korb@gmail.com>.
59915
59916 2007-09-13  Eric Blake  <ebb9@byu.net>
59917
59918         * ChangeLog: Remove conflict markers.
59919
59920 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59921
59922         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59923         Reported by Bruno Haible <bruno@clisp.org>.
59924
59925 2007-09-12  Bruno Haible  <bruno@clisp.org>
59926
59927         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59928         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59929         is not defined.
59930
59931 2007-09-12  Eric Blake  <ebb9@byu.net>
59932
59933         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59935         Autoconf definition.
59936         * modules/euidaccess (Depends-on): Add extensions, for
59937         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59938         * modules/fnmatch (Depends-on): Likewise.
59939         * modules/getaddrinfo (Depends-on): Likewise.
59940         * modules/getdelim (Depends-on): Likewise.
59941         * modules/getline (Depends-on): Likewise.
59942         * modules/getsubopt (Depends-on): Likewise.
59943         * modules/gettext (Depends-on): Likewise.
59944         * modules/group-member (Depends-on): Likewise.
59945         * modules/mbchar (Depends-on): Likewise.
59946         * modules/memmem (Depends-on): Likewise.
59947         * modules/mempcpy (Depends-on): Likewise.
59948         * modules/memrchr (Depends-on): Likewise.
59949         * modules/pagealign_alloc (Depends-on): Likewise.
59950         * modules/readutmp (Depends-on): Likewise.
59951         * modules/stpcpy (Depends-on): Likewise.
59952         * modules/stpncpy (Depends-on): Likewise.
59953         * modules/strchrnul (Depends-on): Likewise.
59954         * modules/strndup (Depends-on): Likewise.
59955         * modules/strsep (Depends-on): Likewise.
59956         * modules/strverscmp (Depends-on): Likewise.
59957         * modules/vasprintf (Depends-on): Likewise.
59958         * modules/wcwidth (Depends-on): Likewise.
59959         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59960         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59962         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59965         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59966         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59967         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59968         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59970         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59971         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59972         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59973         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59974         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59976         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59978         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59980         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59981         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59982         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59983         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59985         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59986         so that lock.m4 can be used in gettext without extensions module.
59987
59988 2007-09-11  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/isc-posix.m4: Remove file.
59991         Suggested by Eric Blake.
59992
59993 2007-09-11  Eric Blake  <ebb9@byu.net>
59994
59995         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59996
59997 2007-09-10  Bruno Haible  <bruno@clisp.org>
59998
59999         * posix-modules: Fix typo in error message.
60000         Reported by Matt <mkraai@beckman.com>.
60001
60002 2007-09-09  Bruno Haible  <bruno@clisp.org>
60003
60004         * doc/functions/getdelim.texi: Update list of platforms lacking the
60005         function.
60006         * doc/functions/getline.texi: Likewise.
60007
60008 2007-09-09  Jim Meyering  <jim@meyering.net>
60009
60010         * lib/hash.c (hash_initialize): Detect calloc failure.
60011         Reported by Bruno Haible.
60012
60013 2007-09-09  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
60016         malloc or realloc fails.
60017
60018 2007-09-09  Bruno Haible  <bruno@clisp.org>
60019
60020         * modules/getcwd (Depends-on): Add malloc-posix.
60021         * modules/glob (Depends-on): Likewise.
60022         * modules/putenv (Depends-on): Likewise.
60023         * modules/strdup (Depends-on): Likewise.
60024         * modules/getdelim (Depends-on): Add realloc-posix.
60025         * modules/read-file (Depends-on): Likewise.
60026
60027 2007-09-09  Bruno Haible  <bruno@clisp.org>
60028
60029         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
60030         (gl_FUNC_MALLOC_POSIX): Require it.
60031         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
60032         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
60033         * modules/realloc (Files): Add m4/malloc.m4.
60034         * modules/calloc (Files): Likewise.
60035
60036 2007-09-09  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/malloc-posix: New file.
60039         * modules/malloc (Depends-on): Add malloc-posix.
60040         * lib/malloc.c: Include errno.h.
60041         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
60042         and a POSIX-compatible malloc into a single function. Set ENOMEM
60043         when returning NULL.
60044         * m4/malloc.m4: New file.
60045         * doc/functions/malloc.texi: Mention the malloc-posix module.
60046         * lib/stdlib_.h (malloc): New declaration.
60047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60048         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
60049         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
60050         and HAVE_MALLOC_POSIX.
60051
60052 2007-09-09  Bruno Haible  <bruno@clisp.org>
60053
60054         * modules/realloc-posix: New file.
60055         * modules/realloc (Depends-on): Add realloc-posix.
60056         * lib/realloc.c: Include errno.h.
60057         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
60058         and a POSIX-compatible realloc into a single function. Set ENOMEM
60059         when returning NULL.
60060         * m4/realloc.m4: New file.
60061         * doc/functions/realloc.texi: Mention the realloc-posix module.
60062         * lib/stdlib_.h (realloc): New declaration.
60063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60064         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
60065         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
60066         and HAVE_REALLOC_POSIX.
60067
60068 2007-09-09  Bruno Haible  <bruno@clisp.org>
60069
60070         * modules/calloc-posix: New file.
60071         * modules/calloc (Depends-on): Add calloc-posix.
60072         * lib/calloc.c: Include errno.h.
60073         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
60074         and a POSIX-compatible calloc into a single function. Set ENOMEM
60075         when returning NULL.
60076         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
60077         * doc/functions/calloc.texi: Mention the calloc-posix module.
60078         * lib/stdlib_.h (calloc): New declaration.
60079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60080         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
60081         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
60082         and HAVE_CALLOC_POSIX.
60083
60084 2007-09-09  Bruno Haible  <bruno@clisp.org>
60085
60086         Allow for modules to show an arbitrary notice.
60087         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
60088         * gnulib-tool: New option --extract-notice.
60089         (func_usage): Document it.
60090         (sed_extract_prog): Update.
60091         (func_get_notice): New function.
60092         (func_modules_notice): New function.
60093         (func_import, func_create_testdir): Invoke it.
60094         Suggested by Jim Meyering.
60095
60096 2007-09-09  Bruno Haible  <bruno@clisp.org>
60097
60098         * gnulib-tool: New options --verbose, --quiet.
60099         (func_usage): Document them.
60100         (verbose): New variable.
60101         (func_execute_command): New function.
60102         (func_import): Don't show the module list and the file list if
60103         $verbose < 0.
60104         (func_create_testdir): Likewise. Use func_execute_command.
60105         (func_create_megatestdir): Use func_execute_command.
60106
60107 2007-09-08  Bruno Haible  <bruno@clisp.org>
60108
60109         * gnulib-tool (func_import): Prefer rsync over wget when available,
60110         for fetching the PO files.
60111
60112 2007-09-08  Bruno Haible  <bruno@clisp.org>
60113
60114         * posix-modules: New file. Portions copied from gnulib-tool.
60115         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
60116
60117 2007-09-08  Jim Meyering  <jim@meyering.net>
60118
60119         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
60120         * lib/fpending.h: Rename from __fpending.h.
60121         * lib/fpending.c: Rename from __fpending.c.
60122         Include "fpending.h", not "__fpending.h".
60123         * lib/__fpending.h, lib/__fpending.c: Remove files.
60124         * modules/fpending (Files): Reflect new file names.
60125         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
60126
60127 2007-09-08  Bruno Haible  <bruno@clisp.org>
60128
60129         * m4/inttypes-h.m4: Remove stub file.
60130
60131 2007-09-07  Simon Josefsson  <simon@josefsson.org>
60132
60133         * doc/headers/stdint.texi: Discuss #include_next issue.
60134
60135 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60136
60137         * build-aux/bootstrap: Remove obsolete comment about wget --help.
60138
60139 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60140
60141         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
60142         in variable name.
60143
60144 2007-09-03  Jim Meyering  <jim@meyering.net>
60145
60146         New module: git-version-gen.
60147         * modules/git-version-gen: New file.
60148
60149         Import changes from coreutils for bootstrap script.
60150
60151         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60152
60153         bootstrap: uses rsync to download the .po files
60154         * build-aux/bootstrap (po_download_command_format): New global.
60155         (download_po_files): Use rsync.
60156         (update_po_files): Don't remove .po files after download,
60157         so future rsync runs can take advantage of the copies.
60158
60159         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60160
60161         Solve the unnecessary-.po-file-regeneration problem once and for all.
60162         * build-aux/bootstrap (download_po_files): New function, renamed from
60163         get_translations.  Now, downloads, but doesn't update LINGUAS.
60164         (update_po_files): New function.
60165
60166         bootstrap: Ignore more.
60167         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60168         uniwidth to e.g., lib/.gitignore.
60169         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60170
60171         * build-aux/bootstrap: New setting: vc_ignore.
60172         (insert_sorted_if_absent): Create $file if absent.
60173         Adapt to new, possibly empty, list: $vc_ignore.
60174
60175         bootstrap: generate more ignorable names
60176         * build-aux/bootstrap (slurp): When generating ignorable names,
60177         also map .sin to .sed, .gperf to .c, and .y to .c.
60178
60179 2007-09-03  Jim Meyering  <jim@meyering.net>
60180
60181         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60182         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60183
60184 2007-09-02  Bruno Haible  <bruno@clisp.org>
60185
60186         Fix mis-recognition of 'mcs' on QNX 6.
60187         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60188         output contains the string "Mono".
60189         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60190         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60191
60192 2007-09-01  Bruno Haible  <bruno@clisp.org>
60193
60194         Fix collision between uniwidth/* and linebreak modules.
60195         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60196         u32_width): Remove declarations.
60197         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60198         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60199         streq3, streq2, streq1, streq0): Remove functions.
60200         (STREQ): Remove macro.
60201         (is_cjk_encoding): Remove function.
60202         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60203         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60204         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60205         * NEWS: Document the change.
60206
60207 2007-09-01  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/streq.h: Add double-inclusion guard.
60210
60211 2007-09-01  Karl Berry  <karl@gnu.org>
60212
60213         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60214
60215 2007-08-28  Jim Meyering  <jim@meyering.net>
60216
60217         Rename mreadlink_with_size to areadlink_with_size.
60218         * NEWS: Document the change.
60219         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60220         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60221         * lib/mreadlink.h: Rename this to...
60222         * lib/areadlink.h: ...this.
60223         * modules/mreadlink-with-size: Rename this to...
60224         * modules/areadlink-with-size: ...this.
60225         * lib/canonicalize.c: Reflect the renaming.
60226         * modules/canonicalize: Likewise.
60227
60228 2007-08-26  Bruno Haible  <bruno@clisp.org>
60229
60230         * gnulib-tool (func_import): When deciding which files to remove,
60231         consider also dangling symbolic links.
60232         Reported by Eric Blake.
60233
60234 2007-08-26  Bruno Haible  <bruno@clisp.org>
60235
60236         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60237
60238 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60239
60240         * lib/readline.c: Don't include getline.h, the prototype is now
60241         found in stdio.h.
60242
60243 2007-08-23  Jim Meyering  <jim@meyering.net>
60244
60245         Getdelim touchup.
60246         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60247         around the funlockfile call, since funlockfile never sets errno.
60248         Don't set errno upon failed realloc.
60249
60250 2007-08-22  Eric Blake  <ebb9@byu.net>
60251
60252         Getline touchups.
60253         * lib/getdelim.c (getdelim): Revert regression that required *n to
60254         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60255         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60256         getdelim, rather than whether implementation is missing.
60257         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60258         * lib/stdio_.h (getline): Also declare if replacement is
60259         required.
60260         * doc/functions/getdelim.texi: New file.
60261         * doc/functions/getline.texi: Likewise.
60262         * doc/gnulib.texi (Function Substitutes): Add new files.
60263         Reported by Bruno Haible.
60264
60265 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60266
60267         * users.txt: Add Guile.
60268
60269 2007-08-22  Eric Blake  <ebb9@byu.net>
60270
60271         * tests/test-getdelim.c (main): Use remove, not unlink.
60272         * tests/test-getline.c (main): Likewise.
60273
60274         Move getline and getdelim into stdio.h, per POSIX 200x.
60275         * modules/getline (Files): Remove getline.h.
60276         (Depends-on): Add stdio.
60277         (configure.ac): Add module indicator.
60278         * modules/getdelim (Files): Remove getdelim.h.
60279         (Depends-on): Add stdio.
60280         (configure.ac): Add module indicator.
60281         * modules/stdio (Makefile.am): Work with new indicators.
60282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60283         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60284         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60285         * lib/getdelim.h: Delete.
60286         * lib/getline.h: Delete.
60287         * lib/stdio_.h (getdelim, getline): Declare.
60288         * modules/getdelim-tests: New module.
60289         * modules/getline-tests: Likewise.
60290         * tests/test-getdelim.c: New file.
60291         * tests/test-getline.c: Likewise.
60292         * NEWS: Document the change.
60293         * lib/getline.c: Update choice of header.
60294         * lib/csharpcomp.c: Likewise.
60295         * lib/getpass.c: Likewise.
60296         * lib/javacomp.c: Likewise.
60297         * lib/javaversion.c: Likewise.
60298         * lib/yesno.c: Likewise.
60299         * lib/getdelim.c: Likewise.
60300         (getdelim): Set errno on failure, and avoid memory leak.
60301
60302 2007-08-19  Bruno Haible  <bruno@clisp.org>
60303
60304         * modules/closein (Depends-on): Add freadahead.
60305         * lib/closein.c: Include freadahead.h.
60306         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60307         is zero.
60308
60309 2007-08-19  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/freadahead-tests: New file.
60312         * tests/test-freadahead.sh: New file.
60313         * tests/test-freadahead.c: New file.
60314
60315         * modules/freadahead: New file.
60316         * lib/freadahead.h: New file.
60317         * lib/freadahead.c: New file.
60318         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60319         fbufmode, fpurge, freadable, fwritable.
60320
60321 2007-08-19  Eric Blake  <ebb9@byu.net>
60322
60323         Test yesno in combination with closein.
60324         * lib/yesno.c (yesno): Document use of stdin.
60325         * modules/yesno-tests (Files): New module.
60326         * tests/test-yesno.c (main): New file.
60327         * tests/test-yesno.sh: Likewise.
60328
60329 2007-08-19  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60332         * lib/fseeko.c (rpl_fseeko): Likewise.
60333         * lib/fseterr.c (fseterr): Likewise.
60334
60335 2007-08-19  Bruno Haible  <bruno@clisp.org>
60336
60337         * tests/test-lseek.c (main): Disable a test for BeOS.
60338         * doc/functions/lseek.texi: Document the BeOS bug.
60339
60340 2007-08-19  Bruno Haible  <bruno@clisp.org>
60341             Eric Blake  <ebb9@byu.net>
60342
60343         * lib/lseek.c: Include <sys/stat.h>.
60344         (rpl_lseek): Add workaround code also for Unix platforms.
60345         Needed for BeOS.
60346         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60347         * doc/functions/lseek.texi: Document BeOS definiency.
60348
60349 2007-08-18  Bruno Haible  <bruno@clisp.org>
60350
60351         * modules/fstrcmp-tests: New file.
60352         * tests/test-fstrcmp.c: New file.
60353
60354 2007-08-18  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/fstrcmp: New file, from GNU gettext with modifications.
60357         * lib/fstrcmp.h: New file, from GNU gettext.
60358         * lib/fstrcmp.c: New file, from GNU gettext.
60359         * MODULES.html.sh (String handling): Add fstrcmp.
60360
60361 2007-08-18  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60364         'bool'.
60365         (diag, compareseq): Remove const from the ctxt argument.
60366         (USE_HEURISTIC): Undefine at the end.
60367
60368 2007-08-18  Jim Meyering  <jim@meyering.net>
60369
60370         New file: lib/idcache.h
60371         * NEWS: Mention the addition.
60372         * modules/idcache (Files): Add lib/idcache.h
60373         * lib/idcache.c: Include "idcache.h".
60374         Don't include <sys/types.h>.
60375         Add a FIXME comment.
60376         Move file-scoped "static" declarations to the top.
60377         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60378
60379 2007-08-17  Bruno Haible  <bruno@clisp.org>
60380         and Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * MODULES.html.sh: Add diffseq.
60383         * modules/diffseq: New file.
60384         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60385         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60386
60387 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         Import changes from coreutils for bootstrap script.
60390
60391         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * build-aux/bootstrap (slurp): Work even in environments where
60394         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60395         current code does not slurp files whose names start with ".", and
60396         this looks like it might be a troublesome area.
60397
60398         2007-07-11  Jim Meyering  <jim@meyering.net>
60399
60400         If there's a GPL vN copyright comment, require that N == 3.
60401
60402         2007-07-08  Jim Meyering  <jim@meyering.net>
60403
60404         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60405         * build-aux/bootstrap (mam_template): Move definition out of loop.
60406
60407         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60408
60409         * build-aux/bootstrap (symlink_to_dir): Rename function from
60410         symlink_to_gnulib.  Add a directory parameter.  Update all
60411         callers.
60412         (cp_mark_as_generated): Also check for -- and link to -- files in
60413         gl/.
60414
60415         2007-07-08  Jim Meyering  <jim@meyering.net>
60416
60417         Adapt to deeper hierarchy in gnulib.
60418         * build-aux/bootstrap (symlink_to_dir): If the destination
60419         directory doesn't exist, create it. This is required at least for
60420         "lib/uniwidth/cjk.h".
60421
60422         2007-05-15  Jim Meyering  <jim@meyering.net>
60423
60424         * build-aux/bootstrap: Now that generated Makefile.am files
60425         are no longer under version control, they must be created at
60426         bootstrap time.
60427
60428 2007-08-14  Ben Pfaff  <blp@gnu.org>
60429
60430         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60431
60432 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60435         given the changes below.
60436         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60437         even on hosts that have padding bits beyond the supported 64.
60438
60439 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60442         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60443         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60444         depends on it.
60445         (xstrtol_error): Remove.
60446         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60447         but with a different signature.
60448         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60449         * lib/xstrtol-error.c: Include exitfail.h.
60450         (xstrtol_fatal): New function, with a different signature from the
60451         old xstrtol_error, so that the caller need not worry about passing
60452         in an exit status, or about storage management of the option argument.
60453         (xstrtol_error): Now a static function.  Redo signature to
60454         implement xstrtol_fatal.  Output the correct number of hyphens in
60455         front of the option so that the caller need not worry about
60456         storage management.
60457         (N_): New macro.
60458         (_): Remove; not used now.
60459         * modules/xstrtol: Depend on getopt.
60460         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60461         of old STRTOL_FATAL_ERROR macro.
60462         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60463         of test program.
60464         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60465         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60466
60467 2007-08-08  Eric Blake  <ebb9@byu.net>
60468
60469         * lib/xstrtol-error.c: Add missing include.
60470
60471         Move xstrtol messages into gnulib domain, when --pobase is used.
60472         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60473         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60474         * modules/xstrtol (Files): Distribute new file.
60475         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60476         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60477         * tests/test-xstrtol.c: ...into new file.
60478         * tests/test-xstrtoul.c: Also test xstrtoul.
60479         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60480         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60481         * tests/test-xstrtol.sh: Drive the tests.
60482         * tests/test-xstrtoimax.sh: Likewise.
60483         * tests/test-xstrtoumax.sh: Likewise.
60484         * modules/xstrtol-tests: New module.
60485         * modules/xstrtoimax-tests: Likewise.
60486         * modules/xstrtoumax-tests: Likewise.
60487
60488 2007-08-08  Jim Meyering  <jim@meyering.net>
60489
60490         New function: mfile_name_concat.
60491         * lib/filenamecat.c (mfile_name_concat): New function, just like
60492         file_name_concat, but return NULL upon failure rather than exiting
60493         with a diagnostic.
60494         * lib/filenamecat.h: Declare it.
60495
60496 2007-08-07  Bruno Haible  <bruno@clisp.org>
60497
60498         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60499         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60500         warning from gcc.
60501         Reported by Eric Blake.
60502
60503 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60504
60505         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60506         * modules/crypto/arcfour (License): Likewise.
60507         * modules/crypto/des-tests (License): Likewise.
60508         * modules/crypto/gc-arctwo-tests (License): Likewise.
60509         * modules/crypto/gc-des-tests (License): Likewise.
60510         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60511         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60512         * modules/crypto/gc-md2-tests (License): Likewise.
60513         * modules/crypto/gc-md4-tests (License): Likewise.
60514         * modules/crypto/gc-md5-tests (License): Likewise.
60515         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60516         * modules/crypto/gc-rijndael-tests (License): Likewise.
60517         * modules/crypto/gc-sha1-tests (License): Likewise.
60518         * modules/crypto/gc-tests (License): Likewise.
60519         * modules/crypto/hmac-md5 (License): Likewise.
60520         * modules/crypto/hmac-sha1 (License): Likewise.
60521         * modules/crypto/md2-tests (License): Likewise.
60522         * modules/crypto/md4-tests (License): Likewise.
60523         * modules/crypto/md5 (License): Likewise.
60524         * modules/crypto/rijndael (License): Likewise.
60525         * modules/crypto/sha1 (License): Likewise.
60526         * modules/memxor (License): Likewise.
60527
60528 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60529         and Bruno Haible  <bruno@clisp.org>
60530
60531         * NEWS: Describe interface changes to human, xstrtol.
60532         * lib/human.h: Include <xstrtol.h>.
60533         (human_options): Return enum strtol_error, not int.  Remove
60534         bool arg; take int * instead.
60535         * lib/human.c: Don't include "gettext.h".
60536         (_): Remove; no longer used.
60537         Don't include <xstrtol.h>, since human.h does it.
60538         (human_options): Adjust to abovementioned interface changes.
60539         Do not report error to stderr; that's now the caller's
60540         responsibility.
60541         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60542         interface change.
60543         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60544         Str, Argument_type_string.  All uses changed.  Put " argument"
60545         in diagnostics to make them clearer.  Change wording of suffix
60546         message for clarity.
60547         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60548         Argument_type_string.
60549         (STRTOL_FATAL_WARN): Remove; no longer used.
60550         * modules/human (Depends-on): Remove gettext-h.
60551
60552 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60553
60554         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60555
60556 2007-07-31  Bruno Haible  <bruno@clisp.org>
60557
60558         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60559         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60560         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60561
60562 2007-07-31  Bruno Haible  <bruno@clisp.org>
60563
60564         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60565         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60566
60567 2007-07-30  Bruno Haible  <bruno@clisp.org>
60568
60569         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60570         * modules/c-ctype (License): Likewise.
60571         * modules/c-strcase (License): Likewise.
60572         * modules/check-version (License): Likewise.
60573         * modules/iconv (License): Likewise.
60574         * modules/iconv_open (License): Likewise.
60575         * modules/read-file (License): Likewise.
60576         * modules/striconv (License): Likewise.
60577         * modules/strverscmp (License): Likewise.
60578         * modules/vasprintf (License): Likewise.
60579         * modules/crypto/des (License): Likewise.
60580         * modules/crypto/gc (License): Likewise.
60581         * modules/crypto/gc-arcfour (License): Likewise.
60582         * modules/crypto/gc-arctwo (License): Likewise.
60583         * modules/crypto/gc-des (License): Likewise.
60584         * modules/crypto/gc-hmac-md5 (License): Likewise.
60585         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60586         * modules/crypto/gc-md2 (License): Likewise.
60587         * modules/crypto/gc-md4 (License): Likewise.
60588         * modules/crypto/gc-md5 (License): Likewise.
60589         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60590         * modules/crypto/gc-random (License): Likewise.
60591         * modules/crypto/gc-rijndael (License): Likewise.
60592         * modules/crypto/gc-sha1 (License): Likewise.
60593         * modules/crypto/md2 (License): Likewise.
60594         * modules/crypto/md4 (License): Likewise.
60595
60596 2007-07-30  Jim Meyering  <jim@meyering.net>
60597
60598         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60599         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60600         it has valid stat data.  This bug would cause du not to count the
60601         sizes of inaccessible directories.
60602         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60603         in <http://bugzilla.redhat.com/250077>.
60604
60605 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60606             Bruno Haible  <bruno@clisp.org>
60607
60608         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60609         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60610         #include_next, gives a diagnostic about it, but reports no error in
60611         the exit code.
60612         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60613
60614 2007-07-24  Ben Pfaff  <blp@gnu.org>
60615
60616         Improve name: "count-one-bits" is better than "popcount".
60617         * MODULES.html.sh: Update name.
60618         * lib/popcount.h: Renamed lib/count-one-bits.h.
60619         (popcount): Renamed count_one_bits.
60620         (popcountl): Renamed count_one_bits_l.
60621         (popcountll): Renamed count_one_bits_ll.
60622         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60623         * modules/popcount: Renamed module/count-one-bits.
60624         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60625         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60626
60627 2007-07-23  Ben Pfaff  <blp@gnu.org>
60628
60629         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60630         better code generation, and add U to large constants to avoid
60631         warnings, in non-GCC case.
60632         Suggested by Bruno Haible.
60633
60634 2007-07-23  Ben Pfaff  <blp@gnu.org>
60635
60636         * lib/popcount.h: Use verify_true instead of if...abort.
60637         * modules/popcount: Depend on verify module.
60638         Suggested by Jim Meyering.
60639
60640 2007-07-23  Bruno Haible  <bruno@clisp.org>
60641
60642         * gnulib-tool (func_import): Create a .cvsignore file also when the
60643         directory is not yet in CVS but the toplevel directory is. When
60644         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60645         Reported by Karl Berry.
60646
60647 2007-07-22  Ben Pfaff  <blp@gnu.org>
60648
60649         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60650         case.
60651         Suggested by Eric Blake.
60652
60653 2007-07-22  Ben Pfaff  <blp@gnu.org>
60654
60655         New module: popcount.
60656         * MODULES.html.sh: Add popcount.
60657         * modules/popcount: New file.
60658         * modules/popcount-tests: New file.
60659         * tests/test-popcount.c: New file.
60660         * lib/popcount.h: New file.
60661         * m4/popcount.m4: New file.
60662
60663 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60664
60665         * build-aux/announce-gen: Update to GPLv3.
60666
60667         * build-aux/config.guess: Update from config.
60668
60669 2007-07-21  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60672         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60673
60674 2007-07-20  Jim Meyering  <jim@meyering.net>
60675
60676         * check-module: Diagnose a self-dependency.
60677
60678 2007-07-19  Bruno Haible  <bruno@clisp.org>
60679
60680         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60681         empty.
60682         Reported by Eric Blake.
60683
60684 2007-07-18  Bruno Haible  <bruno@clisp.org>
60685
60686         * gnulib-tool: New options --po-base, --po-domain.
60687         (func_usage): Document them.
60688         (pobase, po_domain): New variables.
60689         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60690         DEFAULT_TEXT_DOMAIN.
60691         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60692         (func_import): Consider pobase and po_domain. Create a po/ directory.
60693         (func_create_testdir): Set pobase and po_domain to empty.
60694         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60695         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60696
60697 2007-07-18  Bruno Haible  <bruno@clisp.org>
60698
60699         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60700         EXTRA_DIST augmentation for files in build-aux/.
60701
60702 2007-07-16  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60705         * modules/getdelim (License): Likewise.
60706
60707 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60708
60709         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60710         * modules/d-type (License): Likewise.
60711         * modules/extensions (License): Likewise.
60712         * modules/fnmatch (License): Likewise.
60713         * modules/fseeko (License): Likewise.
60714         * modules/getaddrinfo (License): Likewise.
60715         * modules/getline (License): Likewise.
60716         * modules/getlogin_r (License): Likewise.
60717         * modules/getpass (License): Likewise.
60718         * modules/gettimeofday (License): Likewise.
60719         * modules/glob (License): Likewise.
60720         * modules/inet_ntop (License): Likewise.
60721         * modules/malloc (License): Likewise.
60722         * modules/malloca (License): Likewise.
60723         * modules/memmem (License): Likewise.
60724         * modules/mempcpy (License): Likewise.
60725         * modules/memset (License): Likewise.
60726         * modules/minmax (License): Likewise.
60727         * modules/mktime (License): Likewise.
60728         * modules/netinet_in (License): Likewise.
60729         * modules/pathmax (License): Likewise.
60730         * modules/poll (License): Likewise.
60731         * modules/regex (License): Likewise.
60732         * modules/snprintf (License): Likewise.
60733         * modules/stdbool (License): Likewise.
60734         * modules/stdint (License): Likewise.
60735         * modules/stdio (License): Likewise.
60736         * modules/strcase (License): Likewise.
60737         * modules/strcasestr (License): Likewise.
60738         * modules/strdup (License): Likewise.
60739         * modules/string (License): Likewise.
60740         * modules/strndup (License): Likewise.
60741         * modules/strnlen (License): Likewise.
60742         * modules/strpbrk (License): Likewise.
60743         * modules/strptime (License): Likewise.
60744         * modules/strsep (License): Likewise.
60745         * modules/sys_select (License): Likewise.
60746         * modules/sys_socket (License): Likewise.
60747         * modules/sys_stat (License): Likewise.
60748         * modules/sys_time (License): Likewise.
60749         * modules/time (License): Likewise.
60750         * modules/time_r (License): Likewise.
60751         * modules/timegm (License): Likewise.
60752         * modules/unistd (License): Likewise.
60753         * modules/vsnprintf (License): Likewise.
60754         * modules/wctype (License): Likewise.
60755
60756 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60757
60758         * modules/argz (License): LGPLv2+.
60759
60760 2007-07-15  Karl Berry  <karl@gnu.org>
60761
60762         * doc/gnulib.texi: revise node structure per new fdl.texi.
60763
60764 2007-07-14  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60767         the output file.
60768         * lib/uniname/uninames.h: Regenerated.
60769
60770 2007-07-14  Karl Berry  <karl@gnu.org>
60771
60772         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60773         omitting sectioning and index commands.
60774
60775 2007-07-13  Bruno Haible  <bruno@clisp.org>
60776
60777         New gnulib-tool option --more-symlinks.
60778         * gnulib-tool (func_usage): Document --more-symlinks.
60779         (do_copyrights): New variable.
60780         Recognize option --more-symlinks.
60781         (func_import): Don't add a copyright notice transform to
60782         sed_transform_lib_file if do_copyrights is empty.
60783
60784 2007-07-13  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/vasnprintf.c (decimal_point_char): Define also if
60787         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60788         && !NEED_PRINTF_DIRECTIVE_A.
60789         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60790         Gary V. Vaughan <gary@gnu.org>.
60791
60792 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60793
60794         * lib/inttypes_.h: Undo previous change, since it was fixed
60795         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60796
60797 2007-07-13  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60800         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60801
60802 2007-07-13  Jim Meyering  <jim@meyering.net>
60803
60804         df: Don't fail for Tru64's "file-on-file mount".
60805         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60806         so we fall through and use statfs instead.  Details here:
60807         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60808         Reported by Albert Chin.
60809
60810 2007-07-13  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60813         * modules/configmake (License): Likewise.
60814         * modules/gettext (License): Likewise.
60815         * modules/gettext-h (License): Likewise.
60816         * modules/include_next (License): Likewise.
60817         * modules/link-warning (License): Likewise.
60818         * modules/localcharset (License): Likewise.
60819         * modules/localename (License): Likewise.
60820         * modules/lock (License): Likewise.
60821         * modules/relocatable-lib-lgpl (License): Likewise.
60822         * modules/size_max (License): Likewise.
60823         * modules/vasnprintf (License): Likewise.
60824         * modules/wchar (License): Likewise.
60825         * modules/xsize (License): Likewise.
60826
60827 2007-07-13  Bruno Haible  <bruno@clisp.org>
60828
60829         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60830         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60831
60832 2007-07-12  Bruno Haible  <bruno@clisp.org>
60833
60834         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60835         in the modules files.
60836
60837 2007-07-11  Karl Berry  <karl@gnu.org>
60838
60839         * MODULES.html.sh (func_module): use
60840          sed -e '\|^'"${includefile}"'$|d'
60841          instead of /.../d, to avoid errors on $includefile's containing /.
60842
60843 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60844
60845         * gnulib-tool (func_import): Avoid duplication of --avoid
60846         statements
60847         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60848         names to `_' in variable names.
60849
60850 2007-07-10  Eric Blake  <ebb9@byu.net>
60851
60852         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60853         * NEWS: Document this change.
60854
60855 2007-07-08  Bruno Haible  <bruno@clisp.org>
60856
60857         Update to Unicode 5.0.
60858         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60859         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60860         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60861         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60862         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60863         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60864         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60865         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60866         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60867         U+10A3F, U+1D242..U+1D244.
60868         (nonspacing_table_ind): Update.
60869         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60870         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60871
60872 2007-07-08  Bruno Haible  <bruno@clisp.org>
60873
60874         Update to Unicode 5.0.
60875         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60876         code transform. Extend the name index field of unicode_name_to_code and
60877         unicode_code_to_name from 16 to 24 bits.
60878         * lib/uniname/uniname.c (unicode_character_name,
60879         unicode_name_character): Add the range 0x12xxx to the code transform.
60880         * lib/uniname/uninames.h: Regenerated.
60881         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60882
60883 2007-07-07  Bruno Haible  <bruno@clisp.org>
60884
60885         * modules/wcwidth-tests: New file.
60886         * tests/test-wcwidth.c: New file.
60887
60888         Work around MacOS X wcwidth() bug.
60889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60890         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60891         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60892         original wcwidth in non-UTF-8 locales.
60893         * modules/wcwidth (Depends-on): Add localcharset, streq,
60894         uniwidth/width.
60895         * doc/functions/wcwidth.texi: Update.
60896
60897 2007-07-07  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60900         (wcwidth): New declaration.
60901         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60902         macros.
60903         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60904         here. Prepare for creating <wchar.h> unconditionally.
60905         * modules/wchar (Depends-on): Add link-warning.
60906         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60907         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60908         * lib/wcwidth.h: Remove file.
60909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60910         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60911         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60912         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60913         (Include): Replace wcwidth.h with <wchar.h>.
60914         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60915         * lib/mbchar.h: Don't include wcwidth.h.
60916         * lib/mbswidth.c: Likewise.
60917         * NEWS: Mention the change.
60918
60919 2007-07-07  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60922         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60923         definition with an external declaration.
60924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60925         defined as a function. Remove AC_C_INLINE requirement.
60926         * modules/wcwidth (Files): Add lib/wcwidth.c.
60927         (Makefile.am): Remove redundant statement.
60928
60929 2007-07-07  Bruno Haible  <bruno@clisp.org>
60930
60931         * MODULES.html.sh (Unicode string functions): Add the new modules.
60932
60933         * tests/uniwidth/test-u32-strwidth.c: New file.
60934         * modules/uniwidth/u32-strwidth-tests: New file.
60935
60936         * lib/uniwidth/u32-strwidth.c: New file.
60937         * modules/uniwidth/u32-strwidth: New file.
60938
60939         * tests/uniwidth/test-u16-strwidth.c: New file.
60940         * modules/uniwidth/u16-strwidth-tests: New file.
60941
60942         * lib/uniwidth/u16-strwidth.c: New file.
60943         * modules/uniwidth/u16-strwidth: New file.
60944
60945         * tests/uniwidth/test-u8-strwidth.c: New file.
60946         * modules/uniwidth/u8-strwidth-tests: New file.
60947
60948         * lib/uniwidth/u8-strwidth.c: New file.
60949         * modules/uniwidth/u8-strwidth: New file.
60950
60951         * tests/uniwidth/test-u32-width.c: New file.
60952         * modules/uniwidth/u32-width-tests: New file.
60953
60954         * lib/uniwidth/u32-width.c: New file.
60955         * modules/uniwidth/u32-width: New file.
60956
60957         * tests/uniwidth/test-u16-width.c: New file.
60958         * modules/uniwidth/u16-width-tests: New file.
60959
60960         * lib/uniwidth/u16-width.c: New file.
60961         * modules/uniwidth/u16-width: New file.
60962
60963         * tests/uniwidth/test-u8-width.c: New file.
60964         * modules/uniwidth/u8-width-tests: New file.
60965
60966         * lib/uniwidth/u8-width.c: New file.
60967         * modules/uniwidth/u8-width: New file.
60968
60969         * tests/uniwidth/test-uc_width.c: New file.
60970         * modules/uniwidth/width-tests: New file.
60971
60972         * lib/uniwidth/width.c: New file, from GNU libiconv.
60973         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60974         * modules/uniwidth/width: New file.
60975
60976         * lib/uniwidth.h: New file, from GNU libiconv.
60977         * modules/uniwidth/base: New file.
60978
60979 2007-07-07  Bruno Haible  <bruno@clisp.org>
60980
60981         * lib/uniname.h: New file, from GNU gettext.
60982         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60983         * lib/uniname/uninames.h: New file, from GNU gettext.
60984         * lib/uniname/uniname.c: New file, from GNU gettext.
60985         * tests/uniname/test-uninames.sh: New file.
60986         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60987         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60988         * modules/uniname/base: New file.
60989         * modules/uniname/uniname: New file.
60990         * modules/uniname/uniname-tests: New file.
60991         * MODULES.html.sh (Unicode string functions): Add the new modules.
60992
60993 2007-07-06  Bruno Haible  <bruno@clisp.org>
60994
60995         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60996
60997 2007-07-06  Bruno Haible  <bruno@clisp.org>
60998
60999         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
61000         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
61001         includes <cygwin/sys_time.h> which includes <sys/select.h> which
61002         include <sys/time.h>.
61003         Reported by Eric Blake.
61004
61005 2007-07-06  Eric Blake  <ebb9@byu.net>
61006
61007         Fix testing canonicalize on cygwin.
61008         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61009         Revert patch from 2007-06-19.
61010         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
61011         canonicalize module is also in use.
61012         * tests/test-canonicalize.c: New file.
61013         * tests/test-canonicalize.sh: Likewise.
61014         * modules/canonicalize-tests: Likewise.
61015
61016 2007-07-06  Jim Meyering  <jim@meyering.net>
61017
61018         * lib/getugroups.c (getugroups): Detect getgrent failure.
61019         Adjust comment to reflect reality: this function may return -1.
61020
61021 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61022
61023         * build-aux/bootstrap (TP_URL,get_translations): Update to use
61024         the new TP address.
61025         (usage): Fix typo
61026         (gnulib_mk): New variable.
61027
61028 2007-07-05  Jim Meyering  <jim@meyering.net>
61029
61030         Don't let endgrent clobber errno, no matter how improbable.
61031         * lib/getugroups.c (getugroups): Save and restore errno around
61032         endgrent call.
61033
61034         Close the group DB even when failing with 2^31 or more members.
61035         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
61036
61037 2007-07-04  Jim Meyering  <jim@meyering.net>
61038
61039         * lib/getugroups.h: New file.
61040         * lib/getugroups.c: Include "getugroups.h".
61041         Remove uses of "register" keyword.
61042         Move local variable, "cp", down into scope where used.
61043         Give "username" parameter the "const" attribute.
61044         * modules/getugroups (Files): Add lib/getugroups.h
61045
61046 2007-07-04  Karl Berry  <karl@gnu.org>
61047
61048         * MODULES.html.sh (func_all_modules): Complete rename of
61049         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
61050
61051 2007-07-02  Bruno Haible  <bruno@clisp.org>
61052
61053         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
61054         mode, when inttypes.h comes from gnulib.
61055         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61056
61057 2007-07-02  Simon Josefsson  <simon@josefsson.org>
61058
61059         * NEWS: Mention lgpl module name change.
61060
61061         * modules/lgpl-2.1: Renamed from lgpl.
61062
61063         * NEWS: Mention gpl module name change.
61064
61065         * modules/gpl-3.0: New file, based on gpl-2.0.
61066
61067         * modules/gpl-2.0: Renamed from gpl.
61068
61069         * modules/gpl: Fix filename, doc/gpl.texi is now found at
61070         doc/gpl-2.0.texi.
61071
61072 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
61075         #define __STDC_LIMIT_MACROS temporarily while including
61076         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
61077         Problem reported by Joel E. Denny in
61078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
61079
61080 2007-07-01  Bruno Haible  <bruno@clisp.org>
61081
61082         * lib/unistdio.h: New file.
61083         * lib/unistdio/u-asnprintf.h: New file.
61084         * lib/unistdio/u-asprintf.h: New file.
61085         * lib/unistdio/u-printf-args.c: New file.
61086         * lib/unistdio/u-printf-args.h: New file.
61087         * lib/unistdio/u-printf-parse.h: New file.
61088         * lib/unistdio/u-snprintf.h: New file.
61089         * lib/unistdio/u-sprintf.h: New file.
61090         * lib/unistdio/u-vasprintf.h: New file.
61091         * lib/unistdio/u-vsnprintf.h: New file.
61092         * lib/unistdio/u-vsprintf.h: New file.
61093         * lib/unistdio/ulc-asnprintf.c: New file.
61094         * lib/unistdio/ulc-asprintf.c: New file.
61095         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
61096         * lib/unistdio/ulc-printf-parse.c: New file.
61097         * lib/unistdio/ulc-snprintf.c: New file.
61098         * lib/unistdio/ulc-sprintf.c: New file.
61099         * lib/unistdio/ulc-vasnprintf.c: New file.
61100         * lib/unistdio/ulc-vasprintf.c: New file.
61101         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
61102         * lib/unistdio/ulc-vsnprintf.c: New file.
61103         * lib/unistdio/ulc-vsprintf.c: New file.
61104         * lib/unistdio/u8-asnprintf.c: New file.
61105         * lib/unistdio/u8-asprintf.c: New file.
61106         * lib/unistdio/u8-printf-parse.c: New file.
61107         * lib/unistdio/u8-snprintf.c: New file.
61108         * lib/unistdio/u8-sprintf.c: New file.
61109         * lib/unistdio/u8-vasnprintf.c: New file.
61110         * lib/unistdio/u8-vasprintf.c: New file.
61111         * lib/unistdio/u8-vsnprintf.c: New file.
61112         * lib/unistdio/u8-vsprintf.c: New file.
61113         * lib/unistdio/u8-u8-asnprintf.c: New file.
61114         * lib/unistdio/u8-u8-asprintf.c: New file.
61115         * lib/unistdio/u8-u8-snprintf.c: New file.
61116         * lib/unistdio/u8-u8-sprintf.c: New file.
61117         * lib/unistdio/u8-u8-vasnprintf.c: New file.
61118         * lib/unistdio/u8-u8-vasprintf.c: New file.
61119         * lib/unistdio/u8-u8-vsnprintf.c: New file.
61120         * lib/unistdio/u8-u8-vsprintf.c: New file.
61121         * lib/unistdio/u16-asnprintf.c: New file.
61122         * lib/unistdio/u16-asprintf.c: New file.
61123         * lib/unistdio/u16-printf-parse.c: New file.
61124         * lib/unistdio/u16-snprintf.c: New file.
61125         * lib/unistdio/u16-sprintf.c: New file.
61126         * lib/unistdio/u16-vasnprintf.c: New file.
61127         * lib/unistdio/u16-vasprintf.c: New file.
61128         * lib/unistdio/u16-vsnprintf.c: New file.
61129         * lib/unistdio/u16-vsprintf.c: New file.
61130         * lib/unistdio/u16-u16-asnprintf.c: New file.
61131         * lib/unistdio/u16-u16-asprintf.c: New file.
61132         * lib/unistdio/u16-u16-snprintf.c: New file.
61133         * lib/unistdio/u16-u16-sprintf.c: New file.
61134         * lib/unistdio/u16-u16-vasnprintf.c: New file.
61135         * lib/unistdio/u16-u16-vasprintf.c: New file.
61136         * lib/unistdio/u16-u16-vsnprintf.c: New file.
61137         * lib/unistdio/u16-u16-vsprintf.c: New file.
61138         * lib/unistdio/u32-asnprintf.c: New file.
61139         * lib/unistdio/u32-asprintf.c: New file.
61140         * lib/unistdio/u32-printf-parse.c: New file.
61141         * lib/unistdio/u32-snprintf.c: New file.
61142         * lib/unistdio/u32-sprintf.c: New file.
61143         * lib/unistdio/u32-vasnprintf.c: New file.
61144         * lib/unistdio/u32-vasprintf.c: New file.
61145         * lib/unistdio/u32-vsnprintf.c: New file.
61146         * lib/unistdio/u32-vsprintf.c: New file.
61147         * lib/unistdio/u32-u32-asnprintf.c: New file.
61148         * lib/unistdio/u32-u32-asprintf.c: New file.
61149         * lib/unistdio/u32-u32-snprintf.c: New file.
61150         * lib/unistdio/u32-u32-sprintf.c: New file.
61151         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61152         * lib/unistdio/u32-u32-vasprintf.c: New file.
61153         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61154         * lib/unistdio/u32-u32-vsprintf.c: New file.
61155         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61156         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61157         * tests/unistdio/test-ulc-printf1.h: New file.
61158         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61159         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61160         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61161         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61162         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61163         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61164         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61165         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61166         * tests/unistdio/test-u8-asnprintf1.c: New file.
61167         * tests/unistdio/test-u8-asnprintf1.h: New file.
61168         * tests/unistdio/test-u8-printf1.h: New file.
61169         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61170         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61171         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61172         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61173         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61174         * tests/unistdio/test-u8-vasprintf1.c: New file.
61175         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61176         * tests/unistdio/test-u8-vsprintf1.c: New file.
61177         * tests/unistdio/test-u16-asnprintf1.c: New file.
61178         * tests/unistdio/test-u16-asnprintf1.h: New file.
61179         * tests/unistdio/test-u16-printf1.h: New file.
61180         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61181         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61182         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61183         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61184         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61185         * tests/unistdio/test-u16-vasprintf1.c: New file.
61186         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61187         * tests/unistdio/test-u16-vsprintf1.c: New file.
61188         * tests/unistdio/test-u32-asnprintf1.c: New file.
61189         * tests/unistdio/test-u32-asnprintf1.h: New file.
61190         * tests/unistdio/test-u32-printf1.h: New file.
61191         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61192         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61193         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61194         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61195         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61196         * tests/unistdio/test-u32-vasprintf1.c: New file.
61197         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61198         * tests/unistdio/test-u32-vsprintf1.c: New file.
61199         * modules/unistdio/base: New file.
61200         * modules/unistdio/u-printf-args: New file.
61201         * modules/unistdio/ulc-asnprintf: New file.
61202         * modules/unistdio/ulc-asprintf: New file.
61203         * modules/unistdio/ulc-fprintf: New file.
61204         * modules/unistdio/ulc-printf-parse: New file.
61205         * modules/unistdio/ulc-snprintf: New file.
61206         * modules/unistdio/ulc-sprintf: New file.
61207         * modules/unistdio/ulc-vasnprintf: New file.
61208         * modules/unistdio/ulc-vasprintf: New file.
61209         * modules/unistdio/ulc-vfprintf: New file.
61210         * modules/unistdio/ulc-vsnprintf: New file.
61211         * modules/unistdio/ulc-vsprintf: New file.
61212         * modules/unistdio/u8-asnprintf: New file.
61213         * modules/unistdio/u8-asprintf: New file.
61214         * modules/unistdio/u8-printf-parse: New file.
61215         * modules/unistdio/u8-snprintf: New file.
61216         * modules/unistdio/u8-sprintf: New file.
61217         * modules/unistdio/u8-vasnprintf: New file.
61218         * modules/unistdio/u8-vasprintf: New file.
61219         * modules/unistdio/u8-vsnprintf: New file.
61220         * modules/unistdio/u8-vsprintf: New file.
61221         * modules/unistdio/u8-u8-asnprintf: New file.
61222         * modules/unistdio/u8-u8-asprintf: New file.
61223         * modules/unistdio/u8-u8-snprintf: New file.
61224         * modules/unistdio/u8-u8-sprintf: New file.
61225         * modules/unistdio/u8-u8-vasnprintf: New file.
61226         * modules/unistdio/u8-u8-vasprintf: New file.
61227         * modules/unistdio/u8-u8-vsnprintf: New file.
61228         * modules/unistdio/u8-u8-vsprintf: New file.
61229         * modules/unistdio/u16-asnprintf: New file.
61230         * modules/unistdio/u16-asprintf: New file.
61231         * modules/unistdio/u16-printf-parse: New file.
61232         * modules/unistdio/u16-snprintf: New file.
61233         * modules/unistdio/u16-sprintf: New file.
61234         * modules/unistdio/u16-vasnprintf: New file.
61235         * modules/unistdio/u16-vasprintf: New file.
61236         * modules/unistdio/u16-vsnprintf: New file.
61237         * modules/unistdio/u16-vsprintf: New file.
61238         * modules/unistdio/u16-u16-asnprintf: New file.
61239         * modules/unistdio/u16-u16-asprintf: New file.
61240         * modules/unistdio/u16-u16-snprintf: New file.
61241         * modules/unistdio/u16-u16-sprintf: New file.
61242         * modules/unistdio/u16-u16-vasnprintf: New file.
61243         * modules/unistdio/u16-u16-vasprintf: New file.
61244         * modules/unistdio/u16-u16-vsnprintf: New file.
61245         * modules/unistdio/u16-u16-vsprintf: New file.
61246         * modules/unistdio/u32-asnprintf: New file.
61247         * modules/unistdio/u32-asprintf: New file.
61248         * modules/unistdio/u32-printf-parse: New file.
61249         * modules/unistdio/u32-snprintf: New file.
61250         * modules/unistdio/u32-sprintf: New file.
61251         * modules/unistdio/u32-vasnprintf: New file.
61252         * modules/unistdio/u32-vasprintf: New file.
61253         * modules/unistdio/u32-vsnprintf: New file.
61254         * modules/unistdio/u32-vsprintf: New file.
61255         * modules/unistdio/u32-u32-asnprintf: New file.
61256         * modules/unistdio/u32-u32-asprintf: New file.
61257         * modules/unistdio/u32-u32-snprintf: New file.
61258         * modules/unistdio/u32-u32-sprintf: New file.
61259         * modules/unistdio/u32-u32-vasnprintf: New file.
61260         * modules/unistdio/u32-u32-vasprintf: New file.
61261         * modules/unistdio/u32-u32-vsnprintf: New file.
61262         * modules/unistdio/u32-u32-vsprintf: New file.
61263         * modules/unistdio/ulc-asnprintf-tests: New file.
61264         * modules/unistdio/ulc-vasnprintf-tests: New file.
61265         * modules/unistdio/ulc-vasprintf-tests: New file.
61266         * modules/unistdio/ulc-vsnprintf-tests: New file.
61267         * modules/unistdio/ulc-vsprintf-tests: New file.
61268         * modules/unistdio/u8-asnprintf-tests: New file.
61269         * modules/unistdio/u8-vasnprintf-tests: New file.
61270         * modules/unistdio/u8-vasprintf-tests: New file.
61271         * modules/unistdio/u8-vsnprintf-tests: New file.
61272         * modules/unistdio/u8-vsprintf-tests: New file.
61273         * modules/unistdio/u16-asnprintf-tests: New file.
61274         * modules/unistdio/u16-vasnprintf-tests: New file.
61275         * modules/unistdio/u16-vasprintf-tests: New file.
61276         * modules/unistdio/u16-vsnprintf-tests: New file.
61277         * modules/unistdio/u16-vsprintf-tests: New file.
61278         * modules/unistdio/u32-asnprintf-tests: New file.
61279         * modules/unistdio/u32-vasnprintf-tests: New file.
61280         * modules/unistdio/u32-vasprintf-tests: New file.
61281         * modules/unistdio/u32-vsnprintf-tests: New file.
61282         * modules/unistdio/u32-vsprintf-tests: New file.
61283         * MODULES.html.sh (Unicode string functions): Add the new modules.
61284
61285 2007-07-01  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/sprintf.c (sprintf): Limit the available length estimation,
61288         to avoid address wraparound.
61289         * lib/vsprintf.c (vsprintf): Likewise.
61290         * modules/sprintf-posix (Dependencies): Add stdint.
61291         * modules/vsprintf-posix (Dependencies): Likewise.
61292
61293 2007-07-01  Bruno Haible  <bruno@clisp.org>
61294
61295         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61296         Windows PATH as well. Conservative double-quoting. Comments.
61297
61298 2007-07-01  Bruno Haible  <bruno@clisp.org>
61299             Eric Blake  <ebb9@byu.net>
61300             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61301
61302         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61303         empty components in $PATH, denoting '.'.
61304
61305 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61306
61307         * gnulib-tool: Fix indentation.
61308         (func_create_megatestdir): Likewise.
61309         Report by Bruno Haible.
61310
61311 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61312
61313         Sync from Automake.
61314         * build-aux/gnupload: Fix shell portability issues with for loops.
61315         Report by Karl Berry.
61316
61317 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61318
61319         * build-aux/maint.mk (POURL): Use translationproject.org.
61320
61321 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61322             Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61325         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61326         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61327         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61328         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61329
61330 2007-06-27  Bruno Haible  <bruno@clisp.org>
61331
61332         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61333         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61334
61335 2007-06-26  Karl Berry  <karl@gnu.org>
61336
61337         * MODULES.html.sh: remove xreadlink-with-size.
61338
61339 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61340
61341         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61342         method that I hope also handles the double-include problem noted
61343         by Bruno Haible in
61344         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61345
61346 2007-06-23  Bruno Haible  <bruno@clisp.org>
61347
61348         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61349         Don't let the 'mostlyclean' target fail if the last subdirectory could
61350         not be removed.
61351         Reported by Karl Berry.
61352
61353 2007-06-23  Bruno Haible  <bruno@clisp.org>
61354
61355         * gnulib-tool (echo): Add a speedier workaround for ksh.
61356         * tests/test-echo.sh: Likewise.
61357
61358 2007-06-23  Bruno Haible  <bruno@clisp.org>
61359
61360         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61361         * tests/test-echo.sh: Likewise.
61362
61363 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61364
61365         * gnulib-tool (IFS): Initialize early, so we don't set it to
61366         empty later.
61367         (self_abspathname): Rewrite algorithm to set it, reindent.
61368         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61369         (func_create_megatestdir): Merge some sed scripts.
61370
61371 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61374         exposed by Sun Studio 11 cc on Solaris 8.
61375
61376 2007-06-22  Bruno Haible  <bruno@clisp.org>
61377
61378         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61379         backslashes.
61380         * tests/test-echo.sh: New file.
61381
61382 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61383
61384         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61385         simplify `sed_replace_build_aux' scripts, they are portable but
61386         echoing them with `echo' is not.
61387         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61388
61389 2007-06-21  Karl Berry  <karl@gnu.org>
61390
61391         * config/srclist.txt: guess we can't handle the licenses via
61392         srclist at the moment.
61393
61394 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * MODULES.html.sh: Add include_next.
61397         * modules/include_next: New file.
61398
61399 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61402         INCLUDE_NEXT.
61403         (gl_CHECK_NEXT_HEADERS): New macro.
61404         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61405         the obsolescent gl_ABSOLUTE_HEADER.
61406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61407         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61408         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61409         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61410         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61411         * m4/math_h.m4 (gl_MATH_H): Likewise.
61412         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61413         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61414         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61415         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61416         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61417         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61418         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61422         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61423         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61424         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61425         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61426         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61427         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61428         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61429         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61430         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61431         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61432         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61433         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61434         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61435         * lib/float_.h: Likewise.
61436         * lib/inttypes_.h: Likewise.
61437         * lib/math_.h: Likewise.
61438         * lib/search_.h: Likewise.
61439         * lib/signal_.h: Likewise.
61440         * lib/stdint_.h: Likewise.
61441         * lib/stdio_.h: Likewise.
61442         * lib/stdlib_.h: Likewise.
61443         * lib/string_.h: Likewise.
61444         * lib/sys_stat_.h: Likewise.
61445         * lib/sys_time_.h: Likewise.
61446         * lib/time_.h: Likewise.
61447         * lib/unistd_.h: Likewise.
61448         * lib/wchar_.h: Likewise.
61449         * lib/wctype_.h: Likewise.
61450         * lib/dirent_.h: Likewise.
61451         * lib/iconv_.h: Likewise.
61452         * lib/locale_.h: Likewise.
61453         * lib/netinet_in_.h: Likewise.
61454         * lib/sys_select_.h: Likewise.
61455         * lib/sys_socket_.h: Likewise.
61456         * lib/sysexits_.h: Likewise.
61457         * modules/fcntl (Depends-on): Depend on include_next, not
61458         absolute_header.
61459         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61460         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61461         * modules/fchdir: Likewise.
61462         * modules/float: Likewise.
61463         * modules/iconv_open: Likewise.
61464         * modules/inttypes: Likewise.
61465         * modules/locale: Likewise.
61466         * modules/math: Likewise.
61467         * modules/netinet_in: Likewise.
61468         * modules/search: Likewise.
61469         * modules/signal: Likewise.
61470         * modules/stdint: Likewise.
61471         * modules/stdio: Likewise.
61472         * modules/stdlib: Likewise.
61473         * modules/string: Likewise.
61474         * modules/sys_select: Likewise.
61475         * modules/sys_socket: Likewise.
61476         * modules/sys_stat: Likewise.
61477         * modules/sys_time: Likewise.
61478         * modules/sysexits: Likewise.
61479         * modules/time: Likewise.
61480         * modules/unistd: Likewise.
61481         * modules/wchar: Likewise.
61482         * modules/wctype: Likewise.
61483         * modules/sys_stat: Change maintainer to "all".
61484         * modules/unistd: Likewise.
61485
61486 2007-06-20  Karl Berry  <karl@gnu.org>
61487
61488         * config/srclist.txt: track www changes in license files.
61489
61490 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61491
61492         * build-aux/bootstrap: Remove stray dot.
61493         Make sure build_aux settings are honored when linking
61494         gnulib_extra_files.
61495
61496 2007-06-19  Eric Blake  <ebb9@byu.net>
61497
61498         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61499         Allow compilation on cygwin.
61500
61501 2007-06-19  Jim Meyering  <jim@meyering.net>
61502
61503         xreadlink-with-size: Remove module.  No longer used.
61504         Ex-callers now use xreadlink or mreadlink-with-size.
61505         * modules/xreadlink-with-size: Remove module.
61506         * lib/xreadlink-with-size.c: Remove file.
61507         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61508         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61509         just before the function definition *is* accurate.
61510
61511         Eliminate one way canonicalize_filename_mode could exit.
61512         * lib/canonicalize.c (canonicalize_filename_mode):
61513         Use mreadlink_with_size, not xreadlink_with_size.
61514
61515 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         Detect porting problems to FreeBSD/arm, which has time_t wider than
61518         long int.  Original problem reported for GNU diff by Xin Li in
61519         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61520         * modules/getdate (Depends-on): Add intprops, verify.
61521         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61522         is an integer type no wider than long int.
61523
61524 2007-06-18  Jim Meyering  <jim@meyering.net>
61525
61526         New module: mreadlink-with-size.
61527         * MODULES.html.sh: Add mreadlink-with-size.
61528         * modules/mreadlink-with-size: New module
61529         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61530         not xreadlink-with-size.
61531         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61532
61533 2007-06-16  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61536         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61537         Reported by Gary V. Vaughan <gary@gnu.org>.
61538
61539 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61540
61541         Revamp lchown so that it lives in unistd.h where it belongs.
61542         * lib/lchown.h: Remove.
61543         * lib/dirchownmod.c: Don't include lib/lchown.h.
61544         * lib/fchownat.c: Likewise.
61545         * lib/openat.c: Likewise.
61546         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61547         does not follow symlinks.
61548         (EOPNOTSUPP): Define if not defined.
61549         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61550         is defined to 0.
61551         (lchown): New decl.
61552         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61553         Do not check for lchown decl.
61554         Set REPLACE_LCHOWN.
61555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61556         REPLACE_LCHOWN.
61557         * modules/chown: Make it clear it follows symlinks.
61558         * modules/lchown: Make it clear it doesn't follow symlinks.
61559         (Files): Remove lib/lchown.h
61560         (Depends-on): Add unistd.
61561         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61562         (Include): Include <unistd.h>, not "lchown.h".
61563         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61564         REPLACE_LCHOWN.
61565
61566 2007-06-15  Jim Meyering  <jim@meyering.net>
61567
61568         Change license (GPL to LGPL) of fsusage and dependents.
61569         * modules/fsusage (License): Change to LGPL.
61570         * modules/full-read (License): Likewise.
61571         * modules/full-write (License): Likewise.
61572         * modules/safe-read (License): Likewise.
61573         * modules/safe-write (License): Likewise.
61574
61575 2007-06-14  Ben Pfaff  <blp@gnu.org>
61576
61577         Missing part of allocsa -> malloca transition.
61578         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61579         gl_MALLOCA.
61580
61581 2007-06-12  Bruno Haible  <bruno@clisp.org>
61582
61583         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61584         to ia64, x86_64, i386.
61585         Reported by Eric Blake.
61586
61587 2007-06-12  Bruno Haible  <bruno@clisp.org>
61588
61589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61590         cross-compiling to x86_64.
61591
61592 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61593
61594         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61595         glitch reported by Ralf Wildenhues in
61596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61597
61598         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61599         Vin Shelton.
61600
61601 2007-06-11  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61604         replacement string.
61605         Reported by Eric Blake.
61606
61607 2007-06-10  Bruno Haible  <bruno@clisp.org>
61608
61609         Prepare vasnprintf code for use with Unicode strings.
61610         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61611         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61612         TYPE_U32_STRING.
61613         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61614         a_u32_string variants.
61615         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61616         * lib/printf-args.c: Don't include config.h and the specification
61617         header if PRINTF_FETCHARGS is already defined.
61618         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61619         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61620         TYPE_U16_STRING, TYPE_U32_STRING.
61621         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61622         u16_directive, u16_directives, u32_directive, u32_directives): New
61623         types.
61624         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61625         New declarations.
61626         * lib/printf-parse.c: Don't include config.h and the specification
61627         header if PRINTF_PARSE is already defined. Eliminate the set of
61628         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61629         them now. Include c-ctype.h.
61630         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61631         directive and CHAR_T_ONLY_ASCII.
61632         * lib/vasnprintf.c: Don't include config.h and the specification header
61633         if VASNPRINTF is already defined.
61634         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61635         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61636         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61637         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61638         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61639         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61640         code accordingly.
61641         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61642         pad_ourselves also in this case, with the 'c' and 's' directives, and
61643         with a different notion of "width".
61644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61645
61646 2007-06-10  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/unistr/u32-mbsnlen: New file.
61649         * lib/unistr/u32-mbsnlen.c: New file.
61650
61651         * modules/unistr/u16-mbsnlen: New file.
61652         * lib/unistr/u16-mbsnlen.c: New file.
61653
61654         * modules/unistr/u8-mbsnlen: New file.
61655         * lib/unistr/u8-mbsnlen.c: New file.
61656
61657         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61658         declarations.
61659
61660 2007-06-10  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/string_.h (mbsnlen): New declaration.
61663         * lib/mbsnlen.c: New file.
61664         * m4/mbsnlen.m4: New file.
61665         * modules/mbsnlen: New file.
61666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61667         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61668         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61669
61670 2007-06-10  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61673
61674 2007-06-10  Bruno Haible  <bruno@clisp.org>
61675
61676         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61677         * lib/mbuiter.h: Likewise.
61678
61679 2007-06-10  Bruno Haible  <bruno@clisp.org>
61680
61681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61682         declaration.
61683
61684 2007-06-10  Karl Berry  <karl@gnu.org>
61685
61686         * config/srclist.txt: remove gettext entries, Bruno prefers
61687         to update individually.
61688
61689 2007-06-10  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61692         'maxlen'. Ensure only length + width bytes are allocated, not
61693         length + 1 + width.
61694
61695 2007-06-09  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61698         (CHAR_T): Remove macro.
61699         (VASNPRINTF): Update.
61700
61701 2007-06-09  Bruno Haible  <bruno@clisp.org>
61702
61703         * MODULES.html.sh (Unicode string functions): Add the new modules.
61704
61705         * modules/uniconv/u32-conv-to-enc: New file.
61706         * lib/uniconv/u32-conv-to-enc.c: New file.
61707         * modules/uniconv/u32-conv-to-enc-tests: New file.
61708         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61709
61710         * modules/uniconv/u16-conv-to-enc: New file.
61711         * lib/uniconv/u16-conv-to-enc.c: New file.
61712         * lib/uniconv/u-conv-to-enc.h: New file.
61713         * modules/uniconv/u16-conv-to-enc-tests: New file.
61714         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61715
61716         * modules/uniconv/u8-conv-to-enc: New file.
61717         * lib/uniconv/u8-conv-to-enc.c: New file.
61718         * modules/uniconv/u8-conv-to-enc-tests: New file.
61719         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61720
61721         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61722         u32_conv_to_encoding): New declarations.
61723
61724 2007-06-09  Bruno Haible  <bruno@clisp.org>
61725
61726         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61727
61728 2007-06-09  Bruno Haible  <bruno@clisp.org>
61729
61730         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61731         * modules/malloca: Renamed from modules/allocsa, updated.
61732         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61733         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61734         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61735         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61736         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61737         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61738         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61739         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61740         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61741         * modules/c-strcasestr (Depends-on): Update.
61742         * lib/c-strcasestr.c: Update.
61743         * modules/c-strstr (Depends-on): Update.
61744         * lib/c-strstr.c: Update.
61745         * modules/canonicalize-lgpl (Depends-on): Update.
61746         * lib/canonicalize-lgpl.c: Update.
61747         * modules/clean-temp (Depends-on): Update.
61748         * lib/clean-temp.c: Update.
61749         * modules/csharpcomp (Depends-on): Update.
61750         * lib/csharpcomp.c: Update.
61751         * modules/csharpexec (Depends-on): Update.
61752         * lib/csharpexec.c: Update.
61753         * modules/javacomp (Depends-on): Update.
61754         * lib/javacomp.c: Update.
61755         * modules/javaexec (Depends-on): Update.
61756         * lib/javaexec.c: Update.
61757         * modules/mbscasestr (Depends-on): Update.
61758         * lib/mbscasestr.c: Update.
61759         * modules/mbsstr (Depends-on): Update.
61760         * lib/mbsstr.c: Update.
61761         * modules/setenv (Depends-on): Update.
61762         * lib/setenv.c: Update.
61763         * modules/strcasestr (Depends-on): Update.
61764         * lib/strcasestr.c: Update.
61765         * modules/striconveha (Depends-on): Update.
61766         * lib/striconveha.c: Update.
61767         * modules/relocatable-prog-wrapper (Files): Update.
61768         * lib/relocwrapper.c: Update.
61769         * build-aux/install-reloc: Update.
61770         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61771
61772 2007-06-08  Bruno Haible  <bruno@clisp.org>
61773
61774         Port to uClibc.
61775         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61776         * lib/fpurge.c (fpurge): Likewise.
61777         * lib/freading.c (freading): Likewise.
61778         * lib/fseeko.c (rpl_fseeko): Likewise.
61779         * lib/fseterr.c (fseterr): Likewise.
61780         * lib/fwriting.c (fwriting): Likewise.
61781         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61782
61783 2007-06-08  Bruno Haible  <bruno@clisp.org>
61784
61785         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61786         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61787         * modules/gettext (Files): Add m4/intlmacosx.m4.
61788
61789 2007-06-07  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/localename-tests: New file.
61792         * tests/test-localename.c: New file.
61793
61794         New module 'localename'.
61795         * lib/localename.h: New file.
61796         * lib/localename.c: New file, from GNU gettext.
61797         * m4/localename.m4: New file.
61798         * modules/localename: New file.
61799
61800 2007-06-07  Bruno Haible  <bruno@clisp.org>
61801
61802         Work around the lack of <wchar.h> on some builds of uClibc.
61803         * doc/headers/wchar.texi: Update.
61804         * lib/wchar_.h: Include <wchar.h> only if it exists.
61805         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61806         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61807         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61808         doesn't exist.
61809         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61810         * modules/mbfile (Depends-on): Add wchar.
61811         * modules/mbiter (Depends-on): Likewise.
61812         * modules/mbuiter (Depends-on): Likewise.
61813         Reported by Simon Josefsson.
61814
61815 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         Work around problem reported by Steven M. Schweda in
61818         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61819         Tru64 5.1B with the Compaq compiler environment installed declares
61820         an 'isblank' function but does not define it in the C library.
61821         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61822         * lib/regex_internal.h (isblank): Likewise.
61823         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61824         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61825
61826 2007-06-05  Bruno Haible  <bruno@clisp.org>
61827
61828         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61829         ia64.
61830         * modules/printf-safe: New file.
61831         * modules/fprintf-posix (Depends-on): Add printf-safe.
61832         * modules/printf-posix (Depends-on): Likewise.
61833         * modules/snprintf-posix (Depends-on): Likewise.
61834         * modules/sprintf-posix (Depends-on): Likewise.
61835         * modules/vasnprintf-posix (Depends-on): Likewise.
61836         * modules/vasprintf-posix (Depends-on): Likewise.
61837         * modules/vfprintf-posix (Depends-on): Likewise.
61838         * modules/vprintf-posix (Depends-on): Likewise.
61839         * modules/vsnprintf-posix (Depends-on): Likewise.
61840         * modules/vsprintf-posix (Depends-on): Likewise.
61841         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61842         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61843         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61844         "no" on i386, x86_64, ia64.
61845         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61846         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61847         on i386, x86_64, ia64.
61848         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61849         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61850         on i386, x86_64, ia64.
61851         * tests/test-vasnprintf-posix.c: Include float.h.
61852         (LDBL80_WORDS): New macro.
61853         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61854         on i386, x86_64, ia64.
61855         * tests/test-vasprintf-posix.c: Include float.h.
61856         (LDBL80_WORDS): New macro.
61857         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61858         on i386, x86_64, ia64.
61859         * tests/test-snprintf-posix.c: Include float.h.
61860         * tests/test-sprintf-posix.c: Likewise.
61861         * tests/test-vsnprintf-posix.c: Likewise.
61862         * tests/test-vsprintf-posix.c: Likewise.
61863
61864 2007-06-05  Bruno Haible  <bruno@clisp.org>
61865
61866         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61868         non-IEEE numbers on i386, x86_64, ia64.
61869         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61870         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61871         * tests/test-isnanl.h: Include float.h.
61872         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61873
61874 2007-06-05  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61877         also the %a / %A. Handle the %a / %A code before this extra handling.
61878
61879 2007-06-05  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61882         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61883
61884 2007-06-05  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61887         typo in variable name.
61888
61889 2007-06-05  Eric Blake  <ebb9@byu.net>
61890
61891         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61892         Reported by Simon Josefsson.
61893
61894 2007-06-04  Bruno Haible  <bruno@clisp.org>
61895
61896         Avoid test failures on some PowerPC platforms.
61897         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61898         Define differently for PowerPC.
61899         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61900         Reported by Gary V. Vaughan <gary@gnu.org>.
61901
61902 2007-06-02  Bruno Haible  <bruno@clisp.org>
61903
61904         Fix test-stdint failure on FreeBSD/ia64.
61905         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61906         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61907         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61908         * doc/headers/stdint.texi: Update.
61909
61910 2007-06-01  Bruno Haible  <bruno@clisp.org>
61911
61912         * tests/test-binary-io.c (main): Pass a third argument to open().
61913         Reported by Gary V. Vaughan <gary@gnu.org>.
61914
61915 2007-06-01  Bruno Haible  <bruno@clisp.org>
61916
61917         * doc/functions/frexpl.texi: Update for mingw.
61918
61919 2007-06-01  Bruno Haible  <bruno@clisp.org>
61920
61921         * tests/test-lseek.c (main): Disable test of errno for invalid third
61922         argument.
61923         * doc/functions/lseek.texi: Update.
61924         Reported by Gary V. Vaughan <gary@gnu.org>.
61925
61926 2007-05-28  Bruno Haible  <bruno@clisp.org>
61927
61928         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61929
61930 2007-05-31  Eric Blake  <ebb9@byu.net>
61931
61932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61933         cross compiling.
61934
61935 2007-05-30  Eric Blake  <ebb9@byu.net>
61936         and Bruno Haible  <bruno@clisp.org>
61937
61938         Work around mingw test failures exposed by m4-1.4.9b.
61939         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61940         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61941         moment.
61942
61943 2007-05-30  Bruno Haible  <bruno@clisp.org>
61944
61945         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61946         assuming that they are closed. Needed on HP-UX 11.
61947
61948 2007-05-29  Bruno Haible  <bruno@clisp.org>
61949
61950         Fix a problem with #include_next.
61951         * lib/dirent_.h: Split the double-inclusion guard.
61952         * lib/fcntl_.h: Likewise.
61953         * lib/float_.h: Likewise.
61954         * lib/iconv_.h: Likewise.
61955         * lib/inttypes_.h: Likewise.
61956         * lib/locale_.h: Likewise.
61957         * lib/math_.h: Likewise.
61958         * lib/netinet_in_.h: Likewise.
61959         * lib/search_.h: Likewise.
61960         * lib/signal_.h: Likewise.
61961         * lib/stdint_.h: Likewise.
61962         * lib/stdio_.h: Likewise.
61963         * lib/stdlib_.h: Likewise.
61964         * lib/string_.h: Likewise.
61965         * lib/sys_select_.h: Likewise.
61966         * lib/sys_socket_.h: Likewise.
61967         * lib/sys_stat_.h: Likewise.
61968         * lib/sys_time_.h: Likewise.
61969         * lib/sysexits_.h: Likewise.
61970         * lib/time_.h: Likewise.
61971         * lib/unistd_.h: Likewise.
61972         * lib/wchar_.h: Likewise.
61973         * lib/wctype_.h: Likewise.
61974
61975 2007-05-29  Bruno Haible  <bruno@clisp.org>
61976
61977         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61978         for the moment.
61979
61980 2007-05-29  Bruno Haible  <bruno@clisp.org>
61981
61982         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61983         invocation.
61984         Reported by Eric Blake.
61985
61986 2007-05-29  Bruno Haible  <bruno@clisp.org>
61987
61988         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61989         compiling case.
61990
61991 2007-05-29  Eric Blake  <ebb9@byu.net>
61992             Bruno Haible  <bruno@clisp.org>
61993
61994         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61995         cross compiles.
61996
61997 2007-05-28  Eric Blake  <ebb9@byu.net>
61998
61999         * modules/closein-tests (test_closein_LDADD): Support test on
62000         cygwin with libtool.
62001
62002 2007-05-28  Bruno Haible  <bruno@clisp.org>
62003
62004         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
62005         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62006         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62007         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62008         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62009         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62010         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62011         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62012         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62013
62014 2007-05-28  Eric Blake  <ebb9@byu.net>
62015
62016         Unconditionally include <config.h> in unit tests.
62017         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
62018         * tests/test-allocsa.c, tests/test-arcfour.c,
62019         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
62020         tests/test-array_list.c, tests/test-array_oset.c,
62021         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
62022         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
62023         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
62024         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
62025         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
62026         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
62027         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
62028         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
62029         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
62030         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
62031         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
62032         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
62033         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
62034         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
62035         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
62036         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
62037         test-md5.c, test-memmem.c, test-printf-posix.c,
62038         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
62039         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
62040         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
62041         test-strcasestr.c, test-striconv.c, test-striconveh.c,
62042         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
62043         test-vasnprintf-posix2.c, test-vasnprintf.c,
62044         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
62045         test-vfprintf-posix.c, test-vprintf-posix.c,
62046         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
62047         test-xvasprintf.c: Likewise.
62048
62049 2007-05-28  Bruno Haible  <bruno@clisp.org>
62050
62051         * gnulib-tool (func_import): Remember the --with-tests command-line
62052         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
62053         Reported by Eric Blake.
62054
62055 2007-05-28  Bruno Haible  <bruno@clisp.org>
62056
62057         * modules/ftell-tests: New file.
62058         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
62059         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
62060
62061         * lib/ftell.c: New file.
62062         * modules/ftell: New file.
62063         * m4/ftell.m4: New file.
62064         * doc/functions/ftell.texi: Update.
62065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
62066         REPLACE_FTELL.
62067         * lib/stdio_.h (rpl_ftell): New declaration.
62068         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
62069         REPLACE_FTELL.
62070
62071 2007-05-28  Eric Blake  <ebb9@byu.net>
62072
62073         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
62074
62075 2007-05-28  Bruno Haible  <bruno@clisp.org>
62076
62077         * modules/fseek-tests: New file.
62078         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
62079         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
62080
62081         * lib/fseek.c: New file.
62082         * modules/fseek: New file.
62083         * m4/fseek.m4: New file.
62084         * doc/functions/fseek.texi: Update.
62085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
62086         REPLACE_FSEEK.
62087         * lib/stdio_.h (rpl_fseek): New declaration.
62088         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
62089         REPLACE_FSEEK.
62090
62091 2007-05-28  Bruno Haible  <bruno@clisp.org>
62092
62093         * lib/stdio_.h (fflush): More comments.
62094
62095 2007-05-28  Bruno Haible  <bruno@clisp.org>
62096
62097         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
62098         runtime test.
62099
62100 2007-05-28  Eric Blake  <ebb9@byu.net>
62101
62102         Improve lseek module.
62103         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
62104         * lib/unistd_.h (lseek): Scale back link warning message.
62105         * tests/test-lseek.c: Beef up test.
62106         * tests/test-lseek.sh: Exercise more facets of lseek.
62107         Reported by Bruno Haible.
62108
62109 2007-05-28  Bruno Haible  <bruno@clisp.org>
62110
62111         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
62112         to define.
62113
62114 2007-05-27  Bruno Haible  <bruno@clisp.org>
62115
62116         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
62117
62118 2007-05-27  Bruno Haible  <bruno@clisp.org>
62119
62120         * modules/openmp: New file.
62121         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
62122         Noah Misch.
62123
62124 2007-05-26  Bruno Haible  <bruno@clisp.org>
62125
62126         * modules/chdir-long (Depends-on): Add fchdir.
62127         * modules/chdir-safer (Depends-on): Likewise.
62128         * modules/fts (Depends-on): Likewise.
62129         * modules/fts-lgpl (Depends-on): Likewise.
62130         * modules/openat (Depends-on): Likewise.
62131         * modules/savewd (Depends-on): Likewise.
62132
62133 2007-05-24  Eric Blake  <ebb9@byu.net>
62134
62135         Fix lseek on mingw.
62136         * modules/lseek: New module.
62137         * m4/lseek.m4: New file.
62138         * lib/lseek.c: New file.
62139         * modules/lseek-tests: New file.
62140         * tests/test-lseek.c: New file.
62141         * tests/test-lseek.sh: New file.
62142         * MODULES.html.sh: Document lseek module.
62143         * modules/fflush (Depends-on): Add lseek, fseeko.
62144         * modules/fseeko (Depends-on): Likewise.
62145         * modules/ftello (Depends-on): Likewise.
62146         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
62147         broken.
62148         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62149         broken.
62150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62151         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62152         * lib/ftello.c (rpl_ftello): Likewise.
62153         * tests/test-fseeko.c (main): Test this.
62154         * tests/test-fseeko.sh: Likewise.
62155         * tests/test-ftello.c (main): Likewise.
62156         * tests/test-ftello.sh: Likewise.
62157         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62158         implies replacing fseek.
62159         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62160         HAVE_FTELLO.
62161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62162         * modules/unistd (Makefile.am): Likewise.
62163         * lib/unistd_.h (lseek): Declare a replacement.
62164         * doc/functions/lseek.texi (lseek): Document this fix.
62165         * doc/functions/fseek.texi (fseek): Likewise.
62166         * doc/functions/ftell.texi (ftell): Likewise.
62167
62168 2007-05-24  Bruno Haible  <bruno@clisp.org>
62169
62170         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62171         in the printed representation of a NaN.
62172         * tests/test-vasprintf-posix.c (test_function): Likewise.
62173         * tests/test-snprintf-posix.h (test_function): Likewise.
62174         * tests/test-sprintf-posix.h (test_function): Likewise.
62175         Reported by Eric Blake.
62176
62177 2007-05-23  Eric Blake  <ebb9@byu.net>
62178
62179         Fix fseeko/ftello on cygwin 1.5.24.
62180         * doc/functions/fseeko.texi (fseeko): Document the fix.
62181         * doc/functions/ftello.texi (ftello): Document the fix.
62182         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62183         * doc/functions/stdout.text (stdout): New file.
62184         * doc/functions/stderr.text (stderr): New file.
62185         * doc/gnulib.texi (Function Substitutes): Use new files.
62186         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62187         prior to 1.7.0.
62188         * tests/test-ftello.c (main): Likewise for ftello.
62189         * tests/test-fseeko.sh: New file.
62190         * tests/test-ftello.sh: New file.
62191         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62192         with seekable stdin.
62193         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62195         (gl_REPLACE_FSEEKO): New macro.
62196         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62197         * modules/fseeko (Files): Distribute fseeko.c.
62198         * modules/ftello (Files): Distribute ftello.c.
62199         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62200         mode.
62201         * lib/ftello.c (rpl_ftello): New file.
62202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62203         fseeko, ftello.
62204         (gl_STDIN_LARGE_OFFSET): New macro.
62205         * modules/stdio (Makefile.am): Perform the replacement.
62206         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62207
62208 2007-05-23  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62211         GNULIB_POSIXCHECK is defined.
62212
62213 2007-05-21  Bruno Haible  <bruno@clisp.org>
62214
62215         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62216         Check also the output for NaN arguments. When cross-compiling, guess
62217         no on IRIX.
62218         * lib/vasnprintf.c: Update comments.
62219         * tests/test-vasnprintf-posix.c (strisnan): New function.
62220         (test_function): Use it.
62221         * tests/test-vasprintf-posix.c (strisnan): New function.
62222         (test_function): Use it.
62223         * tests/test-snprintf-posix.h (strisnan): New function.
62224         (test_function): Use it.
62225         * tests/test-sprintf-posix.h (strisnan): New function.
62226         (test_function): Use it.
62227         Reported by Eric Blake.
62228
62229 2007-05-20  Bruno Haible  <bruno@clisp.org>
62230
62231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62232         numbers that fails on BeOS.
62233         * doc/functions/frexpl.texi: Update.
62234
62235 2007-05-20  Jim Meyering  <jim@meyering.net>
62236
62237         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62238         forced upon us by glibc-2.6.
62239
62240 2007-05-20  Bruno Haible  <bruno@clisp.org>
62241
62242         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62243         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62244         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62245         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62246         NEED_PRINTF_INFINITE.
62247         (is_infinitel): New function.
62248         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62250         gl_PREREQ_VASNPRINTF_INFINITE.
62251         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62253         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62254         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62255         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62256         gl_PREREQ_VASNPRINTF_INFINITE.
62257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62264         * doc/functions/fprintf.texi: Update.
62265         * doc/functions/printf.texi: Update.
62266         * doc/functions/snprintf.texi: Update.
62267         * doc/functions/sprintf.texi: Update.
62268         * doc/functions/vfprintf.texi: Update.
62269         * doc/functions/vprintf.texi: Update.
62270         * doc/functions/vsnprintf.texi: Update.
62271         * doc/functions/vsprintf.texi: Update.
62272
62273 2007-05-20  Bruno Haible  <bruno@clisp.org>
62274
62275         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62276         was not found in libc.
62277         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62278
62279 2007-05-20  Bruno Haible  <bruno@clisp.org>
62280
62281         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62282         printed as "-nan" instead of "nan".
62283         * tests/test-vasprintf-posix.c (test_function): Likewise.
62284         * tests/test-snprintf-posix.h (test_function): Likewise.
62285         * tests/test-sprintf-posix.h (test_function): Likewise.
62286         Needed for HP-UX 11.
62287
62288 2007-05-20  Jim Meyering  <jim@meyering.net>
62289
62290         Fix buggy test for the fchownat-deref bug.
62291         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62292         symlink required for the run-test.  Without it, this test would
62293         always declare that fchownat doesn't work, and client code would
62294         unnecessarily use the replacement function with fixed libc.
62295         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62296         Reported by Greg Schafer.
62297
62298 2007-05-19  Bruno Haible  <bruno@clisp.org>
62299
62300         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62301         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62302         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62303         Needed for IRIX 6.5 and Solaris 2.5.1.
62304
62305 2007-05-19  Bruno Haible  <bruno@clisp.org>
62306
62307         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62308         (test_function): Skip tests involving -0.0 on platforms where
62309         -0.0 = 0.0.
62310         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62311         (test_function): Skip tests involving -0.0 on platforms where
62312         -0.0 = 0.0.
62313         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62314         (test_function): Skip tests involving -0.0 on platforms where
62315         -0.0 = 0.0.
62316         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62317         (test_function): Skip tests involving -0.0 on platforms where
62318         -0.0 = 0.0.
62319         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62320         tests.
62321         * tests/test-printf-posix.h (test_function): Likewise.
62322         * tests/test-printf-posix.output: Remove all -0.0 related results.
62323         Needed for IRIX 6.5.
62324
62325 2007-05-19  Bruno Haible  <bruno@clisp.org>
62326
62327         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62328         printed as "nan0x7fffffff" instead of "nan".
62329         * tests/test-vasprintf-posix.c (test_function): Likewise.
62330         * tests/test-snprintf-posix.h (test_function): Likewise.
62331         * tests/test-sprintf-posix.h (test_function): Likewise.
62332         * tests/test-fprintf-posix.h (NaN): Remove macro.
62333         (test_function): Remove all NaN related tests.
62334         * tests/test-printf-posix.h (NaN): Remove macro.
62335         (test_function): Remove all NaN related tests.
62336         * tests/test-printf-posix.output: Remove all NaN related results.
62337         Needed for IRIX 6.5.
62338
62339 2007-05-19  Bruno Haible  <bruno@clisp.org>
62340
62341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62342         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62343
62344 2007-05-19  Bruno Haible  <bruno@clisp.org>
62345
62346         * lib/float_.h: New file.
62347         * m4/float_h.m4: New file.
62348         * modules/float: New file.
62349         * modules/isnanl (Dependencies): Add float.
62350         * modules/isnanl-nolibm (Dependencies): Likewise.
62351         * modules/mathl (Dependencies): Likewise.
62352         * modules/printf-frexpl (Dependencies): Likewise.
62353         * modules/signbit (Dependencies): Likewise.
62354         * modules/vasnprintf (Dependencies): Likewise.
62355         * doc/headers/float.texi: Update.
62356
62357 2007-05-19  Jim Meyering  <jim@meyering.net>
62358
62359         * lib/utimens.c (gl_futimens): Rename from futimens,
62360         now that glibc-2.6 declares futimens.
62361         * lib/utimens.h: Likewise.
62362
62363 2007-05-19  Bruno Haible  <bruno@clisp.org>
62364
62365         Avoid test failures on mingw.
62366         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62367         * tests/test-printf-posix.sh: Likewise.
62368         * tests/test-vfprintf-posix.sh: Likewise.
62369         * tests/test-vprintf-posix.sh: Likewise.
62370
62371 2007-05-19  Bruno Haible  <bruno@clisp.org>
62372
62373         Fix *printf result for NaN, Inf, -0.0 on mingw.
62374         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62375         * lib/vasnprintf.c: Include math.h and isnan.h.
62376         (is_infinite_or_zero): New function.
62377         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62378         values in the %f, %F, %e, %E, %g, %G directives.
62379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62381         gl_PRINTF_INFINITE and test its result. Invoke
62382         gl_PREREQ_VASNPRINTF_INFINITE.
62383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62390         * doc/functions/fprintf.texi: Update.
62391         * doc/functions/printf.texi: Update.
62392         * doc/functions/snprintf.texi: Update.
62393         * doc/functions/sprintf.texi: Update.
62394         * doc/functions/vfprintf.texi: Update.
62395         * doc/functions/vprintf.texi: Update.
62396         * doc/functions/vsnprintf.texi: Update.
62397         * doc/functions/vsprintf.texi: Update.
62398
62399 2007-05-19  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62402         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62403         Instead of multiplying with 10^k, set extra_zeroes to k.
62404         (scale10_round_long_double): Remove function.
62405
62406 2007-05-18  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62409         introduced on 2007-05-06.
62410
62411 2007-05-18  Bruno Haible  <bruno@clisp.org>
62412
62413         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62414         %g directives.
62415         * tests/test-vasprintf-posix.c (test_function): Likewise.
62416         * tests/test-snprintf-posix.h (test_function): Likewise.
62417         * tests/test-sprintf-posix.h (test_function): Likewise.
62418
62419 2007-05-18  Bruno Haible  <bruno@clisp.org>
62420
62421         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62422         (strmatch): New function.
62423         (test_function): Test the %f directive on numbers of various exponents.
62424         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62425         (strmatch): New function.
62426         (test_function): Test the %f directive on numbers of various exponents.
62427         * tests/test-snprintf-posix.h (strmatch): New function.
62428         (test_function): Test the %f directive on numbers of various exponents.
62429         * tests/test-sprintf-posix.h (strmatch): New function.
62430         (test_function): Test the %f directive on numbers of various exponents.
62431         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62432         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62433         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62434         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62435
62436 2007-05-18  Bruno Haible  <bruno@clisp.org>
62437
62438         Add support for 'long double' number output.
62439         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62440         * lib/vasnprintf.c: Include math.h and float+.h.
62441         (mp_limb_t): New type.
62442         (GMP_LIMB_BITS): New macro.
62443         (mp_twolimb_t): New type.
62444         (GMP_TWOLIMB_BITS): New macro.
62445         (mpn_t): New type.
62446         (multiply, divide, convert_to_decimal, decode_long_double,
62447         scale10_round_long_double, scale10_round_decimal_long_double,
62448         floorlog10l): New functions.
62449         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62450         for the %f, %F, %e, %E, %g, %G directives.
62451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62453         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62454         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62462         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62463         * modules/snprintf-posix (Depends-on): Likewise.
62464         * modules/sprintf-posix (Depends-on): Likewise.
62465         * modules/vasnprintf-posix (Depends-on): Likewise.
62466         * modules/vasprintf-posix (Depends-on): Likewise.
62467         * modules/vfprintf-posix (Depends-on): Likewise.
62468         * modules/vsnprintf-posix (Depends-on): Likewise.
62469         * modules/vsprintf-posix (Depends-on): Likewise.
62470         * modules/vasnprintf (Files): Add lib/float+.h.
62471         * doc/functions/fprintf.texi: Update.
62472         * doc/functions/printf.texi: Update.
62473         * doc/functions/snprintf.texi: Update.
62474         * doc/functions/sprintf.texi: Update.
62475         * doc/functions/vfprintf.texi: Update.
62476         * doc/functions/vprintf.texi: Update.
62477         * doc/functions/vsnprintf.texi: Update.
62478         * doc/functions/vsprintf.texi: Update.
62479
62480 2007-05-18  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62483
62484 2007-05-18  Bruno Haible  <bruno@clisp.org>
62485
62486         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62487         for printing 64-bit integers. Needed for mingw.
62488
62489 2007-05-18  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62492         gl_FUNC_FREXPL_WORKS.
62493         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62494
62495 2007-05-18  Bruno Haible  <bruno@clisp.org>
62496
62497         * modules/frexpl-nolibm-tests: New file.
62498
62499         * modules/frexpl-nolibm: New file.
62500         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62501
62502 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62503
62504         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62505         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62506         GCC 4.2, which otherwise issues a lot of warnings.
62507         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62508         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62509         Likewise.
62510         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62511         * modules/iconv_open (iconv.h): Likewise.
62512         * modules/locale (locale.h): Likewise.
62513         * modules/netinet_in (netinet/in.h): Likewise.
62514         * modules/sys_select (sys_select.h): Likewise.
62515         * modules/sys_socket (sys/socket.h): Likewise.
62516         * modules/sys_stat (sys/stat.h): Likewise.
62517         * modules/sysexits (sysexits.h): Likewise.
62518         * modules/unistd (unistd.h): Likewise.
62519
62520 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62521
62522         * modules/closein-tests (Makefile.am): Distribute
62523         `test-closein.sh'.
62524
62525 2007-05-17  Bruno Haible  <bruno@clisp.org>
62526
62527         * tests/test-printf-posix.output: Renamed from
62528         tests/test-fprintf-posix.out.
62529         * modules/fprintf-posix-tests: Update.
62530         * modules/printf-posix-tests: Update.
62531         * modules/vfprintf-posix-tests: Update.
62532         * modules/vprintf-posix-tests: Update.
62533         * tests/test-fprintf-posix.sh: Update.
62534         * tests/test-printf-posix.sh: Update.
62535         * tests/test-vfprintf-posix.sh: Update.
62536         * tests/test-vprintf-posix.sh: Update.
62537         Reported by Ralf Wildenhues.
62538
62539 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62542         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62543         GCC 4.2, which otherwise issues a lot of warnings.
62544         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62545         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62546         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62547         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62548         it should no longer be needed.
62549         * lib/string_.h: Likewise.
62550         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62551         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62552         * modules/inttypes (inttypes.h): Likewise.
62553         * modules/math (math.h): Likewise.
62554         * modules/search (search.h): Likewise.
62555         * modules/signal (signal.h): Likewise.
62556         * modules/stdint (stdint.h): Likewise.
62557         * modules/stdio (stdio.h): Likewise.
62558         * modules/stdlib (stdlib.h): Likewise.
62559         * modules/string (string.h): Likewise.
62560         * modules/sys_time (sys/time.h): Likewise.
62561         * modules/time (time.h): Likewise.
62562         * modules/wchar (wchar.h): Likewise.
62563         * modules/wctype (wtype.h): Likewise.
62564
62565 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62566
62567         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62568
62569 2007-05-13  Bruno Haible  <bruno@clisp.org>
62570
62571         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62572         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62573         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62574         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62575         (gl_PREREQ_STRTOK_R): Don't require it here.
62576
62577 2007-05-13  Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62580         when used in C++ mode.
62581
62582 2007-05-12  Bruno Haible  <bruno@clisp.org>
62583
62584         * lib/linebuffer.h: Tweak doc.
62585         * lib/linebuffer.c: Likewise.
62586
62587 2007-05-12  James Youngman  <jay@gnu.org>
62588
62589         * lib/linebuffer.c (readlinebuffer_delim): New function,
62590         like readlinebuffer, but use a caller-specified delimiter.
62591         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62592         as the delimiter.
62593         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62594
62595 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62596
62597         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62598         * modules/openat (Files): Remove openat-die.c.
62599         (Depends-on): Add openat-die.
62600         * modules/openat-die: New module.
62601
62602 2007-05-06  Bruno Haible  <bruno@clisp.org>
62603
62604         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62605         Update with info about Cygwin.
62606         * doc/functions/fprintf.texi: Update.
62607         * doc/functions/printf.texi: Update.
62608         * doc/functions/snprintf.texi: Update.
62609         * doc/functions/sprintf.texi: Update.
62610         * doc/functions/vfprintf.texi: Update.
62611         * doc/functions/vprintf.texi: Update.
62612         * doc/functions/vsnprintf.texi: Update.
62613         * doc/functions/vsprintf.texi: Update.
62614         Reported by Eric Blake.
62615
62616 2007-05-06  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62619         padding ourselves for the floating-point directives.
62620         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62622         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62623         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62624         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62628         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62632         * tests/test-snprintf-posix.h (test_function): Also check the width
62633         and some flags in the %f directive.
62634         * tests/test-sprintf-posix.h (test_function): Likewise.
62635         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62636         * tests/test-vasprintf-posix.c (test_function): Likewise.
62637         * doc/functions/fprintf.texi: Update.
62638         * doc/functions/printf.texi: Update.
62639         * doc/functions/snprintf.texi: Update.
62640         * doc/functions/sprintf.texi: Update.
62641         * doc/functions/vfprintf.texi: Update.
62642         * doc/functions/vprintf.texi: Update.
62643         * doc/functions/vsnprintf.texi: Update.
62644         * doc/functions/vsprintf.texi: Update.
62645
62646 2007-05-06  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62649         pass the ' flag character to sprintf or snprintf.
62650         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62653         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62654         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62655         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62662         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62663         flag.
62664         * tests/test-sprintf-posix.h (test_function): Likewise.
62665         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62666         * tests/test-vasprintf-posix.c (test_function): Likewise.
62667         * doc/functions/fprintf.texi: Update.
62668         * doc/functions/printf.texi: Update.
62669         * doc/functions/snprintf.texi: Update.
62670         * doc/functions/sprintf.texi: Update.
62671         * doc/functions/vfprintf.texi: Update.
62672         * doc/functions/vprintf.texi: Update.
62673         * doc/functions/vsnprintf.texi: Update.
62674         * doc/functions/vsprintf.texi: Update.
62675
62676 2007-05-01  Bruno Haible  <bruno@clisp.org>
62677
62678         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62679
62680 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62683         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62684
62685 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62688         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62690
62691 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62692
62693         * lib/argp-help.c (struct hol_entry): New member `ord'.
62694         (HOL_ENTRY_PTRCMP): Use ord for comparison
62695         (hol_sort): Initialize ord.
62696
62697 2007-05-01  Bruno Haible  <bruno@clisp.org>
62698
62699         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62700         Reported by Eric Blake.
62701         * doc/gnulib.texi (Function Substitutes): Update.
62702
62703 2007-05-01  Bruno Haible  <bruno@clisp.org>
62704
62705         * doc/functions.texi: Remove file, now redundant through
62706         doc/functions/*.texi.
62707
62708 2007-05-01  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/argp (Depends-on): Add sleep.
62711
62712 2007-05-01  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/sleep-tests: New file.
62715         * tests/test-sleep.c: New file.
62716
62717         * modules/sleep: New file.
62718         * lib/sleep.c: New file.
62719         * m4/sleep.m4: New file.
62720         * lib/unistd_.h (sleep): New declaration.
62721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62722         HAVE_SLEEP.
62723         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62724         * doc/functions/sleep.texi: Document the sleep module.
62725
62726 2007-05-01  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/sigprocmask.h: Remove file.
62729         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62730         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62731         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62732         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62733         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62734         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62735         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62736         HAVE_SIGSET_T as a shell variable.
62737         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62738         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62739         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62740         (Depends-on): Add signal. Remove verify.
62741         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62742         (Include): Mention <signal.h> instead of sigprocmask.h.
62743         * NEWS: Mention the change.
62744         * lib/fatal-signal.c: Don't include sigprocmask.h.
62745
62746 2007-05-01  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/signal: New file.
62749         * lib/signal_.h: New file.
62750         * m4/signal_h.m4: New file.
62751
62752 2007-05-01  Bruno Haible  <bruno@clisp.org>
62753
62754         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62755         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62756         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62757         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62758
62759 2007-05-01  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62762         configure time.
62763         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62764         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62765         * modules/sys_stat (Makefile.am): Substitute their values into
62766         sys/stat.h.
62767
62768 2007-05-01  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62771         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62772         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62773
62774 2007-05-01  Bruno Haible  <bruno@clisp.org>
62775
62776         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62777         'assert' module here.
62778
62779 2007-05-01  Bruno Haible  <bruno@clisp.org>
62780
62781         * doc/functions/*.texi: New files.
62782         * doc/functions/google-ranking.txt: New file.
62783         * doc/gnulib.texi (Function Substitutes): New chapter.
62784         (ctime, inet_ntoa): Remove sections.
62785         * doc/ctime.texi: Remove file.
62786         * doc/inet_ntoa.texi: Remove file.
62787         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62788         dependencies.
62789         (%.info): New rule, specifying a --reference-limit.
62790
62791 2007-05-01  Bruno Haible  <bruno@clisp.org>
62792
62793         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62794
62795 2007-05-01  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62798         the portability of 'mkdir' to mingw systems.
62799
62800 2007-05-01  Bruno Haible  <bruno@clisp.org>
62801
62802         * doc/headers/google-ranking.txt: New file.
62803
62804 2007-04-30  Eric Blake  <ebb9@byu.net>
62805
62806         Prefer fseeko to fseek.
62807         * modules/getpass (Depends-on): Add fseeko.
62808         * lib/getpass.c (getpass): Use fseeko, not fseek.
62809
62810 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62811
62812         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62813         assumes the sorting is stable, while most qsort implementations
62814         are not.  Use argument addresses to ensure they never compare as
62815         equal.
62816
62817         * tests/test-argp-2.sh (usage-indent test): Fix output
62818         (func_compare): Restore diff options
62819         * tests/test-argp.c: Restore #include "progname.h"
62820
62821 2007-04-29  Bruno Haible  <bruno@clisp.org>
62822
62823         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62825         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62827         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62828         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62829         (TESTS, check_PROGRAMS): Add test-snprintf.
62830         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62831         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62832         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62833         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62834         assertions that fail on HP-UX, OSF/1, or IRIX.
62835         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62836
62837 2007-04-29  Bruno Haible  <bruno@clisp.org>
62838
62839         * MODULES.html.sh (posix_functions): Remove 'contents'.
62840
62841 2007-04-29  Karl Berry  <karl@gnu.org>
62842
62843         * config/srclist.txt (gendocs_template_min): new entry.
62844
62845 2007-04-29  Bruno Haible  <bruno@clisp.org>
62846
62847         Work around fpurge bug on BSD systems.
62848         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62849         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62850         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62851         fpurge to rpl_fpurge if the system already has this function.
62852         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62853         the case where the system already has this function. Correct invariants
62854         on BSD systems.
62855         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62856         BSD systems.
62857
62858 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62859
62860         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62861         proposed by Sven Verdoolaege.
62862
62863         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62864         options.
62865         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62866         (usage and help tests): Update
62867
62868 2007-04-29  Bruno Haible  <bruno@clisp.org>
62869
62870         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62871         Print more information in case of failure. Disable a test on BeOS.
62872
62873 2007-04-29  Bruno Haible  <bruno@clisp.org>
62874
62875         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62876         This helps debugging on systems on which no gdb is available.
62877
62878 2007-04-29  Bruno Haible  <bruno@clisp.org>
62879
62880         * lib/freading.h: Improve comments.
62881         * lib/fwriting.h: Likewise.
62882         * tests/test-freading.c (main): Don't check freading immediately after
62883         repositioning. Needed for glibc.
62884
62885 2007-04-29  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/freading.c (freading): Trivial simplification.
62888
62889 2007-04-28  Bruno Haible  <bruno@clisp.org>
62890
62891         * tests/test-fwriting.c (main): Also test the interaction between
62892         fflush and fwriting.
62893         * modules/fwriting-tests (Depends-on): Add fflush.
62894
62895         * tests/test-freading.c (main): Also test the interaction between
62896         fflush and freading.
62897         * modules/freading-tests (Depends-on): Add fflush.
62898
62899 2007-04-28  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62902         fseeko and ftello.
62903         Suggested by Eric Blake.
62904
62905 2007-04-28  Jim Meyering  <jim@meyering.net>
62906
62907         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62908         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62909         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62910
62911 2007-04-27  Eric Blake  <ebb9@byu.net>
62912
62913         * doc/headers/assert.texi (assert.h): Document assert module use.
62914
62915 2007-04-27  Bruno Haible  <bruno@clisp.org>
62916
62917         * doc/headers/*.texi: New files.
62918         * doc/gnulib.texi (Header File Substitutes): New chapter.
62919         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62920         dependencies.
62921         (standards.info ,standards.html, standards.dvi): Update dependencies.
62922         (mostlyclean, clean): New targets.
62923
62924 2007-04-27  Bruno Haible  <bruno@clisp.org>
62925
62926         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62927         * modules/sysexits (Files, Makefile.am): Update.
62928
62929         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62930         * modules/sys_socket (Files, Makefile.am): Update.
62931
62932         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62933         * modules/sys_stat (Files, Makefile.am): Update.
62934
62935 2007-04-27  Eric Blake  <ebb9@byu.net>
62936
62937         * lib/freading.h: Improve comments.
62938         * lib/fwriting.h: Likewise.
62939         * lib/fflush.c: Likewise.
62940
62941         Fix closein for mingw.
62942         * modules/closein-tests: Add tests for closein.
62943         * tests/test-closein.c: New file.
62944         * tests/test-closein.sh: Likewise.
62945         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62946         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62947
62948 2007-04-27  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62951         version is < 6.
62952         * lib/math_.h [__DECC]: Likewise.
62953         * lib/stdio_.h [__DECC]: Likewise.
62954         * lib/stdlib_.h [__DECC]: Likewise.
62955         * lib/string_.h [__DECC]: Likewise.
62956         * lib/time_.h [__DECC]: Likewise.
62957         * lib/wchar_.h [__DECC]: Likewise.
62958         * lib/wctype_.h [__DECC]: Likewise.
62959
62960 2007-04-27  Bruno Haible  <bruno@clisp.org>
62961
62962         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62963
62964 2007-04-27  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/fflush.c: Add comments.
62967         * modules/fpurge-tests (Depends-on): Add fflush.
62968         * modules/freadable-tests (Depends-on): Likewise.
62969         * modules/fwritable-tests (Depends-on): Likewise.
62970
62971 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62972
62973         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62974         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62975         Report by Bruno Haible <bruno@clisp.org>.
62976
62977 2007-04-26  Eric Blake  <ebb9@byu.net>
62978
62979         Fix fflush on mingw.
62980         * modules/fflush (Depends-on): Add freading.
62981         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62982         but unread data.
62983
62984 2007-04-26  Eric Blake  <ebb9@byu.net>
62985         and Bruno Haible  <bruno@clisp.org>
62986
62987         Implement freading and fwriting.
62988         * lib/freading.c: New file.
62989         * lib/freading.h: Likewise.
62990         * m4/freading.m4: Likewise.
62991         * modules/freading: Likewise.
62992         * modules/freading-tests: Likewise.
62993         * tests/test-freading.c: Likewise.
62994         * lib/fwriting.c: New file.
62995         * lib/fwriting.h: Likewise.
62996         * m4/fwriting.m4: Likewise.
62997         * modules/fwriting: Likewise.
62998         * modules/fwriting-tests: Likewise.
62999         * tests/test-fwriting.c: Likewise.
63000         * MODULES.html.sh (File stream based Input/Output): Mention them.
63001
63002 2007-04-26  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
63005         'long' when we assume it.
63006         Suggested by Eric Blake.
63007
63008 2007-04-26  Bruno Haible  <bruno@clisp.org>
63009
63010         Ensure fseeko, ftello are declared on glibc systems.
63011         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
63012         * modules/fseeko (configure.ac-early): Likewise.
63013         * modules/ftello (configure.ac-early): Likewise.
63014         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
63015         AC_FUNC_FSEEKO for this.
63016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
63017         (gl_CHECK_FSEEKO): Remove macro.
63018
63019 2007-04-26  Bruno Haible  <bruno@clisp.org>
63020
63021         * tests/test-fflush.c (main): Also check the ftell result after
63022         fflush and fseek/fseeko.
63023         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
63024         file descriptor position cache in the stream.
63025         * lib/fseeko.c (rpl_fseeko): Likewise.
63026
63027 2007-04-26  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/fflush-tests (Depends-on): Add fseeko.
63030
63031 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
63032             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63033
63034         * lib/argz_.h: ensure error_t definition is obtained in same
63035         mechanism system argz.h would have.
63036         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
63037         argz facilities are known bad.  Err on the side of caution if
63038         cross-compiling.
63039
63040 2007-04-25  Eric Blake  <ebb9@byu.net>
63041
63042         * lib/fpurge.c (includes): Use stdlib.h for free.
63043         * tests/test-fflush.c (main): Also test fflush-fseeko.
63044
63045 2007-04-25  Bruno Haible  <bruno@clisp.org>
63046
63047         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
63048         * lib/fseeko.c: New file.
63049         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
63050         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
63051         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
63052         gl_FUNC_FSEEKO.
63053         (gl_FUNC_FSEEKO): Invoke it.
63054         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
63055         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
63056         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
63057
63058 2007-04-25  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/fflush (Depends-on): Add ftello.
63061
63062 2007-04-25  Bruno Haible  <bruno@clisp.org>
63063
63064         * modules/ftello-tests: New file.
63065         * tests/test-ftello.c: New file.
63066
63067         * modules/ftello: New file.
63068         * m4/ftello.m4: New file.
63069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63070         HAVE_FTELLO.
63071         * lib/stdio_.h (ftello): New declaration.
63072         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
63073         HAVE_FTELLO.
63074
63075 2007-04-25  Bruno Haible  <bruno@clisp.org>
63076
63077         * modules/fseeko-tests: New file.
63078         * tests/test-fseeko.c: New file.
63079
63080         * modules/fseeko: New file.
63081         * m4/fseeko.m4: New file.
63082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
63083         HAVE_FSEEKO.
63084         * lib/stdio_.h (fseeko): New declaration.
63085         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
63086         HAVE_FSEEKO.
63087
63088 2007-04-25  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
63091
63092 2007-04-25  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
63095         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
63096         * tests/test-unistd.c: Likewise.
63097         * tests/test-fcntl.c: Likewise.
63098
63099 2007-04-23  Eric Blake  <ebb9@byu.net>
63100
63101         * lib/fflush.c: Fix missing include.
63102         Reported by Bruno Haible.
63103
63104 2007-04-23  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
63107         Reported by Eric Blake.
63108
63109 2007-04-23  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
63112
63113 2007-04-23  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
63116
63117 2007-04-23  Bruno Haible  <bruno@clisp.org>
63118
63119         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
63120         Needed on HP-UX 11.
63121
63122 2007-04-16  Eric Blake  <ebb9@byu.net>
63123
63124         Make fflush rely on fpurge.
63125         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
63126         open coding all variants.
63127         * modules/fflush (Depends-on): Add fpurge and unistd.
63128         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
63129         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
63130
63131         Fix --with-tests compilation on cygwin.
63132         * modules/argmatch-tests (Makefile.am): List gnulib library first
63133         in LDADD.
63134         * modules/argp-tests (Makefile.am): Likewise.
63135         * modules/array-list-tests (Makefile.am): Likewise.
63136         * modules/array-oset-tests (Makefile.am): Likewise.
63137         * modules/avltree-list-tests (Makefile.am): Likewise.
63138         * modules/avltree-oset-tests (Makefile.am): Likewise.
63139         * modules/avltreehash-list-tests (Makefile.am): Likewise.
63140         * modules/carray-list-tests (Makefile.am): Likewise.
63141         * modules/dirname-tests (Makefile.am): Likewise.
63142         * modules/frexp-tests (Makefile.am): Likewise.
63143         * modules/isnanl-tests (Makefile.am): Likewise.
63144         * modules/linked-list-tests (Makefile.am): Likewise.
63145         * modules/linkedhash-list-tests (Makefile.am): Likewise.
63146         * modules/lock-tests (Makefile.am): Likewise.
63147         * modules/rbtree-list-tests (Makefile.am): Likewise.
63148         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63149         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63150         * modules/tls-tests (Makefile.am): Likewise.
63151         * modules/tsearch-tests (Makefile.am): Likewise.
63152         * modules/xvasprintf-tests (Makefile.am): Likewise.
63153
63154         Fix fpurge for cygwin.
63155         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63156         value.
63157         * modules/fpurge-tests (Depends-on): Clean up trash.
63158
63159 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63160
63161         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63162
63163         * m4/autobuild.m4: Re-indent.
63164
63165 2007-04-13  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/fpurge-tests: New file.
63168         * tests/test-fpurge.c: New file.
63169
63170         * modules/fpurge: New file.
63171         * lib/fpurge.h: New file.
63172         * lib/fpurge.c: New file.
63173         * m4/fpurge.m4: New file.
63174
63175 2007-04-13  Bruno Haible  <bruno@clisp.org>
63176
63177         * modules/fbufmode-tests: New file.
63178         * tests/test-fbufmode.c: New file.
63179
63180         * modules/fbufmode: New file.
63181         * lib/fbufmode.h: New file.
63182         * lib/fbufmode.c: New file.
63183         * m4/fbufmode.m4: New file.
63184
63185 2007-04-13  Bruno Haible  <bruno@clisp.org>
63186
63187         * modules/fwritable-tests: New file.
63188         * tests/test-fwritable.c: New file.
63189
63190         * modules/fwritable: New file.
63191         * lib/fwritable.h: New file.
63192         * lib/fwritable.c: New file.
63193         * m4/fwritable.m4: New file.
63194
63195 2007-04-13  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/freadable-tests: New file.
63198         * tests/test-freadable.c: New file.
63199
63200         * modules/freadable: New file.
63201         * lib/freadable.h: New file.
63202         * lib/freadable.c: New file.
63203         * m4/freadable.m4: New file.
63204
63205 2007-04-13  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63208         MOSTLYCLEANFILES.
63209
63210 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63211
63212         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63213         gzip bootstrap.conf to avoid dragging in i18n machinery.
63214         (gnulib_tool_option): Use it.
63215
63216 2007-04-13  Bruno Haible  <bruno@clisp.org>
63217
63218         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63219         %F directives.
63220         * tests/test-vasprintf-posix.c (test_function): Likewise.
63221         * tests/test-snprintf-posix.h (test_function): Likewise.
63222         * tests/test-sprintf-posix.h (test_function): Likewise.
63223         * tests/test-fprintf-posix.h (test_function): Likewise.
63224         * tests/test-printf-posix.h (test_function): Likewise.
63225         * tests/test-fprintf-posix.out: Likewise.
63226
63227 2007-04-13  Bruno Haible  <bruno@clisp.org>
63228
63229         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63230         * modules/tls-tests (configure.ac): Likewise.
63231         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63232
63233 2007-04-13  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/tls.c (glthread_tls_get): Fix return type.
63236         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63237
63238 2007-04-12  Eric Blake  <ebb9@byu.net>
63239
63240         * modules/gettime (Depends-on): Remove gettime.
63241         Reported by Dmitry V. Levin.
63242
63243 2007-04-12  Bruno Haible  <bruno@clisp.org>
63244
63245         * modules/fflush (Include): Mention <stdio.h>.
63246         * modules/strtoimax (Include): Mention <inttypes.h>.
63247         * modules/strtoumax (Include): Likewise.
63248
63249 2007-04-12  Eric Blake  <ebb9@byu.net>
63250
63251         * .cvsignore: New file.
63252         * .gitignore: Likewise.
63253
63254 2007-04-12  Bruno Haible  <bruno@clisp.org>
63255
63256         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63257         not before, since $(LDADD) often contains libgnu.a.
63258         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63259         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63260         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63261         Needed on Cygwin.
63262
63263 2007-04-12  Eric Blake  <ebb9@byu.net>
63264
63265         Work around glibc's failure to flush stdin on fclose.
63266         * lib/closein.c (close_stdin): Flush stdin before closing.
63267
63268         Work around glibc's failure to reset seekable stdin on exit.
63269         * modules/closein: New module.
63270         * lib/closein.c: New file.
63271         * lib/closein.h: Likewise.
63272         * m4/closein.m4: Likewise.
63273         * MODULES.html.sh (File stream based Input/Output): Document it.
63274
63275 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63276
63277         * gnulib-tool: Rename generated 'autobuild' script to
63278         'do-autobuild' in --create-megatestdir output.
63279
63280         * doc/gnulib.texi (Build robot for gnulib): Fix.
63281
63282 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63283
63284         * modules/sysexits (Depends-on): Add absolute-header.
63285
63286 2007-04-12  Eric Blake  <ebb9@byu.net>
63287
63288         No need to preserve errno on success.
63289         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63290         Reported by Bruno Haible.
63291
63292 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63293
63294         * MODULES.html.sh (Support for maintaining and releasing
63295         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63296
63297 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63298
63299         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63300
63301 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63302
63303         * modules/autobuild: New module.
63304
63305         * m4/autobuild.m4: New file.
63306
63307 2007-04-11  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63310         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63312         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63328         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63335         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63336         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63337         Reported by Eric Blake.
63338
63339 2007-04-11  Bruno Haible  <bruno@clisp.org>
63340
63341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63342
63343 2007-04-10  Bruno Haible  <bruno@clisp.org>
63344
63345         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63346         for NaN and Infinity. Needed on FreeBSD 6.1.
63347         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63348         regarding results for "%010a" of Infinity and NaN.
63349         * tests/test-vasprintf-posix.c (test_function): Likewise.
63350         * tests/test-snprintf-posix.h (test_function): Likewise.
63351         * tests/test-sprintf-posix.h (test_function): Likewise.
63352         * tests/test-fprintf-posix.h (test_function): Likewise.
63353         * tests/test-printf-posix.h (test_function): Likewise.
63354         * tests/test-fprintf-posix.out: Likewise.
63355
63356 2007-04-10  Bruno Haible  <bruno@clisp.org>
63357
63358         * modules/locale-tests: New file.
63359         * tests/test-locale.c: New file.
63360
63361         * modules/locale: New file.
63362         * lib/locale_.h: New file.
63363         * m4/locale_h.m4: New file.
63364
63365 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63366             Bruno Haible  <bruno@clisp.org>
63367
63368         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63369         be determined, test for availability of the copysignf, copysign,
63370         copysignl functions.
63371         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63372         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63373         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63374
63375 2007-04-09  Eric Blake  <ebb9@byu.net>
63376
63377         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63378         * modules/stdio (Makefile.am): Support fflush.
63379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63380         * modules/fflush: New file.
63381         * lib/fflush.c: Likewise.
63382         * m4/fflush.m4: Likewise.
63383         * modules/fflush-tests: New test.
63384         * tests/test-fflush.c: Likewise.
63385         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63386
63387 2007-04-06  Bruno Haible  <bruno@clisp.org>
63388
63389         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63390         (VASNPRINTF): Use signbit for faster determination whether to print a
63391         minus sign.
63392         * modules/vasnprintf (Files): Remove lib/float+.h.
63393         * modules/fprintf-posix (Depends-on): Add signbit.
63394         * modules/snprintf-posix (Depends-on): Likewise.
63395         * modules/sprintf-posix (Depends-on): Likewise.
63396         * modules/vasnprintf-posix (Depends-on): Likewise.
63397         * modules/vasprintf-posix (Depends-on): Likewise.
63398         * modules/vfprintf-posix (Depends-on): Likewise.
63399         * modules/vsnprintf-posix (Depends-on): Likewise.
63400         * modules/vsprintf-posix (Depends-on): Likewise.
63401
63402 2007-04-06  Bruno Haible  <bruno@clisp.org>
63403
63404         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63405         * tests/test-frexpl.c (main): Likewise.
63406         * tests/test-ldexpl.c (main): Likewise.
63407         * modules/frexp-tests (Depends-on): Add signbit.
63408         * modules/frexpl-tests (Depdends-on): Likewise.
63409         * modules/ldexpl-tests (Depdends-on): Likewise.
63410
63411 2007-04-06  Bruno Haible  <bruno@clisp.org>
63412
63413         * modules/signbit-tests: New file.
63414         * tests/test-signbit.c: New file.
63415
63416         * modules/signbit: New file.
63417         * lib/signbitf.c: New file.
63418         * lib/signbitd.c: New file.
63419         * lib/signbitl.c: New file.
63420         * m4/signbit.m4: New file.
63421         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63422         (signbit): New macro.
63423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63424         REPLACE_SIGNBIT.
63425         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63426         REPLACE_FREXPL into math.h.
63427
63428 2007-04-06  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/isnanf-nolibm-tests: New file.
63431         * tests/test-isnanf.c: New file.
63432
63433         * modules/isnanf-nolibm: New file.
63434         * lib/isnanf.h: New file.
63435         * lib/isnanf.c: New file.
63436         * lib/isnan.c: Consider the USE_FLOAT macro.
63437         * m4/isnanf.m4: New file.
63438
63439 2007-04-06  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63442         (Link): New section.
63443
63444         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63445
63446 2007-04-06  Bruno Haible  <bruno@clisp.org>
63447
63448         Assume the 'long double' type.
63449         * m4/longdouble.m4: Remove file.
63450         * config/srclist.txt: Don't mention longdouble.m4.
63451         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63452         * lib/float+.h: Likewise.
63453         * lib/frexp.c: Likewise.
63454         * lib/printf-args.h: Likewise.
63455         * lib/printf-args.c: Likewise.
63456         * lib/printf-frexp.c: Likewise.
63457         * lib/printf-parse.c: Likewise.
63458         * lib/vasnprintf.c: Likewise.
63459         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63460         * m4/intl.m4: Likewise.
63461         * m4/isnanl.m4: Likewise.
63462         * m4/printf.m4: Likewise.
63463         * m4/printf-frexpl.m4: Likewise.
63464         * m4/vasnprintf.m4: Likewise.
63465         * modules/allocsa (Files): Remove m4/longdouble.m4.
63466         * modules/gettext (Files): Likewise.
63467         * modules/relocatable-prog-wrapper (Files): Likewise.
63468         * modules/vasnprintf (Files): Likewise.
63469         * modules/isnanl (Files): Likewise.
63470         (Include): Simplify.
63471         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63472         (Include): Simplify.
63473         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63474         (Include): Simplify.
63475         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63477         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63479         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63481         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63483         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63485         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63487         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63488         * tests/test-isnanl.c: Likewise.
63489         * tests/test-snprintf-posix.h: Likewise.
63490         * tests/test-sprintf-posix.h: Likewise.
63491         * tests/test-vasnprintf-posix.c: Likewise.
63492         * tests/test-vasnprintf-posix2.c: Likewise.
63493         * tests/test-vasprintf-posix.c: Likewise.
63494
63495 2007-04-06  Bruno Haible  <bruno@clisp.org>
63496
63497         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63498         * lib/math_.h [__DECC]: Include the overridden include file through
63499         #include_next, outside the double-inclusion guard.
63500         * lib/stdio_.h [__DECC]: Likewise.
63501         * lib/stdlib_.h [__DECC]: Likewise.
63502         * lib/string_.h [__DECC]: Likewise.
63503         * lib/time_.h [__DECC]: Likewise.
63504         * lib/wchar_.h [__DECC]: Likewise.
63505         * lib/wctype_.h [__DECC]: Likewise.
63506         * lib/inttypes_.h [__DECC]: Likewise.
63507         Reported by Albert Chin <china@thewrittenword.com> in
63508         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63509
63510 2007-04-04  Eric Blake  <ebb9@byu.net>
63511
63512         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63513         1.5.x.
63514
63515 2007-04-04  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63518         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63519
63520 2007-04-04  Bruno Haible  <bruno@clisp.org>
63521
63522         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63523         results for "%010a" of Infinity and NaN.
63524         * tests/test-vasprintf-posix.c (test_function): Likewise.
63525         * tests/test-snprintf-posix.h (test_function): Likewise.
63526         * tests/test-sprintf-posix.h (test_function): Likewise.
63527         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63528         * tests/test-printf-posix.h (test_function): Likewise.
63529         * tests/test-fprintf-posix.out: Update.
63530         Needed for FreeBSD 6.1.
63531
63532 2007-04-04  Bruno Haible  <bruno@clisp.org>
63533
63534         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63535         directly used by the gnulib modules nor by gnulib-tool.
63536
63537 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * DEPENDENCIES: Give overall description of version dependency
63540         desirability.  Use more-typical names for apps.
63541         Add shell, coreutils, diffutils, grep, tar, gzip.
63542
63543 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63544
63545         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63546
63547 2007-04-04  Karl Berry  <karl@gnu.org>
63548
63549         * MODULES.html.sh (func_module): missing '.
63550
63551 2007-04-03  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/argmatch-tests (Makefile.am): New variable
63554         test_argmatch_LDADD.
63555         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63556         * modules/array-list-tests (Makefile.am): New variable
63557         test_array_list_LDADD.
63558         * modules/array-oset-tests (Makefile.am): New variable
63559         test_array_oset_LDADD.
63560         * modules/avltree-list-tests (Makefile.am): New variable
63561         test_avltree_list_LDADD.
63562         * modules/avltree-oset-tests (Makefile.am): New variable
63563         test_avltree_oset_LDADD.
63564         * modules/avltreehash-list-tests (Makefile.am): New variable
63565         test_avltreehash_list_LDADD.
63566         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63567         test_canonicalize_lgpl_LDADD.
63568         * modules/carray-list-tests (Makefile.am): New variable
63569         test_carray_list_LDADD.
63570         * modules/dirname-tests (Makefile.am): New variable
63571         test_dirname_LDADD.
63572         * modules/linked-list-tests (Makefile.am): New variable
63573         test_linked_list_LDADD.
63574         * modules/linkedhash-list-tests (Makefile.am): New variable
63575         test_linkedhash_list_LDADD.
63576         * modules/rbtree-list-tests (Makefile.am): New variable
63577         test_rbtree_list_LDADD.
63578         * modules/rbtree-oset-tests (Makefile.am): New variable
63579         test_rbtree_oset_LDADD.
63580         * modules/rbtreehash-list-tests (Makefile.am): New variable
63581         test_rbtreehash_list_LDADD.
63582         * modules/xvasprintf-tests (Makefile.am): New variable
63583         test_xvasprintf_LDADD.
63584         Reported by Eric Blake.
63585
63586 2007-04-03  Eric Blake  <ebb9@byu.net>
63587
63588         * DEPENDENCIES: Weaken m4 requirements.
63589
63590 2007-04-03  Bruno Haible  <bruno@clisp.org>
63591
63592         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63593         * modules/isnanl-tests (configure.ac): Likewise.
63594
63595 2007-04-03  Ben Pfaff  <blp@gnu.org>
63596
63597         * modules/iconv_open: Add $(srcdir)/ to source directory
63598         references in Makefile fragments that call gperf, to fix VPATH
63599         builds.
63600
63601 2007-04-03  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63604         * lib/ldexpl.c: Undo last change.
63605
63606 2007-04-03  Bruno Haible  <bruno@clisp.org>
63607
63608         * modules/printf-frexpl (Depends-on): Undo last change.
63609         (Files): Add m4/ldexpl.m4.
63610
63611 2007-04-03  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63614         * modules/isnanl (Link): New section.
63615
63616         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63617         * modules/frexp (Link): New section.
63618
63619         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63620         * modules/frexpl (Link): New section.
63621
63622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63623         * modules/ldexpl (Link): New section.
63624
63625 2007-04-03  Bruno Haible  <bruno@clisp.org>
63626
63627         * modules/TEMPLATE-EXTENDED: New file.
63628         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63629
63630 2007-04-03  Bruno Haible  <bruno@clisp.org>
63631
63632         * DEPENDENCIES: New file.
63633         Suggested by Simon Josefsson.
63634
63635 2007-04-03  Bruno Haible  <bruno@clisp.org>
63636
63637         * doc/gnulib.texi: Escape @.
63638
63639 2007-04-03  James Youngman  <jay@gnu.org>
63640         and Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63643         birthtime on all systems that have birthtime, not just those which
63644         use st_birthtimensec rather than st_birthtim.  Putting zero in
63645         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63646         that the birth time is not available for files on an NFS mount.
63647
63648 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63649
63650         * modules/memxor: Move back from crypto/, suggested by Bruno.
63651         * modules/crypto/hmac-sha1: Fix memxor dependency.
63652
63653         * modules/crypto/gc: Moved from ../.
63654
63655 2007-04-02  Eric Blake  <ebb9@byu.net>
63656
63657         * lib/ldexpl.c (includes): Avoid libm.
63658
63659         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63660
63661 2007-04-02  Bruno Haible  <bruno@clisp.org>
63662
63663         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63664         on IRIX.
63665
63666 2007-04-02  Bruno Haible  <bruno@clisp.org>
63667
63668         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63669         x86 or x86_64 platforms running MacOS X.
63670         Reported by Ryan Schmidt <@ryandesign.com>.
63671
63672 2007-04-02  Bruno Haible  <bruno@clisp.org>
63673
63674         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63675         i386.
63676
63677 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63678
63679         * modules/crypto/arcfour: Moved from ../.
63680         * modules/crypto/arcfour-tests: Moved from ../.
63681         * modules/crypto/arctwo: Moved from ../.
63682         * modules/crypto/arctwo-tests: Moved from ../.
63683         * modules/crypto/des: Moved from ../.
63684         * modules/crypto/des-tests: Moved from ../.
63685         * modules/crypto/gc-arcfour: Moved from ../.
63686         * modules/crypto/gc-arcfour-tests: Moved from ../.
63687         * modules/crypto/gc-arctwo: Moved from ../.
63688         * modules/crypto/gc-arctwo-tests: Moved from ../.
63689         * modules/crypto/gc-des: Moved from ../.
63690         * modules/crypto/gc-des-tests: Moved from ../.
63691         * modules/crypto/gc-hmac-md5: Moved from ../.
63692         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63693         * modules/crypto/gc-hmac-sha1: Moved from ../.
63694         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63695         * modules/crypto/gc-md2: Moved from ../.
63696         * modules/crypto/gc-md2-tests: Moved from ../.
63697         * modules/crypto/gc-md4: Moved from ../.
63698         * modules/crypto/gc-md4-tests: Moved from ../.
63699         * modules/crypto/gc-md5: Moved from ../.
63700         * modules/crypto/gc-md5-tests: Moved from ../.
63701         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63702         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63703         * modules/crypto/gc-random: Moved from ../.
63704         * modules/crypto/gc-rijndael: Moved from ../.
63705         * modules/crypto/gc-rijndael-tests: Moved from ../.
63706         * modules/crypto/gc-sha1: Moved from ../.
63707         * modules/crypto/gc-sha1-tests: Moved from ../.
63708         * modules/crypto/gc-tests: Moved from ../.
63709         * modules/crypto/hmac-md5: Moved from ../.
63710         * modules/crypto/hmac-md5-tests: Moved from ../.
63711         * modules/crypto/hmac-sha1: Moved from ../.
63712         * modules/crypto/hmac-sha1-tests: Moved from ../.
63713         * modules/crypto/md2: Moved from ../.
63714         * modules/crypto/md2-tests: Moved from ../.
63715         * modules/crypto/md4: Moved from ../.
63716         * modules/crypto/md4-tests: Moved from ../.
63717         * modules/crypto/md5: Moved from ../.
63718         * modules/crypto/md5-tests: Moved from ../.
63719         * modules/crypto/memxor: Moved from ../.
63720         * modules/crypto/rijndael: Moved from ../.
63721         * modules/crypto/rijndael-tests: Moved from ../.
63722         * modules/crypto/sha1: Moved from ../.
63723
63724 2007-03-30  James Youngman  <jay@gnu.org>
63725
63726         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63727         rename() to change the ctime of a file (because ctime is unaffected
63728         by rename on jfs2 on AIX 5.1).
63729         (main): Start by doing cleanup, in case a previous run failed leaving
63730         test files behind.
63731
63732 2007-03-31  Bruno Haible  <bruno@clisp.org>
63733
63734         Support old proprietary implementations of iconv.
63735         * modules/iconv_open: New file.
63736         * lib/iconv_.h: New file.
63737         * m4/iconv_h.m4: New file.
63738         * lib/iconv_open.c: New file.
63739         * lib/iconv_open-aix.gperf: New file.
63740         * lib/iconv_open-hpux.gperf: New file.
63741         * lib/iconv_open-irix.gperf: New file.
63742         * lib/iconv_open-osf.gperf: New file.
63743         * m4/iconv_open.m4: New file.
63744         * modules/linebreak (Depends-on): Add iconv_open.
63745         * modules/striconv (Depends-on): Likewise.
63746         * modules/striconveh (Depends-on): Likewise.
63747         * modules/unicodeio (Depends-on): Likewise.
63748         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63749         (iconv_t)(-1).
63750         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63751         conversion if cd is (iconv_t)(-1).
63752         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63753         is not possible.
63754
63755 2007-03-31  Bruno Haible  <bruno@clisp.org>
63756
63757         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63758         work on Solaris either. Protect also second use of "autodetect_jp".
63759
63760 2007-03-31  Bruno Haible  <bruno@clisp.org>
63761
63762         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63763         the function is not present.
63764
63765 2007-03-31  Bruno Haible  <bruno@clisp.org>
63766
63767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63768         the function is not present.
63769
63770 2007-03-31  Bruno Haible  <bruno@clisp.org>
63771
63772         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63773         a bug in HP-UX iconv_open().
63774
63775 2007-03-31  Bruno Haible  <bruno@clisp.org>
63776
63777         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63778         (Mathematics <math.h>): New section, add fpieee.
63779         (Input/output <stdio.h>): Add fseterr.
63780         (Mathematics <math.h>): New section, add printf-frexp.
63781         (Container data structures): Add sublist.
63782         (Core language properties): Add fpucw, inline.
63783         (Functions for greatest-width integer types <inttypes.h>): Add
63784         imaxabs, imaxdiv, inttypes.
63785         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63786         isnanl-nolibm, ldexp.
63787         (Mathematics <math.h>): New section, add printf-frexpl.
63788         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63789         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63790         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63791         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63792         (Unicode string functions): Add unistr/u*-mbtoucr.
63793         (Java): Add javacomp-script, javaexec-script.
63794         (C#): Add csharpcomp-script, csharpexec-script.
63795         (Support for building libraries and executables): Add havelib,
63796         relocatable-*.
63797         (Support for maintaining and releasing projects): Renamed from
63798         'Support for maintaining and release projects'. Add announce-gen.
63799
63800 2007-03-31  Bruno Haible  <bruno@clisp.org>
63801
63802         * README: Talk primarily about git.
63803         (git and CVS): Renamed from CVS.
63804         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63805         gnulib is available through git.
63806         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63807
63808 2007-03-30  Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63811         * lib/poll_.h: Likewise.
63812         * lib/stat_.h: Likewise.
63813         * lib/sys_time_.h: Likewise.
63814         * lib/sysexit_.h: Likewise.
63815         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63816         * lib/stdbool_.h: Likewise.
63817         * lib/byteswap_.h: Add double-inclusion guard.
63818
63819 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63820
63821         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63822
63823 2007-03-30  Karl Berry  <karl@gnu.org>
63824
63825         * config/srclist-update: double space after USA in the license
63826         substitution, since that's how it's usually (?) written.
63827
63828 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63831         reported by Bruno Haible.
63832
63833 2007-03-29  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63836         a bug in AIX iconv().
63837
63838 2007-03-29  Bruno Haible  <bruno@clisp.org>
63839
63840         * modules/ldexpl-tests: New file.
63841         * tests/test-ldexpl.c: New file.
63842
63843 2007-03-29  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/ldexpl.c: Include fpucw.h.
63846         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63847         multiplication.
63848         * modules/ldexpl (Depends-on): Add fpucw.
63849
63850 2007-03-29  Bruno Haible  <bruno@clisp.org>
63851
63852         * modules/ldexpl: New file.
63853         * m4/ldexpl.m4: New file.
63854         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63855         set.
63856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63857         REPLACE_LDEXPL.
63858         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63859         REPLACE_LDEXPL.
63860         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63861         gl_FUNC_LDEXPL_WORKS.
63862         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63863         * modules/mathl (Files): Remove lib/ldexpl.c.
63864         (Depends-on): Add ldexpl.
63865
63866 2007-03-29  Bruno Haible  <bruno@clisp.org>
63867
63868         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63869
63870 2007-03-29  Bruno Haible  <bruno@clisp.org>
63871
63872         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63873         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63874         and possibly also HP-UX.
63875         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63876         work on AIX, IRIX, HP-UX, OSF/1.
63877         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63878         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63879         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63880         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63881         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63882         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63883
63884 2007-03-29  Bruno Haible  <bruno@clisp.org>
63885
63886         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63887
63888 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63891         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63892
63893 2007-03-29  Eric Blake  <ebb9@byu.net>
63894
63895         * lib/acl-internal.h: Remove redundant include.
63896         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63897         Cygwin when a file is locked.
63898
63899 2007-03-29  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63902         file.
63903         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63904
63905 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63908         try to remove a parent directory if the child couldn't be removed
63909         (except for the first rmdir, which could fail because the child
63910         doesn't exist).  Problem reported by Jeff Blaine in
63911         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63912
63913 2007-03-28  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/striconveh.c (utf8conv_carefully): New function.
63916         (mem_cd_iconveh_internal): Invoke it.
63917
63918 2007-03-28  Bruno Haible  <bruno@clisp.org>
63919
63920         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63921         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63922         input.
63923         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63924         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63925         unistr/u8-uctomb.
63926
63927 2007-03-28  Bruno Haible  <bruno@clisp.org>
63928
63929         * modules/unistr/u8-mbtoucr: New file.
63930         * lib/unistr/u8-mbtoucr.c: New file.
63931         * modules/unistr/u16-mbtoucr: New file.
63932         * lib/unistr/u16-mbtoucr.c: New file.
63933         * modules/unistr/u16-mbtoucr: New file.
63934         * lib/unistr/u16-mbtoucr.c: New file.
63935         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63936
63937 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63938             Bruno Haible  <bruno@clisp.org>
63939
63940         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63941         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63942         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63943
63944         * m4/stdio_h.m4: Add stubs for vasprintf too.
63945
63946         * modules/stdio: Support vasprintf in sed command.
63947
63948         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63949         vasprintf.h.  Add stdio module indicator.
63950
63951         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63952         vasprintf.h.
63953
63954         * lib/vasprintf.h: File removed.
63955
63956         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63957         * lib/vasprintf.c: Ditto.
63958         * lib/xvasprintf.c: Ditto.
63959         * tests/test-vasprintf-posix.c: Ditto.
63960         * tests/test-vasprintf.c: Ditto.
63961
63962 2007-03-27  Bruno Haible  <bruno@clisp.org>
63963
63964         Make vasnprintf multithread-safe.
63965         * lib/vasnprintf.c (decimal_point_char): New function.
63966         (VASNPRINTF): Use it.
63967         Suggested by Simon Josefsson.
63968
63969 2007-03-27  Eric Blake  <ebb9@byu.net>
63970
63971         Support sub-second birthtime on cygwin.
63972         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63973         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63974         (get_stat_birthtime): Also work with st_birthtim.
63975
63976 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63979         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63980         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63981         (get_stat_birthtime_ns): Simplify compile-time tests.
63982         (get_stat_birthtime): Change the API to look like
63983         get_stat_mtime etc., except return a negative tv_nsec on error.
63984         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63985         Don't check for "spare" fields.
63986         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63987         or for struct stat.st_birthtime, as these tests aren't used.
63988         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63989
63990 2007-03-27  Bruno Haible  <bruno@clisp.org>
63991
63992         * lib/stat-time.h: Include <sys/stat.h>.
63993
63994 2007-03-27  James Youngman  <jay@gnu.org>
63995
63996         * lib/stat-time.h (get_stat_birthtime): New function for
63997           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63998         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63999           and its variants.
64000         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
64001         * modules/stat-time-test: New file.
64002         * tests/test-stat-time.c: New test, devised by Bruno Haible.
64003
64004 2007-03-26  Bruno Haible  <bruno@clisp.org>
64005
64006         Better support of signalling NaNs.
64007         * lib/atanl.c: Include isnanl.h.
64008         (atanl): Perform test for NaN at the beginning of the function and
64009         through a call to isnanl.
64010         * lib/cosl.c: Include isnanl.h.
64011         (cosl): Perform test for NaN at the beginning of the function and
64012         through a call to isnanl.
64013         * lib/ldexpl.c: Include isnanl.h.
64014         (ldexpl): Perform test for NaN through a call to isnanl.
64015         * lib/logl.c: Include isnanl.h.
64016         (logl): Perform test for NaN at the beginning of the function and
64017         through a call to isnanl.
64018         * lib/sinl.c: Include isnanl.h.
64019         (sinl): Perform test for NaN at the beginning of the function and
64020         through a call to isnanl.
64021         * lib/sqrtl.c: Include isnanl.h.
64022         (sqrtl): Perform test for NaN at the beginning of the function and
64023         through a call to isnanl.
64024         * lib/tanl.c: Include isnanl.h.
64025         (tanl): Perform test for NaN at the beginning of the function and
64026         through a call to isnanl.
64027         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
64028         * modules/mathl (Depends-on): Add isnanl.
64029
64030 2007-03-26  Eric Blake  <ebb9@byu.net>
64031
64032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
64033         regression in logic sense of previous patch.
64034
64035 2007-03-26  Bruno Haible  <bruno@clisp.org>
64036
64037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
64038         unportable shell command "if ! ...".
64039         Reported by Ralf Wildenhues.
64040
64041 2007-03-25  Bruno Haible  <bruno@clisp.org>
64042
64043         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
64044         <sysexits.h> file, and only add EX_CONFIG.
64045         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
64046         absolute file name and whether it is sufficient. Substitute also
64047         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
64048         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
64049         ABSOLUTE_SYSEXITS_H into sysexits.h.
64050
64051 2007-03-25  Bruno Haible  <bruno@clisp.org>
64052
64053         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
64054         hints is NULL.
64055
64056 2007-03-25  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
64059         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
64060
64061 2007-03-25  Bruno Haible  <bruno@clisp.org>
64062
64063         * lib/vasnprintf.c: Include langinfo.h.
64064         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
64065         multithread-safe.
64066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
64067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
64068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
64074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64075         Reported by Simon Josefsson.
64076
64077 2007-03-25  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
64080         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
64081         * modules/vasnprintf (Depends-on): Add stdint.
64082
64083 2007-03-25  Bruno Haible  <bruno@clisp.org>
64084
64085         * modules/fpieee: New file.
64086         * m4/fpieee.m4: New file.
64087         * modules/isnan-nolibm (Depends-on): Add fpieee.
64088         * modules/isnanl-nolibm (Depends-on): Add fpieee.
64089         * modules/isnanl (Depends-on): Add fpieee.
64090
64091 2007-03-25  Bruno Haible  <bruno@clisp.org>
64092
64093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
64094
64095 2007-03-25  Bruno Haible  <bruno@clisp.org>
64096
64097         Avoid test failures on IRIX 6.5.
64098         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
64099         (main): Use it.
64100         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
64101         macros.
64102         (main): Use them.
64103
64104 2007-03-25  Bruno Haible  <bruno@clisp.org>
64105
64106         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
64107         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
64108         exists but doesn't work.
64109         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
64110         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
64111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
64112         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
64113         math.h.
64114
64115 2007-03-25  Bruno Haible  <bruno@clisp.org>
64116
64117         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
64118         returns inf. Needed on IRIX 6.5.
64119
64120 2007-03-25  Bruno Haible  <bruno@clisp.org>
64121
64122         * tests/test-frexpl.c: Include isnanl-nolibm.h.
64123         (main): Use isnanl instead of x != x idiom.
64124         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
64125
64126         * tests/test-frexp.c: Include isnan.h.
64127         (main): Use isnan instead of x != x idiom.
64128         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
64129
64130 2007-03-25  Bruno Haible  <bruno@clisp.org>
64131
64132         * tests/test-frexp.c (NaN): New function/macro.
64133         (main): Use it instead of 0.0 / 0.0.
64134         * tests/test-isnan.c (NaN): New function/macro.
64135         (main): Use it instead of 0.0 / 0.0.
64136         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
64137         (test_function): Use it instead of 0.0 / 0.0.
64138         * tests/test-vasprintf-posix.c (NaN): New function/macro.
64139         (test_function): Use it instead of 0.0 / 0.0.
64140         * tests/test-snprintf-posix.h (NaN): New function/macro.
64141         (test_function): Use it instead of 0.0 / 0.0.
64142         * tests/test-sprintf-posix.h (NaN): New function/macro.
64143         (test_function): Use it instead of 0.0 / 0.0.
64144         * tests/test-fprintf-posix.h (NaN): New function/macro.
64145         (test_function): Use it instead of 0.0 / 0.0.
64146         * tests/test-printf-posix.h (NaN): New function/macro.
64147         (test_function): Use it instead of 0.0 / 0.0.
64148
64149         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64150
64151 2007-03-25  Bruno Haible  <bruno@clisp.org>
64152
64153         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64154
64155 2007-03-25  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/regexec.c (merge_state_with_log): Make static.
64158
64159 2007-03-25  Bruno Haible  <bruno@clisp.org>
64160
64161         * lib/trigl.c (kernel_rem_pio2): Make static.
64162
64163 2007-03-25  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/sincosl.c (sincosl_table): Make static.
64166
64167 2007-03-25  Bruno Haible  <bruno@clisp.org>
64168
64169         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64170         if the compiler does not support C99.
64171
64172 2007-03-25  Bruno Haible  <bruno@clisp.org>
64173
64174         * modules/time (Makefile.am): Ensure all rule action lines start with a
64175         tab.
64176
64177 2007-03-24  Bruno Haible  <bruno@clisp.org>
64178
64179         * modules/tsearch-tests: New file.
64180         * tests/test-tsearch.sh: New file.
64181         * tests/test-tsearch.c: New file, mostly copied from glibc.
64182
64183         * modules/search-tests: New file.
64184         * tests/test-search.c: New file.
64185
64186         * modules/search: New file.
64187         * lib/search_.h: New file, incorporating lib/tsearch.h.
64188         * m4/search_h.m4: New file.
64189         * lib/tsearch.h: Remove file.
64190         * lib/tsearch.c: Include search.h instead of tsearch.h.
64191         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64192         HAVE_TSEARCH.
64193         * modules/tsearch (Files): Remove lib/tsearch.h.
64194         (Depends-on): Add search.
64195         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64196         (Include): Change tsearch.h into search.h.
64197
64198 2007-03-24  Bruno Haible  <bruno@clisp.org>
64199
64200         * modules/fpucw: New file.
64201         * lib/fpucw.h: New file.
64202         * lib/frexp.c: Include fpucw.h.
64203         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64204         (FUNC): Use them.
64205         * lib/printf-frexp.c: Include fpucw.h.
64206         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64207         (FUNC): Use them.
64208         * lib/vasnprintf.c: Include fpucw.h.
64209         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64210         'long double' calculations.
64211         * tests/test-frexpl.c: Include fpucw.h.
64212         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64213         * tests/test-printf-frexpl.c: Include fpucw.h.
64214         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64215         * modules/frexpl (Depends-on): Add fpucw.
64216         * modules/printf-frexpl (Depends-on): Likewise.
64217         * modules/fprintf-posix (Depends-on): Likewise.
64218         * modules/snprintf-posix (Depends-on): Likewise.
64219         * modules/sprintf-posix (Depends-on): Likewise.
64220         * modules/vasnprintf-posix (Depends-on): Likewise.
64221         * modules/vasprintf-posix (Depends-on): Likewise.
64222         * modules/vfprintf-posix (Depends-on): Likewise.
64223         * modules/vsnprintf-posix (Depends-on): Likewise.
64224         * modules/vsprintf-posix (Depends-on): Likewise.
64225         * modules/frexpl-tests (Depends-on): Likewise.
64226         * modules/printf-frexpl-tests (Depends-on): Likewise.
64227
64228 2007-03-24  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/float+.h: New file.
64231         * lib/isnan.c: Include float+.h.
64232         (SIZE): New macro.
64233         (FUNC): Compare only SIZE bytes of the value.
64234         * lib/vasnprintf.c: Include float+.h.
64235         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64236         SIZEOF_LDBL or SIZEOF_DBL bytes.
64237         * modules/isnan-nolibm (Files): Add lib/float+.h.
64238         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64239         * modules/isnanl (Files): Add lib/float+.h.
64240         * modules/vasnprintf (Files): Add lib/float+.h.
64241
64242 2007-03-24  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64245         include isnanl-nolibm.h.
64246
64247 2007-03-24  Bruno Haible  <bruno@clisp.org>
64248
64249         * tests/test-read-file.c (main): Don't produce spurious output for
64250         expected situations. Make the test fail if it encountered unexpected
64251         results.
64252
64253 2007-03-24  Bruno Haible  <bruno@clisp.org>
64254
64255         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64256         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64257
64258 2007-03-24  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64261
64262 2007-03-24  Bruno Haible  <bruno@clisp.org>
64263
64264         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64265         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64266
64267         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64268         * modules/utf8-ucs4: Turn into a symbolic link to module
64269         unistr/u8-mbtouc.
64270
64271         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64272         utf8-ucs4-unsafe.
64273         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64274         unistr/u8-mbtouc-unsafe.
64275
64276         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64277         * modules/utf16-ucs4: Turn into a symbolic link to module
64278         unistr/u16-mbtouc.
64279
64280         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64281         utf16-ucs4-unsafe.
64282         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64283         unistr/u16-mbtouc-unsafe.
64284
64285         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64286         * modules/ucs4-utf8: Turn into a symbolic link to module
64287         unistr/u8-ubtomb.
64288
64289         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64290         * modules/ucs4-utf16: Turn into a symbolic link to module
64291         unistr/u16-ubtomb.
64292
64293 2007-03-24  Bruno Haible  <bruno@clisp.org>
64294
64295         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64296         Enable the function only if HAVE_INLINE.
64297         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64298         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64299         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64300         Enable the function only if HAVE_INLINE.
64301         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64302         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64303         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64304         Enable the function only if HAVE_INLINE.
64305         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64306         Enable the function only if HAVE_INLINE.
64307         * modules/utf8-ucs4: Update.
64308         * modules/utf8-ucs4-unsafe: Update.
64309         * modules/utf16-ucs4: Update.
64310         * modules/utf16-ucs4-unsafe: Update.
64311         * modules/ucs4-utf8: Update.
64312         * modules/ucs4-utf16: Update.
64313
64314 2007-03-24  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/utf8-ucs4.h: Remove file.
64317         * lib/utf8-ucs4-unsafe.h: Remove file.
64318         * lib/utf16-ucs4.h: Remove file.
64319         * lib/utf16-ucs4-unsafe.h: Remove file.
64320         * lib/ucs4-utf8.h: Remove file.
64321         * lib/ucs4-utf16.h: Remove file.
64322         * lib/unistr.h: Include their previous contents.
64323         * m4/utf-ucs4.m4: Remove file.
64324         * m4/ucs4-utf.m4: Remove file.
64325         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64326         (Depends-on): Add unistr/base.
64327         (configure.ac): Remove gl_UTF_UCS4.
64328         (Makefile.am): Update.
64329         (Include): Change to unistr.h.
64330         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64331         (Depends-on): Add unistr/base.
64332         (configure.ac): Remove gl_UTF_UCS4.
64333         (Makefile.am): Update.
64334         (Include): Change to unistr.h.
64335         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64336         (Depends-on): Add unistr/base.
64337         (configure.ac): Remove gl_UTF_UCS4.
64338         (Makefile.am): Update.
64339         (Include): Change to unistr.h.
64340         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64341         (Depends-on): Add unistr/base.
64342         (configure.ac): Remove gl_UTF_UCS4.
64343         (Makefile.am): Update.
64344         (Include): Change to unistr.h.
64345         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64346         (Depends-on): Add unistr/base.
64347         (configure.ac): Remove gl_UCS4_UTF.
64348         (Makefile.am): Update.
64349         (Include): Change to unistr.h.
64350         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64351         (Depends-on): Add unistr/base.
64352         (configure.ac): Remove gl_UCS4_UTF.
64353         (Makefile.am): Update.
64354         (Include): Change to unistr.h.
64355         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64356         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64357         utf8-ucs4-unsafe.h.
64358         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64359         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64360         utf16-ucs4-unsafe.h.
64361         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64362         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64363         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64364         * lib/unistr/u8-strchr.c: Likewise.
64365         * lib/unistr/u8-strrchr.c: Likewise.
64366         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64367         * lib/unistr/u16-strchr.c: Likewise.
64368         * lib/unistr/u16-strrchr.c: Likewise.
64369         * lib/striconveh.c: Update.
64370         * lib/linebreak.c: Update.
64371
64372 2007-03-24  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64375         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64376
64377 2007-03-22  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64380
64381 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         * MODULES.html.sh (File system functions): New module write-any-file.
64384         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64385         * m4/write-any-file.m4: New files.
64386
64387 2007-03-23  Eric Blake  <ebb9@byu.net>
64388
64389         * gnulib-tool: Rearrange space-tab sequences, since some editors
64390         like to eat them.
64391
64392 2007-03-23  Eric Blake  <ebb9@byu.net>
64393
64394         * lib/version-etc.c (version_etc_va): Update license wording to
64395         be more concise.  Recommended by Richard Stallman.
64396
64397 2007-03-22  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/poll.c (MSG_PEEK): New fallback definition.
64400
64401 2007-03-22  Bruno Haible  <bruno@clisp.org>
64402
64403         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64404         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64405         (main): Update.
64406         Fixes a compilation error on BeOS.
64407
64408 2007-03-22  Bruno Haible  <bruno@clisp.org>
64409
64410         * modules/frexpl-tests: New file.
64411         * tests/test-frexpl.c: New file.
64412
64413         * modules/frexpl: New file.
64414         * m4/frexpl.m4: New file.
64415         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64416         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64418         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64419         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64420         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64421
64422 2007-03-22  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/frexpl.c: Share code with lib/frexp.c.
64425         * modules/mathl (Files): Add lib/frexp.c.
64426         (Depends-on): Add isnanl-nolibm.
64427
64428 2007-03-22  Bruno Haible  <bruno@clisp.org>
64429
64430         * modules/printf-frexp (Files): Add m4/frexp.m4.
64431         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64432         only if the found frexp function actually works.
64433
64434 2007-03-22  Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/frexp.c: Remove older implementation that uses divisions.
64437
64438 2007-03-21  Bruno Haible  <bruno@clisp.org>
64439
64440         * modules/frexp-tests: New file.
64441         * tests/test-frexp.c: New file.
64442
64443         * modules/frexp: New file.
64444         * lib/frexp.c: New file.
64445         * m4/frexp.m4: New file.
64446         * lib/math_.h (frexp): New declaration.
64447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64448         REPLACE_FREXP.
64449         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64450
64451 2007-03-21  Bruno Haible  <bruno@clisp.org>
64452
64453         * modules/isnanl-tests: New file.
64454         * tests/test-isnanl.c: New file.
64455
64456         * modules/isnanl: New file.
64457         * lib/isnanl.h: New file.
64458         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64459         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64460         gl_FUNC_ISNANL_WORKS.
64461         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64462         New macros.
64463
64464 2007-03-21  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64467         lib/isnanl.h.
64468         (Include): Update.
64469         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64470         * lib/vasnprintf.c: Update.
64471         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64472         tests/test-isnanl.h, remove tests/test-isnanl.c.
64473         (Makefile.am): Update.
64474         * tests/test-isnanl-nolibm.c: New file.
64475         * tests/test-isnanl.h: New file.
64476         * tests/test-isnanl.c: Remove file.
64477
64478 2007-03-21  Jim Meyering  <jim@meyering.net>
64479
64480         When trying to open ".", treat ESTALE like EACCES.
64481         * lib/savewd.c (savewd_save): Resort to forking not just upon
64482         failure with EACCES, but also when errno is ESTALE.
64483
64484 2007-03-20  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64487         Needed on AIX 5.1. Reported by Matthew Woehlke.
64488
64489 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64490
64491         Suggestions by Bruno Haible:
64492         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64493         our own.
64494         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64495         * modules/acl (Depends-on): Add gettext.
64496
64497 2007-03-19  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/iconvme: Remove file.
64500         * lib/iconvme.h: Remove file.
64501         * lib/iconvme.c: Remove file.
64502         * m4/iconvme.m4: Remove file.
64503
64504 2007-03-19  Bruno Haible  <bruno@clisp.org>
64505
64506         * doc/relocatable-maint.texi: Break long shell script line.
64507         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64508
64509 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64510
64511         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64512         handle file_has_acl.
64513         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64514         * lib/acl.c: Move header inclusions and related macro defns into
64515         lib/acl-internal.h.
64516         (S_ISLNK): Remove defn, since that's now done for us.
64517         (file_has_acl): Move to lib/file-has-acl.c.
64518         Call acl_trivial if available.  This is the crucial part of the fix.
64519         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64520         shared within the library.  Rewrite a bit, partly to make it compatible
64521         with the GNU coding style.
64522         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64523         Remove unnecessary double-quotes.
64524         Don't test for acl_to_text; the build will catch that.
64525         Replace acl_entries if it doesn't exist and it is needed.
64526         Check for -lsec and acl_trivial (as used on Solaris 10).
64527         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64528         lib/file-has-acl.c.
64529         (Depends-on): Add sys_stat, for S_ISLNK.
64530
64531 2007-03-19  Ben Pfaff  <blp@gnu.org>
64532
64533         * doc/gnulib.texi: Fix typos.
64534         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64535
64536 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64539         If size is zero here, buf must be zero.
64540
64541 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64542
64543         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64544         <bruno@clisp.org>.
64545
64546 2007-03-18  Bruno Haible  <bruno@clisp.org>
64547
64548         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64549         Suggested by Eric Blake.
64550
64551 2007-03-18  Ben Pfaff  <blp@gnu.org>
64552
64553         * doc/relocatable.texi: Recommend using as prefix a directory
64554         that does not exist and will never be created.  Based on
64555         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64556         and others.
64557
64558 2007-03-17  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/fchownat.c: Include lchown.h.
64561
64562 2007-03-17  Bruno Haible  <bruno@clisp.org>
64563
64564         Fix endless loop when the given allocated size was > INT_MAX.
64565         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64566         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64567         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64568         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64569         * lib/sprintf.c (sprintf): Likewise.
64570
64571 2007-03-17  Bruno Haible  <bruno@clisp.org>
64572
64573         * tests/test-argp-2.sh (func_compare): Output a context diff.
64574
64575 2007-03-17  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64578         locale's decimal-point character.
64579
64580 2007-03-17  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64583         before comparing it. Needed because on some platforms (e.g. x86) a
64584         'long double' occupies less bytes than sizeof (long double).
64585
64586 2007-03-17  Bruno Haible  <bruno@clisp.org>
64587
64588         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64589         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64590         * tests/test-getaddrinfo.c (simple): Likewise.
64591         * tests/test-read-file.c (main): Likewise.
64592
64593 2007-03-17  Bruno Haible  <bruno@clisp.org>
64594
64595         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64596
64597 2007-03-17  Bruno Haible  <bruno@clisp.org>
64598
64599         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64600         unused variable.
64601
64602 2007-03-17  Bruno Haible  <bruno@clisp.org>
64603
64604         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64605         * tests/test-c-strncasecmp.c: Likewise.
64606
64607 2007-03-17  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/stdlib (Depends-on): Add unistd.
64610         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64611         Needed for MacOS X 10.3.
64612
64613 2007-03-17  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64616
64617 2007-03-17  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64620
64621 2007-03-17  Bruno Haible  <bruno@clisp.org>
64622
64623         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64624         to reflect files copied from gnulib (with or without modifications).
64625         Suggested by Jim Meyering.
64626
64627 2007-03-17  Eric Blake  <ebb9@byu.net>
64628
64629         * NEWS: Document stdlib change from 2007-02-18.
64630
64631 2007-03-17  Jim Meyering  <jim@meyering.net>
64632
64633         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64634         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64635         someone uses a name containing shell meta-characters.
64636         Reported by Alfred M. Szmidt.
64637
64638         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64639
64640 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64641
64642         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64643         and copy gettext configuration files only if configure.ac contains
64644         a use of AM_GNU_GETTEXT_VERSION.
64645
64646 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64647
64648         * build-aux/bootstrap (gnulib_name): New variable.
64649         (gnulib_tool_options): Use it.
64650
64651 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64652
64653         * tests/test-des.c: Use new namespace.
64654
64655 2007-03-15  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64658         Reported by James Youngman <jay@gnu.org>.
64659
64660 2007-03-15  Bruno Haible  <bruno@clisp.org>
64661
64662         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64663         declared prototype. Needed with cc on OSF/1 5.1.
64664
64665 2007-03-15  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64668         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64669         (struct gl_list_implementation): Add dispose_fn argument to the
64670         'create_empty', 'create' methods.
64671         (struct gl_list_impl_base): Add field 'dispose_fn'.
64672         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64673         argument.
64674         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64675         dispose_fn argument.
64676         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64677         dispose_fn on the dropped values.
64678         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64679         dispose_fn argument.
64680         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64681         dropped values.
64682         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64683         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64684         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64685         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64686         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64687         argument.
64688         (gl_tree_list_free): Call dispose_fn on the dropped values.
64689         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64690         the dropped values.
64691         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64692         Add dispose_fn argument.
64693         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64694         Call dispose_fn on the dropped values.
64695         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64696         Add dispose_fn argument.
64697         (gl_sublist_create): Initialize the 'dispose_fn' field.
64698         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64699         * tests/test-array_list.c (main): Update.
64700         * tests/test-carray_list.c (main): Update.
64701         * tests/test-avltree_list.c (main): Update.
64702         * tests/test-rbtree_list.c (main): Update.
64703         * tests/test-avltreehash_list.c (main): Update.
64704         * tests/test-rbtreehash_list.c (main): Update.
64705         * tests/test-linked_list.c (main): Update.
64706         * tests/test-linkedhash_list.c (main): Update.
64707         * tests/test-array_oset.c (main): Update.
64708
64709 2007-03-15  Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64712         (gl_oset_create_empty): Add dispose_fn argument.
64713         (struct gl_oset_implementation): Add dispose_fn argument to
64714         'create_empty' method.
64715         (struct gl_oset_impl_base): Add dispose_fn field.
64716         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64717         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64718         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64719         values.
64720         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64721         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64722         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64723         dropped value.
64724         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64725         dropped value.
64726         * tests/test-array_oset.c (main): Update.
64727         * tests/test-avltree_oset.c (main): Update.
64728         * tests/test-rbtree_oset.c (main): Update.
64729         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64730
64731 2007-03-13  Bruno Haible  <bruno@clisp.org>
64732
64733         * tests/test-stdbool.c (i): Update after last patch.
64734
64735 2007-03-12  Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64738         the iswprint macro. Needed on Solaris 2.5.1.
64739
64740 2007-03-12  Bruno Haible  <bruno@clisp.org>
64741
64742         * tests/test-printf-frexp.c (main): Declare x as volatile.
64743
64744 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64745
64746         * doc/gnulib.texi (Build robot for gnulib): New section.
64747
64748 2007-03-12  Jim Meyering  <jim@meyering.net>
64749
64750         * build-aux/bootstrap: New file.
64751         * build-aux/bootstrap.conf: New file, from coreutils.
64752
64753 2007-03-11  Bruno Haible  <bruno@clisp.org>
64754
64755         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64756
64757 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64758
64759         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64760         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64761         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64762
64763 2007-03-11  Bruno Haible  <bruno@clisp.org>
64764
64765         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64766         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64767
64768 2007-03-11  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64771         formula. Needed for SunPRO C 5.0.
64772
64773 2007-03-11  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/long-options (Depends-on): Add getopt.
64776
64777 2007-03-11  Bruno Haible  <bruno@clisp.org>
64778
64779         * modules/modechange (Depends-on): Add stdbool.
64780
64781 2007-03-11  Bruno Haible  <bruno@clisp.org>
64782
64783         * modules/i-ring (Depends-on): Add stdbool.
64784
64785 2007-03-11  Bruno Haible  <bruno@clisp.org>
64786
64787         * modules/gc-des (Depends-on): Add stdbool.
64788
64789 2007-03-11  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64792
64793 2007-03-11  Bruno Haible  <bruno@clisp.org>
64794
64795         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64796
64797 2007-03-11  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64800
64801 2007-03-11  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/vasnprintf.c (sprintf): Undefine.
64804
64805 2007-03-11  Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64808         initializers in SunPRO C and Compaq C compilers.
64809
64810 2007-03-11  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64813         decrementing code ANSI C compliant.
64814
64815 2007-03-11  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64818         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64819
64820 2007-03-11  Bruno Haible  <bruno@clisp.org>
64821
64822         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64823         <stdbool.h> substitute doesn't pass.
64824
64825 2007-03-11  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64828
64829 2007-03-11  Bruno Haible  <bruno@clisp.org>
64830
64831         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64832         script, for submission to autobuild.josefsson.org.
64833
64834 2007-03-10  Bruno Haible  <bruno@clisp.org>
64835
64836         * modules/canonicalize-lgpl-tests: New file.
64837         * tests/test-canonicalize-lgpl.sh: New file.
64838         * tests/test-canonicalize-lgpl.c: New file.
64839
64840         * modules/c-strcase-tests: New file.
64841         * tests/test-c-strcase.sh: New file.
64842         * tests/test-c-strcasecmp.c: New file.
64843         * tests/test-c-strncasecmp.c: New file.
64844
64845         * modules/atexit-tests: New file.
64846         * tests/test-atexit.sh: New file.
64847         * tests/test-atexit.c: New file.
64848
64849 2007-03-10  Bruno Haible  <bruno@clisp.org>
64850
64851         * tests/test-binary-io.sh: Use temporary filenames that are not so
64852         likely to clash with those of other tests (in a parallel make).
64853         * tests/test-binary-io.c: Likewise.
64854
64855 2007-03-10  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64858         fallback; use #error instead.
64859         Suggested by Simon Josefsson.
64860
64861 2007-03-10  Bruno Haible  <bruno@clisp.org>
64862
64863         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64864         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64865         first and the last.
64866
64867 2007-03-10  Bruno Haible  <bruno@clisp.org>
64868
64869         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64870
64871 2007-03-10  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64874         "make distcheck".
64875         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64876         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64877         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64878
64879 2007-03-10  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64882         variable.
64883         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64884         variable.
64885
64886 2007-03-09  Eric Blake  <ebb9@byu.net>
64887         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64888
64889         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64890         types are not being provided by gnulib.
64891         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64892         types are supported.
64893
64894 2007-03-10  Bruno Haible  <bruno@clisp.org>
64895
64896         * lib/stdio_.h (__attribute__): New macro.
64897         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64898         vsprintf): Specify __attribute__ __format__ for GCC.
64899         Suggested by Eric Blake.
64900
64901 2007-03-09  Bruno Haible  <bruno@clisp.org>
64902
64903         * modules/printf-posix-tests: New file.
64904         * tests/test-printf-posix.sh: New file.
64905         * tests/test-printf-posix.c: New file.
64906
64907         * modules/printf-posix: New file.
64908         * lib/printf.c: New file.
64909         * m4/printf-posix-rpl.m4: New file.
64910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64911         REPLACE_PRINTF.
64912         * lib/stdio_.h (printf): New declaration.
64913         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64914         ____strfmon____): New macros.
64915         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64916         REPLACE_PRINTF.
64917
64918 2007-03-09  Bruno Haible  <bruno@clisp.org>
64919
64920         * tests/test-vasnprintf-posix2.sh: New file.
64921         * tests/test-vasnprintf-posix2.c: New file.
64922         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64923         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64924         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64925
64926         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64927         a locale dependent decimal point, rather than always '.'.
64928
64929 2007-03-09  Eric Blake  <ebb9@byu.net>
64930
64931         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64932         spite of platforms like Tandem/NSK that define it to -1.
64933
64934 2007-03-08  Bruno Haible  <bruno@clisp.org>
64935
64936         * modules/vprintf-posix-tests: New file.
64937         * tests/test-vprintf-posix.sh: New file.
64938         * tests/test-vprintf-posix.c: New file.
64939         * tests/test-printf-posix.h: New file.
64940
64941         * modules/vprintf-posix: New file.
64942         * lib/vprintf.c: New file.
64943         * m4/vprintf-posix.m4: New file.
64944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64945         REPLACE_VPRINTF.
64946         * lib/stdio_.h (vprintf): New declaration.
64947         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64948         REPLACE_VPRINTF.
64949
64950 2007-03-08  Bruno Haible  <bruno@clisp.org>
64951
64952         * modules/fprintf-posix-tests: New file.
64953         * tests/test-fprintf-posix.sh: New file.
64954         * tests/test-fprintf-posix.c: New file.
64955
64956         * modules/fprintf-posix: New file.
64957         * lib/fprintf.c: New file.
64958         * m4/fprintf-posix.m4: New file.
64959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64960         REPLACE_FPRINTF.
64961         * lib/stdio_.h (fprintf): New declaration.
64962         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64963         REPLACE_FPRINTF.
64964
64965 2007-03-08  Bruno Haible  <bruno@clisp.org>
64966
64967         * modules/vfprintf-posix-tests: New file.
64968         * tests/test-vfprintf-posix.sh: New file.
64969         * tests/test-vfprintf-posix.c: New file.
64970         * tests/test-fprintf-posix.h: New file.
64971         * tests/test-fprintf-posix.out: New file.
64972
64973         * modules/vfprintf-posix: New file.
64974         * lib/vfprintf.c: New file.
64975         * m4/vfprintf-posix.m4: New file.
64976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64977         REPLACE_VFPRINTF.
64978         * lib/stdio_.h (vfprintf): New declaration.
64979         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64980         REPLACE_VFPRINTF.
64981
64982 2007-03-08  Bruno Haible  <bruno@clisp.org>
64983
64984         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64985
64986 2007-03-08  Bruno Haible  <bruno@clisp.org>
64987
64988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64989         instead of 'expr' invocations.
64990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64993         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64995         Suggested by Paul Eggert.
64996
64997 2007-03-08  Bruno Haible  <bruno@clisp.org>
64998
64999         * modules/fseterr-tests: New file.
65000         * tests/test-fseterr.c: New file.
65001
65002         * modules/fseterr: New file.
65003         * lib/fseterr.h: New file.
65004         * lib/fseterr.c: New file.
65005
65006 2007-03-08  Bruno Haible  <bruno@clisp.org>
65007
65008         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
65009         * lib/getopt_.h: Likewise.
65010         * lib/mbswidth.h: Likewise.
65011         * lib/setenv.h: Likewise.
65012         * lib/vasnprintf.h: Likewise.
65013         * lib/vasprintf.h: Likewise.
65014         * lib/verror.h: Likewise.
65015         * lib/xsetenv.h: Likewise.
65016         * lib/xvasprintf.h: Likewise.
65017
65018 2007-03-08  Jim Meyering  <jim@meyering.net>
65019
65020         * users.txt: Add parted.
65021
65022         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
65023
65024 2007-03-07  Bruno Haible  <bruno@clisp.org>
65025
65026         * m4/printf.m4: Make the shell script snippets copy&pastable.
65027
65028 2007-03-02  Bruno Haible  <bruno@clisp.org>
65029
65030         * lib/netinet_in_.h: New file.
65031         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
65032         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
65033         * modules/netinet_in (Files): Add lib/netinet_in_.h.
65034         (Depends-on): Add absolute-header.
65035         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
65036         into netinet/in.h.
65037
65038 2007-03-03  Bruno Haible  <bruno@clisp.org>
65039
65040         * lib/sys_select_.h: New file.
65041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
65042         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
65043         * modules/sys_select (Files): Add lib/sys_select_.h.
65044         (Depends-on): Add absolute-header.
65045         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
65046         into sys/select.h.
65047
65048 2007-03-02  Bruno Haible  <bruno@clisp.org>
65049
65050         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
65051         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
65052         values.
65053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
65054         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
65055         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
65056         * modules/sys_socket (Depends-on): Add absolute-header.
65057         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
65058         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
65059         (Include): Remove requirement of inclusion of <sys/types.h>.
65060
65061 2007-03-02  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/byteswap_.h (bswap_32): Fix formula.
65064
65065 2007-03-06  Bruno Haible  <bruno@clisp.org>
65066
65067         * modules/sprintf-posix-tests: New file.
65068         * tests/test-sprintf-posix.c: New file.
65069
65070         * modules/sprintf-posix: New file.
65071         * lib/sprintf.c: New file.
65072         * m4/sprintf-posix.m4: New file.
65073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
65074         REPLACE_SPRINTF.
65075         * lib/stdio_.h (sprintf): New declaration.
65076         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
65077         REPLACE_SPRINTF.
65078
65079 2007-03-06  Bruno Haible  <bruno@clisp.org>
65080
65081         * modules/vsprintf-posix-tests: New file.
65082         * tests/test-vsprintf-posix.c: New file.
65083         * tests/test-sprintf-posix.h: New file.
65084
65085         * modules/vsprintf-posix: New file.
65086         * lib/vsprintf.c: New file.
65087         * m4/vsprintf-posix.m4: New file.
65088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
65089         REPLACE_VSPRINTF.
65090         * lib/stdio_.h (vsprintf): New declaration.
65091         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
65092         REPLACE_VSPRINTF.
65093
65094 2007-03-06  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/vsnprintf (Depend-on): Remove minmax.
65097
65098 2007-03-06  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/snprintf-posix-tests: New file.
65101         * tests/test-snprintf-posix.c: New file.
65102
65103         * modules/snprintf-posix: New file.
65104         * m4/snprintf-posix.m4: New file.
65105         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
65106         gl_FUNC_SNPRINTF.
65107         (gl_FUNC_SNPRINTF): Invoke it.
65108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
65109         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
65110         is set.
65111         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
65112
65113 2007-03-06  Bruno Haible  <bruno@clisp.org>
65114
65115         * modules/vsnprintf-posix-tests: New file.
65116         * tests/test-vsnprintf-posix.c: New file.
65117         * tests/test-snprintf-posix.h: New file.
65118
65119         * modules/vsnprintf-posix: New file.
65120         * m4/vsnprintf-posix.m4: New file.
65121         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
65122         gl_FUNC_VSNPRINTF.
65123         (gl_FUNC_VSNPRINTF): Invoke it.
65124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
65125         * lib/stdio_.h (vsnprintf): Define as a replacement if
65126         REPLACE_VSNPRINTF is set.
65127         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
65128
65129 2007-03-06  Bruno Haible  <bruno@clisp.org>
65130
65131         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
65132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
65133
65134 2007-03-06  Bruno Haible  <bruno@clisp.org>
65135
65136         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
65137         (asinl): Declare also if HAVE_DECL_ASINL is set.
65138         (atanl): Declare also if HAVE_DECL_ATANL is set.
65139         (ceill): Declare also if HAVE_DECL_CEILL is set.
65140         (cosl): Declare also if HAVE_DECL_COSL is set.
65141         (expl): Declare also if HAVE_DECL_EXPL is set.
65142         (floorl): Declare also if HAVE_DECL_FLOORL is set.
65143         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
65144         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
65145         (logl): Declare also if HAVE_DECL_LOGL is set.
65146         (sinl): Declare also if HAVE_DECL_SINL is set.
65147         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
65148         (tanl): Declare also if HAVE_DECL_TANL is set.
65149         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65151         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65152         declaration of frexpl, ldexpl.
65153         * modules/printf-frexpl (Depends-on): Add math.
65154         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65155
65156 2007-03-05  Bruno Haible  <bruno@clisp.org>
65157
65158         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65159         frexpl and ldexpl are declared.
65160         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65161
65162 2007-03-05  Bruno Haible  <bruno@clisp.org>
65163
65164         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65165         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65166
65167 2007-03-05  Bruno Haible  <bruno@clisp.org>
65168
65169         * lib/stdio_.h: Include <stddef.h>.
65170
65171 2007-03-05  Bruno Haible  <bruno@clisp.org>
65172
65173         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65174
65175 2007-03-05  Bruno Haible  <bruno@clisp.org>
65176
65177         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65178         NetBSD 4, from Ralf Wildenhues.
65179
65180 2007-03-04  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/vasprintf.h: Update #if logic for the case when the functions
65183         exist but are overridden.
65184
65185 2007-03-04  Bruno Haible  <bruno@clisp.org>
65186
65187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65188         implementations: glibc-2.4 and MacOS X 10.3.
65189         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65190         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65191         * tests/test-vasprintf-posix.c (test_function): Likewise.
65192
65193 2007-03-04  Bruno Haible  <bruno@clisp.org>
65194
65195         * modules/vasprintf-posix-tests: New file.
65196         * tests/test-vasprintf-posix.c: New file.
65197
65198         * modules/vasprintf-posix: New file.
65199         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65200         defined.
65201         * m4/vasprintf-posix.m4: New file.
65202         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65203         gl_FUNC_VASPRINTF.
65204         (gl_FUNC_VASPRINTF): Invoke it.
65205         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65206         here.
65207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65208
65209 2007-03-04  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65212         REPLACE_GETTIMEOFDAY.
65213         * modules/sys_time (Makefile.am): Likewise.
65214         * m4/sys_time_h.m4: Likewise.
65215         * m4/gettimeofday.m4: Likewise.
65216
65217 2007-03-04  Bruno Haible  <bruno@clisp.org>
65218
65219         * modules/vasnprintf-posix-tests: New file.
65220         * tests/test-vasnprintf-posix.c: New file.
65221
65222         * modules/vasnprintf-posix: New file.
65223         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65224         printf-frexpl.h.
65225         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65226         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65227         REPLACE_VASNPRINTF is defined.
65228         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65229         gl_FUNC_VASNPRINTF.
65230         (gl_FUNC_VASNPRINTF): Invoke it.
65231         * m4/vasnprintf-posix.m4: New file.
65232         * m4/printf.m4: New file.
65233
65234 2007-03-04  Bruno Haible  <bruno@clisp.org>
65235
65236         Compile progreloc.c only if --enable-relocatable is specified.
65237         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65238         if --enable-relocatable was specified.
65239         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65240         lib_SOURCES.
65241
65242 2007-03-04  Jim Meyering  <jim@meyering.net>
65243
65244         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65245         Use it consistently, rather than enumerating errno constants.
65246
65247 2007-03-04  Bruno Haible  <bruno@clisp.org>
65248
65249         * modules/xvasprintf-tests: New file.
65250         * tests/test-xvasprintf.c: New file.
65251
65252         * modules/vasprintf-tests: New file.
65253         * tests/test-vasprintf.c: New file.
65254
65255         * modules/vasnprintf-tests: New file.
65256         * tests/test-vasnprintf.c: New file.
65257
65258         * modules/vsnprintf-tests: New file.
65259         * tests/test-vsnprintf.c: New file.
65260
65261         * modules/snprintf-tests: New file.
65262         * tests/test-snprintf.c: New file.
65263
65264 2007-03-04  Bruno Haible  <bruno@clisp.org>
65265
65266         Compile relocatable.c only if --enable-relocatable is specified.
65267         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65268         gl_RELOCATABLE_LIBRARY.
65269         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65270         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65271         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65272         gl_RELOCATABLE_LIBRARY.
65273         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65274         (Makefile.am): Remove lib_SOURCES.
65275         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65276         gl_RELOCATABLE_LIBRARY.
65277         (Makefile.am): Remove lib_SOURCES.
65278         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65279         always.
65280         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65281         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65282
65283 2007-03-04  Bruno Haible  <bruno@clisp.org>
65284
65285         * modules/argmatch-tests: New file.
65286         * tests/test-argmatch.c: New file.
65287
65288         * tests/test-allocsa.c (main): Halve the number of loop runs.
65289
65290         * modules/alloca-opt-tests: New file.
65291         * tests/test-alloca-opt.c: New file.
65292
65293 2007-03-04  Jim Meyering  <jim@meyering.net>
65294
65295         Work around difference between Linux ACLs and Solaris 10 ZFS.
65296         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65297         for EINVAL.
65298
65299 2007-03-03  Bruno Haible  <bruno@clisp.org>
65300
65301         * modules/relocatable-prog (Depends-on): Add back progreloc's
65302         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65303
65304 2007-03-03  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65307         * modules/relocatable-lib: New file.
65308
65309 2007-03-03  Bruno Haible  <bruno@clisp.org>
65310
65311         * modules/relocatable-prog: Renamed from modules/relocatable.
65312         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65313
65314 2007-03-03  Bruno Haible  <bruno@clisp.org>
65315
65316         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65317         m4/relocatable-lib.m4.
65318         (Depends-on): Remove 'relocatable'.
65319         (configure.ac): Add gl_RELOCATABLE_NOP.
65320
65321 2007-03-03  Bruno Haible  <bruno@clisp.org>
65322
65323         * modules/relocatable-prog-wrapper: New file.
65324         * modules/relocatable (Depends-on): Add it. Remove all other
65325         dependencies except progname.
65326         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65327
65328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65329         (gl_FUNC_STRERROR): Nop.
65330         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65331
65332         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65333         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65334
65335         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65336         (gl_FUNC_READLINK): Update.
65337
65338         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65339
65340 2007-03-03  Bruno Haible  <bruno@clisp.org>
65341
65342         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65343         * modules/xreadlink (Depends-on): Add unistd.
65344         * modules/xreadlink-with-size (Depends-on): Likewise.
65345
65346 2007-03-03  Bruno Haible  <bruno@clisp.org>
65347
65348         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65349         extracted from gt_FUNC_SETENV.
65350         (gt_FUNC_SETENV): Remove macro.
65351         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65352         remove gt_FUNC_SETENV.
65353
65354 2007-03-03  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65357         ENABLE_RELOCATABLE here.
65358         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65359
65360 2007-03-03  Bruno Haible  <bruno@clisp.org>
65361
65362         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65363         * tests/test-rbtreehash_list.c: Include progname.h.
65364         (main): Call set_program_name.
65365
65366         * modules/rbtree-oset-tests (Depends-on): Add progname.
65367         * tests/test-rbtree_oset.c: Include progname.h.
65368         (main): Call set_program_name.
65369
65370         * modules/rbtree-list-tests (Depends-on): Add progname.
65371         * tests/test-rbtree_list.c: Include progname.h.
65372         (main): Call set_program_name.
65373
65374         * modules/linked-list-tests (Depends-on): Add progname.
65375         * tests/test-linked_list.c: Include progname.h.
65376         (main): Call set_program_name.
65377
65378 2007-03-03  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65381         All uses of __restrict changed to _Restrict_.
65382         * lib/glob_.h (__restrict): Remove macro.
65383
65384 2007-03-02  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/gettext (configure.ac): Require gettext infrastructure
65387         from version 0.16.1.
65388
65389 2007-03-02  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/linkedhash-list-tests (Depends-on): Add progname.
65392         * tests/test-linkedhash_list.c: Include progname.h.
65393         (main): Call set_program_name.
65394
65395         * modules/carray-list-tests (Depends-on): Add progname.
65396         * tests/test-carray_list.c: Include progname.h.
65397         (main): Call set_program_name.
65398
65399         * modules/avltreehash-list-tests (Depends-on): Add progname.
65400         * tests/test-avltreehash_list.c: Include progname.h.
65401         (main): Call set_program_name.
65402
65403         * modules/avltree-oset-tests (Depends-on): Add progname.
65404         * tests/test-avltree_oset.c: Include progname.h.
65405         (main): Call set_program_name.
65406
65407         * modules/avltree-list-tests (Depends-on): Add progname.
65408         * tests/test-avltree_list.c: Include progname.h.
65409         (main): Call set_program_name.
65410
65411         * modules/array-oset-tests (Depends-on): Add progname.
65412         * tests/test-array_oset.c: Include progname.h.
65413         (main): Call set_program_name.
65414
65415         * modules/array-list-tests (Depends-on): Add progname.
65416         * tests/test-array_list.c: Include progname.h.
65417         (main): Call set_program_name.
65418
65419         * modules/argp-tests (Depends-on): Add progname.
65420         * tests/test-argp.c: Include argp.h first. Include progname.h.
65421         (main): Call set_program_name.
65422
65423 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * doc/gnulib-tool.texi (Initial import): Reword description of
65426         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65427         limited effect even if defined after the first system include.
65428
65429 2007-03-01  Bruno Haible  <bruno@clisp.org>
65430
65431         * build-aux/config.libpath: Update to libtool-1.5.22.
65432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65433
65434 2007-03-01  Bruno Haible  <bruno@clisp.org>
65435
65436         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65437         foo_CFLAGS.
65438         Reported by Ralf Wildenhues.
65439
65440 2007-03-01  Bruno Haible  <bruno@clisp.org>
65441
65442         * build-aux/install-reloc: Remove object files left over by some
65443         compilers.
65444         Reported by Ralf Wildenhues.
65445
65446 2007-03-01  Bruno Haible  <bruno@clisp.org>
65447
65448         * build-aux/install-reloc: Break long lines.
65449
65450 2007-03-01  Bruno Haible  <bruno@clisp.org>
65451
65452         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65453         Reported by Ralf Wildenhues.
65454
65455 2007-03-01  Bruno Haible  <bruno@clisp.org>
65456
65457         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65458         include ordering constraints.
65459
65460 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65464         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65465         as another example.
65466         * lib/time_.h: Fix misspelling.
65467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65468         Require gl_HEADER_TIME_H_DEFAULTS.
65469         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65470         * m4/time_r.m4 (gl_TIME_R): Likewise.
65471         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65472
65473 2007-03-01  Bruno Haible  <bruno@clisp.org>
65474
65475         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65476         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65477
65478 2007-03-01  Jim Meyering  <jim@meyering.net>
65479
65480         * modules/xreadlink (Maintainer): Add my name.
65481         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65482
65483 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65484             Bruno Haible  <bruno@clisp.org>
65485
65486         * build-aux/install-reloc: Compile also c-ctype.c.
65487         * build-aux/relocatable.sh.in: New file.
65488         * doc/relocatable.texi: New file.
65489         * doc/relocatable-maint.texi: New file.
65490         * doc/gnulib.texi: Include relocatable-maint.texi.
65491         * lib/progreloc.c: Include unistd.h unconditionally.
65492         * lib/relocwrapper.c: Include unistd.h unconditionally.
65493         Include c-ctype.h.
65494         (add_dotbin): Use c_tolower.
65495         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65496         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65497         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65498         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65499         to m4/relocatable-lib.m4.
65500         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65501         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65502         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65503         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65504         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65505         * modules/relocatable: New file.
65506         * modules/relocatable-lib: New file.
65507         * modules/relocatable-script: New file.
65508
65509 2007-02-28  Bruno Haible  <bruno@clisp.org>
65510
65511         Import --enable-relocatable infrastructure.
65512         * build-aux/config.libpath: New file, from GNU gettext.
65513         * build-aux/install-reloc: New file, from GNU gettext.
65514         * build-aux/reloc-ldflags: New file, from GNU gettext.
65515         * lib/relocatable.h: New file, from GNU gettext.
65516         * lib/relocatable.c: New file, from GNU gettext.
65517         * lib/relocwrapper.c: New file, from GNU gettext.
65518         * m4/relocatable.m4: New file, from GNU gettext.
65519
65520 2007-02-28  Bruno Haible  <bruno@clisp.org>
65521
65522         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65523
65524         * modules/xreadlink: New file, from GNU gettext with modifications.
65525         * lib/xreadlink.c: New file, from GNU gettext.
65526         * lib/xreadlink.h: Add comments.
65527         (xreadlink): New declaration.
65528
65529         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65530         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65531         lib/xreadlink-with-size.c.
65532         (configure.ac): Remove gl_XREADLINK invocation.
65533         (Makefile.am): Augment lib_SOURCES.
65534         * m4/xreadlink.m4: Remove file.
65535         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65536         (xreadlink_with_size): Renamed from xreadink.
65537         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65538         * modules/canonicalize (Depends-on): Replace xreadlink with
65539         xreadlink-with-size.
65540         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65541
65542 2007-02-25  Jim Meyering  <jim@meyering.net>
65543
65544         * build-aux/announce-gen: When complaining about excess arguments,
65545         list them.
65546
65547 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * README: Document signed integer overflow situation more
65550         accurately.
65551
65552 2007-02-25  Bruno Haible  <bruno@clisp.org>
65553
65554         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65555         'a' or 'A' conversion.
65556
65557 2007-02-25  Bruno Haible  <bruno@clisp.org>
65558
65559         * modules/filename: Renamed from modules/pathname.
65560         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65561         lib/concatpath.c with lib/concat-filename.c.
65562         (Makefile.am): Update.
65563         (Include): Replace pathname.h with filename.h.
65564         * lib/filename.h: Renamed from lib/pathname.h.
65565         (concatenated_filename): Renamed from concatenated_pathname.
65566         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65567         (concatenated_filename): Renamed from concatenated_pathname.
65568         * lib/findprog.c: Include filename.h instead of pathname.h.
65569         (find_in_path): Update.
65570         * lib/javacomp.c: Include filename.h instead of pathname.h.
65571         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65572         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65573         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65574         is_oldgcj_14_13_usable, is_javac_usable): Update.
65575         * lib/javaexec.c: Include filename.h instead of pathname.h.
65576         (execute_java_class): Update.
65577         * modules/findprog: Update.
65578         * modules/javacomp: Update.
65579         * modules/javaexec: Update.
65580         * MODULES.html.sh (File system functions): Add 'filename', remove
65581         'pathname'.
65582
65583 2007-02-25  Bruno Haible  <bruno@clisp.org>
65584
65585         * modules/printf-frexpl-tests: New file.
65586         * tests/test-printf-frexpl.c: New file.
65587
65588         * modules/printf-frexpl: New file.
65589         * lib/printf-frexpl.h: New file.
65590         * lib/printf-frexpl.c: New file.
65591         * m4/printf-frexpl.m4: New file.
65592
65593 2007-02-25  Bruno Haible  <bruno@clisp.org>
65594
65595         * modules/printf-frexp-tests: New file.
65596         * tests/test-printf-frexp.c: New file.
65597
65598         * modules/printf-frexp: New file.
65599         * lib/printf-frexp.h: New file.
65600         * lib/printf-frexp.c: New file.
65601         * m4/printf-frexp.m4: New file.
65602
65603 2007-02-25  Bruno Haible  <bruno@clisp.org>
65604
65605         Assume automake >= 1.10 for the tests.
65606         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65607         * modules/arctwo-tests: Likewise.
65608         * modules/argp-tests: Likewise.
65609         * modules/avltree-list-tests: Likewise.
65610         * modules/avltree-oset-tests: Likewise.
65611         * modules/avltreehash-list-tests: Likewise.
65612         * modules/carray-list-tests: Likewise.
65613         * modules/crc-tests: Likewise.
65614         * modules/des-tests: Likewise.
65615         * modules/gc-arcfour-tests: Likewise.
65616         * modules/gc-arctwo-tests: Likewise.
65617         * modules/gc-des-tests: Likewise.
65618         * modules/gc-hmac-md5-tests: Likewise.
65619         * modules/gc-hmac-sha1-tests: Likewise.
65620         * modules/gc-md2-tests: Likewise.
65621         * modules/gc-md4-tests: Likewise.
65622         * modules/gc-md5-tests: Likewise.
65623         * modules/gc-pbkdf2-sha1-tests: Likewise.
65624         * modules/gc-rijndael-tests: Likewise.
65625         * modules/gc-sha1-tests: Likewise.
65626         * modules/gc-tests: Likewise.
65627         * modules/getaddrinfo-tests: Likewise.
65628         * modules/hmac-md5-tests: Likewise.
65629         * modules/hmac-sha1-tests: Likewise.
65630         * modules/linked-list-tests: Likewise.
65631         * modules/linkedhash-list-tests: Likewise.
65632         * modules/lock-tests: Likewise.
65633         * modules/md2-tests: Likewise.
65634         * modules/md4-tests: Likewise.
65635         * modules/md5-tests: Likewise.
65636         * modules/rbtree-list-tests: Likewise.
65637         * modules/rbtree-oset-tests: Likewise.
65638         * modules/rbtreehash-list-tests: Likewise.
65639         * modules/read-file-tests: Likewise.
65640         * modules/rijndael-tests: Likewise.
65641         * modules/stdint-tests: Likewise.
65642         * modules/tls-tests: Likewise.
65643
65644 2007-02-24  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65647         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65648         function; instead check whether isnan with a double argument links.
65649         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65650         function; instead check whether isnan with a 'long double' argument
65651         links.
65652         Reported by Eric Blake <ebb9@byu.net>.
65653
65654 2007-02-24  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65657         defined.
65658         * lib/isnanl.c: Remove all code. Just include isnan.c.
65659         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65660
65661 2007-02-25  Jim Meyering  <jim@meyering.net>
65662
65663         Avoid conflicting types for 'unsetenv' on FreeBSD.
65664         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65665         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65666         in stdlib.h.
65667
65668 2007-02-24  Bruno Haible  <bruno@clisp.org>
65669
65670         * modules/isnanl-nolibm-tests: New file.
65671         * tests/test-isnanl.c: New file.
65672
65673         * modules/isnanl-nolibm: New file.
65674         * lib/isnanl.h: New file.
65675         * lib/isnanl.c: New file.
65676         * m4/isnanl.m4: New file.
65677
65678 2007-02-24  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/isnan-nolibm-tests: New file.
65681         * tests/test-isnan.c: New file.
65682
65683         * modules/isnan-nolibm: New file.
65684         * lib/isnan.h: New file.
65685         * lib/isnan.c: New file.
65686         * m4/isnan.m4: New file.
65687
65688 2007-02-24  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65691         assume that an exponent fits in 20 bits.
65692
65693 2007-02-24  Jim Meyering  <jim@meyering.net>
65694
65695         * m4/regex.m4: Update the description of the configure-time option,
65696         --without-included-regex, to state accurately what the defaults are,
65697         and perhaps to give people an idea why using this option is risky.
65698
65699 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65702         loops on small arguments.  This attempts to avoid the problem
65703         Bruno Haible reported for AIX 4.3.2 in
65704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65705
65706 2007-02-23  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65709         Needed for help2man.
65710
65711 2007-02-23  Karl Berry  <karl@gnu.org>
65712
65713         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65714         exists, foo.h should be cvs-ignored, not committed.
65715
65716 2007-02-23  Eric Blake  <ebb9@byu.net>
65717
65718         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65719         * lib/stat-time.h (includes): Likewise.
65720         * lib/utimecmp.c (includes): Likewise.
65721         * lib/utimens.h (includes): Likewise.
65722         * lib/getdate.y (includes): Also include "timespec.h" for use
65723         internal to the module.
65724         * modules/utimens (Depends-on): Revert yesterday's patch.
65725         * modules/nanosleep (Depends-on): Add missing dependency.
65726
65727 2007-02-22  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/glob.c: Don't include getlogin_r.h.
65730
65731 2007-02-22  Jim Meyering  <jim@meyering.net>
65732
65733         * modules/utimens (Depends-on): Add timespec, required for
65734         utimens.h's inclusion of timespec.h.
65735
65736 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65737
65738         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65739         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65740         Schwab in
65741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65742         I'll try to think of a better way to fix the Solaris problem.
65743
65744         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65745         like glibc; on Solaris 10, it fails with errno == EINVAL.
65746         POSIX says the behavior is unspecified if the first argument is NULL,
65747         so play it safe and never pass NULL to the system getcwd.
65748
65749 2007-02-21  Jim Meyering  <jim@meyering.net>
65750
65751         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65752         of gettimeofday.  It would conflict with the one now always
65753         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65754         an IRIX 6.5 build failure.
65755
65756 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         Minor fixups to port to Solaris 10 with Sun C 5.8.
65759         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65760         * modules/getcwd (Depends-on): Add dirfd.
65761         * lib/putenv.c (putenv): #undef it.
65762         (rpl_putenv): New decl.
65763         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65764
65765 2007-02-20  Bruno Haible  <bruno@clisp.org>
65766
65767         * modules/stdio-tests: New file.
65768         * tests/test-stdio.c: New file.
65769
65770         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65771         (Depends-on): Add stdio.
65772         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65773         (Include): Use <stdio.h> instead of vsnprintf.h.
65774         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65775         HAVE_DECL_VSNPRINTF.
65776         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65777
65778         * modules/snprintf (Files): Remove lib/snprintf.h.
65779         (Depends-on): Add stdio.
65780         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65781         (Include): Use <stdio.h> instead of snprintf.h.
65782         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65783         HAVE_DECL_SNPRINTF.
65784         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65785         * lib/getaddrinfo.c: Likewise.
65786
65787         * modules/stdio: New file.
65788         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65789         * lib/snprintf.h: Remove file.
65790         * lib/vsnprintf.h: Remove file.
65791         * lib/.cppi-disable: Remove snprintf.h.
65792         * m4/stdio_h.m4: New file.
65793         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65794
65795 2007-02-20  Jim Meyering  <jim@meyering.net>
65796
65797         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65798         used by e.g., mingw.  From Bruno Haible.
65799
65800 2007-02-19  Bruno Haible  <bruno@clisp.org>
65801
65802         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65803         warnings.
65804         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65805
65806 2007-02-19  Bruno Haible  <bruno@clisp.org>
65807
65808         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65809         from mingw users.
65810
65811 2007-02-19  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65814         warnings.
65815         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65816
65817 2007-02-19  Jim Meyering  <jim@meyering.net>
65818
65819         Don't use FD after a successful "fdopendir (fd)".
65820         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65821         Reset it by calling dirfd on the just-obtained DIR*.
65822
65823         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65824         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65825
65826 2007-02-18  Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/readlink.c: Include <unistd.h>.
65829         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65830         HAVE_READLINK.
65831         * modules/readlink (Depends-on): Add unistd.
65832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65833         (Include): Add <unistd.h>.
65834
65835         * lib/getlogin_r.h: Remove file.
65836         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65837         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65838         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65839         HAVE_DECL_GETLOGIN_R.
65840         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65842         (Include): Use <unistd.h> instead of getlogin_r.h.
65843
65844         * lib/getcwd.h: Remove file.
65845         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65846         * lib/xgetcwd.c: Likewise.
65847         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65848         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65849         * modules/getcwd (Files): Remove lib/getcwd.h.
65850         (Depends-on): Add unistd.
65851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65852         (Include): Use <unistd.h> instad of getcwd.h.
65853
65854         * lib/ftruncate.c: Include <unistd.h> first.
65855         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65856         Set HAVE_FTRUNCATE.
65857         * modules/ftruncate (Depends-on): Add unistd.
65858         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65859
65860         * lib/fchdir.c: Include <unistd.h> first.
65861         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65863         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65864         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65865         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65866
65867         * lib/dup2.c: Include <unistd.h> first.
65868         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65869         HAVE_DUP2.
65870         * modules/dup2 (Depends-on): Add unistd.
65871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65872
65873         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65874         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65875         REPLACE_CHOWN. Don't define chown as a macro here.
65876         * modules/chown (Depends-on): Add unistd.
65877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65878
65879         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65880         Add definition for GL_LINK_WARNING.
65881         (chown, dup2): New declarations.
65882         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65883         link warning.
65884         (ftruncate): New declaration.
65885         (getcwd): New declaration, taken from old getcwd.h.
65886         (getlogin_r): New declaration, taken from old getlogin_r.h.
65887         (readlink): New declaration.
65888         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65889         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65890         (gl_PREREQ_UNISTD): Remove macro.
65891         (gl_UNISTD_MODULE_INDICATOR): New macro.
65892         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65893         many new variables. Don't set UNISTD_H.
65894         * modules/unistd (Description): Change.
65895         (Depends-on): Add link-warning.
65896         (configure.ac): Update.
65897         (Makefile.am): Create unistd.h always. Substitute many new variables
65898         into it.
65899
65900 2007-02-18  Bruno Haible  <bruno@clisp.org>
65901
65902         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65903         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65904         HAVE_GETSUBOPT.
65905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65906         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65907         * lib/getsubopt.h: Remove file.
65908         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65909         (Depends-on): Add stdlib.
65910         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65911         (Includes): Use <stdlib.h> instead of getsubopt.h.
65912         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65913         Set HAVE_GETSUBOPT.
65914         * lib/getsubopt.c: Don't include getsubopt.h.
65915
65916 2007-02-18  Bruno Haible  <bruno@clisp.org>
65917
65918         * modules/fchdir (Depends-on): Add dup2.
65919
65920 2007-02-18  Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/stdlib_.h: Handle glibc's special invocation convention
65923         specially.
65924
65925 2007-02-18  Bruno Haible  <bruno@clisp.org>
65926
65927         * modules/stdlib-tests: New file.
65928         * tests/test-stdlib.c: New file.
65929
65930         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65931         (Depends-on): Add stdlib.
65932         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65933         (Includes): Use <stdlib.h> instead of mkstemp.h.
65934         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65935         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65936         * lib/mkstemp.c: Don't include mkstemp.h.
65937         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65938         * lib/stdlib--.h: Don't include mkstemp.h.
65939
65940         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65941         (Depends-on): Add stdlib.
65942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65943         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65944         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65945         HAVE_MKDTEMP.
65946         * lib/mkdtemp.c: Don't include mkdtemp.h.
65947         * lib/clean-temp.c: Don't include mkdtemp.h.
65948
65949         * modules/exit (Files): Remove lib/exit.h.
65950         (Depends-on): Add stdlib.
65951         (Makefile.am): Remove lib_SOURCES.
65952         (Include): Use <stdlib.h> instead of exit.h.
65953         * lib/argmatch.c: Don't include exit.h.
65954         * lib/execute.c: Likewise.
65955         * lib/pagealign_alloc.c: Likewise.
65956         * lib/pipe.c: Likewise.
65957         * lib/wait-process.c: Likewise.
65958         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65959         * lib/exitfail.c: Likewise.
65960         * lib/savewd.c: Likewise.
65961         * lib/xsetenv.c: Likewise.
65962
65963         * modules/stdlib: New file.
65964         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65965         and extra comments about mkstemp().
65966         * lib/exit.h: Remove file.
65967         * lib/mkdtemp.h: Remove file.
65968         * lib/mkstemp.h: Remove file.
65969         * m4/stdlib_h.m4: New file.
65970         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65971
65972 2007-02-18  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/math-tests: New file.
65975         * tests/test-math.c: New file.
65976
65977         * modules/math: New file.
65978         * modules/mathl (Files): Remove lib/mathl.h.
65979         (Depends-on): Add math.
65980         (Makefile.am): Don't mention mathl.h.
65981         (Include): Use <math.h> instead of mathl.h.
65982         * lib/math_.h: New file.
65983         * lib/mathl.h: Remove file.
65984         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65985         mathl.h.
65986         * lib/asinl.c: Likewise.
65987         * lib/atanl.c: Likewise.
65988         * lib/ceill.c: Likewise.
65989         * lib/cosl.c: Likewise.
65990         * lib/expl.c: Likewise.
65991         * lib/floorl.c: Likewise.
65992         * lib/frexpl.c: Likewise.
65993         * lib/ldexpl.c: Likewise.
65994         * lib/logl.c: Likewise.
65995         * lib/sincosl.c: Likewise.
65996         * lib/sinl.c: Likewise.
65997         * lib/sqrtl.c: Likewise.
65998         * lib/tanl.c: Likewise.
65999         * lib/trigl.c: Likewise.
66000         * m4/math_h.m4: New file.
66001         * MODULES.html.sh (Mathematics): Add math.
66002
66003 2007-02-17  Bruno Haible  <bruno@clisp.org>
66004
66005         * modules/wctype-tests: New file.
66006         * tests/test-wctype.c: New file.
66007
66008         * modules/wchar-tests: New file.
66009         * tests/test-wchar.c: New file.
66010
66011         * modules/unistd-tests: New file.
66012         * tests/test-unistd.c: New file.
66013
66014         * modules/time-tests: New file.
66015         * tests/test-time.c: New file.
66016
66017         * modules/sysexits-tests: New file.
66018         * tests/test-sysexits.c: New file.
66019
66020         * modules/sys_time-tests: New file.
66021         * tests/test-sys_time.c: New file.
66022
66023         * modules/sys_stat-tests: New file.
66024         * tests/test-sys_stat.c: New file.
66025
66026         * modules/sys_socket-tests: New file.
66027         * tests/test-sys_socket.c: New file.
66028
66029         * modules/sys_select-tests: New file.
66030         * tests/test-sys_select.c: New file.
66031
66032         * modules/string-tests: New file.
66033         * tests/test-string.c: New file.
66034
66035         * modules/stdbool-tests: New file.
66036         * tests/test-stdbool.c: New file.
66037
66038         * modules/netinet_in-tests: New file.
66039         * tests/test-netinet_in.c: New file.
66040
66041         * modules/inttypes-tests: New file.
66042         * tests/test-inttypes.c: New file.
66043
66044         * modules/fcntl-tests: New file.
66045         * tests/test-fcntl.c: New file.
66046
66047         * modules/byteswap-tests: New file.
66048         * tests/test-byteswap.c: New file.
66049
66050         * modules/arpa_inet-tests: New file.
66051         * tests/test-arpa_inet.c: New file.
66052
66053 2007-02-17  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
66056         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
66057         if the corresponding module is not enabled. Emit link warnings if
66058         the function is used nevertheless.
66059         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
66060         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
66061         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
66062         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
66063         * modules/inttypes (Depends-on): Add link-warning.
66064         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66065         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
66066         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
66067         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
66068         * modules/imaxdiv (configure.ac): Likewise.
66069         * modules/strtoimax (configure.ac): Likewise.
66070         * modules/strtoumax (configure.ac): Likewise.
66071
66072 2007-02-17  Bruno Haible  <bruno@clisp.org>
66073
66074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
66075         gl_STRING_MODULE_INDICATOR_DEFAULTS.
66076         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
66077         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
66078
66079 2007-02-17  Bruno Haible  <bruno@clisp.org>
66080
66081         * modules/link-warning: New file.
66082         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
66083         * lib/string_.h (GL_LINK_WARNING): Remove definition.
66084         * modules/string (Depends-on): Add link-warning.
66085         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66086         string.h.
66087         * MODULES.html.sh (Support for building libraries and executables): Add
66088         link-warning.
66089
66090 2007-02-17  Bruno Haible  <bruno@clisp.org>
66091
66092         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
66093         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
66094         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
66095         long lines.
66096
66097 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
66098             Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/tmpfile: New file.
66101         * lib/tmpfile.c: New file.
66102         * m4/tmpfile.m4: New file.
66103         * MODULES.html.sh (func_all_modules): New section "Input/output".
66104
66105 2007-02-15  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
66108         (supports_delete_on_close): New function.
66109         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
66110
66111 2007-02-14  Bruno Haible  <bruno@clisp.org>
66112
66113         * modules/mbspcasecmp-tests: New file.
66114         * tests/test-mbspcasecmp.sh: New file.
66115         * tests/test-mbspcasecmp.c: New file.
66116
66117         New module mbspcasecmp.
66118         * modules/mbspcasecmp: New file.
66119         * lib/mbspcasecmp.c: New file.
66120         * lib/string_.h (strncasecmp): Change warning message.
66121         (mbspcasecmp): New declaration.
66122         * m4/mbspcasecmp.m4: New file.
66123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66124         GNULIB_MBSPCASECMP.
66125         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
66126         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
66127
66128 2007-02-14  Bruno Haible  <bruno@clisp.org>
66129
66130         * modules/mbsncasecmp-tests: New file.
66131         * tests/test-mbsncasecmp.sh: New file.
66132         * tests/test-mbsncasecmp.c: New file.
66133
66134         New module mbsncasecmp.
66135         * modules/mbsncasecmp: New file.
66136         * lib/mbsncasecmp.c: New file.
66137         * lib/string_.h (mbsncasecmp): New declaration.
66138         * m4/mbsncasecmp.m4: New file.
66139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66140         GNULIB_MBSNCASECMP.
66141         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
66142         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
66143
66144 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66145
66146         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
66147         Verify that it doesn't overlap with our flags.
66148         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66149         do not have the desired effect in multibyte locales; instead, use
66150         mbscasecmp.
66151         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66152         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66153         we don't require GNU fnmatch ourselves (if our users require it, they
66154         should do so explicitly).
66155
66156         Fix regex code so it doesn't rely on strcasecmp.
66157         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66158         Otherwise, include gnulib's langinfo.h.
66159         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66160         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66161         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66162         * modules/regex (FILES): Remove m4/codeset.m4.
66163         (Depends-on): Add localcharset.  Remove strcase.
66164
66165 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66166
66167         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66168         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66169
66170 2007-02-13  Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66174
66175 2007-02-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66178         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66179         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66180         time warning rather than a link error.
66181
66182 2007-02-12  Bruno Haible  <bruno@clisp.org>
66183
66184         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66187
66188 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66191         args, not 2.
66192
66193 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         New module 'time', so that apps can include <time.h> as per
66196         POSIX and GNU instead of separate include files like time_r.h
66197         and timegm.h.  This implementation tries out a simpler approach
66198         for replacing decls in standard include files (as compared to
66199         the string module), somewhat as an experiment.
66200
66201         * config/srclist.txt: Comment out mktime.c for now.
66202         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66203         since it doesn't apply any more.  Use generic wording instead.
66204         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66205         'time'.
66206         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66207         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66208         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66209         Don't include <sys/types.h>; no longer needed since we assume C89.
66210         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66211         * lib/strftime.c: Likewise.
66212         * lib/time_r.c: Likewise.
66213         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66214         * lib/nanosleep.c: Include <time.h> first, to check interface.
66215         * lib/strptime.c: Likewise.
66216         * lib/time_r.c: Likewise.
66217         * lib/timegm.c: Likewise.
66218         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66219         needed.
66220         * lib/timegm.c: Don't include timegm.h; no longer needed.
66221         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66222         time.h now handles any problems in that area.
66223         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66224         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66225         that time.h defines struct timespec.
66226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66227         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66228         handles that.
66229         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66230         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66231         needed.  Set REPLACE_LOCALTIME.
66232         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66233         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66234         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66235         nanosleep; time_h.m4 now does that.  Don't require
66236         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66237         module handles this now.
66238         * modules/getdate (Depends-on): Remove timespec.  Add time.
66239         * modules/nanosleep (Depends-on): Likewise.
66240         * modules/stat-time (Depends-on): Likewise.
66241         * modules/nanosleep (Include): Include time.h, not timespec.h.
66242         * modules/strptime (Files): Remove lib/strptime.h.
66243         (Depends-on): Add extensions, time.
66244         (Include): Include time.h, not strptime.h.
66245         * modules/time_r (Files): Remove lib/time_r.h.
66246         (Depends-on): Add time.
66247         (Include): Include time.h, not time_r.h.
66248         * modules/timegm: Likewise.
66249         * modules/timespec (Description): Now does timespec-related decls
66250         of our own, instead of struct timespec itself.
66251         (Depends-on): Add time; remove extensions.
66252         (Maintainer): Add self.
66253         * modules/utimecmp (Depends-on): Add time; remove timespec.
66254         * modules/utimens (Depends-on): Likewise.
66255         * modules/xnanosleep (Depends-on): Likewise.
66256
66257 2007-02-11  Bruno Haible  <bruno@clisp.org>
66258
66259         * lib/c-strstr.c: Include allocsa.h.
66260         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66261         * lib/c-strcasestr.c: Include allocsa.h.
66262         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66263         * lib/strcasestr.c: Include allocsa.h.
66264         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66265         * lib/mbsstr.c: Include allocsa.h.
66266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66267         allocsa/freesa instead of malloc/free.
66268         * lib/mbscasestr.c: Include allocsa.h.
66269         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66270         allocsa/freesa instead of malloc/free.
66271         * modules/c-strstr (Depends-on): Add allocsa.
66272         * modules/c-strcasestr (Depends-on): Likewise.
66273         * modules/strcasestr (Depends-on): Likewise.
66274         * modules/mbsstr (Depends-on): Likewise.
66275         * modules/mbscasestr (Depends-on): Likewise.
66276
66277 2007-02-11  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66280
66281         * modules/mbsspn-tests: New file.
66282         * tests/test-mbsspn.sh: New file.
66283         * tests/test-mbsspn.c: New file.
66284
66285 2007-02-11  Bruno Haible  <bruno@clisp.org>
66286
66287         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66288
66289         * modules/mbspbrk-tests: New file.
66290         * tests/test-mbspbrk.sh: New file.
66291         * tests/test-mbspbrk.c: New file.
66292
66293 2007-02-11  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66296         unneeded cast.
66297
66298         * modules/mbscspn-tests: New file.
66299         * tests/test-mbscspn.sh: New file.
66300         * tests/test-mbscspn.c: New file.
66301
66302 2007-02-11  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/mbscasecmp-tests: New file.
66305         * tests/test-mbscasecmp.sh: New file.
66306         * tests/test-mbscasecmp.c: New file.
66307
66308 2007-02-11  Bruno Haible  <bruno@clisp.org>
66309
66310         Ensure O(n) worst-case complexity of mbscasestr.
66311         * lib/mbscasestr.c: Include stdbool.h.
66312         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66313         functions.
66314         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66315         the bookkeeping indicates that it's worth it.
66316         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66317
66318         * modules/mbscasestr-tests: New file.
66319         * tests/test-mbscasestr1.c: New file.
66320         * tests/test-mbscasestr2.sh: New file.
66321         * tests/test-mbscasestr2.c: New file.
66322         * tests/test-mbscasestr3.sh: New file.
66323         * tests/test-mbscasestr3.c: New file.
66324         * tests/test-mbscasestr4.sh: New file.
66325         * tests/test-mbscasestr4.c: New file.
66326         * m4/locale-tr.m4: New file.
66327
66328 2007-02-11  Bruno Haible  <bruno@clisp.org>
66329
66330         Ensure O(n) worst-case complexity of mbsstr.
66331         * lib/mbsstr.c: Include stdbool.h.
66332         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66333         functions.
66334         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66335         bookkeeping indicates that it's worth it.
66336         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66337
66338         * modules/mbsstr-tests: New file.
66339         * tests/test-mbsstr1.c: New file.
66340         * tests/test-mbsstr2.sh: New file.
66341         * tests/test-mbsstr2.c: New file.
66342         * tests/test-mbsstr3.sh: New file.
66343         * tests/test-mbsstr3.c: New file.
66344         * m4/locale-fr.m4: New file.
66345
66346 2007-02-11  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/mbsrchr.c (mbsrchr): Fix bug.
66349
66350         * modules/mbsrchr-tests: New file.
66351         * tests/test-mbsrchr.sh: New file.
66352         * tests/test-mbsrchr.c: New file.
66353
66354 2007-02-11  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/mbschr.c (mbschr): Fix bug.
66357
66358         * modules/mbschr-tests: New file.
66359         * tests/test-mbschr.sh: New file.
66360         * tests/test-mbschr.c: New file.
66361         * m4/locale-zh.m4: New file.
66362
66363 2007-02-11  Bruno Haible  <bruno@clisp.org>
66364
66365         Support for copying multibyte string iterators.
66366         * lib/mbiter.h: Include <string.h>.
66367         (mbiter_multi_copy): New function.
66368         (mbi_copy): New macro.
66369         * lib/mbuiter.h: Include <string.h>.
66370         (mbuiter_multi_copy): New function.
66371         (mbui_copy): New macro.
66372
66373 2007-02-11  Bruno Haible  <bruno@clisp.org>
66374
66375         New module mbslen.
66376         * modules/mbslen: New file.
66377         * lib/mbslen.c: New file.
66378         * lib/string_.h (mbslen): New declaration.
66379         * m4/mbslen.m4: New file.
66380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66381         GNULIB_MBSLEN.
66382         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66383         * MODULES.html.sh (Internationalization functions): Add mbslen.
66384
66385 2007-02-11  Bruno Haible  <bruno@clisp.org>
66386
66387         Ensure O(n) worst-case complexity of strcasestr substitute.
66388         * lib/strcasestr.c: Include stdbool.h.
66389         (knuth_morris_pratt): New function.
66390         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66391         bookkeeping indicates that it's worth it.
66392         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66393
66394         * modules/strcasestr-tests: New file.
66395         * tests/test-strcasestr.c: New file.
66396
66397 2007-02-11  Bruno Haible  <bruno@clisp.org>
66398
66399         Ensure O(n) worst-case complexity of c_strcasestr.
66400         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66401         (knuth_morris_pratt): New function.
66402         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66403         the bookkeeping indicates that it's worth it.
66404         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66405
66406         * modules/c-strcasestr-tests: New file.
66407         * tests/test-c-strcasestr.c: New file.
66408
66409 2007-02-11  Bruno Haible  <bruno@clisp.org>
66410
66411         Ensure O(n) worst-case complexity of c_strstr.
66412         * lib/c-strstr.c: Include stdbool.h, string.h.
66413         (knuth_morris_pratt): New function.
66414         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66415         bookkeeping indicates that it's worth it.
66416         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66417
66418         * lib/c-strstr.c: Complete rewrite for maintainability.
66419
66420         * modules/c-strstr-tests: New file.
66421         * tests/test-c-strstr.c: New file.
66422
66423 2007-02-11  Bruno Haible  <bruno@clisp.org>
66424
66425         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66426         5.2.1 and earlier, whereby \055 was treated just like the range
66427         delimiter '-'.
66428         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66429
66430 2007-02-08  Bruno Haible  <bruno@clisp.org>
66431
66432         * modules/regex (Depends-on): Add stdbool.
66433         Reported by Dalibor Topic <robilad@kaffe.org>.
66434
66435 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66438         Prefer returning from main to exiting from it.
66439         Remove unnecessary parens after sizeof.
66440
66441 2007-02-05  Bruno Haible  <bruno@clisp.org>
66442
66443         New module mbssep.
66444         * modules/mbssep: New file.
66445         * lib/mbssep.c: New file.
66446         * lib/string_.h (strsep): Add a conditional link warning.
66447         (mbssep): New declaration.
66448         * m4/mbssep.m4: New file.
66449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66450         GNULIB_MBSSEP.
66451         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66452         * MODULES.html.sh (Internationalization functions): Add mbssep.
66453
66454 2007-02-05  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66457         Optimize search in case of 1 delimiter.
66458
66459 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66460
66461         * lib/acl.h: Include sys/types.h before sys/acl.h.
66462
66463 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66464
66465         Merge upstream fix for glibc bugzilla #3957:
66466
66467         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66468
66469         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66470         bit for RE_HAT_LISTS_NOT_NEWLINE.
66471         (build_charclass_op): Remove bogus comment.
66472
66473 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66474
66475         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66476
66477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66480         * lib/memmem.c [!defined _LIBC]: Include config.h.
66481
66482 2007-02-04  Bruno Haible  <bruno@clisp.org>
66483
66484         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66485         warning message.
66486
66487 2007-02-04  Bruno Haible  <bruno@clisp.org>
66488
66489         New module mbstok_r.
66490         * modules/mbstok_r: New file.
66491         * lib/mbstok_r.c: New file.
66492         * lib/string_.h (strtok_r): Change argument names to match the
66493         comments. Add a conditional link warning.
66494         (mbstok_r): New declaration.
66495         * m4/mbstok_r.m4: New file.
66496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66497         GNULIB_MBSTOK_R.
66498         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66499         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66500
66501 2007-02-04  Bruno Haible  <bruno@clisp.org>
66502
66503         New module mbsspn.
66504         * modules/mbsspn: New file.
66505         * lib/mbsspn.c: New file.
66506         * lib/string_.h (strspn): Add a conditional link warning.
66507         (mbsspn): New declaration.
66508         * m4/mbsspn.m4: New file.
66509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66510         GNULIB_MBSSPN.
66511         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66512         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66513
66514 2007-02-04  Bruno Haible  <bruno@clisp.org>
66515
66516         New module mbspbrk.
66517         * modules/mbspbrk: New file.
66518         * lib/mbspbrk.c: New file.
66519         * lib/string_.h (strpbrk): Add a conditional link warning.
66520         (mbspbrk): New declaration.
66521         * m4/mbspbrk.m4: New file.
66522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66523         GNULIB_MBSPBRK.
66524         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66525         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66526
66527 2007-02-04  Bruno Haible  <bruno@clisp.org>
66528
66529         New module mbscspn.
66530         * modules/mbscspn: New file.
66531         * lib/mbscspn.c: New file.
66532         * lib/string_.h (strcspn): Add a conditional link warning.
66533         (mbscspn): New declaration.
66534         * m4/mbscspn.m4: New file.
66535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66536         GNULIB_MBSCSPN.
66537         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66538         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66539
66540 2007-02-04  Bruno Haible  <bruno@clisp.org>
66541
66542         New module mbscasestr, reduced goal of strcasestr.
66543         * modules/mbscasestr: New file.
66544         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66545         (mbscasestr): Renamed from strcasestr.
66546         * lib/strcasestr.c: Don't include mbuiter.h.
66547         (strcasestr): Remove support for multibyte locales.
66548         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66549         Change the conditional link warning.
66550         (mbscasestr): New declaration.
66551         * m4/mbscasestr.m4: New file.
66552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66553         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66554         REPLACE_STRCASESTR.
66555         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66557         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66558         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66559         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66560         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66561         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66562         (Depends-on): Remove mbuiter.
66563         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66564
66565 2007-02-04  Bruno Haible  <bruno@clisp.org>
66566
66567         Simplify handling of strncasecmp.
66568         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66569         the conditional link warning.
66570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66571         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66572         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66573         * modules/strcase (configure.ac): Don't invoke
66574         gl_STRING_MODULE_INDICATOR.
66575         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66576
66577 2007-02-04  Bruno Haible  <bruno@clisp.org>
66578
66579         New module mbscasecmp, reduced goal of strcasecmp.
66580         * modules/mbscasecmp: New file.
66581         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66582         (mbscasecmp): Renamed from strcasecmp.
66583         * lib/strcasecmp.c: Don't include mbuiter.h.
66584         (strcasecmp): Remove support for multibyte locales.
66585         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66586         Change the conditional link warning.
66587         (mbscasecmp): New declaration.
66588         * m4/mbscasecmp.m4: New file.
66589         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66590         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66591         REPLACE_STRCASECMP.
66592         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66594         GNULIB_MBSCASECMP.
66595         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66596         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66597         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66598         (Depends-on): Remove mbuiter.
66599         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66600
66601 2007-02-04  Bruno Haible  <bruno@clisp.org>
66602
66603         New module mbsstr. Remove module strstr.
66604         * modules/mbsstr: New file.
66605         * modules/strstr: Remove file.
66606         * lib/mbsstr.c: Renamed from lib/strstr.c.
66607         (mbsstr): Renamed from strstr.
66608         * lib/string_.h (strstr): Remove declaration. Change the conditional
66609         link warning.
66610         (mbsstr): New declaration.
66611         * m4/mbsstr.m4: New file.
66612         * m4/strstr.m4: Remove file.
66613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66614         REPLACE_STRSTR.
66615         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66616         Don't initialize GNULIB_STRSTR.
66617         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66618         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66619         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66620         (Support for systems lacking ANSI C 89): Remove strstr.
66621
66622 2007-02-04  Bruno Haible  <bruno@clisp.org>
66623
66624         New module mbsrchr.
66625         * modules/mbsrchr: New file.
66626         * lib/mbsrchr.c: New file.
66627         * lib/string_.h (strrchr): Add a conditional link warning.
66628         (mbsrchr): New declaration.
66629         * m4/mbsrchr.m4: New file.
66630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66631         GNULIB_MBSRCHR.
66632         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66633         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66634
66635 2007-02-04  Bruno Haible  <bruno@clisp.org>
66636
66637         New module mbschr.
66638         * modules/mbschr: New file.
66639         * lib/mbschr.c: New file.
66640         * lib/string_.h (strchr): Add a conditional link warning.
66641         (mbschr): New declaration.
66642         * m4/mbschr.m4: New file.
66643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66644         GNULIB_MBSCHR.
66645         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66646         * MODULES.html.sh (Internationalization functions): Add mbschr.
66647
66648 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66651
66652         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66653
66654 2007-02-04  Bruno Haible  <bruno@clisp.org>
66655
66656         New module description section 'configure.ac-early'.
66657         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66658         (func_get_autoconf_early_snippet): New function.
66659         (func_import, func_create_testdir): Use it. Remove special cases for
66660         modules 'extensions' and 'lock'.
66661         * modules/extensions (configure.ac-early): Require
66662         gl_USE_SYSTEM_EXTENSIONS.
66663         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66664
66665 2007-02-04  Bruno Haible  <bruno@clisp.org>
66666
66667         Make use of gcj-4.3's -fsource and -ftarget option.
66668         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66669         and if so try the options -fsource and -ftarget.
66670         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66671         source_version, ftarget_option, target_version arguments.
66672         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66673         (is_envjavac_oldgcj_14_14_usable): Renamed from
66674         is_envjavac_gcj_14_14_usable.
66675         (is_envjavac_oldgcj_14_13_usable): Renamed from
66676         is_envjavac_gcj_14_13_usable.
66677         (is_gcj_present): Update.
66678         (is_gcj_43, is_gcj43_usable): New functions.
66679         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66680         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66681         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66682         try the options -fsource and -ftarget.
66683
66684 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66687         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66688         larger value.
66689
66690 2007-02-03  Jim Meyering  <jim@meyering.net>
66691
66692         Give tools a better chance to allocate space for very large buffers.
66693         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66694
66695         Make pwd and readlink work also when run with an unreadable parent dir
66696         on systems with openat support.
66697         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66698         provided getcwd function, even when we have openat support.
66699         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66700
66701 2007-02-02  Bruno Haible  <bruno@clisp.org>
66702
66703         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66704         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66705         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66706         portability problems if one of these functions is only used on specific
66707         platforms.
66708         Reported by Paul Eggert.
66709
66710 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66713         is causing more trouble than it's curing.
66714         * lib/regex_internal.h (__mempcpy): Remove.
66715         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66716         (and make the code a tad smaller to boot).
66717         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66718
66719 2007-02-02  Jim Meyering  <jim@meyering.net>
66720
66721         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66722         section, not in the Makefile.am: one.
66723
66724 2007-02-02  Eric Blake  <ebb9@byu.net>
66725
66726         * lib/strchrnul.c: Always include config.h first.
66727
66728         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66729         gnulib strstr is not necessary here.
66730
66731 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66732
66733         * m4/socklen.m4: Fix typo.
66734
66735 2007-02-02  Eric Blake  <ebb9@byu.net>
66736
66737         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66738         * modules/netinet_in (Makefile.am): Likewise.
66739
66740 2007-02-01  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/string_.h (GL_LINK_WARNING): New macro.
66743         (strcasecmp, strstr, strcasestr): If provided by the system,
66744         conditionally define as a macro that leads to a warning instead of to
66745         an error.
66746         (strncasecmp): Conditionally define as a macro that leads to a warning.
66747
66748 2007-02-01  Karl Berry  <karl@gnu.org>
66749
66750         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66751
66752 2007-02-01  Bruno Haible  <bruno@clisp.org>
66753
66754         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66755         renamings.
66756
66757 2007-02-01  Eric Blake  <ebb9@byu.net>
66758
66759         * modules/regex (Depends-on): Revert dependence on mempcpy.
66760         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66761         module's definition of mempcpy.
66762         Reported by Paul Eggert.
66763
66764 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66765
66766         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66767         the symbol XYZ before redefining it.  This fixes a problem with
66768         programs that don't use XYZ, when compiled on systems that define
66769         XYZ to something else.
66770
66771 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66774         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66775         writeable to group or other and (2) is intended to have a special
66776         mode bit that is set or cleared.  In such a case, the directory
66777         should be neither group- nor other-writeable until the special
66778         mode bits are right.
66779
66780 2007-01-31  Eric Blake  <ebb9@byu.net>
66781
66782         * modules/mountlist (Depends-on): Add strstr.
66783
66784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66785         bug.
66786         * modules/string (Makefile.am): Remove redundant replacement.
66787         * modules/regex (Depends-on): Add mempcpy.
66788
66789 2007-01-31  Bruno Haible  <bruno@clisp.org>
66790
66791         New module description field 'Link'.
66792         * gnulib-tool (func_usage): Document --extract-link-directive.
66793         (sed_extract_prog): Recognize 'Link' directive.
66794         (func_get_link_directive): New function.
66795         (func_import): Show summary of link directives.
66796         Handle --extract-link-directive option.
66797         * modules/acl (Link): New section.
66798         * modules/clock-time (Link): New section.
66799         * modules/euidaccess (Link): New section.
66800         * modules/gettext (Link): New section.
66801         * modules/iconv (Link): New section.
66802         * modules/lock (Link): New section.
66803         * modules/nanosleep (Link): New section.
66804         * modules/readline (Link): New section.
66805
66806 2007-01-27  Bruno Haible  <bruno@clisp.org>
66807
66808         Enforce the use of gnulib modules for unportable <string.h> functions.
66809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66810         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66811         (gl_HEADER_STRING_H_BODY): Require it.
66812         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66813         the symbol XYZ to one that gives a link error.
66814         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66815         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66816         * modules/mempcpy (configure.ac): Likewise.
66817         * modules/memrchr (configure.ac): Likewise.
66818         * modules/stpcpy (configure.ac): Likewise.
66819         * modules/stpncpy (configure.ac): Likewise.
66820         * modules/strcase (configure.ac): Likewise.
66821         * modules/strcasestr (configure.ac): Likewise.
66822         * modules/strchrnul (configure.ac): Likewise.
66823         * modules/strdup (configure.ac): Likewise.
66824         * modules/strndup (configure.ac): Likewise.
66825         * modules/strnlen (configure.ac): Likewise.
66826         * modules/strpbrk (configure.ac): Likewise.
66827         * modules/strsep (configure.ac): Likewise.
66828         * modules/strstr (configure.ac): Likewise.
66829         * modules/strtok_r (configure.ac): Likewise.
66830
66831 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66832
66833         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66834
66835 2007-01-30  Jim Meyering  <jim@meyering.net>
66836
66837         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66838
66839 2007-01-29  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66842         * lib/execute.c: Likewise.
66843         * lib/pipe.c: Likewise.
66844         * lib/printf-args.h: Likewise.
66845         * lib/printf-args.c: Likewise.
66846         * lib/printf-parse.c: Likewise.
66847         * lib/vasnprintf.c: Likewise.
66848
66849 2007-01-29  Eric Blake  <ebb9@byu.net>
66850
66851         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66852         declaration.
66853
66854 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66855
66856         * lib/strptime.h (strptime): Use 'restrict' for args where
66857         POSIX requires this.
66858         * lib/strptime.c (strptime): Likewise.
66859         Change license notice from LGPL to GPL, since gnulib-tool will
66860         change this as needed.
66861         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66862         defined.
66863         Include "strptime.h" first, to check interface.
66864         Do not #undef _LIBC and _NL_CURRENT.
66865         Do not include <stdlib.h>; no longer needed.
66866         Include "time_r.h" and declare ptime_locale_status
66867         only if _LIBC is not defined.
66868         (__P): Remove unused macro.
66869         (match_string): Bring back glibc version, but use it only if _LIBC
66870         is defined.
66871         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66872         Remove unnecessary assertion and abort() call.
66873         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66874         * m4/strptime.m4: Fix serial number comment.
66875         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66876         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66877         (Depends-on): Add time_r.
66878
66879 2007-01-29  Bruno Haible  <bruno@clisp.org>
66880
66881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66882         strptime.
66883         * modules/strptime (Depends-on): Add stdbool.
66884         * lib/strptime.h: Include <time.h> always. Add comments.
66885
66886 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66887
66888         * modules/strptime: New file.
66889         * lib/strptime.h: New file.
66890         * lib/strptime.c: New file.
66891         * m4/strptime.m4: New file.
66892
66893 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * MODULES.html.sh: New module mpsort.
66896         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66897
66898         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66899         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66901         All uses changed.
66902         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66903         All uses changed.
66904         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66905         to _Restrict_.
66906         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66907         the parameter matches the prototype.
66908
66909 2007-01-28  Jim Meyering  <jim@meyering.net>
66910
66911         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66912         sys/time.h here, reverting that part of the previous patch:
66913         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66914
66915 2007-01-28  Bruno Haible  <bruno@clisp.org>
66916
66917         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66918         value of $(SYS_TIME_H).
66919         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66920         remove it conditionally, too. [added by Jim Meyering]
66921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66922         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66923         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66924         GETTIMEOFDAY_REPLACEMENT to 1.
66925
66926 2007-01-28  Bruno Haible  <bruno@clisp.org>
66927
66928         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66929         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66931         Set UNISTD_H instead of UNISTD_H2.
66932         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66933
66934 2007-01-28  Bruno Haible  <bruno@clisp.org>
66935
66936         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66937         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66938
66939 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66940
66941         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66942         (func_create_testdir): Ensure C locale for `grep' and `tr'
66943         character ranges.
66944         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66945         ACLOCAL_AMFLAGS parsing state machine.
66946
66947 2007-01-27  Bruno Haible  <bruno@clisp.org>
66948
66949         * modules/unistr/base: Update.
66950
66951 2007-01-27  Bruno Haible  <bruno@clisp.org>
66952
66953         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66954         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66955         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66956         modules/unistr/u32-mbtouc.
66957         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66958         * lib/unistr.h: Update.
66959         * lib/linebreak.c: Update.
66960         * modules/unistr/u32-mbtouc: Renamed from
66961         modules/unistr/u32-mbtouc-safe.
66962         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66963         * lib/unistr.h: Update.
66964         * lib/unistr/u32-to-u8.c: Update.
66965         * lib/unistr/u32-to-u16.c: Update.
66966
66967 2007-01-27  Bruno Haible  <bruno@clisp.org>
66968
66969         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66970         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66971         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66972         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66973         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66974         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66975         modules/unistr/u16-mbtouc.
66976         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66977         * lib/unistr.h: Update.
66978         * lib/linebreak.c: Update.
66979         * modules/linebreak: Update.
66980         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66981         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66982         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66983         * modules/unistr/u16-mbtouc: Renamed from
66984         modules/unistr/u16-mbtouc-safe.
66985         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66986         * lib/unistr.h: Update.
66987         * lib/unistr/u16-to-u8.c: Update.
66988         * modules/unistr/u16-to-u8: Update.
66989         * lib/unistr/u16-to-u32.c: Update.
66990         * modules/unistr/u16-to-u32: Update.
66991
66992 2007-01-27  Bruno Haible  <bruno@clisp.org>
66993
66994         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66995         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66996         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66997         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66998         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66999         * modules/unistr/u8-mbtouc-unsafe: Renamed from
67000         modules/unistr/u8-mbtouc.
67001         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
67002         * lib/unistr.h: Update.
67003         * lib/striconveh.c: Update.
67004         * modules/striconveh: Update.
67005         * lib/linebreak.c: Update.
67006         * modules/linebreak: Update.
67007         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
67008         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
67009         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
67010         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
67011         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
67012         * lib/unistr.h: Update.
67013         * lib/striconveh.c: Update.
67014         * modules/striconveh: Update.
67015         * lib/unistr/u8-to-u16.c: Update.
67016         * modules/unistr/u8-to-u16: Update.
67017         * lib/unistr/u8-to-u32.c: Update.
67018         * modules/unistr/u8-to-u32: Update.
67019
67020 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67021
67022         Sync from Libtool.
67023         * lib/argz.c: Do not include strings.h nor memory.h, include
67024         string.h unconditionally.  Patch by Simon Josefsson.
67025
67026 2007-01-27  Bruno Haible  <bruno@clisp.org>
67027
67028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
67029         from gl_HEADER_STRING_H_BODY.
67030         (gl_HEADER_STRING_H_BODY): Require it.
67031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
67032         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67033         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67034         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67036         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
67037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
67038         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67039         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
67040         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67041         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67042         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
67043         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67044         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
67045         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67046
67047 2007-01-27  Bruno Haible  <bruno@clisp.org>
67048
67049         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
67050         check_PROGRAMS into noinst_PROGRAMS.
67051         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
67052         check_PROGRAMS in this case.
67053         (func_import): Set for_test to false.
67054         (func_create_testdir): Set for_test to true.
67055
67056 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67057             Bruno Haible  <bruno@clisp.org>
67058
67059         * modules/strcasestr (Files): Remove lib/strcasestr.h.
67060         (Depends-on): Add string.
67061         (Includes): Use <string.h> instead of strcasestr.h.
67062         * modules/string (Makefile.am): Also substitute the value of
67063         REPLACE_STRCASESTR.
67064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
67065         assume strcasestr is declared in <string.h> not <strings.h>. Also
67066         set REPLACE_STRCASESTR.
67067         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
67068         REPLACE_STRCASESTR.
67069         * lib/strcasestr.h: Remove file.
67070         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
67071         * lib/string_.h (strcasestr): New declaration.
67072
67073 2007-01-27  Bruno Haible  <bruno@clisp.org>
67074
67075         * lib/string_.h: Use 'extern'.
67076
67077 2007-01-27  Jim Meyering  <jim@meyering.net>
67078
67079         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
67080         of set-but-not-used local, "q".
67081
67082         * lib/mempcpy.c: Include <config.h> before <string.h>.
67083         This fixes a compilation error on HP-UX, due to the system's
67084         "restrict"-using mempcpy prototype.
67085
67086 2007-01-26  Bruno Haible  <bruno@clisp.org>
67087
67088         Small optimization.
67089         * lib/javacomp.c: Include c-strstr.h.
67090          (is_envjavac_gcj): Use c_strstr instead of strstr.
67091         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
67092
67093 2007-01-26  Bruno Haible  <bruno@clisp.org>
67094
67095         * MODULES.html.sh (Unicode string functions): Add the new modules.
67096
67097         * modules/uniconv/u32-strconv-to-locale: New file.
67098         * lib/uniconv/u32-strconv-to-locale.c: New file.
67099
67100         * modules/uniconv/u16-strconv-to-locale: New file.
67101         * lib/uniconv/u16-strconv-to-locale.c: New file.
67102
67103         * modules/uniconv/u8-strconv-to-locale: New file.
67104         * lib/uniconv/u8-strconv-to-locale.c: New file.
67105
67106         * modules/uniconv/u32-strconv-from-locale: New file.
67107         * lib/uniconv/u32-strconv-from-locale.c: New file.
67108
67109         * modules/uniconv/u16-strconv-from-locale: New file.
67110         * lib/uniconv/u16-strconv-from-locale.c: New file.
67111
67112         * modules/uniconv/u8-strconv-from-locale: New file.
67113         * lib/uniconv/u8-strconv-from-locale.c: New file.
67114
67115         * modules/uniconv/u32-strconv-to-enc: New file.
67116         * lib/uniconv/u32-strconv-to-enc.c: New file.
67117         * modules/uniconv/u32-strconv-to-enc-tests: New file.
67118         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
67119
67120         * modules/uniconv/u16-strconv-to-enc: New file.
67121         * lib/uniconv/u16-strconv-to-enc.c: New file.
67122         * lib/uniconv/u-strconv-to-enc.h: New file.
67123         * modules/uniconv/u16-strconv-to-enc-tests: New file.
67124         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
67125
67126         * modules/uniconv/u8-strconv-to-enc: New file.
67127         * lib/uniconv/u8-strconv-to-enc.c: New file.
67128         * modules/uniconv/u8-strconv-to-enc-tests: New file.
67129         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
67130
67131         * modules/uniconv/u32-strconv-from-enc: New file.
67132         * lib/uniconv/u32-strconv-from-enc.c: New file.
67133         * modules/uniconv/u32-strconv-from-enc-tests: New file.
67134         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
67135
67136         * modules/uniconv/u16-strconv-from-enc: New file.
67137         * lib/uniconv/u16-strconv-from-enc.c: New file.
67138         * modules/uniconv/u16-strconv-from-enc-tests: New file.
67139         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
67140
67141         * modules/uniconv/u8-strconv-from-enc: New file.
67142         * lib/uniconv/u8-strconv-from-enc.c: New file.
67143         * lib/uniconv/u-strconv-from-enc.h: New file.
67144         * modules/uniconv/u8-strconv-from-enc-tests: New file.
67145         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
67146
67147         * modules/uniconv/u32-conv-from-enc: New file.
67148         * lib/uniconv/u32-conv-from-enc.c: New file.
67149         * modules/uniconv/u32-conv-from-enc-tests: New file.
67150         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67151
67152         * modules/uniconv/u16-conv-from-enc: New file.
67153         * lib/uniconv/u16-conv-from-enc.c: New file.
67154         * lib/uniconv/u-conv-from-enc.h: New file.
67155         * modules/uniconv/u16-conv-from-enc-tests: New file.
67156         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67157
67158         * modules/uniconv/u8-conv-from-enc: New file.
67159         * lib/uniconv/u8-conv-from-enc.c: New file.
67160         * modules/uniconv/u8-conv-from-enc-tests: New file.
67161         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67162
67163         * modules/uniconv/base: New file.
67164         * lib/uniconv.h: New file.
67165
67166 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         * doc/gnulib-tool.texi (Initial import): Update to match current
67169         behavior with strdup module.
67170         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67171         * lib/memmem.h: Remove; all uses removed.  This is now done
67172         by <string.h>.
67173         * lib/mempcpy.h: Likewise.
67174         * lib/memrchr.h: Likewise.
67175         * lib/stpcpy.h: Likewise.
67176         * lib/stpncpy.h: Likewise.
67177         * lib/strcase.h: Likewise.
67178         * lib/strchrnul.h: Likewise.
67179         * lib/strdup.h: Likewise.
67180         * lib/strndup.h: Likewise.
67181         * lib/strnlen.h: Likewise.
67182         * lib/strpbrk.h: Likewise.
67183         * lib/strsep.h: Likewise.
67184         * lib/strstr.h: Likewise.
67185         * lib/strtok_r.h: Likewise.
67186         * lib/string_.h: New file.
67187         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67188         Rely on <string.h> instead.
67189         * lib/canon-host.c: Likewise.
67190         * lib/chdir-long.c: Likewise.
67191         * lib/concatpath.c: Likewise.
67192         * lib/exclude.c: Likewise.
67193         * lib/fchdir.c: Likewise.
67194         * lib/getaddrinfo.c: Likewise.
67195         * lib/getcwd.c: Likewise.
67196         * lib/getsubopt.c: Likewise.
67197         * lib/glob.c: Likewise.
67198         * lib/hard-locale.c: Likewise.
67199         * lib/iconvme.c: Likewise.
67200         * lib/javacomp.c: Likewise.
67201         * lib/mempcpy.c: Likewise.
67202         * lib/memrchr.c: Likewise.
67203         * lib/regex_internal.h: Likewise.
67204         * lib/stpncpy.c: Likewise.
67205         * lib/strcasecmp.c: Likewise.
67206         * lib/strchrnul.c: Likewise.
67207         * lib/strdup.c: Likewise.
67208         * lib/striconv.c: Likewise.
67209         * lib/striconveh.c: Likewise.
67210         * lib/striconveha.c: Likewise.
67211         * lib/strncasecmp.c: Likewise.
67212         * lib/strndup.c: Likewise.
67213         * lib/strnlen.c: Likewise.
67214         * lib/strsep.c: Likewise.
67215         * lib/strstr.c: Likewise.
67216         * lib/strtok_r.c: Likewise.
67217         * lib/userspec.c: Likewise.
67218         * lib/w32spawn.h: Likewise.
67219         * lib/xstrndup.c: Likewise.
67220         * lib/mountlist.c (strstr): Remove decl.
67221         * m4/string_h.m4: New file.
67222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67223         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67224         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67225         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67226         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67227         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67228         Set REPLACE_STRCASECMP if necessary.
67229         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67230         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67231         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67232         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67233         HAVE_DECL_STRDUP if necessary.
67234         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67235         since gl_FUNC_STRNDUP does that now.
67236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67237         Check for decl here...
67238         (gl_PREREQ_STRNLEN): ... not here.
67239         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67240         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67241         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67243         necessary.
67244         * modules/string: New file.
67245         * modules/memmem (Files): Remove special-purpose include file.
67246         (Depends-on): Add string.
67247         (Include): Include <string.h>, not the removed file.
67248         * modules/mempcpy: Likewise.
67249         * modules/memrchr: Likewise.
67250         * modules/stpcpy: Likewise.
67251         * modules/stpncpy: Likewise.
67252         * modules/strcase: Likewise.
67253         * modules/strchrnul: Likewise.
67254         * modules/strdup: Likewise.
67255         * modules/strndup: Likewise.
67256         * modules/strnlen: Likewise.
67257         * modules/strpbrk: Likewise.
67258         * modules/strsep: Likewise.
67259         * modules/strstr: Likewise.
67260         * modules/strtok_r: Likewise.
67261         * tests/test-dirname.c: Don't include "strdup.h", since
67262         <string.h> now suffices.
67263         * tests/test-memmem.c: Don't include "memmem.h", since
67264         <string.h> now suffices.
67265
67266 2007-01-25  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67269         *resultp is 0.
67270
67271         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67272         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67273         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67274         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67275
67276         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67277         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67278         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67279         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67280         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67281         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67282
67283 2007-01-24  Bruno Haible  <bruno@clisp.org>
67284
67285         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67287         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67288         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67289         gl_FUNC_FTS_CORE.
67290         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67291         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67293         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67294         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67295         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67296         gl_FUNC_FCHOWNAT.
67297         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67298         gl_FUNC_STRFTIME.
67299         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67300         Reported by Ralf Wildenhues.
67301
67302 2007-01-24  Bruno Haible  <bruno@clisp.org>
67303
67304         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67305         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67306         gl_GETADDRINFO.
67307         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67308         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67309         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67310
67311 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67314         Don't use 'exit'; just return from 'main'.
67315         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67316
67317         * lib/fnmatch_.h: Readjust white space and comments to match
67318         glibc, to avoid spurious diffs.
67319
67320 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67323         2004-12-01 change by Jakub Jelinek, since this code won't compile
67324         if !LIBC.  Problem reported by Bob Proulx.
67325
67326 2007-01-23  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/striconveh.c: Include c-strcaseeq.h.
67329         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67330         * modules/striconveh (Depends-on): Add c-strcaseeq.
67331
67332 2007-01-23  Bruno Haible  <bruno@clisp.org>
67333
67334         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67335
67336         * modules/c-strcaseeq: New file.
67337         * lib/c-strcaseeq.h: New file.
67338
67339         * modules/streq: New file.
67340         * lib/streq.h: New file.
67341
67342 2007-01-23  Bruno Haible  <bruno@clisp.org>
67343
67344         * modules/striconveha-tests: New file.
67345         * tests/test-striconveha.c: New file.
67346
67347         * lib/striconveha.h: Include <stdbool.h>.
67348         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67349         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67350         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67351         (mem_iconveha): New function.
67352         (str_iconveha_notranslit): Renamed from str_iconveha.
67353         (str_iconveha): New function.
67354         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67355         c-strcase.
67356
67357 2007-01-23  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67360         encodings without forgiving before trying any encoding with handler.
67361         (str_iconveha): Try all encodings without forgiving before trying any
67362         encoding with handler.
67363
67364 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         Import the following changes from libc.
67367
67368         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67369
67370         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67371
67372         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67373
67374         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67375         normal_bracket label.
67376
67377         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67378
67379         [BZ #361]
67380         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67381         to normal_bracket after fetching the next character.
67382
67383 2007-01-22  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67386         argument.
67387         * lib/striconveh.c (iconv_carefully_1): New function.
67388         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67389         argument.
67390         (str_cd_iconveh): Update.
67391         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67392         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67393         * tests/test-striconveh.c (MAGIC): New macro.
67394         (new_offsets): New function.
67395         (main): Test call with and without offsets.
67396
67397 2007-01-22  Bruno Haible  <bruno@clisp.org>
67398
67399         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67400         * modules/sys_select (Makefile.am): Likewise.
67401         * modules/sys_socket (Makefile.am): Likewise.
67402         * modules/sys_time (Makefile.am): Likewise.
67403
67404 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         * modules/gettimeofday (License): Change from GPL to LGPL, since
67407         gettimeofday is a library function.
67408
67409 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67410
67411         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67412
67413 2007-01-21  Bruno Haible  <bruno@clisp.org>
67414
67415         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67416
67417 2007-01-21  Bruno Haible  <bruno@clisp.org>
67418
67419         * modules/striconveha: New file.
67420         * lib/striconveha.h: New file.
67421         * lib/striconveha.c: New file.
67422         * MODULES.html.sh (Internationalization functions): Add striconveha.
67423         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67424         string.
67425         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67426
67427 2007-01-21  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67430         * lib/striconveh.c (str_iconveh): Likewise.
67431
67432 2007-01-21  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/striconveh.h (mem_iconveh): New declaration.
67435         * lib/striconveh.c (mem_iconveh): New function.
67436         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67437
67438 2007-01-21  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67441
67442         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67443         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67444         original result buffer.
67445         (str_cd_iconveh): Update.
67446         * tests/test-striconveh.c (main): Update.
67447
67448         * lib/striconv.h (mem_cd_iconv): Change specification.
67449         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67450         result buffer.
67451         (str_cd_iconv): Update.
67452         * tests/test-striconv.c (main): Update.
67453
67454 2007-01-21  Bruno Haible  <bruno@clisp.org>
67455
67456         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67457
67458 2007-01-20  Jim Meyering  <jim@meyering.net>
67459
67460         * lib/userspec.c (parse_with_separator): If a user or group string
67461         starts with "+", skip the corresponding name-to-ID look-up, since
67462         such a look-up must fail: user and group names may not include "+".
67463
67464 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67465
67466         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67467         since we now assume the sys_time module.
67468         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67469         check for sys/time.h; no longer needed.
67470         * modules/poll (Depends-on): Depend on sys_time.
67471
67472 2007-01-18  Bruno Haible  <bruno@clisp.org>
67473
67474         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67475         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67476
67477         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67478         gettimeofday.
67479
67480         * tests/test-gettimeofday.c: Include <time.h>.
67481         (dummy): Remove variable.
67482
67483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67484         gl_HEADER_SYS_TIME_H.
67485         (gl_HEADER_SYS_TIME_H): New macro.
67486
67487         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67488         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67490         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67491         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67493         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67494         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67495         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67496         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67497         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67498
67499         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67500         last change; it caused a compilation error when cross-compiling to
67501         Cygwin.
67502
67503 2007-01-18  Jim Meyering  <jim@meyering.net>
67504
67505         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67506         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67507         than the race-prone "test -d sys || mkdir sys".
67508         (configure.ac): Use AC_PROG_MKDIR_P.
67509         * modules/sys_select: Likewise.
67510         * modules/sys_socket: Likewise.
67511         * modules/sys_time: Likewise.
67512
67513 2007-01-18  Eric Blake  <ebb9@byu.net>
67514
67515         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67516         replace gettimeofday.
67517         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67518         name, to avoid infinite recursion.
67519
67520 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67523         module sys_time.
67524         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67525         assume timespec.h defines struct timeval.
67526         * lib/settime.c: Likewise.
67527         * lib/utimens.c: Likewise.
67528         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67529         since we now assume the gettimeofday module.
67530         * lib/tempname.c (__gen_tempname): Likewise.
67531         * lib/gettimeofday.h: Remove.
67532         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67533         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67534         Include <time.h>, for 'time()'.
67535         (localtime_buffer_addr): Also use this workaround if
67536         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67537         to simplify the uses.  All uses changed.
67538         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67539         that #undef is inside {}, and 'const' follows type name consistently.
67540         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67541         (gettimeofday): Do not use the maximum possible value for
67542         tv->tv_usec, since that might break usages other than ls.c.
67543         Instead, we'll leave ls.c alone.  This undoes today's patch
67544         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67545         we've never observed the problem but might as well keep the
67546         canary.
67547         * lib/nanosleep.c: Include timespec.h first, for interface check.
67548         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67549         now assume the sys_time module.
67550         * lib/tempname.c: Likewise.
67551         * lib/timespec.h: Likewise.
67552         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67553         needed.
67554         * lib/strftime.c: Likewise.
67555         * lib/timespec.h: Likewise.
67556         * lib/posixtm.c: Include posixtm.h first, for interface check.
67557         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67558         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67559         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67560         * lib/sys_time_.h: New file.
67561         * lib/timespec.h (struct timespec): Use long int, not long.
67562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67563         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67564         Remove obsolescent call to AC_HEADER_TIME.
67565         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67567         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67568         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67569         Likewise.
67570         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67571         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67572         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67573         into the sys_time module.  Check for gettimeofday just once.
67574         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67575         for gettimeofday signature to just check the signature.  Merely
67576         compile it, since linking doesn't test signature.  Improve test for
67577         whether gettimeofday.o is actually needed.
67578         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67579         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67580         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67581         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67582         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67583         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67584         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67585         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67586         than worrying about sys/time.h.
67587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67588         Don't bother worrying about TIME_WITH_SYS_TIME.
67589         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67590         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67591         * m4/sys_time_h.m4: New file.
67592         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67593         Don't include sys/time.h.  Return from main rather than exiting.
67594         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67595         all uses changed.
67596         * modules/gethrxtime (Depends-on): Add sys_time.
67597         * modules/gettime (Depends-on): Likewise.
67598         * modules/gettimeofday (Depends-on): Likewise.
67599         * modules/nanosleep (Depends-on): Likewise.
67600         * modules/settime (Depends-on): Likewise.
67601         * modules/tempname (Depends-on): Likewise.
67602         * modules/utimens (Depends-on): Likewise.
67603         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67604         (Include): Change back to <sys/time.h>.
67605         (Maintainer): Add self.
67606         * modules/sys_time: New file.
67607         * modules/tempname (Depends-on): Add gettimeofday.
67608         * tests/test-gettimeofday.c: Include <sys/time.h>
67609         rather than gettimeofday.h.
67610
67611 2007-01-17  Bruno Haible  <bruno@clisp.org>
67612
67613         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67614         the license default to GPL.
67615         (func_create_testdir): Don't complain if a module is LGPL and its
67616         tests module depends on GPLed modules.
67617
67618 2007-01-17  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/gettimeofday.c (gettimeofday): Add code for the case
67621         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67622         maximum possible value for tv->tv_usec, rather than the minimum one.
67623
67624 2005-10-08  Martin Lambers  <marlam@marlam.de>
67625 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67626 2007-01-16  Bruno Haible  <bruno@clisp.org>
67627
67628         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67629         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67630         gl_FUNC_GETTIMEOFDAY.
67631         (Include): Add gettimeofday.h.
67632         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67633         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67634         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67635         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67636         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67637         * lib/gettimeofday.h: New file.
67638         * lib/gettimeofday.c: Include <sys/timeb.h>.
67639         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67640         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67641         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67642         fall back on time().
67643
67644         * tests/test-gettimeofday.c: New file.
67645         * modules/gettimeofday-tests: New file.
67646
67647 2007-01-16  Eric Blake  <ebb9@byu.net>
67648
67649         * modules/fnmatch (Depends-on): Depend on wchar.
67650         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67651         * m4/fnmatch.m4: Likewise.
67652         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67653         * m4/mbchar.m4: Likewise.
67654         * modules/mbswidth (Depends-on): Depend on wchar.
67655         * lib/mbswidth.c: Assume <wchar.h>.
67656         * m4/mbswidth.m4: Likewise.
67657         * modules/quotearg (Depends-on): Depend on wchar.
67658         * lib/quotearg.c: Assume <wchar.h>.
67659         * m4/quotearg.m4: Likewise.
67660         * modules/regex (Depends-on): Depend on wchar.
67661         * lib/regex_internal.h: Assume <wchar.h>.
67662         * m4/regex.m4: Likewise.
67663         * modules/stdint (Depends-on): Depend on wchar.
67664         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67665         * m4/stdint.m4: Likewise.
67666         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67667         * modules/strftime (Depends-on): Depend on wchar.
67668         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67669         * modules/strtol (Depends-on): Depend on wchar.
67670         * lib/strtol.c: Assume <wchar.h>.
67671         * modules/wcwidth (Depends-on): Depend on wchar.
67672         * lib/wcwidth.h: Assume <wchar.h>.
67673         * m4/wcwidth.m4: Likewise.
67674
67675 2007-01-16  Bruno Haible  <bruno@clisp.org>
67676
67677         * modules/csharpexec-script: New, created from...
67678         * modules/csharpexec: ... this.
67679
67680 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67681
67682         * modules/javaexec-script: New, created from...
67683         * modules/javaexec: ... this.
67684
67685 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67686
67687         * modules/poll (Dependencies): Add sys_select.
67688
67689 2007-01-15  Jim Meyering  <jim@meyering.net>
67690
67691         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67692         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67693         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67694         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67695
67696 2007-01-15  Bruno Haible  <bruno@clisp.org>
67697
67698         * modules/striconveh: New file.
67699         * lib/striconveh.h: New file.
67700         * lib/striconveh.c: New file.
67701         * MODULES.html.sh (Internationalization functions): Add striconveh.
67702
67703         * modules/striconveh-tests: New file.
67704         * tests/test-striconveh.c: New file.
67705
67706 2007-01-15  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67709         not from GNU libiconv or GNU libc.
67710
67711 2007-01-15  Bruno Haible  <bruno@clisp.org>
67712
67713         * doc/gnulib-intro.texi (Copyright): Explain the different license
67714         terms for module descriptions, autoconf macros, tests, documentation.
67715
67716 2007-01-14  Bruno Haible  <bruno@clisp.org>
67717
67718         * modules/striconv-tests: New file.
67719         * tests/test-striconv.c: New file.
67720
67721 2007-01-14  Bruno Haible  <bruno@clisp.org>
67722
67723         * modules/iconv-tests: New file.
67724         * tests/test-iconv.c: New file.
67725
67726 2007-01-14  Bruno Haible  <bruno@clisp.org>
67727
67728         * gnulib-tool (func_get_license): For test modules, use the license of
67729         the main module.
67730
67731 2007-01-14  Bruno Haible  <bruno@clisp.org>
67732
67733         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67734         if iconv is found to exist.
67735
67736 2007-01-14  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/c-ctype-tests: New file.
67739         * tests/test-c-ctype.c: New file.
67740
67741 2007-01-14  Bruno Haible  <bruno@clisp.org>
67742
67743         * modules/binary-io-tests: New file.
67744         * tests/test-binary-io.sh: New file.
67745         * tests/test-binary-io.c: New file.
67746
67747 2007-01-14  Bruno Haible  <bruno@clisp.org>
67748
67749         * modules/array-oset-tests: New file.
67750         * tests/test-array_oset.c: New file.
67751
67752 2007-01-14  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/array-list-tests: New file.
67755         * tests/test-array_list.c: New file.
67756
67757 2007-01-14  Bruno Haible  <bruno@clisp.org>
67758
67759         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67760         and make.
67761         Reported by Simon Josefsson in
67762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67763
67764 2007-01-14  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/allocsa-tests: New file.
67767         * tests/test-allocsa.c: New file.
67768
67769 2007-01-14  Bruno Haible  <bruno@clisp.org>
67770
67771         * modules/fchdir (Depends-on): Add absolute-header.
67772         * modules/unistd (Depends-on): Likewise.
67773
67774 2006-12-30  Bruno Haible  <bruno@clisp.org>
67775
67776         * modules/fchdir: New file.
67777         * modules/unistd (Files): Add lib/unistd_.h.
67778         (Makefile.am): Generate unistd.h from unistd_.h.
67779         * lib/fchdir.c: New file.
67780         * lib/dirent_.h: New file.
67781         * lib/unistd_.h: New file.
67782         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67783         * m4/fchdir.m4: New file.
67784         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67785         (gl_HEADER_UNISTD): Invoke it.
67786         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67787         function.
67788         * lib/backupfile.c (opendir, closedir): Undefine.
67789         * lib/chown.c (open, close): Undefine.
67790         * lib/clean-temp.c (open, close): Undefine.
67791         * lib/copy-file.c (open, close): Undefine.
67792         * lib/execute.c (open, close): Undefine.
67793         * lib/fsusage.c (open, close): Undefine.
67794         * lib/gc-gnulib.c (open, close): Undefine.
67795         * lib/getcwd.c (opendir, closedir): Undefine.
67796         * lib/glob.c (opendir, closedir): Undefine.
67797         * lib/javacomp.c (open, close): Undefine.
67798         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67799         * lib/openat-proc.c (open, close): Undefine.
67800         * lib/pagealign_alloc.c (open, close): Undefine.
67801         * lib/pipe.c (open, close): Undefine.
67802         * lib/progreloc.c (open, close): Undefine.
67803         * lib/savedir.c (opendir, closedir): Undefine.
67804         * lib/utime.c (open, close): Undefine.
67805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67806
67807 2007-01-10  Bruno Haible  <bruno@clisp.org>
67808
67809         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67810
67811 2007-01-12  Eric Blake  <ebb9@byu.net>
67812
67813         Provide a robust <wchar.h>.  Further simplifications are now
67814         possible in other modules, but not included here.
67815         * modules/wchar: New module.
67816         * m4/wchar.m4: New file.
67817         * lib/wchar_.h: Likewise.
67818         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67819         of the new module.
67820         * MODULES.html.sh (Extended multibyte and wide character utilities):
67821         New section.
67822
67823 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67826         to a reasonable default for memory allocation.
67827         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67828         file system that reports garbage st_size values for symlinks.
67829         Problem reported by Liyang Hu.
67830
67831 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67832
67833         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67834         Emacs .#* auto-save files).
67835
67836 2007-01-11  Bruno Haible  <bruno@clisp.org>
67837
67838         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67839         directory.
67840
67841 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         Use @...@ consistently in lib/wctype_.h.
67844         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67845         on it being set to 1 or 0.
67846         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67847         go back to AC_SUBSTing it.
67848         * modules/wctype (Makefile.am): Undo previous change.
67849
67850 2007-01-10  Eric Blake  <ebb9@byu.net>
67851
67852         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67853         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67854         * modules/wctype (Makefile.am): Likewise.
67855         Reported by Chris McGuire.
67856
67857 2007-01-10  Jim Meyering  <jim@meyering.net>
67858
67859         fts.c: a small readability/maintainability improvement
67860         * lib/fts.c (fts_read): Make this code slightly more readable and
67861         maintainable by hoisting the "sp->fts_cur = p" assignments to
67862         immediately follow the statements that set P.  Derived from
67863         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67864
67865 2007-01-10  Eric Blake  <ebb9@byu.net>
67866
67867         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67868         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67870         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67871         Reported by Chris McGuire.
67872
67873 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67874
67875         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67876         in sed script.
67877
67878 2007-01-09  Bruno Haible  <bruno@clisp.org>
67879
67880         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67881         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67882         variables.
67883         (func_module): Use them.
67884
67885 2007-01-09  Bruno Haible  <bruno@clisp.org>
67886
67887         * modules/unistr/base: New file.
67888         * lib/unistr.h: New file.
67889
67890         * modules/unistr/u8-to-u16: New file.
67891         * lib/unistr/u8-to-u16.c: New file.
67892
67893         * modules/unistr/u8-to-u32: New file.
67894         * lib/unistr/u8-to-u32.c: New file.
67895
67896         * modules/unistr/u16-to-u8: New file.
67897         * lib/unistr/u16-to-u8.c: New file.
67898
67899         * modules/unistr/u16-to-u32: New file.
67900         * lib/unistr/u16-to-u32.c: New file.
67901
67902         * modules/unistr/u32-to-u8: New file.
67903         * lib/unistr/u32-to-u8.c: New file.
67904
67905         * modules/unistr/u32-to-u16: New file.
67906         * lib/unistr/u32-to-u16.c: New file.
67907
67908         * modules/unistr/u8-check: New file.
67909         * modules/unistr/u16-check: New file.
67910         * modules/unistr/u32-check: New file.
67911         * lib/unistr/u8-check.c: New file.
67912         * lib/unistr/u16-check.c: New file.
67913         * lib/unistr/u32-check.c: New file.
67914
67915         * modules/unistr/u8-chr: New file.
67916         * modules/unistr/u16-chr: New file.
67917         * modules/unistr/u32-chr: New file.
67918         * lib/unistr/u8-chr.c: New file.
67919         * lib/unistr/u16-chr.c: New file.
67920         * lib/unistr/u32-chr.c: New file.
67921
67922         * modules/unistr/u8-cmp: New file.
67923         * modules/unistr/u16-cmp: New file.
67924         * modules/unistr/u32-cmp: New file.
67925         * lib/unistr/u8-cmp.c: New file.
67926         * lib/unistr/u16-cmp.c: New file.
67927         * lib/unistr/u32-cmp.c: New file.
67928
67929         * modules/unistr/u8-cpy: New file.
67930         * modules/unistr/u16-cpy: New file.
67931         * modules/unistr/u32-cpy: New file.
67932         * lib/unistr/u8-cpy.c: New file.
67933         * lib/unistr/u16-cpy.c: New file.
67934         * lib/unistr/u32-cpy.c: New file.
67935         * lib/unistr/u-cpy.h: New file.
67936
67937         * modules/unistr/u8-cpy-alloc: New file.
67938         * modules/unistr/u16-cpy-alloc: New file.
67939         * modules/unistr/u32-cpy-alloc: New file.
67940         * lib/unistr/u8-cpy-alloc.c: New file.
67941         * lib/unistr/u16-cpy-alloc.c: New file.
67942         * lib/unistr/u32-cpy-alloc.c: New file.
67943         * lib/unistr/u-cpy-alloc.h: New file.
67944
67945         * modules/unistr/u8-endswith: New file.
67946         * modules/unistr/u16-endswith: New file.
67947         * modules/unistr/u32-endswith: New file.
67948         * lib/unistr/u8-endswith.c: New file.
67949         * lib/unistr/u16-endswith.c: New file.
67950         * lib/unistr/u32-endswith.c: New file.
67951         * lib/unistr/u-endswith.h: New file.
67952
67953         * modules/unistr/u8-mblen: New file.
67954         * modules/unistr/u16-mblen: New file.
67955         * modules/unistr/u32-mblen: New file.
67956         * lib/unistr/u8-mblen.c: New file.
67957         * lib/unistr/u16-mblen.c: New file.
67958         * lib/unistr/u32-mblen.c: New file.
67959
67960         * modules/unistr/u8-mbtouc: New file.
67961         * modules/unistr/u16-mbtouc: New file.
67962         * modules/unistr/u32-mbtouc: New file.
67963         * lib/unistr/u8-mbtouc.c: New file.
67964         * lib/unistr/u16-mbtouc.c: New file.
67965         * lib/unistr/u32-mbtouc.c: New file.
67966
67967         * modules/unistr/u8-mbtouc-safe: New file.
67968         * modules/unistr/u16-mbtouc-safe: New file.
67969         * modules/unistr/u32-mbtouc-safe: New file.
67970         * lib/unistr/u8-mbtouc-safe.c: New file.
67971         * lib/unistr/u16-mbtouc-safe.c: New file.
67972         * lib/unistr/u32-mbtouc-safe.c: New file.
67973
67974         * modules/unistr/u8-move: New file.
67975         * modules/unistr/u16-move: New file.
67976         * modules/unistr/u32-move: New file.
67977         * lib/unistr/u8-move.c: New file.
67978         * lib/unistr/u16-move.c: New file.
67979         * lib/unistr/u32-move.c: New file.
67980         * lib/unistr/u-move.h: New file.
67981
67982         * modules/unistr/u8-next: New file.
67983         * modules/unistr/u16-next: New file.
67984         * modules/unistr/u32-next: New file.
67985         * lib/unistr/u8-next.c: New file.
67986         * lib/unistr/u16-next.c: New file.
67987         * lib/unistr/u32-next.c: New file.
67988
67989         * modules/unistr/u8-prev: New file.
67990         * modules/unistr/u16-prev: New file.
67991         * modules/unistr/u32-prev: New file.
67992         * lib/unistr/u8-prev.c: New file.
67993         * lib/unistr/u16-prev.c: New file.
67994         * lib/unistr/u32-prev.c: New file.
67995
67996         * modules/unistr/u8-set: New file.
67997         * modules/unistr/u16-set: New file.
67998         * modules/unistr/u32-set: New file.
67999         * lib/unistr/u8-set.c: New file.
68000         * lib/unistr/u16-set.c: New file.
68001         * lib/unistr/u32-set.c: New file.
68002         * lib/unistr/u-set.h: New file.
68003
68004         * modules/unistr/u8-startswith: New file.
68005         * modules/unistr/u16-startswith: New file.
68006         * modules/unistr/u32-startswith: New file.
68007         * lib/unistr/u8-startswith.c: New file.
68008         * lib/unistr/u16-startswith.c: New file.
68009         * lib/unistr/u32-startswith.c: New file.
68010         * lib/unistr/u-startswith.h: New file.
68011
68012         * modules/unistr/u8-stpcpy: New file.
68013         * modules/unistr/u16-stpcpy: New file.
68014         * modules/unistr/u32-stpcpy: New file.
68015         * lib/unistr/u8-stpcpy.c: New file.
68016         * lib/unistr/u16-stpcpy.c: New file.
68017         * lib/unistr/u32-stpcpy.c: New file.
68018         * lib/unistr/u-stpcpy.h: New file.
68019
68020         * modules/unistr/u8-stpncpy: New file.
68021         * modules/unistr/u16-stpncpy: New file.
68022         * modules/unistr/u32-stpncpy: New file.
68023         * lib/unistr/u8-stpncpy.c: New file.
68024         * lib/unistr/u16-stpncpy.c: New file.
68025         * lib/unistr/u32-stpncpy.c: New file.
68026         * lib/unistr/u-stpncpy.h: New file.
68027
68028         * modules/unistr/u8-strcat: New file.
68029         * modules/unistr/u16-strcat: New file.
68030         * modules/unistr/u32-strcat: New file.
68031         * lib/unistr/u8-strcat.c: New file.
68032         * lib/unistr/u16-strcat.c: New file.
68033         * lib/unistr/u32-strcat.c: New file.
68034         * lib/unistr/u-strcat.h: New file.
68035
68036         * modules/unistr/u8-strchr: New file.
68037         * modules/unistr/u16-strchr: New file.
68038         * modules/unistr/u32-strchr: New file.
68039         * lib/unistr/u8-strchr.c: New file.
68040         * lib/unistr/u16-strchr.c: New file.
68041         * lib/unistr/u32-strchr.c: New file.
68042
68043         * modules/unistr/u8-strcmp: New file.
68044         * modules/unistr/u16-strcmp: New file.
68045         * modules/unistr/u32-strcmp: New file.
68046         * lib/unistr/u8-strcmp.c: New file.
68047         * lib/unistr/u16-strcmp.c: New file.
68048         * lib/unistr/u32-strcmp.c: New file.
68049
68050         * modules/unistr/u8-strcpy: New file.
68051         * modules/unistr/u16-strcpy: New file.
68052         * modules/unistr/u32-strcpy: New file.
68053         * lib/unistr/u8-strcpy.c: New file.
68054         * lib/unistr/u16-strcpy.c: New file.
68055         * lib/unistr/u32-strcpy.c: New file.
68056         * lib/unistr/u-strcpy.h: New file.
68057
68058         * modules/unistr/u8-strcspn: New file.
68059         * modules/unistr/u16-strcspn: New file.
68060         * modules/unistr/u32-strcspn: New file.
68061         * lib/unistr/u8-strcspn.c: New file.
68062         * lib/unistr/u16-strcspn.c: New file.
68063         * lib/unistr/u32-strcspn.c: New file.
68064         * lib/unistr/u-strcspn.h: New file.
68065
68066         * modules/unistr/u8-strdup: New file.
68067         * modules/unistr/u16-strdup: New file.
68068         * modules/unistr/u32-strdup: New file.
68069         * lib/unistr/u8-strdup.c: New file.
68070         * lib/unistr/u16-strdup.c: New file.
68071         * lib/unistr/u32-strdup.c: New file.
68072         * lib/unistr/u-strdup.h: New file.
68073
68074         * modules/unistr/u8-strlen: New file.
68075         * modules/unistr/u16-strlen: New file.
68076         * modules/unistr/u32-strlen: New file.
68077         * lib/unistr/u8-strlen.c: New file.
68078         * lib/unistr/u16-strlen.c: New file.
68079         * lib/unistr/u32-strlen.c: New file.
68080         * lib/unistr/u-strlen.h: New file.
68081
68082         * modules/unistr/u8-strmblen: New file.
68083         * modules/unistr/u16-strmblen: New file.
68084         * modules/unistr/u32-strmblen: New file.
68085         * lib/unistr/u8-strmblen.c: New file.
68086         * lib/unistr/u16-strmblen.c: New file.
68087         * lib/unistr/u32-strmblen.c: New file.
68088
68089         * modules/unistr/u8-strmbtouc: New file.
68090         * modules/unistr/u16-strmbtouc: New file.
68091         * modules/unistr/u32-strmbtouc: New file.
68092         * lib/unistr/u8-strmbtouc.c: New file.
68093         * lib/unistr/u16-strmbtouc.c: New file.
68094         * lib/unistr/u32-strmbtouc.c: New file.
68095
68096         * modules/unistr/u8-strncat: New file.
68097         * modules/unistr/u16-strncat: New file.
68098         * modules/unistr/u32-strncat: New file.
68099         * lib/unistr/u8-strncat.c: New file.
68100         * lib/unistr/u16-strncat.c: New file.
68101         * lib/unistr/u32-strncat.c: New file.
68102         * lib/unistr/u-strncat.h: New file.
68103
68104         * modules/unistr/u8-strncmp: New file.
68105         * modules/unistr/u16-strncmp: New file.
68106         * modules/unistr/u32-strncmp: New file.
68107         * lib/unistr/u8-strncmp.c: New file.
68108         * lib/unistr/u16-strncmp.c: New file.
68109         * lib/unistr/u32-strncmp.c: New file.
68110
68111         * modules/unistr/u8-strncpy: New file.
68112         * modules/unistr/u16-strncpy: New file.
68113         * modules/unistr/u32-strncpy: New file.
68114         * lib/unistr/u8-strncpy.c: New file.
68115         * lib/unistr/u16-strncpy.c: New file.
68116         * lib/unistr/u32-strncpy.c: New file.
68117         * lib/unistr/u-strncpy.h: New file.
68118
68119         * modules/unistr/u8-strnlen: New file.
68120         * modules/unistr/u16-strnlen: New file.
68121         * modules/unistr/u32-strnlen: New file.
68122         * lib/unistr/u8-strnlen.c: New file.
68123         * lib/unistr/u16-strnlen.c: New file.
68124         * lib/unistr/u32-strnlen.c: New file.
68125         * lib/unistr/u-strnlen.h: New file.
68126
68127         * modules/unistr/u8-strpbrk: New file.
68128         * modules/unistr/u16-strpbrk: New file.
68129         * modules/unistr/u32-strpbrk: New file.
68130         * lib/unistr/u8-strpbrk.c: New file.
68131         * lib/unistr/u16-strpbrk.c: New file.
68132         * lib/unistr/u32-strpbrk.c: New file.
68133         * lib/unistr/u-strpbrk.h: New file.
68134
68135         * modules/unistr/u8-strrchr: New file.
68136         * modules/unistr/u16-strrchr: New file.
68137         * modules/unistr/u32-strrchr: New file.
68138         * lib/unistr/u8-strrchr.c: New file.
68139         * lib/unistr/u16-strrchr.c: New file.
68140         * lib/unistr/u32-strrchr.c: New file.
68141
68142         * modules/unistr/u8-strspn: New file.
68143         * modules/unistr/u16-strspn: New file.
68144         * modules/unistr/u32-strspn: New file.
68145         * lib/unistr/u8-strspn.c: New file.
68146         * lib/unistr/u16-strspn.c: New file.
68147         * lib/unistr/u32-strspn.c: New file.
68148         * lib/unistr/u-strspn.h: New file.
68149
68150         * modules/unistr/u8-strstr: New file.
68151         * modules/unistr/u16-strstr: New file.
68152         * modules/unistr/u32-strstr: New file.
68153         * lib/unistr/u8-strstr.c: New file.
68154         * lib/unistr/u16-strstr.c: New file.
68155         * lib/unistr/u32-strstr.c: New file.
68156         * lib/unistr/u-strstr.h: New file.
68157
68158         * modules/unistr/u8-strtok: New file.
68159         * modules/unistr/u16-strtok: New file.
68160         * modules/unistr/u32-strtok: New file.
68161         * lib/unistr/u8-strtok.c: New file.
68162         * lib/unistr/u16-strtok.c: New file.
68163         * lib/unistr/u32-strtok.c: New file.
68164         * lib/unistr/u-strtok.h: New file.
68165
68166         * modules/unistr/u8-uctomb: New file.
68167         * modules/unistr/u16-uctomb: New file.
68168         * modules/unistr/u32-uctomb: New file.
68169         * lib/unistr/u8-uctomb.c: New file.
68170         * lib/unistr/u16-uctomb.c: New file.
68171         * lib/unistr/u32-uctomb.c: New file.
68172
68173         * MODULES.html.sh (Unicode string functions): Add the new modules.
68174
68175 2007-01-08  Bruno Haible  <bruno@clisp.org>
68176
68177         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68178         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68179         subdirectories.
68180
68181 2007-01-08  Karl Berry  <karl@gnu.org>
68182
68183         * doc/error.texi: mention that main() fns must set program_name
68184         when progname is used.
68185
68186 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68189         WCTYPE_H is empty, for the benefit of builds from non-distclean
68190         directories.  Problem reported by Eric Blake in
68191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68192
68193 2007-01-08  Bruno Haible  <bruno@clisp.org>
68194
68195         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68196         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68197         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68198         PROVIDE_CANONICALIZE_FILENAME_MODE.
68199         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68200
68201 2007-01-08  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68204         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68205         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68206         * lib/fts.c: Likewise.
68207         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68208
68209 2006-12-25  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/utf8-ucs4-safe: New file.
68212         * lib/utf8-ucs4-safe.h: New file.
68213         * lib/unistr/utf8-ucs4-safe.c: New file.
68214
68215         * modules/utf16-ucs4-safe: New file.
68216         * lib/utf16-ucs4-safe.h: New file.
68217         * lib/unistr/utf16-ucs4-safe.c: New file.
68218
68219         * MODULES.html.sh (Unicode string functions): Add the new modules.
68220
68221 2007-01-08  Bruno Haible  <bruno@clisp.org>
68222
68223         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68224         (Depends-on): Add unitypes.
68225         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68226         (u8_mbtouc_aux): Move out to separate file.
68227         (u8_mbtouc): Use ucs4_t, uint8_t types.
68228         * lib/unistr/utf8-ucs4.c: New file.
68229
68230         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68231         (Depends-on): Add unitypes.
68232         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68233         (u16_mbtouc_aux): Move out to separate file.
68234         (u16_mbtouc): Use ucs4_t, uint16_t types.
68235         * lib/unistr/utf16-ucs4.c: New file.
68236
68237         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68238         (Depends-on): Add unitypes.
68239         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68240         (u8_uctomb_aux): Move out to separate file.
68241         (u8_uctomb): Use ucs4_t, uint8_t types.
68242         * lib/unistr/ucs4-utf8.c: New file.
68243
68244         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68245         (Depends-on): Add unitypes.
68246         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68247         (u16_uctomb_aux): Move out to separate file.
68248         (u16_uctomb): Use ucs4_t, uint16_t types.
68249         * lib/unistr/ucs4-utf16.c: New file.
68250
68251 2006-12-25  Bruno Haible  <bruno@clisp.org>
68252
68253         * modules/unitypes: New file.
68254         * lib/unitypes.h: New file.
68255         * MODULES.html.sh (func_all_modules): New section "Unicode string
68256         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68257         this section. Add unitypes.
68258
68259 2007-01-08  Bruno Haible  <bruno@clisp.org>
68260
68261         Avoid variable names that conflict with those from libtool.
68262         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68263         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68264         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68265         library_names_spec to acl_library_names_spec, hardcode_* to
68266         acl_hardcode_*.
68267         Reported by Ralf Wildenhues.
68268
68269 2007-01-08  Bruno Haible  <bruno@clisp.org>
68270
68271         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68272         definition.
68273         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68274         definition.
68275         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68276         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68277         definition.
68278         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68279         definition.
68280         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68281         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68282         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68283         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68284         definition.
68285         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68286         definition.
68287         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68288         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68289         GC_USE_<algorithm>.
68290         * lib/gc-libgcrypt.c: Likewise.
68291         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68292         * modules/gc-arctwo (configure.ac): Likewise.
68293         * modules/gc-des (configure.ac): Likewise.
68294         * modules/gc-hmac-md5 (configure.ac): Likewise.
68295         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68296         * modules/gc-md2 (configure.ac): Likewise.
68297         * modules/gc-md4 (configure.ac): Likewise.
68298         * modules/gc-md5 (configure.ac): Likewise.
68299         * modules/gc-random (configure.ac): Likewise.
68300         * modules/gc-rijndael (configure.ac): Likewise.
68301         * modules/gc-sha1 (configure.ac): Likewise.
68302
68303 2007-01-08  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68306         macro definition.
68307         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68308         definition.
68309         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68310         definition.
68311         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68312         * modules/fcntl-safer (configure.ac): Likewise.
68313         * modules/fopen-safer (configure.ac): Likewise.
68314         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68315         GNULIB_FWRITEERROR macro definition.
68316
68317 2007-01-08  Bruno Haible  <bruno@clisp.org>
68318
68319         * m4/gnulib-common.m4: New file.
68320         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68321         (func_get_filelist): Add m4/gnulib-common.m4.
68322
68323 2007-01-08  Bruno Haible  <bruno@clisp.org>
68324
68325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68326         command.
68327
68328 2007-01-08  Jim Meyering  <jim@meyering.net>
68329
68330         Use a more robust test for a "can't happen" condition.
68331         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68332         narrowed the st_size value.  Presuming the "can't happen" condition
68333         is true, that narrowing could conceivably convert an invalid st_size
68334         value into a valid one.  Instead, use a change based on Matthew
68335         Woehlke's original patch.
68336
68337         Slight readability improvement: use an assert-like macro
68338         in place of literal "abort ()" uses.
68339         * lib/fts.c (fts_assert): Define.
68340         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68341         Use this macro instead of a bare 'abort'.
68342
68343 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68346         simply work around them.
68347         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68348         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68349         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68350         declaring.
68351         Don't bother to define as macros, since the standard doesn't require it.
68352         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68353         longer worry about IRIX 5.3.
68354         (HAVE_WCTYPE_CTMP_BUG): Remove.
68355
68356 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68359         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68360         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68361         Problems reported by Georg Schwarz for IRIX 5.3.
68362
68363         * gnulib-tool (autoconf_minversion): Take the maximum version number
68364         found, not the minimum.  Problem reported by James Youngman.
68365
68366 2007-01-03  Karl Berry  <karl@gnu.org>
68367
68368         * doc/error.texi: new file, explaining interaction with progname.
68369         * doc/gnulib.texi: include it.  Update copyright.
68370
68371 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68372
68373         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68374         AC_CANONICAL_HOST, to improve autobuild outputs.
68375
68376 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68377             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68378
68379         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68380         sockets, server sockets, and other file descriptors.  Count errors
68381         to compute the return value.  Reorder the code a bit to be easier
68382         to follow.  Don't set event bits that were not requested (except
68383         POLLERR and POLLHUP).
68384
68385 2007-01-01  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68388
68389 2007-01-03  Jim Meyering  <jim@meyering.net>
68390
68391         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68392
68393 2007-01-02  Bruno Haible  <bruno@clisp.org>
68394
68395         * modules/settime (Include): Require timespec.h.
68396         * modules/nanosleep (Include): Likewise.
68397
68398 2007-01-01  Bruno Haible  <bruno@clisp.org>
68399
68400         * gnulib-tool (func_emit_copyright_notice): Bump year.
68401         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68402
68403 2007-01-01  Bruno Haible  <bruno@clisp.org>
68404
68405         Improve support for OpenBSD.
68406         * build-aux/config.rpath (libname_spec): Export.
68407         (library_names_spec): New variable. Export.
68408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68409         library_names_spec from the config.rpath output. Locate shared library
68410         through the name pattern in library_names_spec.
68411
68412 2007-01-01  Eric Blake  <ebb9@byu.net>
68413
68414         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68415
68416 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68419         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68420         assume the C locale, and avoid an "eval" that could cause trouble.
68421         Problem with SORT reported by Bob Proulx.
68422
68423         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68424         Define.  Trivial patch from Henning Nielsen Lund, originally
68425         sent to bug-grep@gnu.org today.
68426
68427 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68428
68429         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68430         struct stat.  Problem reported by Henning Nielsen Lund.
68431         * lib/acl.c: Include acl.h first, to check interface.  Don't
68432         bother to include sys/types.h and sys/stat.h again.
68433
68434 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         Import the following change from libc; problem reported by
68437         Sven Verdoolaege.
68438
68439         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68440
68441         [BZ #1373]
68442         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68443
68444 2006-12-28  Jim Meyering  <jim@meyering.net>
68445
68446         * build-aux/announce-gen: Do not assume that the package
68447         builds any of tar.gz, tar.bz2, and .xdelta files.
68448         Suggestion from Simon Josefsson.
68449
68450 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68451
68452         * modules/announce-gen: New file.
68453
68454 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68457         handles its gotchas now.
68458         * lib/mbswidth.c: Likewise.
68459         * lib/wcwidth.h: Likewise.
68460         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68461         and iswcntrl; the wctype module does this stuff now.
68462         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68464         * modules/mbchar (Depends-on): Add wctype.
68465         * modules/mbswidth (Depends-on): Likewise.
68466         * modules/wcwidth (Depends-on): Likewise.
68467
68468 2006-12-27  Eric Blake  <ebb9@byu.net>
68469
68470         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68471         module uses more than what <wctype.h> is required to provide.
68472
68473 2006-12-26  Eric Blake  <ebb9@byu.net>
68474
68475         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68476
68477 2006-12-26  Eric Blake  <ebb9@byu.net>
68478
68479         * modules/absolute-header: New module.
68480         * modules/fcntl (Depends-on): Depend on it.
68481         * modules/inttypes (Depends-on): Likewise.
68482         * modules/stdint (Depends-on): Likewise.
68483         * modules/sys_stat (Depends-on): Likewise.
68484         * modules/wctype (Depends-on): Likewise.
68485         * MODULES.html.sh (Support for building libraries and
68486         executables): Document it.
68487
68488 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         * gnulib-tool (SED): Remove, undoing previous change.
68491         The problem was that it broke coreutils on Solaris, because
68492         "sed --posix" leaked into a makefile.
68493         (sed): New alias, if 'alias' and GNU sed.
68494
68495 2006-12-24  Jim Meyering  <jim@meyering.net>
68496
68497         Work around an fchownat bug in glibc-2.4:
68498         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68499         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68500         in spite of the -P option.
68501         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68502         New macros.
68503         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68504         * modules/openat (Files): Add lib/fchownat.c.
68505         * lib/openat.c (fchownat): Don't define here.  Move to...
68506         * lib/fchownat.c: ...this new file.
68507
68508 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         Fix bug reported by Bruno Haible in
68511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68512         where quotearg.c didn't compile on Mac OS X 10.2 because it
68513         lacks <wchar.h> and wint_t.
68514         * lib/wctype_.h (__wctype_wint_t): New type.
68515         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68516         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68517         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68518         Arg is now of type __wctype_wint_t, not wint_t.
68519         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68520         substitute HAVE_WINT_T.
68521         * modules/wctype (Files): Add m4/wint_t.m4.
68522         (wctype.h): Substitute HAVE_WINT_T.
68523
68524 2006-12-23  Bruno Haible  <bruno@clisp.org>
68525
68526         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68527
68528 2006-12-23  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68531         S_ISLNK.
68532         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68533         mingw.
68534
68535 2006-12-22  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/copy-file.c: Include acl.h.
68538         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68539         Close the file descriptors only after being done with copy_acl.
68540         * modules/copy-file (Depends-on): Add acl.
68541
68542 2006-12-22  Bruno Haible  <bruno@clisp.org>
68543
68544         * gnulib-tool (SED): New variable.
68545         Use $SED instead of sed everywhere.
68546
68547 2006-12-22  Bruno Haible  <bruno@clisp.org>
68548
68549         * modules/no-c++: New file.
68550         * m4/no-c++.m4: New file.
68551         * MODULES.html.sh (Support for building libraries and executables):
68552         Add no-c++.
68553
68554 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68557         Include <limits.h>, and use its INT_MAX to rewrite the
68558         j loop so that it does not overflow 'int'.  Problem reported by
68559         Ralf Wildenhues in
68560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68561         Play it safe by shifting left by 1 rather than multiplying by 2,
68562         as GCC is less likely to optimize this away when the value
68563         is signed (when it assumes overflow leads to undefined behavior).
68564         Also, don't assume time_t uses two's complement.
68565
68566 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * MODULES.html.sh: New module wctype.
68569         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68570         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68571         <wctype.h>, since the new wctype module should fix this.
68572         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68573         the wctype module should arrange for it.
68574         * lib/regex_internal.h: Likewise.
68575         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68576         since the wctype module should handle this now.
68577         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68578         * modules/fnmatch (Depends-on): Add wctype.
68579         * modules/quotearg (Depends-on): Likewise.
68580         * modules/regex (Depends-on): Likewise.
68581
68582 2006-12-19  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68585         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68586
68587 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68588
68589         * modules/savewd (Depends-on): Fix dependency on fcntl.
68590
68591 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68594         conforms to C99, rather than relying on the user's environment
68595         setting of STDINT_H.
68596
68597 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68598         and Eric Blake  <ebb9@byu.net>
68599
68600         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68601         This is more consistent with the other defines here.
68602         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68603         Port to z/OS.  Problem reported by Paul Gilmartin.
68604         Change local vars to use gl_ prefix rather than ac_.
68605         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68606         with other defines.
68607         * modules/double-slash-root: New module.
68608         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68609         (Depends-on): Add double-slash-root.
68610         * MODULES.html.sh (File system functions): Mention new module.
68611
68612 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68615         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68616         This is for the benefit of gzip, which doesn't do i18n.
68617
68618 2006-12-12  Jim Meyering  <jim@meyering.net>
68619
68620         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68621         Reported by Andreas Schwab <schwab@suse.de>.
68622
68623 2006-12-12  Bruno Haible  <bruno@clisp.org>
68624
68625         Merge these changes.
68626         2006-09-05  Bruno Haible  <bruno@clisp.org>
68627         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68628         iconv_alloc succeeded.
68629         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68630         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68631         test for " && dest " at the end - dest is always != NULL there. Call
68632         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68633         with 2xNULL arguments, also to flush the state storage. Handle the
68634         IRIX iconv behaviour. Realloc the final result, to throw away unused
68635         memory.
68636
68637 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68640         and fchmodat unconditionally, since glibc 2.4 has them.
68641         Problem reported by Arkadiusz Miskiewicz.
68642
68643 2006-12-10  Bruno Haible  <bruno@clisp.org>
68644
68645         * gnulib-tool (func_import): Show the include files only for those
68646         modules that are copied and specified.
68647         Reported by Karl Berry.
68648
68649 2006-12-08  Jim Meyering  <jim@meyering.net>
68650
68651         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68652         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68653
68654         * build-aux/announce-gen: Add two new options, both optional:
68655         --bootstrap-tools=TOOL_LIST
68656               a comma-separated list of tools, e.g.,
68657               autoconf,automake,bison,gnulib
68658         --gnulib-snapshot-date=DATE
68659               if gnulib is in the bootstrap tool list,
68660               then report this as the snapshot date.
68661               If not specified, use the current date/time.
68662               If you specify a date here, be sure it's UTC.
68663
68664 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68665
68666         * tests/test-argp-2.sh: Fix test to match actual output.
68667         (func_compare): Fix sed script to be portable.
68668
68669 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68672         workaround for this case.  It is not autoconfigured now; offhand
68673         it's hard to see how to autoconfigure it.
68674
68675 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68678         a directory that is about to be chowned.  Such a directory's
68679         initial file permissions should permit the owner only and this
68680         should not be changed until after the chown, since the group and
68681         other bits would be incorrect if they granted permission before
68682         the chown.
68683
68684         Fix porting problem for iswctype reported by Georg Schwarz in:
68685         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68686         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68687         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68688         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68689         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68690
68691 2006-12-03  Jim Meyering  <jim@meyering.net>
68692
68693         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68694         p->fts_statp may not yet be defined.
68695         (fts_read): Instead, set it in the caller, once p->fts_statp is
68696         sure to be defined, and corresponds to a top-level directory.
68697         This bug made du -x fail.  Here's the coreutils test case:
68698         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68699         Reported by Mike Frysinger.
68700
68701 2006-12-01  Jim Meyering  <jim@meyering.net>
68702
68703         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68704         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68705         Reported by Simon Josefsson.
68706
68707 2006-11-30  Jim Meyering  <jim@meyering.net>
68708
68709         * m4/warning.m4: Use the all-permissive copyright notice
68710         recommended by RMS (rather than LGPL).
68711         * m4/vararrays.m4: Likewise.
68712         * m4/flexmember.m4: Likewise.
68713
68714 2006-11-29  Bruno Haible  <bruno@clisp.org>
68715
68716         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68717         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68718         using +=.
68719         Reported by Simon Josefsson <simon@josefsson.org>.
68720
68721 2006-11-28  James Youngman <jay@gnu.org>
68722
68723         * README: Advise users that they might find the bug-gnulib@gnu.org
68724         and autotools-announce@gnu.org mailing lists useful.
68725
68726 2006-11-28  Bruno Haible  <bruno@clisp.org>
68727
68728         * m4/ptrdiff_max.m4: Remove file.
68729
68730 2006-11-21  Bruno Haible  <bruno@clisp.org>
68731
68732         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68733         _AC_COMPUTE_INT.
68734         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68735         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68736         _AC_COMPUTE_INT.
68737         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68738         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68739         _AC_COMPUTE_INT.
68740         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68741
68742 2006-11-28  Jim Meyering  <jim@meyering.net>
68743
68744         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68745         warning from "gcc -Wshadow" about shadowing the builtin.
68746
68747 2006-11-27  Bruno Haible  <bruno@clisp.org>
68748
68749         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68750         _AC_COMPUTE_INT.
68751         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68752
68753 2006-11-27  Bruno Haible  <bruno@clisp.org>
68754             Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68757
68758 2006-11-26  Bruno Haible  <bruno@clisp.org>
68759
68760         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68761         noinst_LTLIBRARIES.
68762
68763 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68764             Bruno Haible  <bruno@clisp.org>
68765
68766         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68767         if compiling with "gcc -ansi".
68768
68769 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         Fix some incompatibilities with gcc -ansi -pedantic.
68772         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68773         if compiling pedantically with GCC, unless it's C99 or later.
68774         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68775         it mishandles gcc -ansi -pedantic as well.
68776         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68777         if gcc -pedantic.
68778         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68779         initializers for struct if -pedantic, unless it's C99 or later.
68780
68781 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68782
68783         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68784         Don't close an fd more than once. Identical atimes indicate
68785         success, not failure.
68786
68787 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68788
68789         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68790
68791 2006-11-23  Jim Meyering  <jim@meyering.net>
68792
68793         * build-aux/announce-gen: New file.  From coreutils.
68794
68795 2006-11-22  Jim Meyering  <jim@meyering.net>
68796
68797         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68798         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68799         (fts_read): Use a temporary to narrow the overused st_size member
68800         before using it in a switch statement.  Reported by Matthew Woehlke.
68801
68802         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68803         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68804
68805 2006-11-20  Bruno Haible  <bruno@clisp.org>
68806
68807         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68808         changequote instead of pairs of brackets.
68809         Reported by Andreas Schwab <schwab@suse.de>.
68810
68811 2006-11-21  Jim Meyering  <jim@meyering.net>
68812
68813         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68814         so as to remain compatible with older compilers.
68815         Patch from Michael Deutschmann.
68816
68817 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         * MODULES.html.sh (File system functions): Add openat.
68820
68821         * lib/openat.h (rpl_fstatat): New macro, if
68822         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68823         (fstatat): Define to rpl_fstatat under the same conditions,
68824         unless COMPILING_FSTATAT.
68825         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68826         seems to have the bug.
68827         * lib/fstatat.c: New file.
68828         * modules/openat (Files): Add it.
68829
68830 2006-11-20  Bruno Haible  <bruno@clisp.org>
68831
68832         * Makefile: New file.
68833
68834 2006-11-20  Jim Meyering  <jim@meyering.net>
68835
68836         The beginnings of syntax-related checks for gnulib.
68837         * lib/Makefile: New file.
68838         * lib/t-idcache: New script.  Ensure that the two halves of
68839         idcache.c stay in sync.
68840
68841         * lib/idcache.c: Adjust comments in user- and group- portions to
68842         be more accurate, and to be consistent with one another.
68843
68844 2006-11-20  Jim Meyering  <jim@meyering.net>
68845
68846         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68847         continue using the flexible array member (thus, this module performs
68848         half as many malloc calls), with the addition that...
68849         (getgroup, getuser): Consistently record a non-match via an empty
68850         "name" string, and map an empty string match to a NULL return value.
68851         * modules/idcache (Depends-on): Re-add flexmember.
68852
68853         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68854         (getuidbyname, getgroup, getgidbyname): Likewise.
68855
68856         Use cleaner syntax: NULL rather than 0.
68857         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68858
68859 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68862         It mishandled the case where the group was missing.
68863         Problem reported by Greg Schafer.
68864         * modules/idcache: Likewise.
68865
68866 2006-11-18  Jim Meyering  <jim@meyering.net>
68867
68868         * check-module (%exempt_header): Add exception for some
68869         conditionally-included headers.
68870
68871         * modules/i-ring (Depends-on): Add verify.
68872         (License): Change to LGPL.
68873
68874 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68877         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68878         and inttostr.h.  Use snprintf rather than uinttostr, so that
68879         LGPLed code doesn't depend on GPLed.
68880
68881 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * modules/inline (License): Change from GPL to LGPL.
68884
68885 2006-11-17  Jim Meyering  <jim@meyering.net>
68886
68887         * modules/d-type (License): Switch to LGPL.
68888
68889 2006-11-15  Bruno Haible  <bruno@clisp.org>
68890
68891         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68892
68893 2006-11-15  Eric Blake  <ebb9@byu.net>
68894
68895         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68896         the module dependency.
68897
68898 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68899             Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (func_create_testdir): Add license consistency check.
68902
68903 2006-11-15  Eric Blake  <ebb9@byu.net>
68904
68905         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68906         random "(cached)" in configure output.
68907
68908 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68909
68910         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68911         test for conforming inttypes.h is both announced and cached.
68912
68913         * MODULES.html.sh (seen_modules, seen_files): New variables.
68914         (func_module): Rewrite to use a few less gnulib-tool and sed
68915         invocations.  Avoid a couple of quadratic algorithms for ...
68916         (missed_modules, missed_files): ... these, with ...
68917         (func_append, func_tmpdir): ... these new functions, from
68918         gnulib-tool.  Analogously, install traps for cleanup.
68919
68920         * tests/test-gc.c (main): Remove unused variables.
68921         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68922
68923 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * modules/inttostr (License): Change to LGPL.
68926
68927 2006-11-14  Eric Blake  <ebb9@byu.net>
68928
68929         * modules/tempname (License): Change to LGPL.
68930
68931 2006-11-14  Eric Blake  <ebb9@byu.net>
68932
68933         * doc/functions.texi (Function Portability): *printf functions on
68934         Cygwin now understand all POSIX size specifiers.
68935
68936 2006-11-14  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/c-ctype (License): Change to LGPL.
68939
68940 2006-11-12  Bruno Haible  <bruno@clisp.org>
68941
68942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68943         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68944         for GNOME libraries, for which the include files are installed in
68945         subdirectories of $prefix/include.
68946
68947 2006-11-12  Bruno Haible  <bruno@clisp.org>
68948
68949         * m4/lib-link.m4: Require at least autoconf-2.54.
68950         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68951         name to underscores for the --with option.
68952
68953 2006-11-13  Bruno Haible  <bruno@clisp.org>
68954
68955         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68956         the tests directory.
68957         Reported by Ralf Wildenhues.
68958
68959 2006-11-13  Bruno Haible  <bruno@clisp.org>
68960
68961         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68962         (func_emit_initmacro_end): Undo the override here.
68963         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68964         Works around the famous automake error in coreutils.
68965
68966 2006-11-13  Eric Blake  <ebb9@byu.net>
68967
68968         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68969         element, not its node.
68970
68971 2006-11-12  Bruno Haible  <bruno@clisp.org>
68972
68973         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68974         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68975
68976 2006-11-12  Bruno Haible  <bruno@clisp.org>
68977
68978         * gnulib-tool: New option --local-symlink.
68979         (func_usage): Document it.
68980         (lsymbolic): New variable.
68981         (func_import, func_create_testdir): If --symlink was not specified,
68982         test whether --local-symlink was specified and the file comes from
68983         the local_gnulib_dir.
68984
68985 2006-11-12  Bruno Haible  <bruno@clisp.org>
68986
68987         * gnulib-tool (func_ln): New function.
68988         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68989
68990 2006-11-12  Bruno Haible  <bruno@clisp.org>
68991
68992         Finish support for source files in subdirectories.
68993         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68994         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68995         AUTOMAKE_OPTIONS.
68996         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68997
68998 2006-11-12  Bruno Haible  <bruno@clisp.org>
68999
69000         * gnulib-tool (func_get_automake_snippet): Synthesize also an
69001         EXTRA_lib_SOURCES augmentation.
69002         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
69003
69004 2006-11-12  Jim Meyering  <jim@meyering.net>
69005
69006         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
69007         file descriptors.  This also averts a failure on systems with
69008         native openat support when a traversed directory lacks "x" access.
69009         * lib/fts_.h: Include "i-ring.h"
69010         (struct FTS) [fts_fd_ring]: New member.
69011         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
69012         (FCHDIR): Add parentheses.
69013         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
69014         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
69015         When descending, rather than simply closing the previous
69016         fts_cwd_fd value, push that file descriptor onto the ring.
69017         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
69018         (fts_open): Initialize the new fd_ring member.
69019         (fts_close): Clear the ring.
69020         (fts_safe_changedir): When possible, use our new fd_ring to skip
69021         the diropen and fstat and dev/ino comparison that would normally
69022         accompany a virtual `chdir ("..")'.
69023
69024         * modules/fts (Depends-on): Add i-ring.
69025         * modules/i-ring: New module.
69026         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
69027         * m4/i-ring.m4: New file.
69028
69029 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69030
69031         * gnulib-tool (func_create_testdir): Fix replacement of
69032         `build-aux' in configure.ac.  Run autotools in gltests
69033         subdirectory.
69034         (func_create_testdir, func_create_megatestdir, test): There is
69035         no need for '--force' in most autotool invocations in a new
69036         tree.  Actually fail the whole test if any of the tools, or the
69037         configure or make stages fail.
69038
69039         Sync from Automake.
69040         * build-aux/gnupload: Revert last change.  Add pointer to upload
69041         instructions of the GNU Maintenance Instructions.
69042         Suggestion by Karl Berry.
69043
69044 2006-11-10  Jim Meyering  <jim@meyering.net>
69045
69046         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
69047
69048 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
69051         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
69052         (bind_textdomain_codeset) [! ENABLE_NLS]:
69053         Evaluate all the arguments.  That way, callers get compatible behavior
69054         if the arguments have side effects.  Also, it avoids some GCC
69055         diagnostics in some cases; Joel E. Denny reported problems when Bison
69056         was configured with --enable-gcc-warnigs.
69057
69058 2006-11-10  Jim Meyering  <jim@meyering.net>
69059
69060         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
69061         relevant options in CFLAGS (like -O, -fno-inline) are taken into
69062         account.
69063
69064 2006-11-10  Jim Meyering  <jim@meyering.net>
69065
69066         * modules/inline: New file/module.
69067         * modules/xalloc (Files): Remove m4/inline.m4.
69068         (Depends-on): Add inline, instead.
69069         * modules/oset: Likewise.
69070         * modules/list: Likewise.
69071
69072 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
69075         Problem reported by Matthew Woehlke.
69076
69077 2006-11-09  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/tempname.c (gen_tempname): Remove variant that invokes
69080         __gen_tempname.
69081         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
69082         __gen_tempname.
69083
69084 2006-11-08  Bruno Haible  <bruno@clisp.org>
69085
69086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
69087         to 'yes' instead of 'cross-compiling'.
69088
69089 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * lib/quotearg.h (quotearg_free): New decl.
69092         * lib/quotearg.c (quotearg_free): New function.
69093         (slot0, nslots, slotvec0, slotvec):
69094         Now file-scope so that quotearg_free can get at them.
69095
69096 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69097
69098         Sync from Automake.
69099         * build-aux/gnupload: Add missing 'gnu' to example URL.
69100         Report by Karl Berry.
69101
69102 2006-11-08  Bruno Haible  <bruno@clisp.org>
69103
69104         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
69105         Suggested by Paul Eggert.
69106
69107 2006-11-08  Jim Meyering  <jim@meyering.net>
69108
69109         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
69110         It's already included if !_LIBC.
69111         (fts_safe_changedir): Add a comment.
69112
69113 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
69116         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
69117         Matthew Woehlke.
69118
69119         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
69120         definitions up, to avoid colliding with change below.
69121         (static_inline) [HAVE_INLINE]: New macro.
69122         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
69123         Provide extern decls when !HAVE_INLINE.  Do not define unless
69124         static_inline is defined, either by us or by xmalloc.c.  Use
69125         static_inline rather than static inline.
69126         (XCALLOC): Optimize sizeof(T) = 1 case.
69127         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
69128
69129 2006-11-07  Bruno Haible  <bruno@clisp.org>
69130
69131         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
69132         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
69133         AC_C_INLINE.
69134         * modules/xalloc (Files): Add m4/inline.m4.
69135
69136 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69137
69138         * README: Fix typo.
69139         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
69140         (Miscellanous Notes): ...from this.
69141
69142 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69145         Mention that offsetof should be used instead of sizeof.
69146         From Bruno Haible.
69147
69148 2006-11-07  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69151
69152 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69155         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69156         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69157         (gl_tree_add_before, gl_tree_add_after):
69158         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69159         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69160         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69161         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69162         (gl_linked_add_after, gl_linked_add_at): Likewise.
69163         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69164         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69165         (gl_tree_add_before, gl_tree_add_after): Likewise.
69166         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69167         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69168         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69169
69170 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69171
69172         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69173
69174 2006-11-06  Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/inline.m4: New file.
69177         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69178         * modules/list (Files): Add m4/inline.m4.
69179         * modules/oset (Files): Likewise.
69180
69181 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * lib/idcache.c: Include <stddef.h>, for offsetof.
69184         (struct userid.name): Change from char * to a flexible array member.
69185         All uses changed.
69186         * modules/idcache (Depends-on): Add flexmember.
69187
69188         * MODULES.html.sh (Core language properties): New module flexmember.
69189         * modules/flexmember, m4/flexmember.m4: New files.
69190
69191         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69192         inline functions that are identical with the old xnmalloc_inline,
69193         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69194         that we can avoid some unnecessary integer multiplications and
69195         divisions in the common case where the element size is known at
69196         compile time.
69197         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69198         needed.
69199         (xnboundedmalloc): Remove.
69200         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69201         arguments, for consistency with rest of this header.
69202         (xcharalloc): Rewrite using XNMALLOC.
69203         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69204         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69205         versions have been moved to lib/xalloc.h and renamed to be the
69206         non-*_inline versions.
69207         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69208         and xnrealloc functions, since those functions are now inline and
69209         now call us.
69210         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69211         renaming described above.
69212         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69213         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69214         captures the dependency in AC_C_INLINE.
69215
69216         New module canonicalize-lgpl, proposed by Charles Wilson in
69217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69218         with a few small changes afterwards.
69219         * MODULES.html.sh (File system functions): New module
69220         canonicalize-lgpl.
69221         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69222         and canonicalize_file_name.
69223         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69224         * modules/canonicalize-lgpl: New files.
69225
69226 2006-11-05  Bruno Haible  <bruno@clisp.org>
69227
69228         * gnulib-tool (func_import, func_create_testdir): Create directories
69229         also for files in subdirectories of lib/.
69230
69231 2006-11-05  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69234         ANSI C compliant.
69235
69236 2006-11-03  Bruno Haible  <bruno@clisp.org>
69237
69238         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69240         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69241         (xnboundedmalloc): New inline function.
69242         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69243         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69244         xmalloc.
69245         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69246         xmalloc.
69247         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69248         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69249         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69250         xmalloc.
69251         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69252         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69253         xmalloc.
69254         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69255         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69256         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69257         xmalloc.
69258         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69259         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69260         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69261         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69262         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69263         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69264         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69265
69266 2006-11-03  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/c-ctype.h [C++]: Define functions without name mangling.
69269         * lib/fwriteerror.h [C++]: Likewise.
69270         * lib/gcd.h [C++]: Likewise.
69271         * lib/linebreak.h [C++]: Likewise.
69272
69273 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69276         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69277         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69278         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69279         Check for functions and headers just once.
69280         Check for declaration of canonicalize_file_name.
69281         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69282
69283 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69284
69285         * gnulib-tool (func_import): Fix typo in actioncmd.
69286
69287 2006-11-02  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69290         newline sequence in the Makefile.am snippet as a space, like "make"
69291         does.
69292         Reported by Roger Persson <perrog@gmail.com>.
69293
69294 2006-11-01  Bruno Haible  <bruno@clisp.org>
69295
69296         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69297         already declared in <string.h>.
69298         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69299
69300 2006-11-01  Bruno Haible  <bruno@clisp.org>
69301
69302         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69303         * lib/strcase.h: Include <string.h>.
69304         (strcasecmp): Define to rpl_strcasecmp here.
69305
69306 2006-11-01  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69309
69310 2006-11-01  Eric Blake  <ebb9@byu.net>
69311
69312         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69313
69314         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69315
69316 2006-10-29  Bruno Haible  <bruno@clisp.org>
69317
69318         Make it compile in C++ mode.
69319         * lib/full-write.c (full_rw): Add a cast.
69320
69321 2006-11-01  Bruno Haible  <bruno@clisp.org>
69322
69323         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69324         be POSIX compliant.
69325         Reported by Roger Persson <perrog@gmail.com>.
69326
69327 2006-11-01  Eric Blake  <ebb9@byu.net>
69328
69329         * lib/getopt_.h: Fix comments.
69330
69331 2006-10-31  Eric Blake  <ebb9@byu.net>
69332
69333         * modules/tmpdir (Depends-on): Add sys_stat.
69334         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69335         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69336         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69337         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69338         tempname.
69339
69340 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         Avoid some C++ diagnostics reported by Bruno Haible.
69343         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69344         xmalloc.
69345         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69346         (struct slotvec): Move to top level.
69347         (quotearg_n_options): Rewrite to avoid xmalloc.
69348         * lib/xalloc.h (xcharalloc): New function.
69349         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69350         [defined __cplusplus]: Add function template that provides result
69351         type propagation.  This part of the change is from Bruno Haible.
69352
69353 2006-10-29  Bruno Haible  <bruno@clisp.org>
69354
69355         Make it compile in C++ mode.
69356         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69357         * lib/strnlen1.c (strnlen1): Cast memchr result.
69358         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69359         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69360         (create_temp_dir): Rename local variable 'template'.
69361         (compile_csharp_using_sscli): Add cast.
69362         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69363         * lib/findprog.c (find_in_path): Likewise.
69364         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69365         * lib/wait-process.c (register_slave_subprocess): Likewise.
69366
69367 2006-10-22  Bruno Haible  <bruno@clisp.org>
69368
69369         * modules/tsearch: New file.
69370         * lib/tsearch.h: New file.
69371         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69372         * m4/tsearch.m4: New file.
69373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69374
69375 2006-10-29  Eric Blake  <ebb9@byu.net>
69376
69377         * lib/arcfour.c: Assume config.h.
69378         * lib/arctwo.c: Likewise.
69379         * lib/base64.c: Likewise.
69380         * lib/check-version.c: Likewise.
69381         * lib/crc.c: Likewise.
69382         * lib/des.c: Likewise.
69383         * lib/gc-gnulib.c: Likewise.
69384         * lib/gc-libgcrypt.c: Likewise.
69385         * lib/gc-pbkdf2-sha1.c: Likewise.
69386         * lib/getaddrinfo.c: Likewise.
69387         * lib/getdelim.c: Likewise.
69388         * lib/getline.c: Likewise.
69389         * lib/hmac-md5.c: Likewise.
69390         * lib/hmac-sha1.c: Likewise.
69391         * lib/iconvme.c: Likewise.
69392         * lib/md2.c: Likewise.
69393         * lib/md4.c: Likewise.
69394         * lib/memxor.c: Likewise.
69395         * lib/read-file.c: Likewise.
69396         * lib/readline.c: Likewise.
69397         * lib/rijndael-alg-fst.c: Likewise.
69398         * lib/rijndael-api-fst.c: Likewise.
69399         * lib/xgetdomainname.c: Likewise.
69400
69401 2006-10-28  Eric Blake  <ebb9@byu.net>
69402
69403         * lib/xstrndup.c: Assume config.h.
69404
69405 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69408         stat-macros.h is now for our own macros, whereas stat_h is for
69409         macros in the <sys/stat.h> name space.
69410         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69411         (STAT_MACROS_H): Remove.
69412         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69413         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69414         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69415         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69416         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69417         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69418         Move these macros to ...
69419         * lib/stat_.h: here.  Don't include stat-macros.h.
69420         * lib/canonicalize.c: Don't include stat-macros.h.
69421         * lib/chown.c: Likewise.
69422         * lib/euidaccess.c: Likewise.
69423         * lib/file-type.c: Likewise.
69424         * lib/filemode.c: Likewise.
69425         * lib/glob.c: Likewise.
69426         * lib/isapipe.c: Likewise.
69427         * lib/lchown.c: Likewise.
69428         * lib/lstat.c: Likewise.
69429         * lib/mkdir-p.c: Likewise.
69430         * lib/rmdir.c: Likewise.
69431         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69433         unless mkdir isn't declared, to speed up 'configure'.
69434         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69435         would define all the S_* symbols.
69436         * modules/canonicalize (Depends-on):
69437         Depend on sys_stat, not stat-macros.
69438         * modules/chown: Likewise.
69439         * modules/euidaccess: Likewise.
69440         * modules/filemode: Likewise.
69441         * modules/file-type: Likewise.
69442         * modules/glob: Likewise.
69443         * modules/isapipe: Likewise.
69444         * modules/lchown: Likewise.
69445         * modules/lstat: Likewise.
69446         * modules/mkancesdirs: Likewise.
69447         * modules/rmdir: Likewise.
69448         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69449         * modules/modechange: Likewise.
69450         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69451         (configure.ac): Remove gl_STAT_MACROS.
69452         * modules/sys_stat (Depends-on): Remove stat-macros.
69453
69454 2006-10-27  Bruno Haible  <bruno@clisp.org>
69455
69456         * m4/signed.m4: Remove file.
69457         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69458         invocation.
69459         * modules/vasnprintf (Files): Remove m4/signed.m4.
69460
69461 2006-10-27  Bruno Haible  <bruno@clisp.org>
69462
69463         Update to GNU gettext 0.16.
69464         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69465         m4/inttypes-h.m4, m4/signed.m4.
69466         * m4/gettext.m4: Update to GNU gettext 0.16.
69467         * m4/intl.m4: New file, from GNU gettext.
69468         * m4/intldir.m4: New file, from GNU gettext.
69469         * config/srclist.txt: Update
69470
69471 2006-10-27  Eric Blake  <ebb9@byu.net>
69472
69473         * MODULES.html.sh: Document tempname.
69474         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69475         dependencies.
69476         (Files): Move lib/tempname.c...
69477         * modules/tempname: ...to this new module.
69478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69479         (gl_PREREQ_TEMPNAME): Move...
69480         * m4/tempname.m4: ...to this new file.
69481         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69482         * modules/sys_stat (Depends-on): Add stat-macros.
69483         * lib/stat_.h (includes): Pick up stat macros.
69484         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69485         if stat macros are broken.
69486         * lib/tempname.c (includes): No need to include "stat-macros.h".
69487         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69488         (direxists, __path_search) [!_LIBC]: Don't compile these in
69489         gnulib; the tmpdir module covers that.
69490         * lib/tempname.h: New file.
69491
69492 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * COPYING: Explain how gnulib-tool converts licence headers.
69495         Almost all wording by Eric Blake.
69496
69497 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/mbchar.h (is_basic_table): Make read-only.
69500         * lib/mbchar.c (is_basic_table): Likewise.
69501         Reported by John Darrington.
69502
69503 2006-10-25  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/progname.h (set_program_name): Undefine before defining.
69506
69507 2006-10-25  Bruno Haible  <bruno@clisp.org>
69508
69509         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69510         false for non-gcc C++ compilers.
69511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69512
69513 2006-10-24  Bruno Haible  <bruno@clisp.org>
69514
69515         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69516         iconv implementations like Irix iconv.
69517
69518 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * modules/vararrays: New file.
69521         * m4/vararrays.m4: New file, taken from diffutils.
69522         * MODULES.html.sh: New module vararrays.
69523
69524 2006-10-24  Karl Berry  <karl@gnu.org>
69525
69526         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69527         Don't call GNU Unix.
69528
69529 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69530
69531         * users.txt: Add Libtool.
69532
69533         Sync from Libtool:
69534
69535         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69538         to gnulib's policy of including config.h unconditionally.
69539
69540 2006-10-24  Bruno Haible  <bruno@clisp.org>
69541
69542         * modules/wcwidth (Files): Add m4/wint_t.m4.
69543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69544         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69545
69546 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69549         to pacify GCC with some -W flags enabled.  Problem reported by
69550         Bruno Haible.
69551
69552 2006-10-24  Jim Meyering  <jim@meyering.net>
69553
69554         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69555         Reported by Karl Berry.
69556
69557 2006-10-23  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69560
69561 2006-10-24  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/gl_list.h: Use C comment style, not C++ comment style.
69564
69565 2006-10-23  Eric Blake  <ebb9@byu.net>
69566
69567         * lib/getaddrinfo.c (includes): Add missing include.
69568
69569 2006-10-23  Bruno Haible  <bruno@clisp.org>
69570             Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         Ability to rename obstack_free.
69573         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69574         obstack_free.
69575         (obstack_free): Invoke the __obstack_free macro.
69576         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69577
69578 2006-10-23  Bruno Haible  <bruno@clisp.org>
69579             Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69582         __argc, __argv from the declaration. (They are defined as macros on
69583         mingw.)
69584
69585 2006-10-22  Bruno Haible  <bruno@clisp.org>
69586
69587         * doc/gnulib-intro.texi: New file.
69588         * doc/gnulib.texi: Include it.
69589
69590 2006-10-21  Bruno Haible  <bruno@clisp.org>
69591
69592         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69593         "Introduction", "Miscellanous Notes", "Particular Modules".
69594
69595 2006-10-21  Bruno Haible  <bruno@clisp.org>
69596
69597         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69598         Change mostlyclean-local rule to avoid sh syntax error from bash
69599         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69600
69601 2006-10-23  Jim Meyering  <jim@meyering.net>
69602
69603         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69604         in place of snprintf.
69605
69606         * modules/inttostr (Files): Add lib/uinttostr.c.
69607         * lib/uinttostr.c (inttostr): New file/function.
69608         * lib/inttostr.h (uinttostr): Declare.
69609         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69610         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69611         Add uinttostr.
69612         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69613
69614 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * lib/canonicalize.c (ELOOP): Define if not already defined.
69617         Problem reported by Bruno Haible in
69618         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69619
69620 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69621
69622         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69623         Problem reported by Perry Smith and Ville Laurikari.
69624
69625         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69626         uses.
69627
69628 2006-10-19  Bruno Haible  <bruno@clisp.org>
69629
69630         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69631         for mingw.
69632
69633 2006-10-19  Bruno Haible  <bruno@clisp.org>
69634
69635         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69636         Needed for mingw.
69637
69638 2006-10-19  Bruno Haible  <bruno@clisp.org>
69639
69640         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69641
69642 2006-10-19  Bruno Haible  <bruno@clisp.org>
69643
69644         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69645         it.
69646
69647 2006-10-19  Bruno Haible  <bruno@clisp.org>
69648
69649         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69650         invocation.
69651
69652 2006-10-19  Bruno Haible  <bruno@clisp.org>
69653
69654         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69655         mountlist by default.
69656
69657 2006-10-16  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/c-strstr.c: Include c-strstr.h.
69660
69661 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69662
69663         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69664         in a slash.
69665
69666 2006-10-18  Bruno Haible  <bruno@clisp.org>
69667
69668         * lib/lock.h [C++]: Wrap definitions in extern "C".
69669
69670 2006-10-18  Bruno Haible  <bruno@clisp.org>
69671
69672         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69673         gl_LIBOBJS list.
69674
69675 2006-10-18  Bruno Haible  <bruno@clisp.org>
69676
69677         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69678
69679 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69680
69681         * lib/xstrtol.h: Include gettext.h.
69682         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69683         Problem reported by Eric Blake.
69684         * modules/xstrtol (Depends-on): Add gettext-h.
69685
69686 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69687
69688         * lib/strftime.c (advance): New macro.
69689         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69690         incomplete type, so you can't add 0 to it.  Problem and patch
69691         reported by Eelco Dolstra for dietlibc.
69692
69693 2006-10-18  Jim Meyering  <jim@meyering.net>
69694
69695         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69696         type for a local, and rename it: s/up/user_proc/.
69697
69698 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69699
69700         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69701         READ_UTMP_USER_PROCESS.
69702         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69703
69704 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69707         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69708
69709 2006-10-17  Eric Blake  <ebb9@byu.net>
69710
69711         * lib/sigprocmask.c (sigprocmask): Fix typo.
69712
69713         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69714
69715         * modules/clean-temp (Makefile.am): Don't add to make output...
69716         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69717         config.h.
69718
69719 2006-10-17  Bruno Haible  <bruno@clisp.org>
69720
69721         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69722         differently if DEFAULT_TEXT_DOMAIN is set.
69723
69724 2006-10-16  Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/clean-temp.c: Include fwriteerror.h.
69727
69728 2006-10-16  Bruno Haible  <bruno@clisp.org>
69729
69730         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69731
69732 2006-10-16  Bruno Haible  <bruno@clisp.org>
69733
69734         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69735         * lib/sigprocmask.h: Include <sys/types.h>.
69736         (sigset_t): Use the system's definition if present.
69737
69738 2006-10-17  Eric Blake  <ebb9@byu.net>
69739
69740         * lib/xvasprintf.c (includes): Assume config.h.
69741         * lib/xasprintf.c (includes): Likewise.
69742
69743 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69746         at least as wide as intmax_t.
69747
69748 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69749
69750         (Imported from Automake.)
69751         * build-aux/gnupload: Update to version 1.1 of directive file.
69752
69753 2006-10-16  Eric Blake  <ebb9@byu.net>
69754
69755         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69756         match Automake 1.10a.
69757
69758 2006-10-14  Bruno Haible  <bruno@clisp.org>
69759
69760         * modules/sigprocmask: New file.
69761         * lib/sigprocmask.h: New file.
69762         * lib/sigprocmask.c: New file.
69763         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69764         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69765         request sigprocmask.o.
69766         (gl_PREREQ_SIGPROCMASK): New macro.
69767         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69768         (Depends-on): Add sigprocmask.
69769         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69770         gt_SIGNALBLOCKING. Test for 'raise' only once.
69771         * lib/fatal-signal.c: Include sigprocmask.h.
69772         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69773         unblock_fatal_signals): Define always.
69774         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69775         sigprocmask.
69776
69777 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         Sync from Automake.
69780         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69781         which incorrectly sets the mode of an existing destination
69782         directory.  In some cases the unpatched install-sh could do the
69783         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69784         system.  We hope this is rare in practice, but it's clearly worth
69785         fixing.  Problem reported by Alex Unleashed in
69786         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69787         Also, don't bother to check for -m bugs unless we're using -m;
69788         suggested by Stepan Kasal.
69789
69790 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69791
69792         Sync from Automake.
69793         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69794         `-c' flag, so they appear at the same position as in %FASTDEP%
69795         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69796         which ignores unknown options only after the first non-option.
69797         Bug report against M4 by Nelson H. F. Beebe.
69798
69799 2006-10-13  Jim Meyering  <jim@meyering.net>
69800
69801         Fix a bug in yesterday's change.
69802         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69803         p->fts_statp->st_dev would be used uninitialized.
69804         Ensures that we always call fts_stat on the very first entry.
69805         Miklos Szeredi reported that find -xdev stopped working.
69806
69807 2006-10-12  Bruno Haible  <bruno@clisp.org>
69808
69809         * gnulib-tool (func_get_automake_snippet): Append an automatically
69810         computed EXTRA_DIST augmentation.
69811         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69812         * modules/alloca-opt (Makefile.am): Likewise.
69813         * modules/allocsa (Makefile.am): Likewise.
69814         * modules/arcfour (Makefile.am): Likewise.
69815         * modules/arctwo (Makefile.am): Likewise.
69816         * modules/argmatch (Makefile.am): Likewise.
69817         * modules/argz (Makefile.am): Likewise.
69818         * modules/atexit (Makefile.am): Likewise.
69819         * modules/backupfile (Makefile.am): Likewise.
69820         * modules/byteswap (Makefile.am): Likewise.
69821         * modules/c-strtod (Makefile.am): Likewise.
69822         * modules/c-strtold (Makefile.am): Likewise.
69823         * modules/calloc (Makefile.am): Likewise.
69824         * modules/canon-host (Makefile.am): Likewise.
69825         * modules/canonicalize (Makefile.am): Likewise.
69826         * modules/chdir-long (Makefile.am): Likewise.
69827         * modules/chdir-safer (Makefile.am): Likewise.
69828         * modules/check-version (Makefile.am): Likewise.
69829         * modules/chown (Makefile.am): Likewise.
69830         * modules/cloexec (Makefile.am): Likewise.
69831         * modules/close-stream (Makefile.am): Likewise.
69832         * modules/closeout (Makefile.am): Likewise.
69833         * modules/crc (Makefile.am): Likewise.
69834         * modules/csharpexec (Makefile.am): Likewise.
69835         * modules/cycle-check (Makefile.am): Likewise.
69836         * modules/des (Makefile.am): Likewise.
69837         * modules/dev-ino (Makefile.am): Likewise.
69838         * modules/dirfd (Makefile.am): Likewise.
69839         * modules/dirname (Makefile.am): Likewise.
69840         * modules/dup2 (Makefile.am): Likewise.
69841         * modules/eealloc (Makefile.am): Likewise.
69842         * modules/error (Makefile.am): Likewise.
69843         * modules/euidaccess (Makefile.am): Likewise.
69844         * modules/exclude (Makefile.am): Likewise.
69845         * modules/exitfail (Makefile.am): Likewise.
69846         * modules/fcntl-safer (Makefile.am): Likewise.
69847         * modules/fcntl (Makefile.am): Likewise.
69848         * modules/file-type (Makefile.am): Likewise.
69849         * modules/fileblocks (Makefile.am): Likewise.
69850         * modules/filemode (Makefile.am): Likewise.
69851         * modules/filenamecat (Makefile.am): Likewise.
69852         * modules/fnmatch (Makefile.am): Likewise.
69853         * modules/fopen-safer (Makefile.am): Likewise.
69854         * modules/fpending (Makefile.am): Likewise.
69855         * modules/fprintftime (Makefile.am): Likewise.
69856         * modules/free (Makefile.am): Likewise.
69857         * modules/fsusage (Makefile.am): Likewise.
69858         * modules/ftruncate (Makefile.am): Likewise.
69859         * modules/fts (Makefile.am): Likewise.
69860         * modules/gc-arcfour (Makefile.am): Likewise.
69861         * modules/gc-des (Makefile.am): Likewise.
69862         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69863         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69864         * modules/gc-md4 (Makefile.am): Likewise.
69865         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69866         * modules/gc-sha1 (Makefile.am): Likewise.
69867         * modules/gc (Makefile.am): Likewise.
69868         * modules/getaddrinfo (Makefile.am): Likewise.
69869         * modules/getcwd (Makefile.am): Likewise.
69870         * modules/getdelim (Makefile.am): Likewise.
69871         * modules/getdomainname (Makefile.am): Likewise.
69872         * modules/getgroups (Makefile.am): Likewise.
69873         * modules/gethostname (Makefile.am): Likewise.
69874         * modules/gethrxtime (Makefile.am): Likewise.
69875         * modules/getline (Makefile.am): Likewise.
69876         * modules/getloadavg (Makefile.am): Likewise.
69877         * modules/getlogin_r (Makefile.am): Likewise.
69878         * modules/getndelim2 (Makefile.am): Likewise.
69879         * modules/getopt (Makefile.am): Likewise.
69880         * modules/getpagesize (Makefile.am): Likewise.
69881         * modules/getpass-gnu (Makefile.am): Likewise.
69882         * modules/getpass (Makefile.am): Likewise.
69883         * modules/getsubopt (Makefile.am): Likewise.
69884         * modules/gettime (Makefile.am): Likewise.
69885         * modules/gettimeofday (Makefile.am): Likewise.
69886         * modules/getugroups (Makefile.am): Likewise.
69887         * modules/getusershell (Makefile.am): Likewise.
69888         * modules/glob (Makefile.am): Likewise.
69889         * modules/group-member (Makefile.am): Likewise.
69890         * modules/hard-locale (Makefile.am): Likewise.
69891         * modules/hash (Makefile.am): Likewise.
69892         * modules/hmac-md5 (Makefile.am): Likewise.
69893         * modules/hmac-sha1 (Makefile.am): Likewise.
69894         * modules/human (Makefile.am): Likewise.
69895         * modules/idcache (Makefile.am): Likewise.
69896         * modules/imaxabs (Makefile.am): Likewise.
69897         * modules/imaxdiv (Makefile.am): Likewise.
69898         * modules/inet_ntop (Makefile.am): Likewise.
69899         * modules/inet_pton (Makefile.am): Likewise.
69900         * modules/intprops (Makefile.am): Likewise.
69901         * modules/inttostr (Makefile.am): Likewise.
69902         * modules/inttypes (Makefile.am): Likewise.
69903         * modules/isapipe (Makefile.am): Likewise.
69904         * modules/javaversion (Makefile.am): Likewise.
69905         * modules/lchmod (Makefile.am): Likewise.
69906         * modules/lchown (Makefile.am): Likewise.
69907         * modules/localcharset (Makefile.am): Likewise.
69908         * modules/long-options (Makefile.am): Likewise.
69909         * modules/lstat (Makefile.am): Likewise.
69910         * modules/malloc (Makefile.am): Likewise.
69911         * modules/mathl (Makefile.am): Likewise.
69912         * modules/mbchar (Makefile.am): Likewise.
69913         * modules/md2 (Makefile.am): Likewise.
69914         * modules/md4 (Makefile.am): Likewise.
69915         * modules/md5 (Makefile.am): Likewise.
69916         * modules/memcasecmp (Makefile.am): Likewise.
69917         * modules/memchr (Makefile.am): Likewise.
69918         * modules/memcmp (Makefile.am): Likewise.
69919         * modules/memcoll (Makefile.am): Likewise.
69920         * modules/memcpy (Makefile.am): Likewise.
69921         * modules/memmem (Makefile.am): Likewise.
69922         * modules/memmove (Makefile.am): Likewise.
69923         * modules/mempcpy (Makefile.am): Likewise.
69924         * modules/memrchr (Makefile.am): Likewise.
69925         * modules/memset (Makefile.am): Likewise.
69926         * modules/memxor (Makefile.am): Likewise.
69927         * modules/mkancesdirs (Makefile.am): Likewise.
69928         * modules/mkdir-p (Makefile.am): Likewise.
69929         * modules/mkdir (Makefile.am): Likewise.
69930         * modules/mkdtemp (Makefile.am): Likewise.
69931         * modules/mkstemp (Makefile.am): Likewise.
69932         * modules/mktime (Makefile.am): Likewise.
69933         * modules/modechange (Makefile.am): Likewise.
69934         * modules/mountlist (Makefile.am): Likewise.
69935         * modules/nanosleep (Makefile.am): Likewise.
69936         * modules/obstack (Makefile.am): Likewise.
69937         * modules/openat (Makefile.am): Likewise.
69938         * modules/pagealign_alloc (Makefile.am): Likewise.
69939         * modules/pathmax (Makefile.am): Likewise.
69940         * modules/physmem (Makefile.am): Likewise.
69941         * modules/poll (Makefile.am): Likewise.
69942         * modules/posixtm (Makefile.am): Likewise.
69943         * modules/posixver (Makefile.am): Likewise.
69944         * modules/putenv (Makefile.am): Likewise.
69945         * modules/quote (Makefile.am): Likewise.
69946         * modules/quotearg (Makefile.am): Likewise.
69947         * modules/raise (Makefile.am): Likewise.
69948         * modules/read-file (Makefile.am): Likewise.
69949         * modules/readline (Makefile.am): Likewise.
69950         * modules/readlink (Makefile.am): Likewise.
69951         * modules/readtokens (Makefile.am): Likewise.
69952         * modules/readutmp (Makefile.am): Likewise.
69953         * modules/realloc (Makefile.am): Likewise.
69954         * modules/regex (Makefile.am): Likewise.
69955         * modules/rename-dest-slash (Makefile.am): Likewise.
69956         * modules/rename (Makefile.am): Likewise.
69957         * modules/rijndael (Makefile.am): Likewise.
69958         * modules/rmdir (Makefile.am): Likewise.
69959         * modules/rpmatch (Makefile.am): Likewise.
69960         * modules/safe-read (Makefile.am): Likewise.
69961         * modules/safe-write (Makefile.am): Likewise.
69962         * modules/same-inode (Makefile.am): Likewise.
69963         * modules/same (Makefile.am): Likewise.
69964         * modules/save-cwd (Makefile.am): Likewise.
69965         * modules/savedir (Makefile.am): Likewise.
69966         * modules/setenv (Makefile.am): Likewise.
69967         * modules/settime (Makefile.am): Likewise.
69968         * modules/sha1 (Makefile.am): Likewise.
69969         * modules/sig2str (Makefile.am): Likewise.
69970         * modules/snprintf (Makefile.am): Likewise.
69971         * modules/stat-macros (Makefile.am): Likewise.
69972         * modules/stat-time (Makefile.am): Likewise.
69973         * modules/stdbool (Makefile.am): Likewise.
69974         * modules/stdint (Makefile.am): Likewise.
69975         * modules/stdlib-safer (Makefile.am): Likewise.
69976         * modules/stpcpy (Makefile.am): Likewise.
69977         * modules/stpncpy (Makefile.am): Likewise.
69978         * modules/strcase (Makefile.am): Likewise.
69979         * modules/strcasestr (Makefile.am): Likewise.
69980         * modules/strchrnul (Makefile.am): Likewise.
69981         * modules/strcspn (Makefile.am): Likewise.
69982         * modules/strdup (Makefile.am): Likewise.
69983         * modules/strerror (Makefile.am): Likewise.
69984         * modules/strftime (Makefile.am): Likewise.
69985         * modules/strndup (Makefile.am): Likewise.
69986         * modules/strnlen (Makefile.am): Likewise.
69987         * modules/strpbrk (Makefile.am): Likewise.
69988         * modules/strsep (Makefile.am): Likewise.
69989         * modules/strstr (Makefile.am): Likewise.
69990         * modules/strtod (Makefile.am): Likewise.
69991         * modules/strtoimax (Makefile.am): Likewise.
69992         * modules/strtok_r (Makefile.am): Likewise.
69993         * modules/strtol (Makefile.am): Likewise.
69994         * modules/strtoll (Makefile.am): Likewise.
69995         * modules/strtoul (Makefile.am): Likewise.
69996         * modules/strtoull (Makefile.am): Likewise.
69997         * modules/strtoumax (Makefile.am): Likewise.
69998         * modules/strverscmp (Makefile.am): Likewise.
69999         * modules/sys_socket (Makefile.am): Likewise.
70000         * modules/sys_stat (Makefile.am): Likewise.
70001         * modules/sysexits (Makefile.am): Likewise.
70002         * modules/time_r (Makefile.am): Likewise.
70003         * modules/timegm (Makefile.am): Likewise.
70004         * modules/timespec (Makefile.am): Likewise.
70005         * modules/tmpfile-safer (Makefile.am): Likewise.
70006         * modules/trim (Makefile.am): Likewise.
70007         * modules/unistd-safer (Makefile.am): Likewise.
70008         * modules/unlinkdir (Makefile.am): Likewise.
70009         * modules/unlocked-io (Makefile.am): Likewise.
70010         * modules/userspec (Makefile.am): Likewise.
70011         * modules/utime (Makefile.am): Likewise.
70012         * modules/utimecmp (Makefile.am): Likewise.
70013         * modules/utimens (Makefile.am): Likewise.
70014         * modules/vasnprintf (Makefile.am): Likewise.
70015         * modules/vasprintf (Makefile.am): Likewise.
70016         * modules/vsnprintf (Makefile.am): Likewise.
70017         * modules/xalloc (Makefile.am): Likewise.
70018         * modules/xgetcwd (Makefile.am): Likewise.
70019         * modules/xnanosleep (Makefile.am): Likewise.
70020         * modules/xreadlink (Makefile.am): Likewise.
70021         * modules/xstrtod (Makefile.am): Likewise.
70022         * modules/xstrtol (Makefile.am): Likewise.
70023         * modules/xstrtold (Makefile.am): Likewise.
70024         * modules/yesno (Makefile.am): Likewise.
70025         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
70026
70027 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * modules/error (Makefile.am): Distribute files through
70030         EXTRA_DIST, not lib_SOURCES.
70031
70032 2006-10-12  Eric Blake  <ebb9@byu.net>
70033
70034         * modules/error (Makefile.am): Distribute files in /lib.
70035         * modules/obstack (Makefile.am): Likewise.
70036
70037 2006-10-12  Bruno Haible  <bruno@clisp.org>
70038
70039         * modules/acl (Makefile.am): Distribute all files in lib/ through
70040         EXTRA_DIST.
70041         * modules/arcfour (Makefile.am): Likewise.
70042         * modules/arctwo (Makefile.am): Likewise.
70043         * modules/argmatch (Makefile.am): Likewise.
70044         * modules/argz (Makefile.am): Likewise.
70045         * modules/atexit (Makefile.am): Likewise.
70046         * modules/backupfile (Makefile.am): Likewise.
70047         * modules/c-strtod (Makefile.am): Likewise.
70048         * modules/c-strtold (Makefile.am): Likewise.
70049         * modules/calloc (Makefile.am): Likewise.
70050         * modules/canon-host (Makefile.am): Likewise.
70051         * modules/canonicalize (Makefile.am): Likewise.
70052         * modules/chdir-long (Makefile.am): Likewise.
70053         * modules/chdir-safer (Makefile.am): Likewise.
70054         * modules/check-version (Makefile.am): Likewise.
70055         * modules/chown (Makefile.am): Likewise.
70056         * modules/cloexec (Makefile.am): Likewise.
70057         * modules/close-stream (Makefile.am): Likewise.
70058         * modules/closeout (Makefile.am): Likewise.
70059         * modules/crc (Makefile.am): Likewise.
70060         * modules/cycle-check (Makefile.am): Likewise.
70061         * modules/des (Makefile.am): Likewise.
70062         * modules/dirfd (Makefile.am): Likewise.
70063         * modules/dirname (Makefile.am): Likewise.
70064         * modules/dup2 (Makefile.am): Likewise.
70065         * modules/euidaccess (Makefile.am): Likewise.
70066         * modules/exclude (Makefile.am): Likewise.
70067         * modules/exitfail (Makefile.am): Likewise.
70068         * modules/fcntl-safer (Makefile.am): Likewise.
70069         * modules/file-type (Makefile.am): Likewise.
70070         * modules/fileblocks (Makefile.am): Likewise.
70071         * modules/filemode (Makefile.am): Likewise.
70072         * modules/filenamecat (Makefile.am): Likewise.
70073         * modules/fnmatch (Makefile.am): Likewise.
70074         * modules/fopen-safer (Makefile.am): Likewise.
70075         * modules/fpending (Makefile.am): Likewise.
70076         * modules/fprintftime (Makefile.am): Likewise.
70077         * modules/free (Makefile.am): Likewise.
70078         * modules/fsusage (Makefile.am): Likewise.
70079         * modules/ftruncate (Makefile.am): Likewise.
70080         * modules/fts (Makefile.am): Likewise.
70081         * modules/gc (Makefile.am): Likewise.
70082         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70083         * modules/getaddrinfo (Makefile.am): Likewise.
70084         * modules/getcwd (Makefile.am): Likewise.
70085         * modules/getdelim (Makefile.am): Likewise.
70086         * modules/getdomainname (Makefile.am): Likewise.
70087         * modules/getgroups (Makefile.am): Likewise.
70088         * modules/gethostname (Makefile.am): Likewise.
70089         * modules/gethrxtime (Makefile.am): Likewise.
70090         * modules/getline (Makefile.am): Likewise.
70091         * modules/getloadavg (Makefile.am): Likewise.
70092         * modules/getlogin_r (Makefile.am): Likewise.
70093         * modules/getopt (Makefile.am): Likewise.
70094         * modules/getpass (Makefile.am): Likewise.
70095         * modules/getpass-gnu (Makefile.am): Likewise.
70096         * modules/getsubopt (Makefile.am): Likewise.
70097         * modules/gettime (Makefile.am): Likewise.
70098         * modules/gettimeofday (Makefile.am): Likewise.
70099         * modules/getugroups (Makefile.am): Likewise.
70100         * modules/getusershell (Makefile.am): Likewise.
70101         * modules/glob (Makefile.am): Likewise.
70102         * modules/group-member (Makefile.am): Likewise.
70103         * modules/hard-locale (Makefile.am): Likewise.
70104         * modules/hash (Makefile.am): Likewise.
70105         * modules/hmac-md5 (Makefile.am): Likewise.
70106         * modules/hmac-sha1 (Makefile.am): Likewise.
70107         * modules/human (Makefile.am): Likewise.
70108         * modules/idcache (Makefile.am): Likewise.
70109         * modules/imaxabs (Makefile.am): Likewise.
70110         * modules/imaxdiv (Makefile.am): Likewise.
70111         * modules/inet_ntop (Makefile.am): Likewise.
70112         * modules/inet_pton (Makefile.am): Likewise.
70113         * modules/inttostr (Makefile.am): Likewise.
70114         * modules/isapipe (Makefile.am): Likewise.
70115         * modules/lchown (Makefile.am): Likewise.
70116         * modules/long-options (Makefile.am): Likewise.
70117         * modules/lstat (Makefile.am): Likewise.
70118         * modules/malloc (Makefile.am): Likewise.
70119         * modules/mathl (Makefile.am): Likewise.
70120         * modules/mbchar (Makefile.am): Likewise.
70121         * modules/md2 (Makefile.am): Likewise.
70122         * modules/md4 (Makefile.am): Likewise.
70123         * modules/md5 (Makefile.am): Likewise.
70124         * modules/memcasecmp (Makefile.am): Likewise.
70125         * modules/memchr (Makefile.am): Likewise.
70126         * modules/memcmp (Makefile.am): Likewise.
70127         * modules/memcoll (Makefile.am): Likewise.
70128         * modules/memcpy (Makefile.am): Likewise.
70129         * modules/memmem (Makefile.am): Likewise.
70130         * modules/memmove (Makefile.am): Likewise.
70131         * modules/mempcpy (Makefile.am): Likewise.
70132         * modules/memrchr (Makefile.am): Likewise.
70133         * modules/memset (Makefile.am): Likewise.
70134         * modules/memxor (Makefile.am): Likewise.
70135         * modules/mkancesdirs (Makefile.am): Likewise.
70136         * modules/mkdir (Makefile.am): Likewise.
70137         * modules/mkdir-p (Makefile.am): Likewise.
70138         * modules/mkdtemp (Makefile.am): Likewise.
70139         * modules/mkstemp (Makefile.am): Likewise.
70140         * modules/mktime (Makefile.am): Likewise.
70141         * modules/modechange (Makefile.am): Likewise.
70142         * modules/mountlist (Makefile.am): Likewise.
70143         * modules/nanosleep (Makefile.am): Likewise.
70144         * modules/openat (Makefile.am): Likewise.
70145         * modules/pagealign_alloc (Makefile.am): Likewise.
70146         * modules/physmem (Makefile.am): Likewise.
70147         * modules/poll (Makefile.am): Likewise.
70148         * modules/posixtm (Makefile.am): Likewise.
70149         * modules/posixver (Makefile.am): Likewise.
70150         * modules/putenv (Makefile.am): Likewise.
70151         * modules/quote (Makefile.am): Likewise.
70152         * modules/quotearg (Makefile.am): Likewise.
70153         * modules/raise (Makefile.am): Likewise.
70154         * modules/read-file (Makefile.am): Likewise.
70155         * modules/readline (Makefile.am): Likewise.
70156         * modules/readlink (Makefile.am): Likewise.
70157         * modules/readtokens (Makefile.am): Likewise.
70158         * modules/readutmp (Makefile.am): Likewise.
70159         * modules/realloc (Makefile.am): Likewise.
70160         * modules/regex (Makefile.am): Likewise.
70161         * modules/rename (Makefile.am): Likewise.
70162         * modules/rename-dest-slash (Makefile.am): Likewise.
70163         * modules/rijndael (Makefile.am): Likewise.
70164         * modules/rmdir (Makefile.am): Likewise.
70165         * modules/rpmatch (Makefile.am): Likewise.
70166         * modules/safe-read (Makefile.am): Likewise.
70167         * modules/safe-write (Makefile.am): Likewise.
70168         * modules/same (Makefile.am): Likewise.
70169         * modules/save-cwd (Makefile.am): Likewise.
70170         * modules/savedir (Makefile.am): Likewise.
70171         * modules/setenv (Makefile.am): Likewise.
70172         * modules/settime (Makefile.am): Likewise.
70173         * modules/sha1 (Makefile.am): Likewise.
70174         * modules/sig2str (Makefile.am): Likewise.
70175         * modules/snprintf (Makefile.am): Likewise.
70176         * modules/stdlib-safer (Makefile.am): Likewise.
70177         * modules/stpcpy (Makefile.am): Likewise.
70178         * modules/stpncpy (Makefile.am): Likewise.
70179         * modules/strcase (Makefile.am): Likewise.
70180         * modules/strcasestr (Makefile.am): Likewise.
70181         * modules/strchrnul (Makefile.am): Likewise.
70182         * modules/strcspn (Makefile.am): Likewise.
70183         * modules/strdup (Makefile.am): Likewise.
70184         * modules/strerror (Makefile.am): Likewise.
70185         * modules/strftime (Makefile.am): Likewise.
70186         * modules/strndup (Makefile.am): Likewise.
70187         * modules/strnlen (Makefile.am): Likewise.
70188         * modules/strpbrk (Makefile.am): Likewise.
70189         * modules/strsep (Makefile.am): Likewise.
70190         * modules/strstr (Makefile.am): Likewise.
70191         * modules/strtod (Makefile.am): Likewise.
70192         * modules/strtoimax (Makefile.am): Likewise.
70193         * modules/strtok_r (Makefile.am): Likewise.
70194         * modules/strtol (Makefile.am): Likewise.
70195         * modules/strtoll (Makefile.am): Likewise.
70196         * modules/strtoul (Makefile.am): Likewise.
70197         * modules/strtoull (Makefile.am): Likewise.
70198         * modules/strtoumax (Makefile.am): Likewise.
70199         * modules/strverscmp (Makefile.am): Likewise.
70200         * modules/time_r (Makefile.am): Likewise.
70201         * modules/timegm (Makefile.am): Likewise.
70202         * modules/tmpfile-safer (Makefile.am): Likewise.
70203         * modules/unistd-safer (Makefile.am): Likewise.
70204         * modules/unlinkdir (Makefile.am): Likewise.
70205         * modules/userspec (Makefile.am): Likewise.
70206         * modules/utime (Makefile.am): Likewise.
70207         * modules/utimecmp (Makefile.am): Likewise.
70208         * modules/utimens (Makefile.am): Likewise.
70209         * modules/vasnprintf (Makefile.am): Likewise.
70210         * modules/vasprintf (Makefile.am): Likewise.
70211         * modules/vsnprintf (Makefile.am): Likewise.
70212         * modules/xalloc (Makefile.am): Likewise.
70213         * modules/xgetcwd (Makefile.am): Likewise.
70214         * modules/xnanosleep (Makefile.am): Likewise.
70215         * modules/xreadlink (Makefile.am): Likewise.
70216         * modules/xstrtod (Makefile.am): Likewise.
70217         * modules/xstrtol (Makefile.am): Likewise.
70218         * modules/xstrtold (Makefile.am): Likewise.
70219         * modules/yesno (Makefile.am): Likewise.
70220
70221 2006-10-12  Jim Meyering  <jim@meyering.net>
70222
70223         * m4/getloadavg.m4: Revert the change below.
70224
70225         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70226         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70227         fail with a symlink, which is what coreutils' ./bootstrap now
70228         creates by default.
70229
70230 2006-10-12  Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70233         mingw.
70234         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70235         MSVC and mingw explicitly.
70236
70237 2006-10-11  Simon Josefsson  <jas@extundo.com>
70238             Bruno Haible  <bruno@clisp.org>
70239
70240         Add support for multiple gnulib-tool invocations in the scope of a
70241         single configure.ac file.
70242         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70243         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70244         with the same contents as the _LIBADD variable.
70245         (func_emit_initmacro_start, func_emit_initmacro_end,
70246         func_emit_initmacro_done): New functions.
70247         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70248         gl_LIBOBJS and gl_LTLIBOBJS.
70249
70250 2006-10-11  Bruno Haible  <bruno@clisp.org>
70251
70252         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70253         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70254         autoreconf. Instead, invoke autopoint explicitly but move back the
70255         *.m4 files from gnulib.
70256
70257 2006-10-11  Bruno Haible  <bruno@clisp.org>
70258
70259         * gnulib-tool (func_usage): Make module names after --create-testdir
70260         optional.
70261         (func_create_testdir): If no module was specified, use nearly all
70262         modules.
70263
70264 2006-10-12  Jim Meyering  <jim@meyering.net>
70265
70266         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70267         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70268         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70269         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70270         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70271         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70272         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70273         (fts_set_stat_required): New function.
70274         (fts_open): Defer the calls to fts_stat, if possible or requested.
70275         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70276         into fts_stat itself.
70277         (fts_read): Perform any required (deferred) fts_stat call.
70278         (fts_build): Likewise, for the directory we're about to open and read.
70279         In the readdir loop, carefully decide whether each entry will require
70280         an eventual call to fts_stat, using dirent.d_type info if available.
70281         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70282         a command line argument into this function.  Update all callers.
70283         Map a return value of FTS_DOT to FTS_D for a command line argument.
70284         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70285         Thanks to Miklos Szeredi for his tenacity and for the initial
70286         bug report about "find" failing on a FUSE-based file system.
70287
70288         * lib/fts.c (fts_open): Use consistent indentation.
70289
70290 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70293         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70294         reported by Jim Meyering.  All uses of cache variables renamed
70295         to match Autoconf's.
70296         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70297         the other one.
70298
70299         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70300         Fix misspelling in diagnostic.
70301
70302 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70303
70304         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70305         defined.  Problem reported by Matthew Woehlke.
70306
70307         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70308         Add support for Tandem NonStop R series.
70309         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70310         Use new macro.
70311
70312         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70313         (has_trailing_slash): Omit size arg; all callers changed.
70314         Omit 'inline', since it doesn't help performance and we'd
70315         need to configure it.
70316         Don't count //, ///, etc. as having a trailing slash.
70317         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70318         (rpl_rename_dest_slash): On failure, use rename's errno rather
70319         than (in some cases) an incorrect or junk errno.
70320         Simplify code by removing need to compute length; this does
70321         cause it to make two passes instead of one over the file name,
70322         but it's worth it.
70323
70324         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70325         change, since Autoconf's version may no longer be appropriate now
70326         that we are using CVS Autoconf's version.  Add support for Tandem.
70327
70328 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70329             Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70332         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70333         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70334         gl_AC_TYPE_LONG_LONG.
70335
70336         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70337         instead of HAVE_LONG_LONG.
70338         * lib/printf-args.c (printf_fetchargs): Likewise.
70339         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70340         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70341         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70342         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70343         gl_AC_TYPE_LONG_LONG.
70344
70345 2006-10-11  Bruno Haible  <bruno@clisp.org>
70346
70347         * m4/longlong.m4: Add comments.
70348         * m4/ulonglong.m4: Likewise.
70349
70350 2006-10-10  Bruno Haible  <bruno@clisp.org>
70351
70352         Make it possible to #define stpcpy, strdup to aliases.
70353         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70354         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70355
70356 2006-10-10  Bruno Haible  <bruno@clisp.org>
70357
70358         Make it possible to #define gcd to an alias.
70359         * lib/gcd.c: Include config.h.
70360
70361 2006-10-10  Bruno Haible  <bruno@clisp.org>
70362
70363         Make it possible to #define c_isascii to an alias.
70364         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70365         defined. Undefine the macros before defining them, to avoid gcc
70366         warnings.
70367         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70368         define NO_C_CTYPE_MACROS early.
70369
70370 2006-10-10  Bruno Haible  <bruno@clisp.org>
70371
70372         Make it possible to #define set_program_name to an alias.
70373         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70374         ENABLE_RELOCATABLE early.
70375
70376 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70379         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70380         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70381         More generally, don't assume that 64-bit signed int is available
70382         if unsigned int is, and vice versa.
70383         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70384         unsigned symbols, not on their signed counterparts.
70385         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70386         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70387         (UINT64_C, UINTMAX_C):
70388         Likewise.
70389         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70390         unsigned counterparts.
70391         (Have_long_long, Unsigned): New macros.
70392         (Int): Renamed from INT.
70393         (strtoimax): Use the new macros.
70394         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70395         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70396         * modules/inttypes (inttypes.h): Substitute
70397         HAVE_UNSIGNED_LONG_LONG_INT.
70398         * modules/stdint (stdint.h): Likewise.
70399         (Files): Add m4/ulonglong.m4.
70400
70401 2006-10-10  Bruno Haible  <bruno@clisp.org>
70402
70403         Fix a gcc -Wshadow warning.
70404         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70405         to 'bucket'.
70406         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70407         gl_linked_indexof_from_to): Likewise.
70408         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70409         Likewise.
70410         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70411         Likewise.
70412         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70413         Reported by Eric Blake.
70414
70415 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70418         for NetBSD.  Problem reported by Bruno Haible.
70419
70420 2006-10-09  Jim Meyering  <jim@meyering.net>
70421
70422         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70423         Patch from Bruno Haible.
70424
70425 2006-10-09  Jim Meyering  <jim@meyering.net>
70426
70427         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70428         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70429         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70430
70431 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         Don't include <config.h> twice; this doesn't work in some cases,
70434         e.g., when config.h has "#define intmax_t long long int" and
70435         we include <config.h>, <inttypes.h>, <config.h> in that order.
70436         Problem reported by Matthew Woehlke in:
70437         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70438         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70439         * lib/fts-cycle.c: Don't include config.h.
70440         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70441         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70442         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70443         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70444         inttypes.h.
70445         * lib/xstrtoumax.c: Likewise.
70446         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70447         __strtol and the like, so that this module is more like its siblings.
70448         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70449         Remove; no longer needed now that we assume gnulib inttypes.h.
70450
70451 2006-10-08  Bruno Haible  <bruno@clisp.org>
70452
70453         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70454         option.
70455
70456 2006-10-07  Jim Meyering  <jim@meyering.net>
70457
70458         * modules/inttypes (inttypes.h): Revert what seems to have been
70459         an inadvertent part of today's change: use "|", not "/" in the
70460         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70461
70462 2006-10-07  Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/sublist: New file.
70465
70466 2006-10-07  Bruno Haible  <bruno@clisp.org>
70467
70468         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70469         * modules/argz (argz.h): Likewise.
70470         * modules/arpa_inet (arpa/inet.h): Likewise.
70471         * modules/byteswap (byteswap.h): Likewise.
70472         * modules/configmake (configmake.h): Likewise.
70473         * modules/fcntl (fcntl.h): Likewise.
70474         * modules/fnmatch (fnmatch.h): Likewise.
70475         * modules/getopt (getopt.h): Likewise.
70476         * modules/glob (glob.h): Likewise.
70477         * modules/inttypes (inttypes.h): Likewise.
70478         * modules/netinet_in (netinet/in.h): Likewise.
70479         * modules/poll (poll.h): Likewise.
70480         * modules/stdbool (stdbool.h): Likewise.
70481         * modules/stdint (stdint.h): Likewise.
70482         * modules/sys_select (sys/select.h): Likewise.
70483         * modules/sys_socket (sys/socket.h): Likewise.
70484         * modules/sys_stat (sys/stat.h): Likewise.
70485         * modules/sysexits (sysexits.h): Likewise.
70486         * modules/unistd (unistd.h): Likewise.
70487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70488         Add a "DO NOT EDIT" comment to the generated file.
70489         (func_import): Likewise for gnulib-comp.m4.
70490
70491 2006-10-07  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/gl_sublist.h: New file.
70494         * lib/gl_sublist.c: New file.
70495
70496 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70499         name (relative to the original working directory) and the file
70500         name component (relative to the temporary working directory).  All
70501         callers changed.
70502         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70503         * lib/mkdir-p.c (make_dir_parents): Likewise.
70504         * lib/mkdir-p.h (make_dir_parents): Likewise.
70505
70506 2006-10-06  Eric Blake  <ebb9@byu.net>
70507
70508         Define several macros for use by the clean-temp module.
70509         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70510         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70511         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70512
70513         * lib/clean-temp.h (close_stream_temp): New declaration.
70514         * lib/clean-temp.c (includes): Pull in headers according to what
70515         other modules are in use.
70516         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70517
70518 2006-10-06  Bruno Haible  <bruno@clisp.org>
70519
70520         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70521         instead of fopen, fwriteerror.
70522
70523 2006-10-06  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70526         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70527         int.
70528         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70529         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70530         Return an error indicator.
70531         Suggested by Eric Blake.
70532
70533 2006-10-06  Bruno Haible  <bruno@clisp.org>
70534
70535         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70536         Reported by Eric Blake.
70537
70538 2006-10-06  Bruno Haible  <bruno@clisp.org>
70539
70540         * modules/closeout (Description): Mention stderr too.
70541
70542 2006-10-06  Bruno Haible  <bruno@clisp.org>
70543         and Paul Eggert  <eggert@cs.ucla.edu>
70544
70545         * lib/closeout.c (close_stdout): Also close stderr.
70546         * lib/closeout.h: Update comment.
70547
70548 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70551         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70552         * lib/dirchownmod.c: Include lchown.h.
70553         * lib/lchown.c: Don't include files that lchown.h now includes.
70554         Don't declare chown, since lchown.h now does that.
70555         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70556         (lchown): Define to rpl_chown if lchown is declared but
70557         does not exist.  Declare using a prototype if lchown is not
70558         declared.  Add a copyright notice.
70559         * lib/mkstemp.h: Include <unistd.h>.
70560         * lib/openat.c: Include lchown.h.
70561
70562         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70563         we now test for that separately.
70564         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70565         rather than O_NOFOLLOW, when testing whether it's possible to
70566         avoid a race condition reliably.
70567         * lib/savewd.c (savewd_chdir): Likewise.
70568
70569         Remove macros that are no longer needed now that stdint.h is
70570         reliable.
70571         * lib/fsusage.c (UINTMAX_MAX): Remove.
70572         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70573         * lib/utimecmp.c (SIZE_MAX): Remove.
70574
70575         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70576
70577         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70578         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70579         O_NOATIME works.
70580
70581 2006-10-05  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/gl_list.h (gl_sortedlist_search_from_to,
70584         gl_sortedlist_indexof_from_to): New declarations.
70585         (gl_list_implementation): New fields sortedlist_search_from_to,
70586         sortedlist_indexof_from_to.
70587         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70588         inline functions.
70589         * lib/gl_list.c (gl_sortedlist_search_from_to,
70590         gl_sortedlist_indexof_from_to): New functions.
70591         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70592         function.
70593         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70594         (gl_array_sortedlist_search_from_to): New function.
70595         (gl_array_list_implementation): Update.
70596         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70597         function.
70598         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70599         (gl_carray_sortedlist_search_from_to): New function.
70600         (gl_carray_list_implementation): Update.
70601         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70602         gl_linked_sortedlist_indexof_from_to): New functions.
70603         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70604         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70605         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70606         gl_tree_sortedlist_indexof_from_to): New functions.
70607         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70608         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70609         Update.
70610         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70611         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70612         Update.
70613
70614 2006-10-05  Bruno Haible  <bruno@clisp.org>
70615
70616         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70617         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70618         (struct gl_list_implementation): Add fields search_from_to,
70619         indexof_from_to. Remove fields search, indexof.
70620         (gl_list_search): Use the search_from_to method.
70621         (gl_list_search_from, gl_list_search_from_to): New functions.
70622         (gl_list_indexof): Use the indexof_from_to method.
70623         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70624         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70625         (gl_list_search_from, gl_list_search_from_to): New functions.
70626         (gl_list_indexof): Use the indexof_from_to method.
70627         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70628         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70629         gl_array_indexof. Add start_index, end_index arguments.
70630         (gl_array_search_from_to): Renamed from gl_array_search. Add
70631         start_index, end_index arguments.
70632         (gl_array_remove, gl_array_list_implementation): Update.
70633         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70634         gl_carray_indexof. Add start_index, end_index arguments.
70635         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70636         start_index, end_index arguments.
70637         (gl_carray_remove, gl_carray_list_implementation): Update.
70638         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70639         gl_linked_search. Add start_index, end_index arguments.
70640         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70641         start_index, end_index arguments.
70642         (gl_linked_remove): Update.
70643         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70644         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70645         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70646         field to 'size_t'.
70647         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70648         gl_tree_search. Add start_index, end_index arguments.
70649         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70650         start_index, end_index arguments.
70651         (gl_tree_remove): Update.
70652         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70653         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70654         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70655         function.
70656         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70657         gl_tree_search. Add start_index, end_index arguments.
70658         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70659         start_index, end_index arguments.
70660         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70661         Update.
70662         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70663
70664 2006-10-05  Bruno Haible  <bruno@clisp.org>
70665
70666         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70667
70668         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70669         fwriteerror_temp): New declarations.
70670         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70671         (descriptors): New variable.
70672         (cleanup): First, close the descriptors.
70673         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70674         fclose_temp, fwriteerror_temp): New functions.
70675
70676 2006-10-04  Jim Meyering  <jim@meyering.net>
70677
70678         * lib/fts.c (fts_open): Tiny comment change.
70679
70680 2006-10-04  Bruno Haible  <bruno@clisp.org>
70681
70682         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70683         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70684         gl_LOCK_BODY.
70685         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70686         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70687         gl_LOCK_EARLY_BODY.
70688         (gl_LOCK): Require gl_LOCK_BODY.
70689
70690 2006-10-04  Bruno Haible  <bruno@clisp.org>
70691
70692         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70693         (gl_oset_search_atleast): New declaration.
70694         (struct gl_oset_implementation): Add field 'search_atleast'.
70695         (gl_oset_search_atleast): New inline function.
70696         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70697         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70698         (gl_array_oset_implementation): Update.
70699         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70700         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70701         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70702
70703 2006-10-04  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70706
70707 2006-10-03  Bruno Haible  <bruno@clisp.org>
70708
70709         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70710         from gl_avltreehash_list_implementation.
70711
70712 2006-10-03  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/gl_oset.c (gl_oset_add): Fix return type.
70715
70716 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70717
70718         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70719
70720 2006-10-02  Eric Blake  <ebb9@byu.net>
70721
70722         * modules/strnlen (Depends-on): Add extensions.
70723
70724 2006-10-02  Eric Blake  <ebb9@byu.net>
70725
70726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70727         definition in 2.60+.
70728
70729 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70730
70731         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70732         checks.
70733
70734 2006-10-02  Bruno Haible  <bruno@clisp.org>
70735
70736         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70737         to the AUTOMAKE_OPTIONS.
70738         Reported by Jim Meyering.
70739
70740 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70741
70742         Work around bug in Solaris 10 /proc file system:
70743         /proc/self/fd/NNN/.. isn't the parent directory of
70744         the directory whose file descriptor is NNN.  This needs to
70745         be worked around at run time, not compile time, since a
70746         program might be built on Solaris 8, where things work, and
70747         run on Solaris 10.
70748         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70749         to use the following interface instead:
70750         (OPENAT_BUFFER_SIZE): New macro.
70751         (openat_proc_name): New function.
70752         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70753         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70754         Likewise.
70755         * lib/openat-proc.c: New file.
70756         * modules/openat (Files): Add lib/openat-proc.c.
70757         (Depends-on): Add same-inode, stdbool.
70758         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70759
70760 2006-09-29  Bruno Haible  <bruno@clisp.org>
70761
70762         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70763         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70764         argument. Set stdout_closed before testing for ferror, not after.
70765         (fwriteerror, fwriteerror_no_ebadf): New functions.
70766
70767 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70768
70769         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70770
70771 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70772
70773         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70774         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70775
70776 2006-09-28  Jim Meyering  <jim@meyering.net>
70777
70778         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70779         Include <unistd.h>.
70780
70781 2006-09-28  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70784         * modules/linkedhash-list (Depends-on): Likewise.
70785         * modules/rbtreehash-list (Depends-on): Likewise.
70786
70787 2006-09-28  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/strndup.h: Simplify the redefinition of strndup.
70790         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70791         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70792
70793 2006-09-28  Bruno Haible  <bruno@clisp.org>
70794
70795         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70796         * lib/gl_linkedhash_list.c: Likewise.
70797         * lib/gl_rbtreehash_list.c: Likewise.
70798
70799 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70802         getaddrinfo.
70803
70804         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70805         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70806         it causes <stdio_ext.h> to cause a compile-time error.
70807         Problem reported by Nelson H. F. Beebe.
70808         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70809         of HAVE_DECL___PENDING.
70810
70811         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70812         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70813         declaration.
70814
70815 2006-09-27  Jim Meyering  <jim@meyering.net>
70816
70817         This file could end up with a definition for a function
70818         named __strndup, rather than rpl_strndup on a system with
70819         incomplete weak_alias support.
70820         * lib/strndup.c (strndup): Rename from __strndup.
70821         Remove #defines that used to map __strndup to strndup.
70822         Don't use K&R prototypes.
70823         Remove LIBC-related code, since this file is not sync'd with glibc.
70824         * lib/strndup.h: Revamp, accordingly.
70825         * m4/strndup.m4: Modernize.
70826
70827 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * modules/savewd (Depends-on): Add 'raise'.
70830         * lib/savewd.c: Include <signal.h>, for 'raise'.
70831
70832 2006-09-26  Jim Meyering  <jim@meyering.net>
70833
70834         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70835         when we detect Darwin 8.7.0's acl_get_file bug.
70836         Rearrange to perform the new (below) run-test while $LIBS
70837         contains any acl-related library.  Set USE_ACL at the end.
70838         (gl_ACL_GET_FILE): New function.
70839
70840 2006-09-26  Eric Blake  <ebb9@byu.net>
70841
70842         * lib/verror.c: Include <config.h> unconditionally.
70843
70844 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * modules/clock-time (Maintainer): Add self.
70847         * modules/getlogin_r (Depends-on): Add extensions.
70848
70849 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70850
70851         * modules/clock-time: New module.
70852         * modules/nanosleep (Depends-on): Add clock-time.
70853         * modules/gethrxtime (Depends-on): Likewise.
70854         * modules/gettime (Depends-on): Likewise.
70855         * modules/settime (Depends-on): Likewise.
70856
70857         * modules/fts-lgpl: Depend on openat.
70858         * modules/mkancesdirs: Depend on savewd.
70859         * modules/mkdir-p: Likewise.
70860
70861 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70862
70863         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70864
70865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70866         `gl_have_arbitrary_file_name_length_limit' to
70867         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70868         actually works between configure runs.
70869
70870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70871             Bruno Haible  <bruno@clisp.org>
70872
70873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70874
70875 2006-09-25  Jim Meyering  <jim@meyering.net>
70876
70877         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70878         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70879
70880 2006-09-25  Eric Blake  <ebb9@byu.net>
70881
70882         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70883         exec's in 2006-09-18 patch when shuffling fds.
70884
70885 2006-09-25  Bruno Haible  <bruno@clisp.org>
70886
70887         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70888         Reported by Jim Meyering.
70889
70890 2006-09-24  Jim Meyering  <jim@meyering.net>
70891
70892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70893         compare a pointer against a literal "0".  That caused failures with
70894         at least HP-UX's hpcc.
70895
70896 2006-09-22  Simon Josefsson  <jas@extundo.com>
70897
70898         * modules/gc-sha1:
70899         * modules/gc-md4:
70900         * modules/gc-hmac-sha1:
70901         * modules/gc-hmac-md5:
70902         * modules/gc-des:
70903         * modules/gc-arcfour: Distribute more files.
70904
70905 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70906
70907         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70908         (gl_linked_iterator_from_to): Initialize struct completely.
70909         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70910         (gl_tree_iterator_from_to): Likewise
70911         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70912         * lib/gl_array_list.c [lint] (gl_array_iterator)
70913         (gl_array_iterator_from_to): Likewise.
70914         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70915         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70916         (gl_carray_iterator_from_to): Likewise.
70917
70918         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70919         * lib/md4.c (md4_process_block): Remove unused variable.
70920         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70921         parentheses for clarity.
70922
70923 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70924
70925         * modules/bison-i18n (Depends-on): Add gettext.
70926
70927 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70928
70929         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70930         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70931         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70932         also add missing comma that caused broken test.
70933         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70934         stdlib.h, for `abort'.
70935         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70936         variables.
70937         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70938         include unistd.h if present, for `rmdir'.
70939         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70940         variables.
70941         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70942         in the process include standard headers for prototypes.
70943         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70944         gets declared on GNU/Linux.
70945         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70946         unistd.h, for `rmdir'.
70947         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70948
70949         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70950         always true.
70951         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70952
70953         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70954
70955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70956
70957         * gnulib-tool (func_version): Create output all at once.  This
70958         may help avoid triggering unnecessary SIGPIPEs, and at any
70959         rate it doesn't hurt.
70960
70961 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70962             Bruno Haible  <bruno@clisp.org>
70963
70964         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70965         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70966         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70967
70968         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70969         (gl_FUNC_VASPRINTF): Invoke it.
70970
70971 2006-09-22  Bruno Haible  <bruno@clisp.org>
70972
70973         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70974         getloadavg.c as first argument.
70975
70976 2006-09-22  Bruno Haible  <bruno@clisp.org>
70977
70978         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70979         at the beginning of the gl_INIT macro.
70980         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70981         gl_GETLOADAVG.
70982
70983 2006-09-22  Bruno Haible  <bruno@clisp.org>
70984
70985         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70986         module.
70987         Suggested by Ralf Wildenhues.
70988
70989 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         Import this patch from libc:
70992
70993         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70994
70995         * lib/regex_internal.c (re_string_reconstruct): Handle
70996         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70997         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70998         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70999         re_string_context_at.
71000
71001         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
71002         now requires it.
71003         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
71004         gl_REGEX now does it for us.
71005         (gl_REGEX): Add test taken from
71006         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
71007
71008         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
71009         Check that large offsets work.  Modernize Autoconf usages.
71010         Prefer "yes" to mean a good thing rather than a bad.
71011         Don't put "#define mkstemp" in config.h, as this might interfere
71012         with standard system headers that "#define mkstemp mkstemp64".
71013
71014         * modules/mkstemp (Depends-on): Add extensions, so that
71015         mkstemp is visible on some platforms.
71016         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
71017         (Include): Change to "mkstemp.h" from <stdlib.h>.
71018         (Files): Add mkstemp.h.
71019
71020         * lib/mkstemp.h: New file, since some standard headers
71021         #define mkstemp.
71022         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
71023         Include "mkstemp.h".
71024         Make the _LIBC code resemble glibc original more,
71025         e.g., use K&R style.
71026         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
71027         (mkstemp): Remove, since mkstemp.h does this for us.
71028         * lib/stdlib--.h: Include mkstemp.h.
71029
71030         Import this patch from libc:
71031
71032         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71033
71034         * lib/tempname.c (__gen_tempname): Change attempts_min
71035         into a macro.  Use preprocessor to decide how to initialize
71036         attempts [Coverity CID 67].
71037
71038 2006-09-20  Bruno Haible  <bruno@clisp.org>
71039
71040         * lib/mkdtemp.c: Import from libc.
71041         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71042                 * sysdeps/posix/tempname.c (__gen_tempname): Change
71043                 attempts_min into a macro.  Use preprocessor to decide how to
71044                 initialize attempts [Coverity CID 67].
71045         2001-11-27  Paul Eggert  <eggert@twinsun.com>
71046                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
71047                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
71048
71049 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71050
71051         * gnulib-tool (func_exit): New function, to allow to pass the
71052         exit status portably through the trap.  Use everywhere.
71053         (--help, --version): Signal a write error.
71054         (trap): catch SIGPIPE, for write errors.
71055         Exit at the end of the trap, with the correct exit status.
71056
71057 2006-09-19  Karl Berry  <karl@gnu.org>
71058
71059         * doc/gnulib.texi: note about the license texinfo files.
71060
71061 2006-09-19  Eric Blake  <ebb9@byu.net>
71062
71063         * gnulib-tool: Avoid space-tab.
71064
71065 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
71068         that prevented coreutils 6.1 from building.  Problem reported
71069         by Petter Reinholdtsen.
71070
71071 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71072
71073         * gnulib-tool (avoidlist): Fix typo that broke options like
71074         --avoid=lock that are used by coreutils bootstrap.
71075
71076 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
71077
71078         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
71079         more systematically.
71080
71081 2006-09-18  Jim Meyering  <jim@meyering.net>
71082
71083         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
71084
71085 2006-09-18  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
71088
71089 2006-09-18  Bruno Haible  <bruno@clisp.org>
71090
71091         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
71092         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
71093         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
71094         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
71095         * m4/gettext.m4: Require autoconf >= 2.52.
71096         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
71097         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
71098         of gl_cv_header_inttypes_h.
71099
71100 2006-09-18  Bruno Haible  <bruno@clisp.org>
71101
71102         * lib/javaversion.c: Include configmake.h.
71103
71104 2006-09-18  Bruno Haible  <bruno@clisp.org>
71105
71106         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
71107         avoid that the while loops be executed in a subshell.
71108
71109 2006-09-18  Bruno Haible  <bruno@clisp.org>
71110
71111         * MODULES.html.sh (func_module): Break long lines.
71112         Suggested by Bruce Korb <bkorb@gnu.org>.
71113
71114 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71115
71116         Speed up by a factor of 1.12.
71117         * gnulib-tool (nl): New variable.
71118         (func_import): Rewrite include directive extraction to only read each
71119         directive once.
71120
71121 2006-09-17  Bruno Haible  <bruno@clisp.org>
71122
71123         * modules/javaversion (Makefile.am): Remove DEFS setting.
71124         (Depends-on): Add configmake, for PKGDATADIR definition.
71125
71126 2006-09-17  Bruno Haible  <bruno@clisp.org>
71127
71128         * gnulib-tool (func_create_testdir): Rewrite all files at once.
71129
71130 2006-09-17  Bruno Haible  <bruno@clisp.org>
71131
71132         * gnulib-tool (func_append): New function, stolen from libtool.m4.
71133         (func_modules_transitive_closure, func_modules_add_dummy,
71134         func_modules_to_filelist, func_import, func_create_testdir,
71135         func_create_megatestdir, ...): Use it wherever possible.
71136         Suggested by Ralf Wildenhues.
71137
71138 2006-09-16  Karl Berry  <karl@gnu.org>
71139
71140         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
71141         to avoid sectioning errors.
71142         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
71143         [ifinfo]: blank line after @center-ed titles.
71144         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
71145         Spell FSF address consistently with others.
71146         (These changes approved by rms.)
71147
71148 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71149
71150         Speed up by a factor of 1.61.
71151         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71152         already checked module names again.
71153
71154 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71155
71156         Speed up by a factor of 1.13.
71157         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71158         for new_files, and the input to func_add_or_update.
71159
71160 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71161
71162         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71163         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71164
71165 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71166
71167         * modules/mkancesdirs (Depends-on): Add fcntl.
71168         * modules/savewd: New file.
71169         * MODULES.html.sh (File system functions): Add savewd.
71170
71171         * modules/configmake (Makefile.am): Add support for the
71172         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71173
71174 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * m4/savewd.m4: New file.
71177
71178 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71181         (dirchownmod): New arg FD.  All callers changed.
71182         Use FD rather than opening the directory ourself, as opening is
71183         now the caller's responsibility.
71184         * lib/dirchownmod.h: Likewise.
71185         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71186         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71187         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71188         (test_dir): Remove.
71189         (mkancesdirs): Return length of prefix of FILE that has already
71190         been made, or -2 if there is a child doing the work.  Redo
71191         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71192         ".", and treat ".." specially since it might stray back into
71193         already-created areas.  Use a subprocess if necessary.  New arg
71194         WD; all users changed.  MAKE_DIR function should now return 1
71195         if it creates a directory that is not readable.  Return -2 if
71196         a child process is spun off.
71197         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71198         Adjust signature to match code.
71199         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71200         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71201         all users changed.
71202         * lib/savewd.c, lib/savewd.h: New files.
71203
71204 2006-09-15  Jim Meyering  <jim@meyering.net>
71205
71206         * modules/rename-dest-slash: New module.
71207         * MODULES.html.sh (posix_compat): Add it here.
71208
71209         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71210
71211 2006-09-15  Jim Meyering  <jim@meyering.net>
71212
71213         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71214         file.
71215
71216         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71217
71218 2006-09-15  Jim Meyering  <jim@meyering.net>
71219
71220         * lib/rename-dest-slash.c (has_trailing_slash): Use
71221         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71222         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71223         test before testing whether SRC is a directory.
71224         Suggestions from Bruno Haible.
71225
71226         Avoid a warning about an unused variable.
71227         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71228         into the #ifdef block where it's used.
71229
71230         * lib/rename-dest-slash.c: New file.
71231
71232 2006-09-14  Bruno Haible  <bruno@clisp.org>
71233
71234         * lib/allocsa.c: Include <config.h> unconditionally.
71235         * lib/asnprintf.c: Likewise.
71236         * lib/asprintf.c: Likewise.
71237         * lib/c-strcasecmp.c: Likewise.
71238         * lib/c-strcasestr.c: Likewise.
71239         * lib/c-strncasecmp.c: Likewise.
71240         * lib/c-strstr.c: Likewise.
71241         * lib/classpath.c: Likewise.
71242         * lib/clean-temp.c: Likewise.
71243         * lib/concatpath.c: Likewise.
71244         * lib/copy-file.c: Likewise.
71245         * lib/csharpcomp.c: Likewise.
71246         * lib/csharpexec.c: Likewise.
71247         * lib/execute.c: Likewise.
71248         * lib/fatal-signal.c: Likewise.
71249         * lib/findprog.c: Likewise.
71250         * lib/fwriteerror.c: Likewise.
71251         * lib/gl_array_list.c: Likewise.
71252         * lib/gl_array_oset.c: Likewise.
71253         * lib/gl_avltree_list.c: Likewise.
71254         * lib/gl_avltree_oset.c: Likewise.
71255         * lib/gl_avltreehash_list.c: Likewise.
71256         * lib/gl_carray_list.c: Likewise.
71257         * lib/gl_linked_list.c: Likewise.
71258         * lib/gl_linkedhash_list.c: Likewise.
71259         * lib/gl_list.c: Likewise.
71260         * lib/gl_oset.c: Likewise.
71261         * lib/gl_rbtree_list.c: Likewise.
71262         * lib/gl_rbtree_oset.c: Likewise.
71263         * lib/gl_rbtreehash_list.c: Likewise.
71264         * lib/imaxabs.c: Likewise.
71265         * lib/imaxdiv.c: Likewise.
71266         * lib/javacomp.c: Likewise.
71267         * lib/javaexec.c: Likewise.
71268         * lib/javaversion.c: Likewise.
71269         * lib/linebreak.c: Likewise.
71270         * lib/localcharset.c: Likewise.
71271         * lib/lock.c: Likewise.
71272         * lib/mbchar.c: Likewise.
71273         * lib/mbswidth.c: Likewise.
71274         * lib/mkdtemp.c: Likewise.
71275         * lib/pipe.c: Likewise.
71276         * lib/printf-args.c: Likewise.
71277         * lib/printf-parse.c: Likewise.
71278         * lib/progname.c: Likewise.
71279         * lib/progreloc.c: Likewise.
71280         * lib/readlink.c: Likewise.
71281         * lib/sh-quote.c: Likewise.
71282         * lib/stpcpy.c: Likewise.
71283         * lib/stpncpy.c: Likewise.
71284         * lib/strcasecmp.c: Likewise.
71285         * lib/strcasestr.c: Likewise.
71286         * lib/strcspn.c: Likewise.
71287         * lib/striconv.c: Likewise.
71288         * lib/strncasecmp.c: Likewise.
71289         * lib/strnlen1.c: Likewise.
71290         * lib/strstr.c: Likewise.
71291         * lib/strtok_r.c: Likewise.
71292         * lib/tls.c: Likewise.
71293         * lib/tmpdir.c: Likewise.
71294         * lib/unicodeio.c: Likewise.
71295         * lib/unsetenv.c: Likewise.
71296         * lib/vasnprintf.c: Likewise.
71297         * lib/vasprintf.c: Likewise.
71298         * lib/wait-process.c: Likewise.
71299         * lib/xallocsa.c: Likewise.
71300         * lib/xsetenv.c: Likewise.
71301         * lib/xstriconv.c: Likewise.
71302
71303 2006-09-13  Simon Josefsson  <jas@extundo.com>
71304
71305         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71306         that internally, suggested by Ralf Wildenhues
71307         <Ralf.Wildenhues@gmx.de>.
71308
71309 2006-09-13  Simon Josefsson  <jas@extundo.com>
71310
71311         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71312         @LIBOBJS@.
71313         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71314
71315 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71318         longer worry about uses that don't define HAVE_CONFIG_H.
71319         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71320         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71321         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71322         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71323         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71324         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71325         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71326         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71327         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71328         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71329         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71330         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71331         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71332         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71333         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71334         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71335         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71336         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71337         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71338         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71339         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71340         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71341         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71342         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71343         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71344         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71345         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71346         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71347         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71348         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71349         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71350         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71351         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71352         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71353         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71354         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71355         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71356         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71357         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71358         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71359         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71360         Likewise.
71361
71362 2006-09-13  Eric Blake  <ebb9@byu.net>
71363
71364         * lib/getopt.c: Fix typo in last commit.
71365
71366 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71367
71368         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71369         dgettext.
71370
71371 2006-09-12  Jim Meyering  <jim@meyering.net>
71372
71373         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71374         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71375         Reported by Nelson H. F. Beebe.
71376
71377 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71378
71379         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71380         program_invocation_name and program_invocation_short_name are
71381         initialized.
71382         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71383         and program_invocation_short_name to argp.h, so they are visible
71384         to user programs.
71385         * lib/argp.h: Likewise
71386
71387 2006-09-10  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71390         m4/inttypes_h.m4, m4/uintmax_t.m4.
71391
71392 2006-09-10  Bruno Haible  <bruno@clisp.org>
71393
71394         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71395         gl_AC_TYPE_UINTMAX_T.
71396
71397 2006-09-10  Bruno Haible  <bruno@clisp.org>
71398
71399         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71400
71401 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71402
71403         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71404         convention.  Text proposed by Bruno Haible.
71405         (struct argp_option): Document the use of N_() wrappers.
71406
71407         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71408         '\v', and translate the two parts separately, instead of feeding
71409         the whole string to gettext.  This allows to exclude
71410         '\v' from the strings visible to the translator by writing doc
71411         strings as N_("..") "\v" N_("..").
71412
71413 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * config/srclist.txt: Undo latest change; the bug was fixed.
71416
71417 2006-09-09  Bruno Haible  <bruno@clisp.org>
71418
71419         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71420         assignments if building a library without libtool.
71421         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71422         in func_emit_lib_Makefile_am.
71423         (func_import): When building a static library libfoo.a, arrange to
71424         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71425         (func_create_testdir): Likewise.
71426         * modules/gc (configure.ac, Makefile.am): If building statically,
71427         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71428         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71429         * modules/striconv (configure.ac, Makefile.am): Likewise.
71430         Based on a suggestion by Ralf Wildenhues.
71431
71432 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71433
71434         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71435         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71436         Also:
71437
71438         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71439         Add year_2050_test to catch glibc bug 2821
71440         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71441
71442         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71443         Prefer #ifdef to #if.
71444
71445         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71446         Return from 'main' instead of calling 'exit'.
71447
71448 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71451         returned the maximum time_t value rather than (time_t) -1.
71452         Problem originally reported by William Bardwell
71453         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71454
71455         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71456         Moved to here ...
71457         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71458         ... from here.
71459
71460 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71463         2821 is fixed.
71464
71465 2006-09-08  Jim Meyering  <jim@meyering.net>
71466
71467         Don't make generated files read-only.  That would bother too many
71468         people.  However, do retain the ability to work when targets are
71469         read-only: remove the destination and temporary files before writing
71470         them (when generated via sed or echo), or by using the -f option for
71471         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71472         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71473         * modules/byteswap, modules/configmake, modules/fcntl:
71474         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71475         * modules/localcharset, modules/netinet_in, modules/poll:
71476         * modules/stdbool, modules/stdint, modules/sys_select:
71477         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71478
71479 2006-09-08  Jim Meyering  <jim@meyering.net>
71480
71481         Avoid new build failure on FreeBSD 6.0.
71482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71483         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71484         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71485
71486 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71487
71488         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71489
71490 2006-09-07  Jim Meyering  <jim@meyering.net>
71491
71492         Fix global typo in last change: use chmod u-w, not chmod u-x.
71493         Spotted by Paul Eggert and Bruce Korb.
71494         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71495         * modules/byteswap, modules/configmake, modules/fcntl:
71496         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71497         * modules/localcharset, modules/netinet_in, modules/poll:
71498         * modules/stdbool, modules/stdint, modules/sys_select:
71499         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71500
71501 2006-09-06  Jim Meyering  <jim@meyering.net>
71502
71503         Make generated files be read-only.
71504         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71505         Ensure that each generated file is now read-only.
71506         * modules/argz: Likewise.
71507         * modules/arpa_inet: Likewise.
71508         * modules/byteswap: Likewise.
71509         * modules/configmake: Likewise.
71510         * modules/fcntl: Likewise.
71511         * modules/fnmatch: Likewise.
71512         * modules/getopt: Likewise.
71513         * modules/glob: Likewise.
71514         * modules/inttypes: Likewise.
71515         * modules/netinet_in: Likewise.
71516         * modules/poll: Likewise.
71517         * modules/stdbool: Likewise.
71518         * modules/stdint: Likewise.
71519         * modules/sys_select: Likewise.
71520         * modules/sys_socket: Likewise.
71521         * modules/sys_stat: Likewise.
71522         * modules/sysexits: Likewise.
71523         * modules/localcharset: Same as above, but continue using temporary
71524         file named "t-$@" (why different?) rather than the "$@-t" used
71525         everywhere else.
71526
71527         * modules/sysexits (Makefile.am): Replace literal occurrences
71528         of "sysexit.h" more readable, and more consistent, "$@".
71529
71530 2006-09-06  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/striconv: New file.
71533         * modules/xstriconv: New file.
71534         * MODULES.html.sh (Internationalization functions): Add striconv,
71535         xstriconv.
71536
71537 2006-09-06  Bruno Haible  <bruno@clisp.org>
71538
71539         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71540         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71541         not using libtool correctly.
71542
71543 2006-09-06  Bruno Haible  <bruno@clisp.org>
71544
71545         * lib/striconv.h: New file.
71546         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71547         iconvstring.c.
71548         * lib/xstriconv.h: New file.
71549         * lib/xstriconv.c: New file.
71550
71551 2006-09-06  Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71554         lib_..._LDFLAGS.
71555
71556 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71557
71558         * lib/argz_.h: Sync from Libtool.
71559
71560         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71561                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71562
71563         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71564
71565 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71566
71567         * modules/trim: New file.
71568
71569 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71570
71571         * lib/trim.h: New file.
71572         * lib/trim.c: New file.
71573
71574 2006-09-05  Bruno Haible  <bruno@clisp.org>
71575
71576         * MODULES.html.sh (String handling): Add trim.
71577
71578 2006-09-04  Karl Berry  <karl@gnu.org>
71579
71580         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71581         until next release.
71582
71583 2006-09-03  Bruno Haible  <bruno@clisp.org>
71584
71585         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71586         correctly.
71587
71588 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71591         not gl_GETLOADAVG.  Omit unneeded semicolons.
71592         Problems reported by Ralf Wildenhues in
71593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71594         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71595         at the end, which is the usual gnulib style.
71596
71597         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71598         of doing all the work ourselves.
71599         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71600         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71601
71602 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71605         Problem reported by Ralf Wildenhues in
71606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71607
71608         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71609         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71610
71611 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71614         yesterday's patch by changing test -n to test -z.
71615
71616 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71619         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71620         the former is now obsolescent.
71621
71622         * modules/chdir-long (Depends-on): Add fcntl.
71623
71624 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71627         obsolescent, and programs should use gnulib instead.
71628         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71629         but with prefixes changed.
71630
71631 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71634         or stdbool.h, because they might not exist while configuring.
71635
71636         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71637         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71638         does that for us.
71639         (O_DIRECTORY): Remove.
71640
71641 2006-08-31  Eric Blake  <ebb9@byu.net>
71642
71643         * gnulib-tool: Don't let emacs change spaces to TAB.
71644
71645 2006-08-31  Bruno Haible  <bruno@clisp.org>
71646
71647         * gnulib-tool: When calling func_import more than once, do it in a
71648         subshell.
71649         Reported by Eric Blake <ebb9@byu.net>.
71650
71651 2006-08-31  Bruno Haible  <bruno@clisp.org>
71652
71653         * gnulib-tool (nl): Remove variable.
71654         (sed_transform_lib_file): Use more robust test for config-h module.
71655         (func_import): Fix typo in 2006-08-25 patch.
71656
71657 2006-08-31  Bruno Haible  <bruno@clisp.org>
71658
71659         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71660         specified, augment Makefile.am variables instead of assigning them.
71661
71662 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         Work around a bug in both the Linux and SunOS 64-bit kernels:
71665         nanosleep mishandles sleeps for longer than 2**31 seconds.
71666         Problem reported by Frank v Waveren in
71667         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71669         Check for nanosleep bug.
71670         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71671
71672 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         Work around a bug in both the Linux and SunOS 64-bit kernels:
71675         nanosleep mishandles sleeps for longer than 2**31 seconds.
71676         Problem reported by Frank v Waveren in
71677         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71678         * lib/nanosleep.c (BILLION): New constant.
71679         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71680         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71681         implementation.
71682
71683 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * modules/nanosleep (Depends-on): Add gettime.
71686
71687 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71688         and Simon Josefsson  <jas@extundo.com>
71689         and Oskar Liljeblad  <oskar@osk.mine.nu>
71690
71691         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71692         * gnulib-tool (func_import): New license type 'unmodifiable license
71693         text'.
71694         * modules/fdl: Use it.  Longer description.
71695         * module/gpl, module/lgpl: New files.
71696
71697 2006-08-30  Jim Meyering  <jim@meyering.net>
71698
71699         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71700         shadowing the parameter.
71701
71702 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71703
71704         Sync from Libtool:
71705
71706         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71707
71708         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71709         sharing with gnulib.  Report by Eric Blake.
71710
71711 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * modules/isapipe: New file.
71714         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71715
71716 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * modules/configmake (Makefile.am): Add a comment, and omit
71719         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71720         by Bruno Haible.
71721
71722 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * m4/isapipe.m4: New file.
71725
71726 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         * lib/isapipe.c, lib/isapipe.h: New files.
71729
71730 2006-08-29  Jim Meyering  <jim@meyering.net>
71731
71732         * modules/configmake (Makefile.am): Make configmake.h depend on
71733         Makefile.  Otherwise, a stale configmake.h could hang around.
71734
71735 2006-08-29  Eric Blake  <ebb9@byu.net>
71736
71737         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71738         resolution of upstream bug 3044.
71739
71740 2006-08-29  Bruno Haible  <bruno@clisp.org>
71741
71742         * modules/localcharset (Depends-on): Add configmake.
71743         (Makefile.am): Remove setting of LIBDIR through DEFS.
71744
71745 2006-08-29  Bruno Haible  <bruno@clisp.org>
71746
71747         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71748         defined.
71749
71750 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * modules/fcntl: New file.
71753         * modules/chdir-safer (Depends-on): Add fcntl.
71754         * modules/fts: Likewise.
71755         * modules/mkdir-p: Likewise.
71756
71757         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71758         This undoes the most recent change, since we're now addressing the
71759         problem in a different way.
71760
71761         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71762         into output, since the output might be called Makefile.am even
71763         if $makefile_name is something different.
71764         (func_import): Use $makefile_am rather than
71765         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71766         empty.
71767
71768         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71769
71770 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71773         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71774         recent change to stdint.m4, since we're now addressing the problem in a
71775         different way.
71776
71777 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * m4/fcntl_h.m4: New file.
71780
71781 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * lib/fcntl_.h: New file.
71784         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71785         the fcntl module.
71786         * lib/dirchownmod.c: Likewise.
71787         * lib/fts.c: Likewise.
71788
71789         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71790         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71791         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71792         just before including <inttypes.h>, to avoid circular inclusion.
71793
71794 2006-08-28  Jim Meyering  <jim@meyering.net>
71795
71796         * doc/visibility.texi: Actually read and correct the grammar of the
71797         sentence affected by yesterday's change.
71798
71799 2006-08-28  Eric Blake  <ebb9@byu.net>
71800
71801         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71802         needs wrapper.
71803
71804 2006-08-28  Eric Blake  <ebb9@byu.net>
71805
71806         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71807
71808 2006-08-28  Eric Blake  <ebb9@byu.net>
71809
71810         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71811
71812 2006-08-28  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/c-strstr: New file, from GNU gettext.
71815         * MODULES.html.sh (String handling): Add c-strstr.
71816
71817 2006-08-28  Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71820         macros.
71821         Reported by Eric Blake.
71822
71823 2006-08-28  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71826         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71827         * lib/vasprintf.c: Include errno.h, limits.h.
71828         (EOVERFLOW): New fallback definition.
71829         (vasprintf): Test here whether the string length is > INT_MAX.
71830         * lib/vsnprintf.c: Include errno.h, limits.h.
71831         (EOVERFLOW): New fallback definition.
71832         (vsnprintf): Fix bug when generated string was too long for the buffer.
71833         Test here whether the string length is > INT_MAX.
71834
71835 2006-08-28  Bruno Haible  <bruno@clisp.org>
71836
71837         * lib/inttypes_.h (SCNX*): Remove definitions.
71838         Reported by Eric Blake.
71839
71840 2006-08-28  Bruno Haible  <bruno@clisp.org>
71841
71842         * lib/c-strstr.h: New file, from GNU gettext.
71843         * lib/c-strstr.c: New file, from GNU gettext.
71844
71845 2006-08-28  Bruno Haible  <bruno@clisp.org>
71846
71847         * gnulib-tool: Reorder some statements.
71848
71849 2006-08-28  Bruno Haible  <bruno@clisp.org>
71850
71851         * gnulib-tool: New option --makefile-name.
71852         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71853         $makefile_name.
71854         (func_import): Write $makefile_name to the cache file, and read it from
71855         there unless explicitly specified. Use $makefile_name as file name
71856         instead of Makefile.am. Adjust the recommendations accordingly.
71857
71858 2006-08-28  Bruno Haible  <bruno@clisp.org>
71859
71860         * gnulib-tool (func_verify_module): Check against misapplying patch.
71861
71862 2006-08-28  Bruno Haible  <bruno@clisp.org>
71863
71864         * gnulib-tool (func_relativize, func_relconcat): New functions.
71865         Give an error if --local-dir is given with --update.
71866         Remove trailing slashes from $local_gnulib_dir.
71867         (func_import): Store the relativized $local_gnulib_dir in
71868         gnulib-cache.m4, and read it from there if not specified explicitly.
71869
71870 2006-08-28  Bruno Haible  <bruno@clisp.org>
71871
71872         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71873         is the current directory. Respect also $local_gnulib_dir.
71874
71875 2006-08-28  Bruno Haible  <bruno@clisp.org>
71876             Simon Josefsson  <jas@extundo.com>
71877
71878         BeOS portability.
71879         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71880
71881 2006-08-27  Jim Meyering  <jim@meyering.net>
71882
71883         * doc/visibility.texi: Remove duplicate word: "pointer".
71884
71885 2006-08-26  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71888         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71889         (Makefile.am): Create inttypes.h from inttypes_.h.
71890         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71891
71892         * modules/imaxabs: New file.
71893
71894         * modules/imaxdiv: New file.
71895
71896 2006-08-26  Bruno Haible  <bruno@clisp.org>
71897
71898         * m4/inttypes.m4: New file.
71899         * m4/_inttypes_h.m4: Remove file.
71900         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71901         PRI_MACROS_BROKEN.
71902         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71903
71904         * m4/imaxabs.m4: New file.
71905
71906         * m4/imaxdiv.m4: New file.
71907
71908 2006-08-26  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/inttypes_.h: New file.
71911         * lib/inttypes.h: Remove file.
71912         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71913
71914         * lib/imaxabs.c: New file.
71915
71916         * lib/imaxdiv.c: New file.
71917
71918 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         New config-h module, so that "make" output needn't be cluttered
71921         by -DHAVE_CONFIG_H.
71922         * MODULES.html.sh (Support for building libraries and executables):
71923         Add config-h.
71924         * modules/config-h: New file.
71925         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71926         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71927         the config-h module is used.
71928
71929         New configmake module, so that "make" output needn't be cluttered
71930         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71931         * MODULES.html.sh (Support for building libraries and executables):
71932         Add configmake.
71933         * modules/configmake: New file.
71934
71935 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * m4/config-h.m4: New file.
71938
71939 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * config/srclist.txt: Add elisp-comp.
71942
71943 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * MODULES.html.sh (Support for building libraries and executables):
71946         Add elisp-comp.
71947         * build-aux/elisp-comp: New file.
71948         * modules/elisp-comp: New file.
71949
71950 2006-08-24  Bruno Haible  <bruno@clisp.org>
71951
71952         * gnulib-tool (func_create_testdir): Use non-default values of
71953         sourcebase and m4base.
71954
71955 2006-08-24  Bruno Haible  <bruno@clisp.org>
71956
71957         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71958         HTML structure.
71959
71960 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * modules/openat (Depends-on): Add lchown.
71963
71964 2006-08-23  Bruno Haible  <bruno@clisp.org>
71965
71966         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71967         of gl_LOCK_EARLY instead of gl_LOCK.
71968
71969 2006-08-23  Bruno Haible  <bruno@clisp.org>
71970
71971         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71972         on OSF/1 to no.
71973         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71974
71975 2006-08-23  Bruno Haible  <bruno@clisp.org>
71976
71977         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71978         as unusable.
71979
71980         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71981         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71982         (gl_LOCK): New macro.
71983
71984 2006-08-22  Simon Josefsson  <jas@extundo.com>
71985
71986         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71987         to md5 module.
71988
71989 2006-08-22  Simon Josefsson  <jas@extundo.com>
71990
71991         * MODULES.html.sh: Add "Support for maintaining and release
71992         projects".
71993
71994         * build-aux/gnupload: New file, from coreutils.
71995
71996 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         Avoid the need for AC_LIBSOURCES in m4 macros.
71999         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
72000         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
72001         * modules/check-version (EXTRA_DIST): Add check-version.h.
72002         * modules/crc (EXTRA_DIST): Add crc.h.
72003         * modules/des (EXTRA_DIST): Add des.h.
72004         * modules/gc (EXTRA_DIST): Add gc.h.
72005         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
72006         * modules/getline (EXTRA_DIST): Add getline.h.
72007         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
72008         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
72009         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
72010         * modules/md2 (EXTRA_DIST): Add md2.h.
72011         * modules/md4 (EXTRA_DIST): Add md4.h.
72012         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
72013         * modules/read-file (EXTRA_DIST): Add read-file.h.
72014         * modules/readline (EXTRA_DIST): Add readline.h.
72015         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
72016         rijndael-api-fst.h.
72017
72018 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * m4/rijndael.m4 (gl_ARCFOUR):
72021         * m4/arctwo.m4 (gl_ARCTWO):
72022         * m4/check-version.m4 (gl_CHECK_VERSION):
72023         * m4/crc.m4 (gl_CRC):
72024         * m4/des.m4 (gl_DES):
72025         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
72026         * m4/gc.m4 (gl_GC):
72027         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
72028         * m4/getline.m4 (gl_FUNC_GETLINE):
72029         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
72030         * m4/hmac-md5.m4 (gl_HMAC_MD5):
72031         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
72032         * m4/md2.m4 (gl_MD2):
72033         * m4/md4.m4 (gl_MD4):
72034         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
72035         * m4/read-file.m4 (gl_FUNC_READ_FILE):
72036         * m4/readline.m4 (gl_FUNC_READLINE):
72037         * m4/rijndael.m4 (gl_RIJNDAEL):
72038         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72039         to get the necessary .h files and whatnot.
72040
72041 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
72044         gnulib rather than the other way around.
72045         * config/srclistvars.sh (COREUTILS): Remove.
72046
72047 2006-08-22  Jim Meyering  <jim@meyering.net>
72048
72049         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
72050
72051         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
72052
72053 2006-08-22  Eric Blake  <ebb9@byu.net>
72054
72055         * modules/regexprops-generic: New file.
72056         * MODULES.html.sh (Support for building documentation): List it.
72057
72058 2006-08-22  Eric Blake  <ebb9@byu.net>
72059
72060         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
72061         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72062         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
72063         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
72064
72065 2006-08-22  Bruno Haible  <bruno@clisp.org>
72066
72067         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
72068         and lib_LTLIBRARIES like the other lib_* variables.
72069
72070 2006-08-22  Bruno Haible  <bruno@clisp.org>
72071
72072         * build-aux/x-to-1.in: New file, from GNU gettext.
72073
72074 2006-08-22  Bruno Haible  <bruno@clisp.org>
72075
72076         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
72077         <utmpx.h> exists.
72078
72079 2006-08-22  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
72082         <utmpx.h> exists.
72083
72084 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         BeOS portability.
72087         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
72088         exist.
72089         Problem reported by Bruno Haible.
72090
72091 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         Avoid the need for AC_LIBSOURCES in m4 macros.
72094         * modules/acl (EXTRA_DIST): Add acl.h.
72095         * modules/argmatch (Files): Add m4/argmatch.m4.
72096         (configure.ac): Add gl_ARGMATCH.
72097         (EXTRA_DIST): Renamed from lib_SOURCES, for
72098         consistency with the other modules.  Remove argmatch.c.
72099         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
72100         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
72101         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
72102         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
72103         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
72104         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
72105         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
72106         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
72107         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
72108         * modules/closeout (EXTRA_DIST): Add closeout.h.
72109         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
72110         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
72111         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
72112         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
72113         dirname.h; remove basename.c and stripslash.c.
72114         * modules/exclude (EXTRA_DIST): Add exclude.h.
72115         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
72116         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
72117         * modules/file-type (EXTRA_DIST): Add file-type.h.
72118         * modules/filemode (EXTRA_DIST): Add filemode.h.
72119         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
72120         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72121         * modules/fpending (EXTRA_DIST): Add __fpending.h.
72122         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
72123         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
72124         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
72125         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
72126         * modules/getdate (EXTRA_DIST): Add getdate.c.
72127         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
72128         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
72129         * modules/getpass (EXTRA_DIST): Add getpass.h.
72130         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
72131         * modules/group-member (EXTRA_DIST): Add group-member.h.
72132         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
72133         * modules/hash (EXTRA_DIST): Add hash.h.
72134         * modules/human (EXTRA_DIST): Add human.h.
72135         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
72136         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
72137         * modules/lchown (EXTRA_DIST): Add lchown.h.
72138         * modules/long-options (EXTRA_DIST): Add long-options.h.
72139         * modules/lstat (EXTRA_DIST): Add lstat.h.
72140         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
72141         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
72142         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
72143         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
72144         * modules/memxor (EXTRA_DIST): Add memxor.h.
72145         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
72146         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
72147         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
72148         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72149         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72150         * modules/physmem (EXTRA_DIST): Add physmem.h.
72151         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72152         * modules/posixver (EXTRA_DIST): Add posixver.h.
72153         * modules/quote (EXTRA_DIST): Add quote.h.
72154         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72155         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72156         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72157         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72158         regex_internal.h regexec.c.
72159         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72160         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72161         * modules/same (EXTRA_DIST): Add same.h.
72162         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72163         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72164         * modules/savedir (EXTRA_DIST): Add savedir.h.
72165         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72166         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72167         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72168         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72169         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72170         * modules/strdup (EXTRA_DIST): Add strdup.h.
72171         * modules/strftime (EXTRA_DIST): Add strftime.h.
72172         * modules/strndup (EXTRA_DIST): Add strndup.h.
72173         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72174         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72175         * modules/time_r (EXTRA_DIST): Add time_r.h.
72176         * modules/timespec (EXTRA_DIST): Add timespec.h.
72177         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72178         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72179         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72180         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72181         * modules/userspec (EXTRA_DIST): Add userspec.h.
72182         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72183         * modules/utimens (EXTRA_DIST): Add utimens.h.
72184         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72185         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72186         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72187         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72188         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72189         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72190         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72191         * modules/yesno (EXTRA_DIST): Add yesno.h.
72192
72193 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72196
72197         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72198         * m4/dev-ino.m4, same-inode.m4: Remove.
72199
72200         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72201         * m4/acl.m4 (AC_FUNC_ACL):
72202         * m4/backupfile.m4 (gl_BACKUPFILE):
72203         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72204         * m4/canon-host.m4 (gl_CANON_HOST):
72205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72206         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72207         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72208         * m4/cloexec.m4 (gl_CLOEXEC):
72209         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72210         * m4/closeout.m4 (gl_CLOSEOUT):
72211         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72212         * m4/dirname.m4 (gl_DIRNAME):
72213         * m4/exclude.m4 (gl_EXCLUDE):
72214         * m4/exitfail.m4 (gl_EXITFAIL):
72215         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72216         * m4/file-type.m4 (gl_FILE_TYPE):
72217         * m4/filemode.m4 (gl_FILEMODE):
72218         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72219         * m4/fpending.m4 (gl_FUNC_FPENDING):
72220         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72221         * m4/fts.m4 (gl_FUNC_FTS):
72222         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72223         * m4/getdate.m4 (gl_GETDATE):
72224         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72225         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72226         * m4/getpass.m4 (gl_FUNC_GETPASS):
72227         * m4/gettime.m4 (gl_GETTIME):
72228         * m4/getugroups.m4 (gl_GETUGROUPS):
72229         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72230         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72231         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72232         * m4/hash.m4 (gl_HASH):
72233         * m4/idcache.m4 (gl_IDCACHE):
72234         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72235         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72236         * m4/long-options.m4 (gl_LONG_OPTIONS):
72237         * m4/lstat.m4 (gl_FUNC_LSTAT):
72238         * m4/md5.m4 (gl_MD5):
72239         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72240         * m4/memcoll.m4 (gl_MEMCOLL):
72241         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72242         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72243         * m4/memxor.m4 (gl_MEMXOR):
72244         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72245         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72246         * m4/modechange.m4 (gl_MODECHANGE):
72247         * m4/mountlist.m4 (gl_MOUNTLIST):
72248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72249         * m4/openat.m4 (gl_FUNC_OPENAT):
72250         * m4/pathmax.m4 (gl_PATHMAX):
72251         * m4/physmem.m4 (gl_PHYSMEM):
72252         * m4/posixtm.m4 (gl_POSIXTM):
72253         * m4/posixver.m4 (gl_POSIXVER):
72254         * m4/quote.m4 (gl_QUOTE):
72255         * m4/quotearg.m4 (gl_QUOTEARG):
72256         * m4/readtokens.m4 (gl_READTOKENS):
72257         * m4/readutmp.m4 (gl_READUTMP):
72258         * m4/regex.m4 (gl_REGEX):
72259         * m4/safe-read.m4 (gl_SAFE_READ):
72260         * m4/safe-write.m4 (gl_SAFE_WRITE):
72261         * m4/same.m4 (gl_SAME):
72262         * m4/save-cwd.m4 (gl_SAVE_CWD):
72263         * m4/savedir.m4 (gl_SAVEDIR):
72264         * m4/settime.m4 (gl_SETTIME):
72265         * m4/sha1.m4 (gl_SHA1):
72266         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72267         * m4/stat-macros.m4 (gl_STAT_MACROS):
72268         * m4/stat-time.m4 (gl_STAT_TIME):
72269         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72270         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72271         * m4/strdup.m4 (gl_FUNC_STRDUP):
72272         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72273         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72274         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72275         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72276         * m4/time_r.m4 (gl_TIME_R):
72277         * m4/timespec.m4 (gl_TIMESPEC):
72278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72279         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72280         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72281         * m4/userspec.m4 (gl_USERSPEC):
72282         * m4/utimecmp.m4 (gl_UTIMECMP):
72283         * m4/utimens.m4 (gl_UTIMENS):
72284         * m4/xalloc.m4 (gl_XALLOC):
72285         * m4/xgetcwd.m4 (gl_XGETCWD):
72286         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72287         * m4/xreadlink.m4 (gl_XREADLINK):
72288         * m4/xstrtod.m4 (gl_XSTRTOD):
72289         * m4/yesno.m4 (gl_YESNO):
72290         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72291         to get the necessary .h files and whatnot.
72292
72293 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72294             Bruno Haible  <bruno@clisp.org>
72295
72296         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72297         /bin/sh understanding of '!' conditional negation.
72298
72299 2006-08-21  Jim Meyering  <jim@meyering.net>
72300
72301         * modules/openat (Depends-on): Really alphabetize.
72302
72303         * modules/acl (Depends-on): Add error and quote.
72304
72305         * check-module (find_included_lib_files): Add at-func.c to the
72306         ok-to-include-more-than-once white list.
72307
72308         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72309
72310 2006-08-21  Bruno Haible  <bruno@clisp.org>
72311
72312         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72313         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72314         Reported by Martin Lambers <marlam@marlam.de>.
72315
72316 2006-08-21  Bruno Haible  <bruno@clisp.org>
72317
72318         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72319         specify an installation location, don't emit a noinst_LIBRARIES or
72320         noinst_LTLIBRARIES assignment.
72321
72322 2006-08-21  Bruno Haible  <bruno@clisp.org>
72323
72324         BeOS portability.
72325         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72326         BeOS has mbrtowc() but no <wctype.h>.
72327
72328 2006-08-21  Bruno Haible  <bruno@clisp.org>
72329
72330         BeOS portability.
72331         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72332         exist.
72333
72334 2006-08-21  Bruno Haible  <bruno@clisp.org>
72335
72336         BeOS portability.
72337         * lib/mbchar.h: Include <wctype.h> only if it exists.
72338
72339 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         Remove files that are no longer needed by their respective modules.
72342         * m4/obstack.m4: Remove.
72343         * m4/strerror_r.m4: Remove.
72344         * m4/uint32_t.m4: Remove.
72345         * m4/uintptr_t.m4: Remove.
72346         * m4/ullong_max.m4: Remove.
72347         * m4/xstrtoimax.m4: Remove.
72348         * m4/xstrtoumax.m4: Remove.
72349
72350         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72351         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72352         dependencies now capture this.
72353
72354         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72355         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72356         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72357         * m4/human.m4 (gl_HUMAN): Likewise.
72358         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72359         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72360
72361         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72362
72363         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72364         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72365         stdint.
72366         * m4/human.m4 (gl_HUMAN): Likewise.
72367         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72368         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72369         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72370         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72371         * m4/xstrtol (gl_XSTRTOL): Likewise.
72372
72373         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72374         AC_TYPE_LONG_LONG_INT.
72375         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72376         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72377         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72378         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72379
72380         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72381         on stdbool.
72382
72383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72384         (gl_PREREQ_XSTRTOUL): Remove.
72385
72386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72387
72388         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72389         mode.
72390
72391 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         Add and change modules to make it easier for coreutils to use
72394         gnulib-tool.
72395         * modules/backupfile (Files): Remove m4/d-ino.m4.
72396         (Depends-on): Add d-ino.
72397         * modules/cycle-check (Depends-on): Add stdint.
72398         (lib_SOURCES): Add cycle-check.h.
72399         * modules/d-ino: New module.
72400         * modules/d-type: New module.
72401         * modules/error (Files): Remove m4/strerror_r.m4.
72402         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72403         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72404         m4/inttypes_h.m4, m4/uintmax_t.m4.
72405         (Depends-on): Add stdint.
72406         (lib_SOURCES): Add fsusage.h.
72407         * modules/getcwd (Files): Remove d-ino.m4.
72408         (Depends-on): Add d-ino.
72409         * modules/getndelim2 (Depends-on): Add stdint.
72410         * modules/glob (Files): Remove m4/d-type.m4.
72411         (Depends-on): Add d-type.
72412         * modules/host-os: New module.
72413         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72414         m4/inttypes_h.m4, m4/uintmax_t.m4.
72415         * Depends-on: Add stdint.
72416         (lib_SOURCES): Add human.h.
72417         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72418         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72419         m4/uintmax_t.m4, m4/ulonglong.m4.
72420         (Depends-on): Add stdint.
72421         (EXTRA_DIST): Add inttostr.h.
72422         * modules/lchmod: New module.
72423         * modules/link-follow: New module.
72424         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72425         (Depends-on): Add lchmod.
72426         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72427         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72428         (Depends-on): Add stdint.
72429         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72430         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72431         (Depends-on): Add stdint.
72432         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72433         * modules/perl: New module.
72434         * modules/regex (Depends-on): Add stdint.
72435         * modules/rmdir-errno: New module.
72436         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72437         m4/intmax_t.m4.
72438         (Depends-on): Add stdint.
72439         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72440         m4/uintmax_t.m4.
72441         (Depends-on): Add stdint.
72442         * modules/unlink-busy: New module.
72443         * modules/utimecmp (Depends-on): Add stdint.
72444         * modules/uptime: New module.
72445         * modules/winsz-ioctl: New module.
72446         * modules/winsz-termios: New module.
72447         * modules/xnanosleep (Depends-on): Add nanosleep.
72448         * modules/ullong_max: Remove.
72449         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72450         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72451         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72452         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72453         (Depends-on): Add inttypes.
72454         (lib_SOURCES): Add xstrtol.h.
72455         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72456         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72457         * MODULES.html.sh: Move 'assert' into the assert section.
72458         Move 'dummy' into the linking section.
72459         Remove ullong_max.
72460         Add section for compatibility checks for POSIX:2001 functions,
72461         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72462         winsz-ioctl, and winsz-termios into it.
72463         Add lchmod.
72464         Add top-level Misc section and put host-os, perl, and uptime
72465         into it.
72466
72467 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72470         now assume the stdint module.  Do not include inttypes.h.
72471         * lib/fsusage.h: Likewise.
72472         * lib/getndelim2.c: Likewise.
72473         * lib/human.h: Likewise.
72474         * lib/inttostr.h: Likewise.
72475         * lib/obstack.c: Likewise.
72476         * lib/regex_internal.h: Likewise.
72477         * lib/tempname.c: Likewise.
72478         * lib/utimecmp.c: Likewise.
72479         * lib/xstrtol.h: Likewise.
72480
72481         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72482
72483         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72484         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72485         * lib/xtime.h: Likewise.
72486
72487 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * modules/openat (Files): Add lib/fchmodat.c.
72490         Fixes problem reported by Jay Youngman.
72491
72492 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72495         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72496
72497 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72498             Bruno Haible  <bruno@clisp.org>
72499
72500         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72501         and is a script that invokes bison. Tighten the code. Add comments.
72502
72503 2006-08-18  Jim Meyering  <jim@meyering.net>
72504
72505         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72506         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72507         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72508         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72509
72510 2006-08-18  Bruno Haible  <bruno@clisp.org>
72511
72512         * modules/bison-i18n: New file.
72513         * MODULES.html.sh (Internationalization functions): Add it.
72514
72515 2006-08-18  Bruno Haible  <bruno@clisp.org>
72516
72517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72518         sys/statvfs.h. When getmntinfo was found, check its declaration and
72519         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72520
72521 2006-08-18  Bruno Haible  <bruno@clisp.org>
72522
72523         * m4/bison-i18n.m4: New file, from bison.
72524
72525 2006-08-18  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72528         (ME_DUMMY): Treat "kernfs" as a dummy.
72529         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72530
72531 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         Update from coreutils.
72534
72535         2006-08-15  Jim Meyering  <jim@meyering.net>
72536
72537         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72538
72539         2006-01-17  Jim Meyering  <jim@meyering.net>
72540
72541         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72542
72543         2006-01-11  Jim Meyering  <jim@meyering.net>
72544
72545         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72546         Check for the lchmod function.
72547
72548 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         Update from coreutils.
72551
72552         * lib/__fpending.h: Add copyright notice.
72553         * lib/fprintftime.h: Likewise.
72554         * lib/savedir.c: Use (C) in copyright notice.
72555         * lib/savedir.h: Likewise.
72556
72557         2006-08-15  Jim Meyering  <jim@meyering.net>
72558
72559         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72560         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72561         in support of the EXPECTED_ERRNO macro.
72562         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72563         definitions.  Instead, define the appropriate symbols and include
72564         "at-func.c".
72565         * lib/mkdirat.c (mkdirat): Likewise.
72566         * lib/fchmodat.c (fchmodat): Likewise.
72567         (ENOSYS): Remove definition.
72568         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72569         it.  Don't include "unistd--.h" -- it wasn't ever used.
72570
72571         2006-01-17  Jim Meyering  <jim@meyering.net>
72572
72573         Rewrite fts.c not to change the current working directory,
72574         by using openat, fstatat, fdopendir, etc..
72575
72576         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72577         (HAVE_OPENAT_SUPPORT): Define.
72578         [_LIBC] (fchdir): Don't undef or define; no longer used.
72579         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72580         Now, this `function' always succeeds, and consumes its file descriptor
72581         parameter -- so callers must not close such FDs.  Update callers.
72582         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72583         (diropen): Add parameter, SP.  Adjust all callers.
72584         Implement using diropen_fd, rather than open.
72585         (fts_open): Initialize new member, fts_cwd_fd.
72586         Remove fts_rft-setting code.
72587         (fts_close): Close fts_cwd_fd, if necessary.
72588         (__opendir2): Define in terms of opendir or opendirat,
72589         depending on whether the FST_NOCHDIR flag is set.
72590         (fts_build): Since fts_safe_changedir consumes its FD, and since
72591         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72592         and close the dup'd file descriptor upon failure.
72593         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72594         (fts_safe_changedir): Tweak semantics to reflect that this function
72595         now calls cwd_advance_fd and hence consumes its FD argument.
72596         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72597         [struct FTS] (fts_rft): Remove now-unused member.
72598         [struct FTS] (fts_cycle.state): Improve comment.
72599
72600         * lib/openat.c (openat_needs_fchdir): New function.
72601         * lib/openat.h (openat_needs_fchdir): Declare it.
72602
72603 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72606         Problem and fix reported by Pádraig Brady in
72607         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72608
72609 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72612
72613 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * lib/memcoll.c (memcoll): Optimize for the common case where the
72616         arguments are bytewise equal.
72617
72618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         * doc/regexprops-generic.texi: Add a copyright notice.
72621
72622 2006-08-15  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/tmpdir (License): Change to LGPL.
72625
72626 2006-08-15  Bruno Haible  <bruno@clisp.org>
72627
72628         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72629         module.
72630
72631 2006-08-14  Simon Josefsson  <jas@extundo.com>
72632
72633         * config/srclist.txt: Add gnupload.
72634
72635 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         Change copyright notice from LGPL 2 to GPL 2, since that's the
72638         standard form used in the gnulib repository.
72639         * tests/test-lock.c: Likewise.
72640         * tests/test-stdint.c: Likewise.
72641         * tests/test-tls.c: Likewise.
72642
72643         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72644         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72645         Add copyright notice.
72646
72647         * check-module: Add copyright notice.  Output a copyright
72648         notice if "--version" is specified.
72649         * modules/COPYING: New file.
72650         * tests/test-getaddrinfo.c: Add copyright notice.
72651         * tests/test-verify.c: Likewise.
72652
72653 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         Change copyright notice from LGPL 2 to GPL 2, since that's the
72656         standard form used in the gnulib repository.
72657         * lib/lock.c: LGPL -> GPL.
72658         * lib/lock.h: Likewise.
72659         * lib/strnlen1.c: Likewise.
72660         * lib/strnlen1.h: Likewise.
72661         * lib/tls.c: Likewise.
72662         * lib/tls.h: Likewise.
72663         * lib/tmpdir.c: Likewise.
72664
72665         * lib/TODO: Remove; this belongs only in coreutils.
72666
72667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         Add copyright notices to long-enough files that lack them, since
72670         otherwise the files aren't clearly free.  Use the same notice that
72671         getdate.texi already uses.
72672         * doc/alloca-opt.texi: Add copyright notice.
72673         * doc/alloca.texi: Likewise.
72674         * doc/ctime.texi: Likewise.
72675         * doc/functions.texi: Likewise.
72676         * doc/gcd.texi: Likewise.
72677         * doc/gnulib-tool.texi: Likewise.
72678         * doc/inet_ntoa.texi: Likewise.
72679         * doc/visibility.texi: Likewise.
72680
72681         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72682         * doc/quote.texi: Add copyright notice.
72683
72684         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72685         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72686         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72687         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72688         is now obsolete, and give a pointer to the Sun list.
72689         Add copyright notice.
72690
72691 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * config/srclistvars.sh: Add copyright notice.
72694
72695 2006-08-14  Eric Blake  <ebb9@byu.net>
72696
72697         Import the following change from libc:
72698
72699         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72700
72701         Upstream bug 2997.
72702         * lib/misc/error.c: Add space between program name and message if file
72703         name is missing.
72704
72705 2006-08-12  Karl Berry  <karl@gnu.org>
72706
72707         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72708         remove, these originate in gnulib now.
72709
72710 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72711
72712         * doc/Makefile (standards.info standards.html standards.dvi):
72713         Also depend on make-stds.texi.
72714
72715 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72716
72717         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72718         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72719
72720         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72721         in wchar_t.  Problem reported by Eric Blake.
72722
72723         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72724         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72725         Also, help the compiler to keep LEN in a register.
72726
72727 2006-08-11  Eric Blake  <ebb9@byu.net>
72728
72729         * users.txt: Sort.  Add tar.
72730
72731 2006-08-11  Bruno Haible  <bruno@clisp.org>
72732
72733         * users.txt: New file.
72734
72735 2006-08-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72738         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72739
72740 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * modules/snprintf (Depends-on): Remove minmax.
72743         (Maintainer): Add self and Bruno.
72744
72745 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72748         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72749         (EOVERFLOW): Define if the system does not.
72750         Do not include "minmax.h"; it wasn't used.
72751         (snprintf): Don't assume size_t promotes to an unsigned type.
72752         Fix bug when generated string was too long for the buffer: the
72753         buffer's contents are supposed to be the initial prefix of the
72754         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72755         exceeds INT_MAX; do the check ourselves.
72756
72757         Import the following changes from libc:
72758
72759         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72760
72761         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72762         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72763         set wc to the byte which couldn't be converted.
72764         (re_string_reconstruct): Don't clear valid_raw_len before calling
72765         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72766         tip_context using re_string_context_at.
72767
72768         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72769
72770         * lib/posix/regex.h: g++ still cannot handled [restrict].
72771
72772         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72773
72774         * lib/posix/regex.h: Remove special handling for VMS.
72775
72776 2006-08-10  Jim Meyering  <jim@meyering.net>
72777
72778         * modules/same-inode: New module.
72779         * modules/dev-ino: New module.
72780         * modules/cycle-check: Depend on these modules, rather than simply
72781         including their .h files.
72782         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72783         required via m4/cycle-check.m4.
72784         * modules/same: Depend on new same-inode module, rather than
72785         including same-inode.h.
72786         * modules/chdir-safer: New file.
72787
72788         * modules/chown (Depends-on): Add stat-macros.
72789
72790 2006-08-10  Jim Meyering  <jim@meyering.net>
72791
72792         * m4/cycle-check.m4: New file.
72793         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72794         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72795
72796 2006-08-10  Eric Blake  <ebb9@byu.net>
72797
72798         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72799         in from original proposal.
72800
72801 2006-08-10  Eric Blake  <ebb9@byu.net>
72802         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72803
72804         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72805         namespace.
72806
72807 2006-08-10  Bruno Haible  <bruno@clisp.org>
72808
72809         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72810         as well.
72811
72812 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         Sync from coreutils.
72815
72816         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72817
72818         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72819         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72820
72821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         * modules/restrict: Remove; no longer needed now that we assume
72824         Autoconf 2.59 or later.
72825         * MODULES.html.sh: Remove 'restrict'.
72826         * modules/argp (Depends-on): Remove 'restrict'.
72827         * modules/base64 (Depends-on): Likewise.
72828         * modules/gc (Depends-on): Likewise.
72829         * modules/getaddrinfo (Depends-on): Likewise.
72830         * modules/glob (Depends-on): Likewise.
72831         * modules/inet_ntop (Depends-on): Likewise.
72832         * modules/inet_pton (Depends-on): Likewise.
72833         * modules/memxor (Depends-on): Likewise.
72834         * modules/regex (Depends-on): Likewise.
72835         * modules/strtok_r (Depends-on): Likewise.
72836         * modules/time_r (Depends-on): Likewise.
72837
72838 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72841         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72842         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72843         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72844         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72845         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72846         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72847         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72848
72849         Merge from coreutils.
72850         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72851         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72852         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72853         * m4/time_r.m4 (gl_TIME_R): Likewise.
72854
72855 2006-08-09  Karl Berry  <karl@gnu.org>
72856
72857         * config/srclist.txt: no more gettext-tools, per Bruno.
72858
72859 2006-08-08  Eric Blake  <ebb9@byu.net>
72860
72861         * modules/verror: New module.
72862         * MODULES.html.sh: Document it.
72863
72864 2006-08-08  Eric Blake  <ebb9@byu.net>
72865
72866         * lib/verror.h, lib/verror.c: New files.
72867
72868 2006-08-08  Eric Blake  <ebb9@byu.net>
72869
72870         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72871         verror_at_line output complies with GNU Coding Standards even when
72872         file is NULL.
72873
72874 2006-08-07  Bruno Haible  <bruno@clisp.org>
72875
72876         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72877         versions of AIX.
72878         Reported by Ralf Wildenhues.
72879
72880 2006-08-07  Bruno Haible  <bruno@clisp.org>
72881
72882         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72883         in an AC_DEFUN. Needed so that the autoconf snippets can use
72884         AC_REQUIRE.
72885
72886 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72887
72888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72889         Initialize pkgdata_DATA.
72890         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72891         overriding it.
72892
72893 2006-08-06  Eric Blake  <ebb9@byu.net>
72894
72895         * lib/error.h: Fold in some upstream changes from glibc.
72896         * lib/error.c: Likewise.
72897
72898 2006-08-04  Bruno Haible  <bruno@clisp.org>
72899
72900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72901         Make the mostlyclean-local rule depend on mostlyclean-generic.
72902         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72903
72904 2006-07-31  Bruno Haible  <bruno@clisp.org>
72905
72906         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72907         <stdlib.h>, <string.h>.
72908
72909 2006-07-30  Bruno Haible  <bruno@clisp.org>
72910
72911         * modules/readlink (License): Change to LGPL.
72912
72913 2006-07-30  Bruno Haible  <bruno@clisp.org>
72914
72915         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72916         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72917         set PKGDATADIR to point to it.
72918
72919 2006-07-30  Bruno Haible  <bruno@clisp.org>
72920
72921         * modules/csharpexec (configure.ac): Comment out macro invocation.
72922         * modules/javaexec (configure.ac): Likewise.
72923         * modules/javacomp-script (configure.ac): Likewise.
72924
72925         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72926
72927 2006-07-30  Bruno Haible  <bruno@clisp.org>
72928
72929         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72930         linked-list.
72931
72932 2006-07-30  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72935
72936 2006-07-30  Bruno Haible  <bruno@clisp.org>
72937
72938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72939         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72940         get removed.
72941
72942 2006-07-29  Bruno Haible  <bruno@clisp.org>
72943
72944         Make it possible for gnulib-tool to work with locally modified or
72945         augmented gnulib repositories.
72946         * gnulib-tool (func_usage): Document --local-dir option.
72947         (local_gnulib_dir): New variable.
72948         Handle --local-dir option.
72949         (func_lookup_file): New function.
72950         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72951         (func_get_description, func_get_filelist, func_get_description,
72952         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72953         func_get_automake_snippet, func_get_include_directive,
72954         func_get_license, func_get_maintainer): Use func_lookup_file.
72955         (func_import, func_create_testdir): Use func_lookup_file.
72956
72957 2006-07-29  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/setenv (Depends-on): Add unistd.
72960
72961 2006-07-29  Bruno Haible  <bruno@clisp.org>
72962
72963         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72964
72965 2006-07-29  Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72968
72969 2006-07-29  Bruno Haible  <bruno@clisp.org>
72970
72971         * gnulib-tool (import, update): If there is no Makefile.am, look at
72972         aclocal.m4, instead of bailing out.
72973
72974 2006-07-29  Bruno Haible  <bruno@clisp.org>
72975
72976         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72977         Categorize the options by when they are useful.
72978
72979 2006-07-29  Bruno Haible  <bruno@clisp.org>
72980
72981         * gnulib-tool (func_usage): Document option --no-libtool.
72982         Handle option --no-libtool.
72983         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72984         for changed semantics of $libtool variable.
72985         (func_import): Likewise. If libtool is not used, show this through
72986         an option --no-libtool.
72987         (func_create_testdir): Update.
72988
72989 2006-07-29  Bruno Haible  <bruno@clisp.org>
72990
72991         * gnulib-tool (func_import): Extend error message about missing
72992         --doc-base.
72993
72994 2006-07-29  Bruno Haible  <bruno@clisp.org>
72995
72996         * gnulib-tool (func_import): Don't create the $docbase directory if
72997         there is no file to store there.
72998
72999 2006-07-29  Bruno Haible  <bruno@clisp.org>
73000
73001         * gnulib-tool (autoconf_minversion): If a --dir option is given and
73002         relevant, look for configure.ac there, not in the current directory.
73003         Also use a simple search for AC_PREREQ, not "autoconf --trace".
73004
73005 2006-07-29  Bruno Haible  <bruno@clisp.org>
73006
73007         * gnulib-tool (SORT): New variable.
73008         (func_usage): Undocument --assume-autoconf option.
73009         Remove --assume-autoconf option handling.
73010         (autoconf_minversion): Determine from the contents of configure.ac.
73011         (func_import): Remove autoconf_minversion handling.
73012         Suggested by Eric Blake.
73013
73014 2006-07-29  Bruno Haible  <bruno@clisp.org>
73015
73016         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
73017
73018 2006-07-29  Bruno Haible  <bruno@clisp.org>
73019
73020         * config/srclist.txt (*setenv.[ch]): Remove rules.
73021
73022 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73023
73024         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
73025
73026 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73027
73028         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
73029         arpa/inet.h.
73030
73031 2006-07-28  Simon Josefsson  <jas@extundo.com>
73032
73033         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
73034         * modules/inet_pton (Depends-on): Likewise.
73035
73036 2006-07-28  Simon Josefsson  <jas@extundo.com>
73037
73038         * m4/netinet_in_h.m4: New file.
73039
73040 2006-07-28  Simon Josefsson  <jas@extundo.com>
73041
73042         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
73043         #include's.
73044
73045 2006-07-28  Simon Josefsson  <jas@extundo.com>
73046
73047         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
73048         #include's.
73049
73050 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
73053         setgid on directories only if they set these bits.
73054         * lib/modechange.h: Remove obsolete comment about masks.
73055
73056 2006-07-28  Eric Blake  <ebb9@byu.net>
73057
73058         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
73059         macro expansion.
73060
73061 2006-07-28  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
73064
73065 2006-07-28  Bruno Haible  <bruno@clisp.org>
73066
73067         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
73068
73069 2006-07-28  Bruno Haible  <bruno@clisp.org>
73070
73071         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73072         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73073         Define fallbacks.
73074         Avoids link error on FreeBSD 4.x.
73075         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73076
73077         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
73078         encoding.
73079         * lib/mbswidth.c (iswcntrl): Likewise.
73080
73081 2006-07-27  Bruno Haible  <bruno@clisp.org>
73082
73083         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
73084         test.
73085
73086 2006-07-27  Bruno Haible  <bruno@clisp.org>
73087
73088         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
73089         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
73090         defined.
73091
73092 2006-07-26  Eric Blake  <ebb9@byu.net>
73093
73094         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
73095
73096 2006-07-26  Eric Blake  <ebb9@byu.net>
73097
73098         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
73099         like mingw that lack mkstemp.
73100         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
73101         avoid compilation warning on mingw.
73102
73103 2006-07-26  Bruno Haible  <bruno@clisp.org>
73104
73105         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
73106         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
73107         INT_FAST*_MIN, INTPTR_MIN.
73108
73109 2006-07-25  Bruno Haible  <bruno@clisp.org>
73110
73111         * modules/version-etc (Depends-on): Add stdarg.
73112
73113 2006-07-25  Bruno Haible  <bruno@clisp.org>
73114
73115         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
73116         complex commands.
73117
73118 2006-07-25  Bruno Haible  <bruno@clisp.org>
73119
73120         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
73121         defined in <stdarg.h> or config.h.
73122
73123 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
73126         (gl_STDIO_SAFER): Remove.
73127
73128 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * MODULES.html.sh (File stream based Input/Output):
73131         Add fopen-safer, tmpfile-safer; remove stdio-safer.
73132         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
73133         * modules/fopen-safer, modules/tmpfile-safer: New files.
73134         * modules/stdio-safer: Remove.
73135
73136 2006-07-24  Bruno Haible  <bruno@clisp.org>
73137
73138         * modules/tmpdir: New file.
73139         * MODULES.html.sh (File system functions): Add it.
73140
73141 2006-07-24  Bruno Haible  <bruno@clisp.org>
73142
73143         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
73144         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
73145
73146 2006-07-24  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/clean-temp: New file.
73149
73150 2006-07-24  Bruno Haible  <bruno@clisp.org>
73151
73152         * m4/tmpdir.m4: New file, from GNU gettext.
73153
73154 2006-07-24  Bruno Haible  <bruno@clisp.org>
73155
73156         * lib/tmpdir.h: New file, from GNU gettext.
73157         * lib/tmpdir.c: New file, from GNU gettext.
73158
73159 2006-07-24  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/clean-temp.h: New file, from GNU gettext.
73162         * lib/clean-temp.c: New file, from GNU gettext.
73163
73164 2006-07-23  Eric Blake  <ebb9@byu.net>
73165
73166         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73167         (Depends-on): Add binary-io.
73168
73169 2006-07-23  Eric Blake  <ebb9@byu.net>
73170
73171         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73172
73173 2006-07-23  Eric Blake  <ebb9@byu.net>
73174
73175         * lib/tmpfile-safer.c: New file.
73176         * lib/stdio-safer.h (fopen_safer): Add prototype.
73177         * lib/stdio--.h (tmpfile): Make safer.
73178
73179 2006-07-23  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73182         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73183         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73184         gl_linked_remove_at): Use it.
73185
73186 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73187         and Simon Josefsson <jas@extundo.com>
73188
73189         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73190
73191         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73192
73193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73194
73195         * modules/close-stream: New file.
73196         * modules/closeout (Description): Make it clear that it exits
73197         with a diagnostic on error.
73198         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73199         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73200
73201 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/close-stream.m4: New file.
73204
73205 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * lib/close-stream.c, lib/close-stream.h: New files.
73208
73209 2006-07-22  Bruno Haible  <bruno@clisp.org>
73210
73211         Merge from GNU gettext 0.15.
73212
73213         2006-05-01  Bruno Haible  <bruno@clisp.org>
73214
73215                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73216
73217         2006-07-22  Bruno Haible  <bruno@clisp.org>
73218
73219                 * modules/javaversion: New file.
73220                 * MODULES.html.sh (Java): Add javaversion.
73221
73222         2006-03-12  Bruno Haible  <bruno@clisp.org>
73223
73224                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73225
73226         2005-12-04  Bruno Haible  <bruno@clisp.org>
73227
73228                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73229                 (untested).
73230
73231         2006-06-21  Bruno Haible  <bruno@clisp.org>
73232
73233                 Avoid warnings from recent versions of mcs.
73234                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73235                 -o, -L, -r any more. Use options documented since mcs-1.0
73236                 instead. Similarly for -g.
73237
73238         2005-12-04  Bruno Haible  <bruno@clisp.org>
73239
73240                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73241                 .resources, not .resource.
73242
73243         2005-07-09  Bruno Haible  <bruno@clisp.org>
73244
73245                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73246                 add a .dll suffix.
73247                 Reported by Mark Junker <mjscod@gmx.de>.
73248
73249         2006-07-22  Bruno Haible  <bruno@clisp.org>
73250
73251                 * modules/gettext: Upgrade to gettext-0.15.
73252                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73253                 m4/visibility.m4.
73254                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73255
73256 2006-07-22  Bruno Haible  <bruno@clisp.org>
73257
73258         Merge from GNU gettext 0.15.
73259
73260         2006-03-25  Bruno Haible  <bruno@clisp.org>
73261
73262                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73263
73264         2006-07-21  Bruno Haible  <bruno@clisp.org>
73265
73266                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73267                 "1.1".
73268
73269         2006-05-09  Bruno Haible  <bruno@clisp.org>
73270
73271                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73272                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73273                 for the conftestver execution.
73274
73275         2006-05-01  Bruno Haible  <bruno@clisp.org>
73276
73277                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73278                 optional target-version argument. Verify that the compiler
73279                 groks source of the specified source-version, or add -source
73280                 option as necessary. Verify that the compiler produces
73281                 bytecode in the specified target-version, or add -target and
73282                 -source options as necessary. Make the result of the test
73283                 available as variable CONF_JAVAC. Also log error output in
73284                 config.log.
73285
73286         2006-03-11  Bruno Haible  <bruno@clisp.org>
73287
73288                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73289
73290         2006-05-09  Bruno Haible  <bruno@clisp.org>
73291
73292                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73293                 CLASSPATH_SEPARATOR to a semicolon.
73294
73295         2006-03-12  Bruno Haible  <bruno@clisp.org>
73296
73297                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73298                 available as variable CONF_JAVA, for subsequent autoconf
73299                 tests. Also log error output in config.log.
73300
73301         2006-07-19  Bruno Haible  <bruno@clisp.org>
73302
73303                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73304                 that getline works on glibc2 systems. Needed to avoid trouble
73305                 in relocatable.c.
73306                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73307
73308         2005-12-04  Bruno Haible  <bruno@clisp.org>
73309
73310                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73311                 launcher (untested).
73312
73313         2005-12-04  Bruno Haible  <bruno@clisp.org>
73314
73315                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73316
73317         2006-07-22  Bruno Haible  <bruno@clisp.org>
73318
73319                 * gettext.m4: Update from GNU gettext-0.15.
73320                 * nls.m4: Likewise.
73321                 * po.m4: Likewise.
73322                 * inttypes-pri.m4: Likewise.
73323                 * inttypes-h.m4: Renamed from inttypes.m4.
73324                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73325
73326 2006-07-22  Bruno Haible  <bruno@clisp.org>
73327
73328         Merge from GNU gettext 0.15.
73329
73330         2005-07-05  Bruno Haible  <bruno@clisp.org>
73331
73332                 * printf-args.c (printf_fetchargs): Work around broken
73333                 definition of wint_t on mingw.
73334
73335         2005-02-12  Bruno Haible  <bruno@clisp.org>
73336
73337                 * xallocsa.h: Add extern "C" for C++.
73338
73339         2006-05-17  Bruno Haible  <bruno@clisp.org>
73340
73341                 Cygwin portability.
73342                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73343
73344         2006-04-30  Bruno Haible  <bruno@clisp.org>
73345
73346                 * progreloc.c: Include <mach-o/dyld.h> if available.
73347                 (find_executable): Use _NSGetExecutablePath when possible.
73348
73349         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73350
73351                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73352                 function.
73353
73354         2005-12-29  Bruno Haible  <bruno@clisp.org>
73355
73356                 * progreloc.c (set_program_name_and_installdir): Fix
73357                 compilation error.
73358
73359         2005-12-04  Bruno Haible  <bruno@clisp.org>
73360
73361                 Cygwin portability.
73362                 * progreloc.c: Include <windows.h> also on Cygwin.
73363                 (find_executable): Add support for Cygwin.
73364                 (set_program_name_and_installdir): Handle also platforms with
73365                 nonempty EXEEXT.
73366
73367         2006-07-11  Bruno Haible  <bruno@clisp.org>
73368
73369                 * javacomp.c: Fix a comment.
73370                 Reported by Jim Meyering.
73371
73372         2006-04-30  Bruno Haible  <bruno@clisp.org>
73373
73374                 * javacomp.h (compile_java_class): Add source_version,
73375                 target_version arguments.
73376                 * javacomp.c: Rewritten to choose only a compiler that
73377                 respects the specified source_version and target_version.
73378
73379         2006-06-27  Bruno Haible  <bruno@clisp.org>
73380
73381                 Assume correct S_ISDIR macro.
73382                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73383
73384         2006-07-22  Bruno Haible  <bruno@clisp.org>
73385
73386                 * javaversion.h: New file, from GNU gettext.
73387                 * javaversion.c: New file, from GNU gettext.
73388                 * javaversion.java: New file, from GNU gettext.
73389                 * javaversion.class: New file, from GNU gettext.
73390
73391         2006-05-17  Bruno Haible  <bruno@clisp.org>
73392
73393                 Cygwin portability.
73394                 * javaexec.c (execute_java_class): Test for jview program
73395                 also on Cygwin.
73396
73397         2006-04-09  Bruno Haible  <bruno@clisp.org>
73398
73399                 * fatal-signal.c: Don't include string.h.
73400                 (at_fatal_signal): Use a copying loop instead of memcpy.
73401
73402         2005-12-04  Bruno Haible  <bruno@clisp.org>
73403
73404                 * csharpexec.c: Add support for 'clix' launcher (untested).
73405                 (execute_csharp_using_sscli): New function.
73406                 (execute_csharp_program): Call it.
73407
73408         2006-06-21  Bruno Haible  <bruno@clisp.org>
73409
73410                 Avoid warnings from recent versions of mcs.
73411                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73412                 -o, -L, -r any more. Use options documented since mcs-1.0
73413                 instead. Similarly for -g.
73414
73415         2005-07-09  Bruno Haible  <bruno@clisp.org>
73416
73417                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73418                 add a .dll suffix.
73419                 Reported by Mark Junker <mjscod@gmx.de>.
73420
73421         2006-06-17  Bruno Haible  <bruno@clisp.org>
73422
73423                 * config.charset: Update for NetBSD 3.0.
73424
73425         2006-05-17  Bruno Haible  <bruno@clisp.org>
73426
73427                 Cygwin portability.
73428                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73429
73430         2006-05-16  Bruno Haible  <bruno@clisp.org>
73431
73432                 * localcharset.c [CYGWIN]: Include <windows.h>.
73433                 (get_charset_aliases): For Cygwin, return the same CPxxx
73434                 aliases list as under WIN32.
73435                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73436                 the environment variables. Fall back to GetACP().
73437
73438         2006-04-05  Bruno Haible  <bruno@clisp.org>
73439
73440                 * config.charset: Update Juan Manuel Guerrero's address.
73441
73442         2005-02-12  Bruno Haible  <bruno@clisp.org>
73443
73444                 * allocsa.h: Add extern "C" for C++.
73445
73446         2005-02-10  Bruno Haible  <bruno@clisp.org>
73447
73448                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73449                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73450
73451         2006-07-22  Bruno Haible  <bruno@clisp.org>
73452
73453                 * gettext.h: Update to GNU gettext-0.15.
73454
73455 2006-07-22  Bruno Haible  <bruno@clisp.org>
73456
73457         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73458         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73459         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73460
73461 2006-07-21  Eric Blake  <ebb9@byu.net>
73462
73463         * modules/stdlib-safer: New file.
73464         * MODULES.html.sh (File stream based Input/Output): Add
73465         stdlib-safer.
73466
73467 2006-07-21  Eric Blake  <ebb9@byu.net>
73468
73469         * lib/stdlib-safer.h: New file from coreutils, required by
73470         stdlib--.h.
73471
73472 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73475
73476 2006-07-20  Bruno Haible  <bruno@clisp.org>
73477
73478         * gnulib-tool: Recognize new option --assume-autoconf.
73479         (autoconf_minversion): New variable.
73480         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73481
73482 2006-07-20  Bruno Haible  <bruno@clisp.org>
73483
73484         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73485
73486 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73487
73488         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73489         Reindent and repaginate.
73490
73491 2006-07-19  Derek Price  <derek@ximbiot.com>
73492
73493         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73494         Correct grammar.
73495
73496 2006-07-17  Bruno Haible  <bruno@clisp.org>
73497
73498         * modules/list: New file.
73499         * modules/array-list: New file.
73500         * modules/carray-list, modules/carray-list-tests: New files.
73501         * modules/linked-list, modules/linked-list-tests: New files.
73502         * modules/avltree-list, modules/avltree-list-tests: New files.
73503         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73504         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73505         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73506         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73507         * modules/oset: New file.
73508         * modules/array-oset: New file.
73509         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73510         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73511         * tests/test-carray_list.c: New file.
73512         * tests/test-linked_list.c: New file.
73513         * tests/test-avltree_list.c: New file.
73514         * tests/test-rbtree_list.c: New file.
73515         * tests/test-linkedhash_list.c: New file.
73516         * tests/test-avltreehash_list.c: New file.
73517         * tests/test-rbtreehash_list.c: New file.
73518         * tests/test-avltree_oset.c: New file.
73519         * tests/test-rbtree_oset.c: New file.
73520         * MODULES.html.sh (Container data structures): New section.
73521
73522 2006-07-17  Bruno Haible  <bruno@clisp.org>
73523
73524         * m4/gl_list.m4: New file.
73525
73526 2006-07-17  Bruno Haible  <bruno@clisp.org>
73527
73528         * lib/gl_list.h: New file.
73529         * lib/gl_list.c: New file.
73530         * lib/gl_array_list.h: New file.
73531         * lib/gl_array_list.c: New file.
73532         * lib/gl_carray_list.h: New file.
73533         * lib/gl_carray_list.c: New file.
73534         * lib/gl_linked_list.h: New file.
73535         * lib/gl_linked_list.c: New file.
73536         * lib/gl_anylinked_list1.h: New file.
73537         * lib/gl_anylinked_list2.h: New file.
73538         * lib/gl_avltree_list.h: New file.
73539         * lib/gl_avltree_list.c: New file.
73540         * lib/gl_anyavltree_list1.h: New file.
73541         * lib/gl_anyavltree_list2.h: New file.
73542         * lib/gl_rbtree_list.h: New file.
73543         * lib/gl_rbtree_list.c: New file.
73544         * lib/gl_anyrbtree_list1.h: New file.
73545         * lib/gl_anyrbtree_list2.h: New file.
73546         * lib/gl_anytree_list1.h: New file.
73547         * lib/gl_anytree_list2.h: New file.
73548         * lib/gl_linkedhash_list.h: New file.
73549         * lib/gl_linkedhash_list.c: New file.
73550         * lib/gl_anyhash_list1.h: New file.
73551         * lib/gl_anyhash_list2.h: New file.
73552         * lib/gl_avltreehash_list.h: New file.
73553         * lib/gl_avltreehash_list.c: New file.
73554         * lib/gl_rbtreehash_list.h: New file.
73555         * lib/gl_rbtreehash_list.c: New file.
73556         * lib/gl_anytreehash_list1.h: New file.
73557         * lib/gl_anytreehash_list2.h: New file.
73558
73559         * lib/gl_oset.h: New file.
73560         * lib/gl_oset.c: New file.
73561         * lib/gl_array_oset.h: New file.
73562         * lib/gl_array_oset.c: New file.
73563         * lib/gl_avltree_oset.h: New file.
73564         * lib/gl_avltree_oset.c: New file.
73565         * lib/gl_rbtree_oset.h: New file.
73566         * lib/gl_rbtree_oset.c: New file.
73567         * lib/gl_anytree_oset.h: New file.
73568
73569 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         * m4/mkancesdirs.m4: New file.
73572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73573         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73574         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73575         it.
73576
73577 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73580         * lib/mkancesdirs.h: New files.
73581         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73582         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73583         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73584         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73585         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73586         callers changed.  Revamp internals significantly, by not
73587         attempting to create directories that are temporarily more
73588         permissive than the final results.  Do not attempt to use
73589         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73590         This removes some race conditions, fixes some bugs, and simplifies
73591         things.  Use new dirchownmod function to do owner and mode changes.
73592         * lib/mkdir-p.h: Likewise.
73593         * lib/modechange.c (octal_to_mode): New function.
73594         (struct mode_change): New member mentioned.
73595         (make_node_op_equals): New arg mentioned.  All callers changed.
73596         (mode_compile): Keep track of which mode bits the user has explicitly
73597         mentioned.
73598         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73599         New arg PMODE_BITS, to keep track of which mode bits the user
73600         mentioned; it treats S_ISUID and S_ISGID speciall.
73601         All callers changed.
73602         * lib/modechange.h: Likewise.
73603
73604 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73605
73606         * MODULES.html.sh: Add mkancestors.
73607         * modules/mkancesdirs: New module.
73608         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73609         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73610         The chdir-safer and afs files are now orphans; I'll remove them
73611         unless someone speaks up.
73612         Add lib/dirchownmod.c, lib/dirchownmod.h.
73613         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73614         Add lchown, mkancesdirs.
73615         (Maintainer): Add self.
73616
73617 2006-07-15  Karl Berry  <karl@gnu.org>
73618
73619         * gnulib-tool: help message wording/arrangement.
73620
73621 2006-07-14  Simon Josefsson  <jas@extundo.com>
73622
73623         * doc/gnulib.texi (Libtool and Windows): New section.
73624
73625 2006-07-12  Simon Josefsson  <jas@extundo.com>
73626
73627         * modules/gendocs (License): Fix license, approved by Karl.
73628
73629 2006-07-12  Eric Blake  <ebb9@byu.net>
73630
73631         * MODULES.html.sh: Add gendocs.
73632
73633 2006-07-11  Eric Blake  <ebb9@byu.net>
73634
73635         * modules/fdl: New module, to install doc/fdl.texi.
73636         * MODULES.html.sh: Add new section for documentation modules.
73637         * gnulib-tool: Avoid space-tab.
73638         (--doc-base): New option, to manage files from doc.
73639
73640 2006-07-11  Eric Blake  <ebb9@byu.net>
73641
73642         * m4/absolute-header.m4: Fix comments to match recent change.
73643
73644 2006-07-11  Eric Blake  <ebb9@byu.net>
73645
73646         * gnulib-tool: List --doc-base before --tests-base.
73647
73648 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73649
73650         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73651
73652 2006-07-11  Bruno Haible  <bruno@clisp.org>
73653
73654         * README: Mention where to put documentation.
73655
73656 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73657
73658         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73659
73660 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73661
73662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73663         to stdint.m4.
73664
73665 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73668         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73669         "no/such/file/stdint.h" when there is no such file, so that
73670         the resulting C code can be parsed by dodgy compilers.
73671         Problems reported by Bob Proulx.
73672
73673 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73674
73675         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73676         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73677         macros into the GNU _D_EXACT_NAMLEN.
73678         * lib/savedir.c:  Likewise.
73679         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73680
73681 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73682         and Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73685         * m4/savedir.m4:
73686         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73687         macros into the GNU _D_EXACT_NAMLEN.
73688
73689 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73692         around the absolute name, to work around a problem with the HP-UX
73693         11.23 native C compiler, reported by Bob Proulx.
73694
73695 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * doc/maintain.texi, make-stds.texi: Sync from
73698         <http://savannah.gnu.org/projects/gnustandards>.
73699
73700 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73701
73702         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73703
73704 2006-07-09  Jim Meyering  <jim@meyering.net>
73705
73706         * m4/glob.m4: Remove a doubled word in a comment.
73707
73708 2006-07-09  Jim Meyering  <jim@meyering.net>
73709
73710         * lib/argp-pv.c: Remove a doubled word in a comment.
73711         * lib/check-version.c (check_version): Likewise.
73712         * lib/javacomp.c (compile_java_class): Likewise.
73713
73714 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73717         for the benefit of people using Autoconf 2.60.  If you want to
73718         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73719         (or m4/onceonly.m4, if pre-2.57) manually.
73720
73721 2006-07-08  Jim Meyering  <jim@meyering.net>
73722
73723         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73724         comment.
73725         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73726         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73727         comment.
73728
73729 2006-07-08  Jim Meyering  <jim@meyering.net>
73730
73731         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73732
73733 2006-07-07  Simon Josefsson  <jas@extundo.com>
73734
73735         * tests/test-crc.c: Change expected crc value, the test vector
73736         were probably computed using the old broken crc.c?
73737
73738 2006-07-06  Simon Josefsson  <jas@extundo.com>
73739
73740         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73741         now the canonical place for the M4 file).
73742
73743         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73744         from the sys_socket dependency now.
73745
73746         * modules/inet_pton (Files): Ditto.
73747
73748         * modules/inet_ntop (Files): Ditto.
73749
73750 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73751
73752         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73753         not gl_PREREQ_GETUSERSHELL.
73754
73755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73756
73757         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73758         with only one argument, for Autoconf 2.60.
73759         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73760         expand to nothing, so add a shell command to avoid syntax error.
73761         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73762
73763 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73764
73765         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73766
73767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73770         no longer needed.  Check for isblank decl.
73771         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73772         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73773         of existence.
73774
73775 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/getloadavg.c: Use __VMS, not VMS.
73778         * lib/getopt.c: Likewise.
73779         * lib/getpagesize.h: Likewise.
73780         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73781         and probably does not work.
73782
73783 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/.cppi-disable: Add wcwidth.
73786         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73787         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73788         (ISGRAPH): Remove.  All uses changed to isgraph.
73789         (FOLD) [!defined _LIBC]: Remove special case.
73790         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73791         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73792         HAVE_ISBLANK.
73793         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73794         case.
73795
73796 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73797
73798         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73799         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73800         brackets.  Other minor changes to suppress some compiler
73801         warnings.
73802
73803 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73804         and Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73807         of invoking obsolescent AC_HEADER_DIRENT macro.
73808         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73809         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73810         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73812         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73813         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73814         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73815         * m4/readdir.m4: Remove; no longer needed.
73816
73817 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73818         and Paul Eggert  <eggert@cs.ucla.edu>
73819
73820         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73821         Don't worry about this obsolete case any more.
73822         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73823         directories.
73824         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73825         worry about this obsolete case any more.
73826         * lib/fts.c: Likewise.
73827         * lib/getcwd.c: Likewise.
73828         * lib/glob.h: Likewise.
73829         * lib/savedir.c: Likewise.
73830
73831 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73834         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73835         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73836         needed.
73837         All uses removed.
73838         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73839         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73840         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73841         needed.
73842         * m4/getdate.m4 (gl_GETDATE): Likewise.
73843         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73844         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73845         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73846         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73847         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73848         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73849         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73850         needed.
73851
73852 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * lib/memcasecmp.c: Include <limits.h>.
73855         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73856         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73857         Don't assume isdigit succeeds only on '0' through '9'.
73858
73859 2006-07-05  Eric Blake  <ebb9@byu.net>
73860
73861         * modules/getaddrinfo (Depends-on): Add snprintf.
73862
73863 2006-07-05  Eric Blake  <ebb9@byu.net>
73864
73865         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73866         to avoid 'header present but could not be compiled' on cygwin.
73867
73868 2006-07-05  Eric Blake  <ebb9@byu.net>
73869
73870         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73871         missing from netdb.h.
73872         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73873
73874 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73875
73876         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73877         no longer needed.
73878         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73879         * m4/getdate.m4 (gl_GETDATE): Likewise.
73880         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73881         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73882         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73883         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73884         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73885
73886 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73887
73888         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73889         All uses of is_space replaced by isspace.
73890         * lib/exit.h: Don't talk about STDC_HEADERS.
73891         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73892         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73893         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73894         replaced by isprint etc.
73895         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73896         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73897         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73898         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73899         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73900         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73901
73902 2006-07-05  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73905         the function exists, before testing against AIX.
73906         Reported by Martin Lambers <marlam@marlam.de>.
73907
73908 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73911         From Mark D. Baushke.
73912
73913 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73916         to the absolute name, not just one, to bypass Sun C 5.8's
73917         "warning: #include of /usr/include/... may be non-portable".
73918
73919 2006-07-04  Eric Blake  <ebb9@byu.net>
73920
73921         * modules/dirname-tests: New test module.
73922         * tests/test-dirname.c: New file, replacing dirname.c
73923         TEST_DIRNAME section that was recently deleted.
73924
73925 2006-07-04  Bruno Haible  <bruno@clisp.org>
73926
73927         Assume ANSI C header files and <ctype.h> functions.
73928         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73929         (mbsnwidth): Use isprint, iscntrl instead.
73930
73931 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         Merge from coreutils.
73934         * MODULES.html.sh: Add xstrtold.
73935         * modules/xstrtold: New file.
73936         * modules/cycle-check (Files): Add lib/same-inode.h.
73937         * modules/dirname (Files): Add m4/double-slash-root.m4.
73938         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73939         * modules/mkdir-p (Files): Add lib/same-inode.h.
73940         * modules/same (Files): Add lib/same-inode.h.
73941
73942 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73945         This is to keep the terminology clean; POSIX talks about
73946         "absolute pathnames", not "full pathnames", but the GNU
73947         Coding Standards say to use "path" for something else;
73948         so use "absolute" to keep both sides happy.
73949         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73950         Set gl_absolute_header, not gl_full_header_path.
73951         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73952         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73953         All uses changed.
73954
73955         Merge from coreutils.
73956
73957         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73960         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73961         want to require the building of c-strtod.o.
73962         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73963         needs -lm directly.
73964         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73965
73966         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73969         --as-needed option if available.  Problem reported by Albert Chin in
73970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73971         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73972         cc merely issues a bunch of annoying warnings for --as-needed
73973         (this problem was reported by Bob Proulx).  Also, try linking with
73974         -lm to detect a bug in binutils 2.16 (this problem was reported
73975         by Ralf Wildenhues).
73976
73977         2006-06-18  Jim Meyering  <jim@meyering.net>
73978
73979         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73980         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73981         macro.
73982         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73983         also check for glibc-2.4's abort-inducing bug.
73984
73985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73986         Low-probability clean-up should be to use rmdir to get rid of
73987         the just-created directory, not unlink.
73988
73989         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73990         configure fail, and request a bug report to inform us about it.
73991         Add a comment that, barring reports to the contrary, in 2007 we'll
73992         assume ftruncate is universally available.
73993
73994         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73997
73998         2006-03-12  Jim Meyering  <jim@meyering.net>
73999
74000         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
74001         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
74002         * m4/same.m4 (gl_SAME): Likewise.
74003         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
74004
74005         2006-03-11  Eric Blake  <ebb9@byu.net>
74006
74007         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
74008         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
74009         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
74010         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
74011
74012 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
74015         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
74016         reported by Mark D. Baushke, one in
74017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
74018
74019         Merge from coreutils.
74020
74021         * lib/.cppi-disable: Add stdint_.h.
74022         * lib/.cvsignore: Add stdint.h.
74023
74024         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
74027         both double and long double versions.
74028         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
74029         * lib/xstrtold.c: New file.
74030         * lib/xstrtod.h (xstrtold): New decl.
74031
74032         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/filemode.c (setst): Remove.
74035         (strmode): Rewrite to avoid setst.  This makes the code shorter,
74036         (arguably) clearer, and the generated code is a bit smaller on my
74037         Debian GNU/Linux stable x86 host.
74038
74039         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         * lib/filemode.c: Include "filemode.h" first, to test the interface.
74042         Assume that filemode.h includes sys/types.h and sys/stat.h.
74043         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
74044         (ftypelet): Reorder to put common cases first, for efficiency.
74045         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
74046         to do 'M'.
74047         (strmode): Renamed from mode_string, and now stores 12 bytes instead
74048         of 10, for compatibility with FreeBSD.  All callers changed.
74049         (filemodestring): Now stores 12 bytes instead of 10, and sets file
74050         types that can't be deduced solely from st_mode.  First arg is now a
74051         const pointer.
74052         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
74053         (strmode): Renamed from mode_string.
74054         (filemodestring): New decl.
74055         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
74056         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
74057         needed.
74058         (S_ISPORT, S_ISWHT): New macros, if not already defined.
74059
74060         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
74063         fsusage.h now does that.  Include fsusage.h first, to test interface.
74064         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
74065         at most one method (the old code could have generated decls that
74066         didn't conform to C89, not that this was ever exercised).
74067         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
74068
74069         2006-03-19  Jim Meyering  <jim@meyering.net>
74070
74071         Work even in a chroot where d_ino values for entries in "/"
74072         don't match the stat.st_ino values for the same names.
74073         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
74074         number, iterate through all entries again, using lstat instead.
74075         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
74076         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
74077
74078         * lib/getcwd.c (__getcwd): Clarify a comment.
74079         Use memcpy in place of a call to strcpy.
74080
74081         2006-03-12  Jim Meyering  <jim@meyering.net>
74082
74083         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
74084         matches that of the current directory (which we're about to chdir ".."
74085         out of), then save the dev-ino of the parent, instead.
74086
74087         * lib/same-inode.h (SAME_INODE): New file/macro.
74088         * lib/chdir-safer.c (SAME_INODE): Remove definition.
74089         Include "same-inode.h", instead.
74090         * lib/same.c: Likewise.
74091         * lib/cycle-check.h: Include "same-inode.h".
74092         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
74093         * lib/cycle-check.c (SAME_INODE): Remove definition.
74094         * lib/root-dev-ino.h: Include "same-inode.h".
74095
74096         2006-03-11  Eric Blake  <ebb9@byu.net>
74097
74098         * lib/same.c (same_name): s/base_name/last_component/
74099         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
74100         * lib/filenamecat.c (file_name_concat): Likewise.
74101
74102         2006-03-11  Eric Blake  <ebb9@byu.net>,
74103                     Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
74106         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
74107         drive prefix.
74108         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
74109         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
74110         (last_component): New method.
74111         * lib/dirname.c (dir_len): Determine when drive letters need a
74112         subsequent slash.  Preserve // when it is special.
74113         (dir_name): Don't append dot when drive letter is absolute.
74114         [TEST_DIRNAME]: Move into a full-blown gnulib test.
74115         * lib/basename.c (base_name): New semantics - malloc the result.
74116         Preserve // when it is special.  Preserve relative files that look
74117         like drive letters.
74118         (base_len): Preserve // when it is special.
74119         (last_component): New method, similar to old base_name semantics.
74120         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
74121         base_name.  Strip redundant slashes from ///.
74122
74123 2006-07-03  Jim Meyering  <jim@meyering.net>
74124
74125         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
74126         macro is used before the first cycle_check call.
74127
74128 2006-07-03  Eric Blake  <ebb9@byu.net>
74129
74130         * modules/dirname (Depends-on): Add xstrndup.
74131
74132 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
74135         test cases, so that config.log is a bit easier to follow.
74136
74137 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
74140         both are 64 bits, since this seems to be the tradition, and this
74141         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
74142         we ever run into a host that prefers long long to long in this
74143         case, we'll need another configure-time test.  Problem reported by
74144         Jim Meyering.
74145
74146 2006-07-02  Eric Blake  <ebb9@byu.net>
74147
74148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74149
74150 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * modules/inttypes (Depends-on): No longer depends on stdint.
74153         * modules/stdint (Description): Say more about assumptions.
74154         Say that the fast types might differ.  Say macros are used.
74155         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74156         (Makefile.am): Revise list of substituted symbols to match
74157         new stdint.m4.
74158         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74159         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74160         * tests/test-stdint.c (verify_same_types)
74161         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74162         the code conforms to C99/C89.
74163         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74164         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74165
74166 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74169         but fix a bug, by requiring at least 64 bits.
74170         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74171         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74172         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74173         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74174
74175         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74176         changes.  Make 2.59 a prerequisite.  Check and substitute for
74177         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74178         inttypes.h.  Do not use special include files; just use the
74179         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74180         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74181         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74182         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74183         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74184         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74185         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74186         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74187         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74188         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74189         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74190         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74191         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74192         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74193         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74194         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74195         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74196         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74197         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74198         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74199         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74200         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74201         not check for things that C99 does not require, e.g., int8_t.  If
74202         a test isn't needed unless <stdint.h> isn't working, and is
74203         unlikely to be needed for any other reason, then don't do it
74204         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74205         size_t, since we assume C89 freestanding at least.  Do not check
74206         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74207         the right thing even if the types are not defined.  Instead use:
74208         (gl_STDINT_TYPE_PROPERTIES): New macro.
74209         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74210         testing whether <sys/types.h> clashes, as Autoconf does this for
74211         us now.  All uses removed.
74212         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74213         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74214         (gl_CHECK_TYPE_SAME):
74215         Remove; no longer needed.
74216         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74217         exists, since we'll return 0 anyway in that case.
74218         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74219
74220 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74221
74222         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74223         possible collision with system files.
74224         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74225         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74226         WCHAR_MIN and WCHAR_MAX in this case.
74227         (<stddef.h>): Do not include; no longer needed.
74228         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74229         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74230         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74231         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74232         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74233         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74234         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74235         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74236         !defined(__c99))]: Include in this case too, since it's harmless
74237         now.
74238         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74239         dangerous to do so.
74240         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74241         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74242         (_STDINT_MIN, _STDINT_MAX): New macros.
74243         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74244         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74245         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74246         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74247         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74248         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74249         macros, not typedefs; this simplifies things quite a bit.
74250         Use long int for all types narrower than int64_t.
74251         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74252         Define in terms of long long int or int64_t or long int,
74253         not int64_t or int32_t.  This saves some compile-time testing.
74254         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74255         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74256         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74257         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74258         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74259         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74260         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74261         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74262         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74263         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74264         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74265         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74266         undef any previous version and define our own version, for
74267         simplicity and consistency with the new macros for types.
74268         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74269         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74270         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74271         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74272         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74273         @WINT_T_SUFFIX@ to keep things simple here.
74274         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74275         Simplify by assuming typical 8/16/32/64 host, since we're
74276         already doing that elsewhere anyway.
74277         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74278         and assume long long int is 64 bits if available.  This
74279         speeds up 'configure'.
74280
74281 2006-07-01  Eric Blake  <ebb9@byu.net>
74282
74283         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74284         Reported by Andreas Buening.
74285
74286 2006-07-01  Eric Blake  <ebb9@byu.net>
74287
74288         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74289
74290 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74291
74292         * lib/getaddrinfo.c: fixed typo
74293
74294 2006-06-29  Jim Meyering  <jim@meyering.net>
74295
74296         * modules/strftime (Maintainer): Add my name, since with the
74297         FPRINTFTIME changes strftime.c has forked from glibc.
74298
74299 2006-06-29  Eric Blake  <ebb9@byu.net>
74300
74301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74302
74303 2006-06-29  Eric Blake  <ebb9@byu.net>
74304
74305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74306
74307 2006-06-29  Eric Blake  <ebb9@byu.net>
74308
74309         * lib/stat_.h: New file.
74310
74311 2006-06-29  Eric Blake  <ebb9@byu.net>
74312
74313         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74314         unused static function.
74315
74316 2006-06-29  Eric Blake  <ebb9@byu.net>
74317
74318         * doc/functions.texi (Function Portability): Document missing lstat
74319         on mingw.
74320
74321 2006-06-29  Eric Blake  <ebb9@byu.net>
74322
74323         * MODULES.html.sh: Add sys_stat.
74324         * modules/sys_stat: New module.
74325         * modules/mkstemp (Depends-on): Add sys_stat.
74326
74327 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74328
74329         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74330
74331 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74332
74333         * m4/c-bs-a.m4: Removed.
74334
74335 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74336
74337         * lib/strftime.c: Assume strftime() exists.
74338
74339 2006-06-29  Derek Price  <derek@ximbiot.com>
74340
74341         * modules/c-bs-a: Removed - \a is C89.
74342         * MODULES.html.sh: Remove c-bs-a.
74343
74344 2006-06-29  Bruno Haible  <bruno@clisp.org>
74345
74346         * modules/wcwidth (License): Change to LGPL.
74347
74348 2006-06-28  Simon Josefsson  <jas@extundo.com>
74349
74350         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74351         on _WIN32.
74352
74353         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74354         getnameinfo.
74355
74356 2006-06-28  Simon Josefsson  <jas@extundo.com>
74357
74358         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74359
74360 2006-06-28  Simon Josefsson  <jas@extundo.com>
74361
74362         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74363         functions there.  It will succeed on Windows XP, but on Windows
74364         2000 and (presumably) earlier, it will fail, and use the internal
74365         re-implementation.
74366         (use_win32_p): New function.
74367         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74368         Support AI_NUMERICSERV to disable getservbyname.
74369         (getnameinfo): New function, only supports
74370         NI_NUMERICHOST|NI_NUMERICSERV for now.
74371
74372         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74373         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74374         getnameinfo.
74375
74376 2006-06-28  Eric Blake  <ebb9@byu.net>
74377
74378         * modules/wcwidth: New file.
74379         * modules/mbchar (Depends-on): Add wcwidth.
74380         * modules/mbswidth (Depends-on): Add wcwidth.
74381         * MODULES.html.sh: Add wcwidth.
74382
74383 2006-06-28  Eric Blake  <ebb9@byu.net>
74384
74385         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74387
74388 2006-06-28  Eric Blake  <ebb9@byu.net>
74389
74390         * lib/xvasprintf.h: Fix comments.
74391
74392 2006-06-28  Eric Blake  <ebb9@byu.net>
74393
74394         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74395         * lib/mbswidth.c (wcwidth): Move from here...
74396         * lib/wcwidth.h: ...to this new file.
74397
74398 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74399
74400         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74401
74402         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74403         it's obsolete.
74404         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74405
74406 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74407
74408         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74409         Autoconf 2.60 says this stuff was obsolete.
74410
74411 2006-06-28  Bruno Haible  <bruno@clisp.org>
74412
74413         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74414
74415 2006-06-28  Bruno Haible  <bruno@clisp.org>
74416
74417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74418         gt_TYPE_WCHAR_T.
74419
74420 2006-06-28  Bruno Haible  <bruno@clisp.org>
74421
74422         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74423         declaration for wcwidth.
74424         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74425
74426 2006-06-28  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74429         (mkdir): Define using _mkdir.
74430
74431 2006-06-28  Bruno Haible  <bruno@clisp.org>
74432
74433         * lib/getaddrinfo.h: Fix POSIX URL.
74434         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74435         _WIN32.
74436         (use_win32_p): Make static.
74437         (getaddrinfo): Reject service name if it is empty or does not consist
74438         solely of decimal digits, or if its value is > 65535.
74439         (getnameinfo): Remove useless casts.
74440
74441 2006-06-27  Simon Josefsson  <jas@extundo.com>
74442
74443         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74444         Eggert and Martin Lambers.
74445
74446 2006-06-27  Simon Josefsson  <jas@extundo.com>
74447
74448         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74449         Eggert and Martin Lambers.
74450
74451 2006-06-27  Bruno Haible  <bruno@clisp.org>
74452
74453         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74454         result to 0, not to empty.
74455         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74456
74457 2006-06-27  Bruno Haible  <bruno@clisp.org>
74458
74459         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74460
74461 2006-06-26  Simon Josefsson  <jas@extundo.com>
74462
74463         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74464         present.
74465
74466 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74467
74468         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74469         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74470         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74471
74472 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74473
74474         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74475
74476 2006-06-26  Bruno Haible  <bruno@clisp.org>
74477
74478         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74479
74480 2006-06-26  Bruno Haible  <bruno@clisp.org>
74481
74482         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74483
74484 2006-06-26  Bruno Haible  <bruno@clisp.org>
74485
74486         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74487         SGI C compiler in pre-C99 mode.
74488         Suggested by Mark D. Baushke and Larry Jones.
74489
74490 2006-06-26  Bruno Haible  <bruno@clisp.org>
74491
74492         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74493         WCHAR_MAX.
74494         Reported by Mark D. Baushke and Larry Jones.
74495
74496 2006-06-26  Bruno Haible  <bruno@clisp.org>
74497
74498         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74499         in pre-C99 mode.
74500         Suggested by Mark D. Baushke and Larry Jones.
74501
74502 2006-06-23  Simon Josefsson  <jas@extundo.com>
74503             Bruno Haible  <bruno@clisp.org>
74504
74505         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74506         Emit mostlyclean-local rule.
74507         (func_emit_tests_Makefile_am): Likewise.
74508         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74509
74510 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74511
74512         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74513
74514 2006-06-23  Bruno Haible  <bruno@clisp.org>
74515
74516         * tests/test-stdint.c: Update to match ISO C 99 Technical
74517         Corrigendum 1.
74518
74519 2006-06-23  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74522
74523 2006-06-23  Bruno Haible  <bruno@clisp.org>
74524
74525         * lib/stdint_.h: Treat IRIX like OpenBSD.
74526
74527 2006-06-23  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74530         ISO C 99 Technical Corrigendum 1.
74531
74532 2006-06-22  Simon Josefsson  <jas@extundo.com>
74533
74534         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74535         MinGW.
74536
74537 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74540         needed.  Some compiler complained about some of them.  Problem reported
74541         by Larry Jones in
74542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74543
74544 2006-06-21  Simon Josefsson  <jas@extundo.com>
74545
74546         * tests/test-getaddrinfo.c: New file.
74547
74548         * modules/getaddrinfo-tests: New file.
74549
74550         * MODULES.html.sh: Add inet_pton.
74551
74552         * modules/inet_pton: New file.
74553
74554 2006-06-21  Simon Josefsson  <jas@extundo.com>
74555
74556         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74557         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74558         of using the (limited) gnulib implementation on Windows XP.
74559
74560         * m4/inet_pton.m4: New file.
74561
74562 2006-06-21  Simon Josefsson  <jas@extundo.com>
74563
74564         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74565         variable.
74566
74567         * lib/socket_.h: Don't define WINVER.
74568
74569         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74570         slightly modified to work in gnulib.
74571
74572 2006-06-21  Simon Josefsson  <jas@extundo.com>
74573
74574         * doc/gnulib.texi (Windows sockets): Add.
74575
74576 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         * lib/read-file.c (fread_file): Start with buffer allocation of
74579         0 bytes rather than 1 byte; this simplifies the code.
74580         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74581         code to free buffer and save/restore errno.
74582         (internal_read_file): Remove unused local.
74583
74584 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74585
74586         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74587         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74588         Problem reported by Denis Excoffier in
74589         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74590
74591 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74592
74593         * modules/sys_socket, modules/socklen: Include sys/types since
74594         FreeBSD 4.x's sys/socket.h needs it.
74595
74596 2006-06-19  Simon Josefsson  <jas@extundo.com>
74597
74598         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74599
74600 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74603
74604 2006-06-19  Bruno Haible  <bruno@clisp.org>
74605
74606         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74607         and FULL_PATH_INTTYPES_H in angle brackets.
74608         Reported by Mark D. Baushke <mdb@gnu.org>.
74609
74610 2006-06-17  Eric Blake  <ebb9@byu.net>
74611
74612         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74613         errno.
74614
74615 2006-06-17  Bruno Haible  <bruno@clisp.org>
74616
74617         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74618         <sys/inttypes.h>.
74619
74620 2006-06-17  Bruno Haible  <bruno@clisp.org>
74621
74622         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74623         whether errno is declared. Assume <errno.h> declares errno.
74624
74625 2006-06-17  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74628
74629 2006-06-17  Bruno Haible  <bruno@clisp.org>
74630
74631         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74632         problem on Solaris 2.5.1.
74633
74634 2006-06-16  Eric Blake  <ebb9@byu.net>
74635
74636         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74637         * lib/unicodeio.c [!defined errno]: Likewise.
74638         * lib/strtol.c [!defined errno]: Likewise.
74639         * lib/strtod.c [!defined errno]: Likewise.
74640
74641 2006-06-15  Eric Blake  <ebb9@byu.net>
74642
74643         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74644
74645 2006-06-15  Eric Blake  <ebb9@byu.net>
74646
74647         * config/srclist.txt (ssize_t.m4): Lose sync.
74648
74649 2006-06-15  Bruno Haible  <bruno@clisp.org>
74650
74651         * modules/stdint (Files): Include m4/full-header-path.m4,
74652         m4/size_max.m4, m4/wchar_t.m4.
74653         (Makefile.am): Many more substitutions.
74654         * modules/stdint-tests: New file.
74655         * tests/test-stdint.c: New file.
74656
74657 2006-06-15  Bruno Haible  <bruno@clisp.org>
74658
74659         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74660         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74661         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74662         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74663         gl_CHECK_TYPE_SAME): New macros.
74664
74665 2006-06-15  Bruno Haible  <bruno@clisp.org>
74666
74667         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74668
74669 2006-06-15  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/stdint_.h: Rewritten to be fully auto-configured.
74672         Fixes bug on HP-UX/IA64.
74673
74674 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * lib/getdate.y (__attribute__): Don't define if already defined.
74677         Problem reported by Larry Jones.
74678         * lib/utimens.c (__attribute__): Likewise.
74679
74680 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74683         reported by Andreas Schwab.
74684
74685 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74686             Bruno Haible  <bruno@clisp.org>
74687
74688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74689         check for the declaration of strnlen and a run test that exposes the
74690         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74691         rpl_strndup.
74692
74693 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74694             Bruno Haible  <bruno@clisp.org>
74695
74696         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74697
74698 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74699
74700         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74701         compile test, for Tru64 4.0D.
74702
74703 2006-05-28  Karl Berry  <karl@gnu.org>
74704
74705         * config/srclist.txt (printf-args.c): lose sync.
74706
74707 2006-05-26  Martin Lambers  <marlam@marlam.de>
74708
74709         * lib/getpass.c: Updates the test for the native W32 API, and adds
74710         missing includes, thus fixing compilation warnings.
74711
74712 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74713
74714         * lib/exclude.c (exclude_fnmatch): New function.
74715         (excluded_file_name): Call exclude_fnmatch.
74716         * lib/exclude.h (excluded_file_name): New prototype
74717
74718 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/tempname.c (small_open, large_open): New macros.
74721         (__open, __open64) [!_LIBC]: Remove.
74722         (__gen_tempname): Use small_open and large_open instead of __open
74723         and __open64.  This fixes a portability bug on HP-UX 11.11i
74724         reported by Simon Wing-Tang in
74725         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74726
74727 2006-05-24  Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74730         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74731         Reported by Thorsten Maerz <torte@netztorte.de> via
74732         Aaron Stone <aaron@serendipity.cx>.
74733
74734 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74737         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74738         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74739         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74740         not really conditional on the cache.
74741         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74742
74743 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74746         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74747         (my_usleep): Don't mishandle maximum value.
74748
74749 2006-05-19  Jim Meyering  <jim@meyering.net>
74750
74751         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74752
74753 2006-05-17  Bruno Haible  <bruno@clisp.org>
74754
74755         Cygwin portability.
74756         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74757
74758 2006-05-17  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/stdint_.h: Fix recognition of Cygwin.
74761
74762 2006-05-15  Bruno Haible  <bruno@clisp.org>
74763
74764         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74765         on libtool patch by Ralf Wildenhues.
74766
74767 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74770         test for C99 conformance; (bool) 0.5 is an integer constant
74771         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74772         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74773
74774 2006-05-11  Simon Josefsson  <jas@extundo.com>
74775
74776         * m4/xvasprintf.m4: Fix obvious typo.
74777
74778 2006-05-11  Jim Meyering  <jim@meyering.net>
74779
74780         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74781         James Lemley.
74782
74783 2006-05-10  Simon Josefsson  <jas@extundo.com>
74784
74785         * lib/md4.c: Typo fix, update copyright years.
74786         (K1, K2): Don't use L because it turn computations into 64-bit on
74787         64-bit platforms.
74788
74789 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74792         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74793         unwanted sign propagation, e.g., on hosts with 64-bit int.
74794         There still are some problems with reeelly weird theoretical hosts
74795         (e.g., 33-bit int) but it's not worth worrying about now.
74796         * lib/sha1.c (rol): Likewise.
74797         (K1, K2, K3, K4): Remove unnecessary L suffix.
74798
74799 2006-05-10  Bruno Haible  <bruno@clisp.org>
74800
74801         * lib/des.c: Cast to avoid warnings.
74802
74803 2006-05-09  Bruno Haible  <bruno@clisp.org>
74804
74805         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74806         (Depends-on): Depend also on xsize, stdarg.
74807         (configure.ac): Add gl_XVASPRINTF.
74808
74809 2006-05-09  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/xvasprintf.m4: New file.
74812
74813 2006-05-09  Bruno Haible  <bruno@clisp.org>
74814
74815         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74816         (EOVERFLOW): Define fallback value.
74817         (xstrcat): New function.
74818         (xvasprintf): Recognize the special case of a string concatenation.
74819
74820 2006-05-08  Eric Blake  <ebb9@byu.net>
74821
74822         * gnulib-tool (func_version): Base copyright year on CVS date.
74823         (func_emit_copyright_notice): New function.
74824         (func_emit_lib_Makefile_am): Use it.
74825         (func_emit_tests_Makefile_am): Likewise.
74826         (func_import): Likewise.
74827
74828 2006-05-08  Bruno Haible  <bruno@clisp.org>
74829
74830         * modules/stdarg: New file.
74831         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74832
74833 2006-05-08  Bruno Haible  <bruno@clisp.org>
74834
74835         * m4/stdarg.m4: New file, from GNU gettext.
74836
74837 2006-05-08  Bruno Haible  <bruno@clisp.org>
74838
74839         * config/srclist.txt (build-aux/config.rpath): different from latest
74840         release.
74841
74842 2006-05-08  Bruno Haible  <bruno@clisp.org>
74843
74844         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74845
74846 2006-05-05  Jim Meyering  <jim@meyering.net>
74847
74848         * m4/warning.m4: New file, derived from bison's file by the same name.
74849
74850 2006-05-03  Bruno Haible  <bruno@clisp.org>
74851
74852         * lib/stdint_.h: Shorter URL.
74853         * lib/inttypes.h: Likewise.
74854
74855 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74858
74859 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * lib/verify.h: Document the internals better.  Most of this change
74862         was written by Bruno Haible.
74863
74864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * doc/verify.texi: New file, partly based on a proposal by
74867         Bruno Haible.
74868
74869 2006-05-02  Bruno Haible  <bruno@clisp.org>
74870
74871         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74872         test from here...
74873         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74874
74875 2006-04-29  Bruno Haible  <bruno@clisp.org>
74876
74877         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74878         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74879
74880 2006-04-29  Bruno Haible  <bruno@clisp.org>
74881
74882         * gnulib-tool: Make --update option actually work.
74883
74884 2006-04-29  Bruno Haible  <bruno@clisp.org>
74885
74886         * doc/gcd.texi: New file.
74887         * doc/gnulib.texi: Include it.
74888
74889 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74890
74891         * lib/getdate.y (get_date): When adding relative date, start with the
74892         initial time, not with the result of the first mktime call.
74893
74894 2006-04-25  Bruno Haible  <bruno@clisp.org>
74895
74896         * gnulib-tool (func_import): Output the include directives in three
74897         blocks, sorted separately.
74898         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74899
74900 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74903         to define main with arguments, for C++.  Reported by Eric Blake.
74904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74905         Prefer 'int main ()' to 'int main (void)', for C++.
74906         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74908         for 'main', for C99 and C++.
74909
74910 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74911
74912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74913         Don't assume that exit status -1 is valid.
74914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74915         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74916         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74917         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74918         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74919         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74920         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74921         functions can be used without declaring them, or that you can
74922         exit with status -1.
74923         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74924
74925 2006-04-24  Karl Berry  <karl@gnu.org>
74926
74927         * config/srclist.txt (longdouble.m4): sync lost.
74928
74929 2006-04-24  Eric Blake  <ebb9@byu.net>
74930
74931         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74932
74933 2006-04-24  Bruno Haible  <bruno@clisp.org>
74934
74935         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74936         poll() implementation in AIX.
74937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74938
74939 2006-04-24  Bruno Haible  <bruno@clisp.org>
74940
74941         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74942         assigned exactly once.
74943
74944 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74945             Bruno Haible  <bruno@clisp.org>
74946
74947         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74948         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74949         for AM_CPPFLAGS.
74950
74951 2006-04-23  Bruno Haible  <bruno@clisp.org>
74952
74953         * modules/copy-file: Depend on unistd.
74954         * modules/execute: Likewise.
74955         * modules/fatal-signal: Likewise.
74956         * modules/findprog: Likewise.
74957         * modules/mkdtemp : Likewise.
74958         * modules/pipe: Likewise.
74959         * modules/wait-process: Likewise.
74960
74961 2006-04-23  Bruno Haible  <bruno@clisp.org>
74962
74963         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74964         condition was already detected.
74965         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74966
74967 2006-04-23  Bruno Haible  <bruno@clisp.org>
74968
74969         * lib/copy-file.c: Include <unistd.h> unconditionally.
74970         * lib/execute.c: Likewise.
74971         * lib/fatal-signal.c: Likewise.
74972         * lib/findprog.c: Likewise.
74973         * lib/mkdtemp.c: Likewise.
74974         * lib/pipe.h: Likewise.
74975         * lib/pipe.c: Likewise.
74976         * lib/wait-process.h: Likewise.
74977
74978 2006-04-23  Bruno Haible  <bruno@clisp.org>
74979
74980         * gnulib-tool (func_usage): Fix --import description. Document
74981         --update.
74982         (func_import): Create temporary file in a temporary directory, if
74983         --dry-run is specified. Silence errors from 'grep' when there are no
74984         m4 files in $m4dir.
74985         (func_create_testdir): Silence errors from 'grep' when there are no
74986         m4 files in $m4dir.
74987         Reported by Karl Berry <karl@freefriends.org>.
74988
74989 2006-04-20  Bruno Haible  <bruno@clisp.org>
74990
74991         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74992         one argument, so that the code will be portable to Autoconf 2.60.
74993         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74995         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74996
74997 2006-04-19  Derek Price  <derek@ximbiot.com>
74998             Eric Blake  <ebb9@byu.net>
74999
75000         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
75001         rather than "/full/path.h".  Update comment to match.  Shorten &
75002         generalize m4_translit call via AS_TR_CPP.
75003
75004 2006-04-19  Derek Price  <derek@ximbiot.com>
75005             Eric Blake  <ebb9@byu.net>
75006
75007         * lib/inttypes.h: Correct grammar in comment.
75008
75009 2006-04-18  Derek Price  <derek@ximbiot.com>
75010             Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * modules/inttypes: New file.
75013         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
75014
75015 2006-04-18  Derek Price  <derek@ximbiot.com>
75016             Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
75019         New files.
75020
75021 2006-04-18  Derek Price  <derek@ximbiot.com>
75022             Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * lib/inttypes.h: New file.
75025         * lib/strtoimax.c: Assume <inttypes.h>.
75026
75027 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
75030         isn't mounted.  Problem reported by Kir Kolyshkin.
75031
75032 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
75035         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
75036         Derek R. Price.
75037         * lib/regex.h (RE_DUP_MAX): Update comment to match current
75038         implementation.
75039
75040 2006-04-12  Eric Blake  <ebb9@byu.net>
75041
75042         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
75043         is now done automatically by the corresponding Autoconf macro.
75044
75045 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
75048         time_r.h.
75049
75050 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         Merge regex changes from libc, removing some of our
75053         POSIX-conformance changes that were rejected and redoing them in a
75054         less-intrusive way.
75055
75056         * lib/regcomp.c (re_compile_internal, init_dfa):
75057         Length arg is now size_t, not Idx.  All uses changed.
75058         (peek_token): Forward decl now says internal_function.
75059         (__re_error_msgid, __re_error_msgid_idx):
75060         Now static rather than extern with attribute_hidden.
75061         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
75062         For some reason libc prefers K&R style defns for external functions.
75063         (regerror) [!defined _LIBC]: Likewise.
75064         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
75065         (seek_collating_symbol_entry, lookup_collation_sequence_value):
75066         (build_range_exp, build_collating_symbol):
75067         Use K&R-style defn.
75068         (re_compile_fastmap): Use '\0' to memset, not 0.
75069         (utf8_sb_map): Make the calculations more obvious.
75070         (init_dfa, parse_bracket_exp, build_charclass_op):
75071         Call calloc and cast result, as glibc does.
75072         (init_word_char, fetch_token, peek_token, peek_token_bracket):
75073         (build_range_exp, build_collating_symbol):
75074         Now internal functions.
75075
75076         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
75077
75078         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
75079         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
75080         Don't depend on VMS; depend on __VMS instead, for POSIX
75081         namespace cleanness.
75082         (regoff_t): Define to ssize_t, not long int.
75083
75084         Remove the REG_ macros named below.  Instead, make the old names
75085         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
75086         __USE_GNU_REGEX.
75087         (REG_BACKSLASH_ESCAPE_IN_LISTS):
75088         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
75089         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
75090         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
75091         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
75092         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
75093         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
75094         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
75095         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
75096         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
75097         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
75098         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
75099         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
75100         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
75101         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
75102         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
75103         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
75104         (REG_NREGS):
75105         Remove.  All uses replaced by the old RE_* names.
75106         (RE_BACKSLASH_ESCAPE_IN_LISTS):
75107         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
75108         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
75109         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
75110         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
75111         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
75112         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
75113         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
75114         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
75115         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
75116         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
75117         Don't bother having these macros be independent of each others'
75118         values, since they no longer exist in the POSIX name space.
75119
75120         Rename the following member names back to their old names,
75121         unless !__USE_GNU_REGEX.  All uses changed back.
75122         (buffer): Renamed from re_buffer.
75123         (allocated): Renamed from re_allocated.
75124         (used): Renamed from re_used.
75125         (syntax): Renamed from re_syntax.
75126         (fastmap): Renamed from re_fastmap.
75127         (translate): Renamed from re_translate.
75128         (can_be_null): Renamed from re_can_be_null.
75129         (regs_allocated): Renamed from re_regs_allocated.
75130         (fastmap_accurate): Renamed from re_fastmap_accurate.
75131         (no_sub): Renamed from re_no_sub.
75132         (not_bol): Renamed from re_not_bol.
75133         (not_eol): Renamed from re_not_eol.
75134         (newline_anchor): Renamed from re_newline_anchor.
75135         (num_regs): Renamed from rm_num_regs.
75136         (start): Renamed from rm_start.
75137         (end): Renamed from rm_end.
75138
75139         (free_state): Move up a bit.
75140
75141         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
75142         #define to be empty.
75143         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
75144         when that is what is intended.
75145         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
75146         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
75147         (MAX): New macro.
75148         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75149         All uses changed back to re_malloc, etc.  It's now the caller's
75150         responsibility to check for overflow; all callers changed.
75151         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75152         (re_x2nrealloc): Remove.
75153         (free_state): Remove decl.
75154
75155         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75156         (re_set_registers, re_exec):
75157         Use K&R-style defn.
75158
75159         2006-01-31  Roland McGrath  <roland@redhat.com>
75160
75161         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75162         Reported by Mike Frysinger <vapier@gentoo.org>.
75163
75164         2006-01-15  Andreas Jaeger  <aj@suse.de>
75165
75166         [BZ #1950]
75167         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75168         build_wcs_upper_buffer change.
75169         (build_wcs_upper_buffer): Change return type.
75170
75171         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75172
75173         * lib/regex_internal.h: Include <stdint.h> if available.
75174
75175         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75176
75177         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75178
75179         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75180
75181         * lib/regcomp.c: Adjust for changed secondary hash function.
75182
75183         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75184
75185         * lib/regex.h: Pretty printing.
75186         Clean up namespace a bit.
75187
75188         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75189
75190         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75191         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75192
75193         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75194                     Ulrich Drepper  <drepper@redhat.com>
75195
75196         [BZ #1302]
75197         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75198         changed.
75199         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75200
75201         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75202
75203         [BZ #281]
75204         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75205         * lib/regcomp.c: Remove unnecessary uses of
75206         unsigned RE_TRANSLATE_TYPE.
75207         * lib/regex_internal.h: Likewise.
75208         * lib/regex_internal.c: Likewise.
75209         * lib/regexec.c: Likewise.
75210         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75211
75212         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75213
75214         * lib/regexec.c (find_recover_state): Remove unnecessary
75215         initialization.
75216         (transit_state_bkref): Make DFA a const pointer.
75217         (get_subexp): Likewise.
75218         (check_arrival): Likewise.
75219         (update_cur_sifted_state): Likewise.
75220         (re_search_internal): Likewise.
75221         (prune_impossible_nodes): Likewise.
75222         (acquire_init_state_context): Likewise.
75223         (proceed_next_node): Likewise.
75224         (set_regs): Likewise.
75225         (free_fail_stack_return): Likewise.
75226         (check_arrival_expand_ecl): Mark DFA parameter as const.
75227         (check_arrival_expand_ecl_sub): Likewise.
75228         (check_subexp_limits): Likewise.
75229         (sub_epsilon_src_nodes):  Likewise.
75230         (add_epsilon_src_nodes):  Likewise.
75231         (merge_state_array): Likewise.
75232         (update_regs): Likewise.
75233         (build_trtable): Likewise.
75234         (sift_states_backward): Mark MCTX parameter as const.
75235         (build_sifted_states): Likewise.
75236         (update_cur_sifted_state): Likewise.
75237         (sift_states_mkref): Likewise.
75238         (check_arrival_expand_ecl): Mark eclosure as const.
75239         (check_dst_limits_calc_pos_1): Likewise.
75240         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75241         pointer.
75242
75243         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75244
75245         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75246         (transit_state_sb): Likewise.
75247         (transit_state_mb): Likewise.
75248         (sift_states_iter_mb): Likewise.
75249         (check_arrival_add_next_nodes): Likewise.
75250         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75251         [_LIBC] (re_search_2_stub): Use mempcpy.
75252
75253         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75254         mbrtowc for very simple UTF-8 case.
75255
75256         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75257         a pointer-to-const.
75258         (re_acquire_state_context): Likewise.
75259         * lib/regex_internal.h: Adjust prototypes.
75260
75261         * lib/regex.c: Prevent using C++ compilers.
75262
75263         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75264         (re_acquire_state_context): Likewise.
75265
75266 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * modules/regex (Depends-on): Add ssize_t.
75269
75270 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75273         translation table.
75274
75275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75278
75279 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75280             Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75283         <sys/types.h> and <inttypes.h>.
75284
75285 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75286
75287         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75288         `__error_t_defined', so argp.h will not typedef the former.
75289
75290 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75293         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75294         glibc names.  Even if glibc is changed to conform to POSIX, the
75295         traditional names will be available anyway, since regex depends on
75296         the extensions module.  Also, fix a longstanding typo in the
75297         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75298         reported by Emanuele Giaquinta.  Also, change sense of cached
75299         variable, so that the message makes sense.
75300
75301 2006-03-24  Simon Josefsson  <jas@extundo.com>
75302
75303         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75304         including some doc fixes.
75305         (base64_encode_alloc): Fix +1 bug on allocation failures.
75306
75307 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75308
75309         * lib/base64.c (base64_encode): Do not read past end of array with
75310         unsanitized input on systems with CHAR_BIT > 8.
75311
75312 2006-03-24  Eric Blake  <ebb9@byu.net>
75313
75314         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75315
75316 2006-03-22  Karl Berry  <karl@gnu.org>
75317
75318         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75319         * config/srclistvars.sh (COREUTILS): new var.
75320
75321 2006-03-17  Jim Meyering  <jim@meyering.net>
75322
75323         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75324         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75325
75326 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75329         no longer needs it.  Instead, check that regoff_t is as least
75330         as wide as ptrdiff_t.
75331
75332         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75333         so that our regex.h stays compatible with the installed regex.
75334         This is helpful for installers who configure --without-included-regex.
75335         Problem reported by Emanuele Giaquinta.
75336
75337 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75340         Typedef to long int, not to off_, as POSIX will likely change
75341         in that direction.
75342
75343 2006-03-15  Eric Blake  <ebb9@byu.net>
75344
75345         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75346
75347 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75348
75349         * lib/argp-help.c (validate_uparams): Fix typo
75350         * lib/argp-parse.c (argp_default_options): Consistently begin help
75351         messages with a lowercase letter.
75352
75353 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75356         overrun buffers and shouldn't be used (much as gets shouldn't be
75357         used).
75358         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75359
75360 2006-03-08  Simon Josefsson  <jas@extundo.com>
75361
75362         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75363         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75364
75365 2006-03-08  Simon Josefsson  <jas@extundo.com>
75366
75367         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75368         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75369
75370 2006-03-08  Simon Josefsson  <jas@extundo.com>
75371
75372         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75373         signal that configure disabled the device.
75374
75375 2006-03-08  Simon Josefsson  <jas@extundo.com>
75376
75377         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75378         languages.
75379
75380 2006-03-07  Simon Josefsson  <jas@extundo.com>
75381
75382         * modules/getopt (Depends-on): Add unistd.
75383
75384         * modules/unistd: New file.
75385
75386 2006-03-07  Simon Josefsson  <jas@extundo.com>
75387
75388         * modules/gc-random: New file.
75389
75390 2006-03-07  Simon Josefsson  <jas@extundo.com>
75391
75392         * m4/unistd_h.m4: New file.
75393
75394 2006-03-07  Simon Josefsson  <jas@extundo.com>
75395
75396         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75397         test to be side-effect free by storing the result in the cache
75398         variable gl_cv_lib_readline, and moving the assignment of
75399         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75400         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75401
75402 2006-03-07  Simon Josefsson  <jas@extundo.com>
75403
75404         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75405         error on missing devices (the functions will return an error).
75406
75407         * m4/gc.m4: Move random stuff to gc-random.m4
75408
75409 2006-03-07  Simon Josefsson  <jas@extundo.com>
75410
75411         * lib/unistd_.h: New file.
75412
75413 2006-03-07  Simon Josefsson  <jas@extundo.com>
75414
75415         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75416
75417 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75420         Problem reported by Juan Manuel Guerrero.
75421
75422 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75425         the unistd module.
75426         * lib/getlogin_r.c: Likewise.
75427         * lib/getlogin_r.h: Likewise.
75428         * lib/glob.c: Likewise.
75429         * lib/pagealign_alloc.c: Likewise.
75430         * lib/unistd_.h: Remove; no longer needed.
75431
75432 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75435         Add unistd.
75436         * modules/c-stack (Depends-on): Add unistd.
75437         * modules/getlogin_r: Likewise.
75438         * modules/glob: Likewise.
75439         * modules/pagealign_alloc: Likewise.
75440         * modules/unistd (Files): Remove lib/unistd_.h.
75441         (EXTRA_DIST): Remove.
75442         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75443         need unistd_.h.
75444         (MOSTLYCLEANFILES): Remove unistd.h-t.
75445
75446 2006-03-03  Simon Josefsson  <jas@extundo.com>
75447
75448         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75449
75450 2006-03-03  Simon Josefsson  <jas@extundo.com>
75451
75452         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75453         libidn and bison.
75454
75455 2006-03-03  Simon Josefsson  <jas@extundo.com>
75456
75457         * build-aux/maint.mk: Add indent target.
75458
75459 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75460
75461         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75462         our replacement poll.h in any case, to avoid a differing
75463         declaration from a system header.  Seen on AIX.
75464
75465 2006-03-01  Simon Josefsson  <jas@extundo.com>
75466
75467         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75468         <kasal@ucw.cz>.
75469
75470 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * modules/gettime (Depends-on): Add extensions module.
75473         * modules/nanosleep (Depends-on): Likewise.
75474         * modules/settime (Depends-on): Likewise.
75475
75476 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75477
75478         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75479         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75480         pedantically.
75481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75482         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75483
75484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75485         not "==".  Reported by Ralf Wildenhues.
75486
75487 2006-03-01  Karl Berry  <karl@gnu.org>
75488
75489         * doc/Copyright/request-*: new files, synced from gnuorg.
75490
75491 2006-03-01  Karl Berry  <karl@gnu.org>
75492
75493         * config/srclist.txt (Copyright/*): new entries.
75494
75495 2006-02-28  Simon Josefsson  <jas@extundo.com>
75496
75497         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75498
75499 2006-02-27  Simon Josefsson  <jas@extundo.com>
75500
75501         * lib/base64.h: Indent #define's.  From Jim Meyering
75502         <jim@meyering.net>.
75503
75504 2006-02-27  Jim Meyering  <jim@meyering.net>
75505
75506         Revert the change of 2006-02-24, so these files can continue
75507         to be sync'd from gettext.
75508         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75509         of `config.h'.
75510
75511 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * modules/intprops: New file.
75514         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75515         Add intprops.
75516         * modules/getloadavg (Files): Remove lib/intprops.h.
75517         (Depends-on): Add intprops.
75518         * modules/human: Likewise.
75519         * modules/inttostr: Likewise.
75520         * modules/openat: Likewise.
75521         * modules/sig2str: Likewise.
75522         * modules/userspec: Likewise.
75523         * modules/utimecmp: Likewise.
75524         * modules/xnanosleep: Likewise.
75525         * modules/xstrtol: Likewise.
75526
75527 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75528
75529         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75530         * modules/lock-tests (TESTS): Use $(EXEEXT).
75531         * modules/tls-tests: Likewise.
75532         * modules/argp-tests: Likewise.
75533         (check_PROGRAMS): New var, replacing...
75534         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75535
75536 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75537
75538         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75539         `config.h'.
75540
75541 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75544
75545 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75546
75547         Sync from coreutils.
75548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75549         gl_CHDIR_SAFER.
75550
75551 2006-02-22  Jim Meyering  <jim@meyering.net>
75552
75553         Sync from coreutils.
75554         * m4/chdir-safer.m4: New file.
75555
75556 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75559         AT_FDCWD exceeds INT_MAX.
75560         * lib/openat.h (AT_FDCWD): Likewise.
75561
75562 2006-02-17  Eric Blake  <address@hidden>
75563
75564         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75565
75566 2006-02-16  Simon Josefsson  <jas@extundo.com>
75567
75568         * modules/getaddrinfo (Depends-on): Add sys_socket.
75569
75570 2006-02-15  Simon Josefsson  <jas@extundo.com>
75571
75572         * build-aux/maint.mk: Add dsyntax-check rule.
75573
75574 2006-02-15  Eric Blake  <ebb9@byu.net>
75575
75576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75577         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75578         'present but cannot compile' warnings on cygwin.
75579         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75580         use ws2tcpip.h if sys/socket.h works.
75581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75582         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75583
75584 2006-02-14  Simon Josefsson  <jas@extundo.com>
75585
75586         * modules/maintainer-makefile (Files): Rename.
75587
75588         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75589         and (the local) Makefile.cfg to maint-cfg.mk.
75590
75591         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75592         to the latter.
75593
75594         * modules/maintainer-makefile: New module.
75595
75596         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75597         severaly stripped to make it possible to build it up from scratch
75598         with reliable tests.
75599
75600         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75601         fixes to permit overriding the default actions when configure and
75602         makefile are not available.
75603
75604 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         Sync from coreutils.
75607         * modules/lstat (Depends-on): Don't depend on xalloc.
75608         (License): Change from GPL to LGPL, since this is now simply a
75609         replacement for a libc function.
75610
75611 2006-02-14  Jim Meyering  <jim@meyering.net>
75612
75613         Sync from coreutils.
75614
75615         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75616         failure on deficient systems, and simplify gnulib lgpl dependencies.
75617         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75618         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75619
75620         * lib/xalloc-die.c: Remove unused definition of N_.
75621
75622 2006-02-14  Jim Meyering  <jim@meyering.net>
75623
75624         Sync from coreutils.
75625         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75626         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75627         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75628         double-quote uses of that variable, to accommodate the rare case in
75629         which getmntent is available in none of the libraries checked.  This
75630         happens at least on FreeBSD 5.0.
75631
75632 2006-02-13  Simon Josefsson  <jas@extundo.com>
75633
75634         * gnulib-tool (Usage): Fix --import, from
75635         karl@freefriends.org (Karl Berry).
75636
75637 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75638
75639         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75640
75641 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75642
75643         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75644         "autoupdate" on 2005-12-12.
75645
75646 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75647
75648         * modules/closeout (Depends-on): Remove atexit.
75649
75650 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75653         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75654
75655 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75658         __EXTENSIONS__ if this causes compilation to fail.  Problem
75659         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75660         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75661
75662 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75665         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75667         All uses changed.
75668
75669 2006-01-26  Simon Josefsson  <jas@extundo.com>
75670
75671         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75672         prototype is visible on mingw32.
75673
75674         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75675         for mingw32.
75676
75677         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75678         mingw32).
75679
75680 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75683         attempt to open for write; this always fails, at least on POSIX
75684         hosts.  This reinstates the 2006-01-09 change, which was
75685         inadvertently removed.
75686
75687 2006-01-26  Bruno Haible  <bruno@clisp.org>
75688
75689         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75690         Reported by Paul Eggert.
75691
75692 2006-01-26  Bruno Haible  <bruno@clisp.org>
75693             Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * lib/stdbool_.h (_Bool)
75696         [(! (defined __cplusplus || defined __BEOS__)
75697           && !defined __GNUC__
75698           && !(defined __HP_cc || defined __xlc__
75699                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75700                || defined __sgi))]:
75701         #define to signed char in these cases too; this simplifies
75702         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75703         etc., separately) and makes it more conservative.
75704
75705 2006-01-25  Simon Josefsson  <jas@extundo.com>
75706
75707         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75708         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75709         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75710
75711 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75712
75713         * lib/argp-namefrob.h: Bugfix. Remove stray #
75714
75715 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75718         so that we test the test.
75719         Check for yet another HP-UX cc bug involving *bool |= bool.
75720
75721 2006-01-25  Karl Berry  <karl@gnu.org>
75722
75723         * config/srclist.txt (vasnprintf.c): sync lost.
75724
75725 2006-01-25  Jim Meyering  <jim@meyering.net>
75726
75727         Sync from the stable (b5) branch of coreutils:
75728
75729         * lib/fts.c (fts_children): Don't let close() clobber errno from
75730         failed fchdir().
75731
75732         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75733         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75734         a dangling symlink.  That can also happen at least for ELOOP.
75735         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75736         FYI, this bug predates the inclusion of fts.c in coreutils.
75737
75738         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75739         in their own block, so pre-c99 compilers don't object.
75740
75741         Avoid the double-free (first in fts_read, second in fts_close) that
75742         would occur when an `active' directory is made inaccessible (e.g.,
75743         via chmod a-x) during a traversal.
75744         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75745         before returning.  Reproduce this failure by
75746         mkdir -p a/b; cd a; chmod a-x . b
75747         Reported by Stavros Passas.
75748
75749 2006-01-25  Jim Meyering  <jim@meyering.net>
75750
75751         * lib/fileblocks.c: Remove more useless parentheses.
75752         * lib/readutmp.h: Likewise.
75753
75754 2006-01-25  Bruno Haible  <bruno@clisp.org>
75755
75756         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75757         warnings.
75758         Reported by Paul Eggert.
75759
75760 2006-01-25  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75763         rid of a trap command. For Solaris sh.
75764         Reported by Mark D. Baushke <mdb@gnu.org>.
75765
75766 2006-01-24  Simon Josefsson  <jas@extundo.com>
75767
75768         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75769         Bruno.
75770
75771 2006-01-24  Karl Berry  <karl@gnu.org>
75772
75773         * config/srclist.txt (argp-namefrob.h): sync lost.
75774
75775 2006-01-24  Jim Meyering  <jim@meyering.net>
75776
75777         * modules/openat (Files): Add lib/intprops.h.
75778         From Mark D. Baushke.
75779
75780 2006-01-24  Jim Meyering  <jim@meyering.net>
75781
75782         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75783         Reported by Mark D. Baushke.
75784
75785 2006-01-24  Jim Meyering  <jim@meyering.net>
75786
75787         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75788
75789 2006-01-24  Bruno Haible  <bruno@clisp.org>
75790
75791         * modules/strnlen (Maintainer): Change from glibc to all.
75792
75793 2006-01-24  Bruno Haible  <bruno@clisp.org>
75794
75795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75796         Patch by Paul Eggert.
75797
75798 2006-01-24  Bruno Haible  <bruno@clisp.org>
75799
75800         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75801         already has it.
75802         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75803         2005-11-26.
75804
75805         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75806         'signed char' to avoid problems with the built-in _Bool type.
75807         Reported by Paul Eggert on 2005-11-26.
75808
75809 2006-01-24  Bruno Haible  <bruno@clisp.org>
75810
75811         * gnulib-tool (func_import): Avoid constructing complicated sed
75812         expressions inside backquote.
75813         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75814
75815 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75816
75817         These changes imported from libc.
75818         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75819         test and two separate function calls.
75820         * lib/strndup.c (__strndup): Add libc_hidden_def.
75821
75822 2006-01-23  Simon Josefsson  <jas@extundo.com>
75823
75824         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75825         Remove the test_*_SOURCES variable: automake infers it by default.
75826         * modules/tls-tests: Likewise.
75827
75828 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         Work around porting bugs reported by Dieter in
75831         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75832         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75833         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75834         Include "getopt.h" first, to check interface.
75835         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75836         !HAVE_DECL_GETENV.
75837         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75838         (__strndup): Revert to K&R-style function dfns, the glibc style.
75839         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75840         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75841         Include strnlen.h first, to get prototype properly.
75842         (strnlen): Renamed from __strnlen.
75843         Remove weak alias.
75844
75845 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75848
75849 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * config/srclist.txt: Adjust to reflect glibc reorganization.
75852         This affects only comments.
75853
75854 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75855
75856          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75857          Reported by Bruce Korb <bkorb@gnu.org>.
75858
75859 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75862         to pacify gcc -Wswitch-default.
75863
75864 2006-01-22  Bruno Haible  <bruno@clisp.org>
75865
75866         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75867         temporary buffer for sprintf, take into account the precision also
75868         for 'd', 'i', 'u', 'o', 'x', 'X'.
75869
75870 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75871
75872         * modules/argp-tests: New module
75873         * tests/test-argp.c: New file
75874         * tests/test-argp-2.sh: New file
75875
75876 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75877
75878         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75879         (__argp_base_name): Removed
75880         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75881         typo.
75882         (__argp_base_name): Provide macro definition or extern declaration
75883         depending on the configuration
75884
75885 2006-01-20  Simon Josefsson  <jas@extundo.com>
75886
75887         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75888
75889 2006-01-20  Simon Josefsson  <jas@extundo.com>
75890
75891         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75892
75893 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75896         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75897         Suggested by Bruno Haible.
75898
75899 2006-01-20  Karl Berry  <karl@gnu.org>
75900
75901         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75902         until changes propagate, I guess.
75903
75904 2006-01-19  Simon Josefsson  <jas@extundo.com>
75905
75906         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75907
75908 2006-01-19  Simon Josefsson  <jas@extundo.com>
75909
75910         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75911
75912 2006-01-19  Simon Josefsson  <jas@extundo.com>
75913
75914         * gnulib-tool: Set check_PROGRAMS.
75915
75916         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75917         modules/des-tests, modules/gc-arcfour-tests,
75918         modules/gc-arctwo-tests, modules/gc-des-tests,
75919         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75920         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75921         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75922         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75923         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75924         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75925         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75926         test_*_SOURCES.
75927
75928 2006-01-18  Simon Josefsson  <jas@extundo.com>
75929
75930         * modules/socklen (Depends-on): Depend on sys_socket.
75931
75932 2006-01-18  Simon Josefsson  <jas@extundo.com>
75933
75934         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75935         modules/des-tests, modules/gc-arcfour-tests,
75936         modules/gc-arctwo-tests, modules/gc-des-tests,
75937         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75938         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75939         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75940         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75941         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75942         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75943         $(EXEEXT) to automake TESTS variable, for mingw32.
75944
75945 2006-01-17  Simon Josefsson  <jas@extundo.com>
75946
75947         * modules/socklen (Include): Need sys/socket.h.
75948
75949 2006-01-17  Bruno Haible  <bruno@clisp.org>
75950
75951         * modules/ssize_t (Include): Add <sys/types.h>.
75952
75953 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75956         it's not portable and it doesn't work with cross-compiles.
75957         Problem reported by Bruno Haible.  Fix missing-$ typo in
75958         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75959         -zignore from being used with Sun's C compiler.
75960
75961 2006-01-12  Simon Josefsson  <jas@extundo.com>
75962
75963         * lib/base64.c: Fix warning, reported by Bruno Haible
75964         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75965
75966 2006-01-12  Bruno Haible  <bruno@clisp.org>
75967
75968         * modules/ldd: New file.
75969         * build-aux/ldd.sh.in: New file.
75970         * MODULES.html.sh (Support for building libraries and executables): Add
75971         ldd.
75972
75973 2006-01-12  Bruno Haible  <bruno@clisp.org>
75974
75975         * m4/ldd.m4: New file.
75976
75977 2006-01-12  Bruno Haible  <bruno@clisp.org>
75978
75979         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75980         endless loop while replacing $auxdir with build-aux.
75981
75982 2006-01-11  Simon Josefsson  <jas@extundo.com>
75983
75984         * lib/stdint_.h (SIZE_MAX): Add missing (.
75985
75986 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         Sync from coreutils.
75989         * lib/md5.c: Fix commentary typos.
75990         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75991         * lib/md5.h (__attribute__): Remove; unused.
75992         * lib/sha1.c: Fix commentary to match md5 better.
75993         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75994         so that we don't need to worry about alignment.  All uses changed.
75995         This merges the 2005-10-28 md5 change into sha1.
75996
75997 2006-01-11  Jim Meyering  <jim@meyering.net>
75998
75999         Sync from coreutils.
76000         * lib/md5.c (OP): Fix spacing.
76001
76002 2006-01-11  Bruno Haible  <bruno@clisp.org>
76003
76004         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76005         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
76006         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
76007
76008 2006-01-11  Bruno Haible  <bruno@clisp.org>
76009
76010         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76011         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
76012         the "early" section as well.
76013
76014 2006-01-11  Bruno Haible  <bruno@clisp.org>
76015
76016         Avoid "ar: no archive members specified" error on MacOS X.
76017         * gnulib-tool (func_modules_add_dummy): New function.
76018         (func_import, func_create_testdir): Invoke it.
76019
76020 2006-01-11  Bruno Haible  <bruno@clisp.org>
76021
76022         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
76023         with $auxdir in AC_CONFIG_FILES statements.
76024
76025 2006-01-11  Bruno Haible  <bruno@clisp.org>
76026
76027         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76028         Initialize also noinst_HEADERS to empty.
76029
76030 2006-01-11  Bruno Haible  <bruno@clisp.org>
76031
76032         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
76033         variables.
76034         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
76035         autoreconf.
76036
76037 2006-01-11  Bruno Haible  <bruno@clisp.org>
76038
76039         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
76040         overridable by the user.
76041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76042
76043 2006-01-10  Simon Josefsson  <jas@extundo.com>
76044
76045         * modules/sys_socket: New file.
76046
76047 2006-01-10  Simon Josefsson  <jas@extundo.com>
76048
76049         * m4/sys_socket_h.m4: New file.
76050
76051 2006-01-10  Simon Josefsson  <jas@extundo.com>
76052
76053         * lib/socket_.h: New file.
76054
76055 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * modules/readutmp (Maintainer): Add myself.
76058
76059 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
76062         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
76063         People who are still concerned with buggy memcmp implementations
76064         can invoke gl_FUNC_MEMCMP themselves.
76065
76066 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * lib/regex_internal.h (BITSET_WORD_BITS):
76069         Work around a bug in 64-bit PGC (before version 6.1-2), where the
76070         preprocessor mishandles large unsigned values as if they were signed.
76071         Problem reported by Claudio Fontana in
76072         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
76073
76074 2006-01-10  Jim Meyering  <jim@meyering.net>
76075
76076         Avoid the double-free (first in fts_read, second in fts_close) that
76077         would occur when an `active' directory is made inaccessible (e.g.,
76078         via chmod a-x) during a traversal.
76079         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76080         before returning.  Reproduce this failure by
76081         mkdir -p a/b; cd a; chmod a-x . b
76082         Reported by Stavros Passas.
76083
76084         Sync from coreutils.
76085         * lib/sha1.c: Tweak grammar in a comment.
76086
76087 2006-01-10  Jim Meyering  <jim@meyering.net>
76088
76089         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
76090         Patch by Joerg Sonnenberger.
76091
76092 2006-01-10  Bruno Haible  <bruno@clisp.org>
76093
76094         * modules/readutmp: Depend on module free.
76095         * modules/strtok_r: Depend on module restrict.
76096
76097 2006-01-10  Bruno Haible  <bruno@clisp.org>
76098
76099         * modules/gettext (configure.ac): Add an invocation of
76100         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
76101
76102 2006-01-10  Bruno Haible  <bruno@clisp.org>
76103
76104         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
76105         Reported by Werner Lemberg <wl@gnu.org>.
76106
76107 2006-01-10  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/localcharset.c: Update from GNU gettext.
76110
76111 2006-01-10  Bruno Haible  <bruno@clisp.org>
76112
76113         * lib/argp.h (__const): Remove macro. Use const instead.
76114         * lib/argp-fmtstream.h (__const): Likewise.
76115         * lib/glob_.h (__const): Remove macro.
76116         * lib/glob-libc.h: Use const instead of __const.
76117
76118 2006-01-10  Bruno Haible  <bruno@clisp.org>
76119
76120         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
76121         variable.
76122         Needed to avoid an automake error regarding the 'gettext' module.
76123
76124 2006-01-09  Simon Josefsson  <jas@extundo.com>
76125
76126         * modules/inet_ntop (Depends-on): Add restrict.
76127
76128 2006-01-09  Simon Josefsson  <jas@extundo.com>
76129
76130         * modules/gc-rijndael-tests (License): Put under LGPL.
76131
76132         * modules/gc-des-tests (License): Likewise.
76133
76134         * modules/gc-arcfour-tests (License): Likewise.
76135
76136         * modules/gc-arctwo-tests (License): Likewise.
76137
76138         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
76139
76140         * modules/gc-hmac-sha1-tests (Files): Likewise.
76141
76142         * modules/gc-hmac-md5-tests (License): Likewise.
76143
76144         * modules/gc-sha1-tests (License): Likewise.
76145
76146         * modules/gc-md5-tests (License): Likewise.
76147
76148         * modules/gc-md4-tests (License): Likewise.
76149
76150         * modules/gc-md2-tests (License): Likewise.
76151
76152         * modules/gc-tests (License): Likewise.
76153
76154         * modules/des-tests (License): Likewise.
76155
76156         * modules/md4-tests (License): Likewise.
76157
76158         * modules/md2-tests (License): Likewise.
76159
76160 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         Sync from coreutils:
76163
76164         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76165         * modules/lib-ignore: New file.
76166         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76167         chdir-safer.m4, lchmod.m4.
76168         * modules/openat: Add mkdirat.c, openat-priv.h.
76169
76170 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         Sync from coreutils.
76173         * m4/lib-ignore.m4: New file.
76174         * m4/lchmod.m4: New file.
76175
76176 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76177
76178         Sync from coreutils.
76179         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76180         for write access: POSIX says that must fail.
76181         * lib/fts.c (diropen): Likewise.
76182         * lib/save-cwd.c (save_cwd): Likewise.
76183         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76184         well, for minor improvements on hosts that lack O_DIRECTORY.
76185         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76186         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76187         Fall back on chown if open failed with EACCES.
76188
76189         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76190         Report an error at compile-time if only a 1-second nominal clock
76191         resolution is found.
76192
76193         * lib/lchmod.h: New file.
76194         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76195         (make_dir_parents): Use lchown rather than chown, and
76196         lchmod rather than chmod.
76197
76198         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76199         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76200         "proc" reported by n0dalus.
76201
76202         * lib/mountlist.c: Include <limits.h>.
76203         (dev_from_mount_options)
76204         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76205         New function.  It no longer assumes "dev=" has the System V meaning
76206         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76207         (read_file_system_list)
76208         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76209         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76210         dev= in that case.
76211
76212         * lib/posixtm.h (PDS_PRE_2000): New macro.
76213         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76214         allow_century.  All usages changed.  Reject dates outside the range
76215         1969-1999 if PDS_PRE_2000 is used.
76216
76217 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         Sync from coreutils.
76220         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76221         (Time of day items): Mention the possibility of leap seconds.
76222         Problem reported by Dr. David Alan Gilbert.
76223
76224 2006-01-09  Jim Meyering  <jim@meyering.net>
76225
76226         Sync from coreutils.
76227
76228         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76229
76230         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76231
76232         * lib/modechange.c (mode_compile): Reject an invalid mode string
76233         that starts with an octal digit.  From Andreas Gruenbacher.
76234
76235         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76236         and dup to open_safer and dup_safer, respectively.
76237         (openat_permissive): Fix typo in comment.
76238
76239         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76240         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76241         (_): Remove; no longer needed.
76242         (openat): Renamed from rpl_openat; no need for rpl_openat
76243         since openat.h renames openat for us.
76244         Replace most of the body with a call to openat_permissive,
76245         to avoid duplicate code.
76246         Port to (probably hypothetical) environments were mode_t is
76247         wider than int.
76248         (openat_permissive): Require mode arg, so that we can check
76249         types better.  Put it just after flags.  Change cwd failure
76250         indicator from pointer-to-bool to pointer-to-errno-value.
76251         All callers changed.
76252         Invoke openat_save_fail and/or openat_restore_fail if
76253         cwd_errno is null, so that openat can call us.
76254         (openat_permissive, fdopendir, fstatat, unlinkat):
76255         Simplify errno handling to avoid some duplicate code,
76256         as it's OK to set errno on success.
76257         * lib/openat.h: Revamp code so that function macros depend on
76258         __OPENAT_PREFIX only, not also on AT_FDCWD.
76259         (openat_ro): Remove.  Caller changed to use openat_permissive.
76260         (openat_permissive): Now a macro, if not a function.
76261         (openat_restore_fail, openat_save_fail): Now always functions,
76262         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76263
76264         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76265         and openat.c.
76266         * lib/mkdirat.c: Include openat-priv.h.
76267         Remove definitions of macros defined therein.
76268         * lib/openat.c: Likewise.
76269
76270         * lib/mkdirat.c (mkdirat): New file and function.
76271         * lib/openat.h (mkdirat): Declare.
76272
76273         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76274
76275         * lib/openat.h (openat_permissive): Declare.
76276         (openat_ro): Define.
76277
76278         * lib/openat.c (EXPECTED_ERRNO): New macro.
76279         (openat_permissive): New function -- used in remove.c rewrite.
76280         (all functions): Set errno just before returning, only if there
76281         was an actual failure.
76282         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76283
76284         Emulate openat-family functions using Linux's procfs, if possible.
76285         Idea and some code based on Ulrich Drepper's glibc changes.
76286
76287         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76288         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76289         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76290         before falling back on save_cwd and restore_cwd.
76291         (fdopendir, fstatat, unlinkat): Likewise.
76292
76293         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76294         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76295
76296         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76297         as second argument to va_arg.  Otherwise, some versions of gcc
76298         warn that `if this code is reached, the program will abort'.
76299
76300 2006-01-09  Jim Meyering  <jim@meyering.net>
76301
76302         Sync from coreutils.
76303         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76304         Require openat-priv.h.
76305
76306 2006-01-09  Bruno Haible  <bruno@clisp.org>
76307
76308         * modules/strnlen (Include): Use strnlen.h.
76309
76310 2006-01-09  Bruno Haible  <bruno@clisp.org>
76311
76312         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76313
76314 2006-01-09  Bruno Haible  <bruno@clisp.org>
76315
76316         * lib/sysexit_.h (EX_OK): New macro.
76317         Suggested by Martin Lambers <marlam@marlam.de>.
76318
76319 2006-01-09  Bruno Haible  <bruno@clisp.org>
76320
76321         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76322         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76323
76324 2006-01-09  Bruno Haible  <bruno@clisp.org>
76325
76326         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76327         numbers.
76328
76329 2006-01-09  Bruno Haible  <bruno@clisp.org>
76330
76331         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76332         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76333         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76334         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76335
76336 2006-01-09  Bruno Haible  <bruno@clisp.org>
76337
76338         * build-aux/javacomp.sh.in: New file, moved from lib/.
76339         * modules/javacomp-script (Files): Update.
76340         (configure.ac): Add AC_CONFIG_FILES invocation.
76341         (EXTRA_DIST): Remove variable.
76342
76343         * build-aux/javaexec.sh.in: New file, moved from lib/.
76344         * modules/javaexec (Files): Update.
76345         (configure.ac): Add AC_CONFIG_FILES invocation.
76346         (EXTRA_DIST): Remove javaexec.sh.in.
76347
76348         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76349         * modules/csharpcomp-script (Files): Update.
76350         (configure.ac): Add AC_CONFIG_FILES invocation.
76351         (EXTRA_DIST): Remove variable.
76352
76353         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76354         * modules/csharpexec (Files): Update.
76355         (configure.ac): Add AC_CONFIG_FILES invocation.
76356         (EXTRA_DIST): Remove csharpexec.sh.in.
76357
76358 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76359
76360         Sync from coreutils.
76361
76362         Add POSIX ACL support
76363         * lib/acl.h (copy_acl, set_acl): Add declarations.
76364         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76365         systems other than Linux.
76366         (chmod_or_fchmod): New function: use fchmod when possible,
76367         and chmod otherwise.
76368         (file_has_acl): Add a POSIX ACL implementation, with a
76369         Linux-specific subcase.
76370         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76371         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76372         acls are unsupported.
76373         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76374         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76375         are unsupported.
76376
76377 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76378
76379         Sync from coreutils.
76380         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76381
76382 2006-01-07  Bruno Haible  <bruno@clisp.org>
76383
76384         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76385         gl_EARLY.
76386
76387 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76390         Problem reported for Mingw by Mark Junker.
76391
76392 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * README: Gnulib normally doesn't generate a tarball.
76395
76396 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76399         long int, not int, for nanosecond counts, so that people who are
76400         used to POSIX struct timespec won't be surprised.  Reported by Jim
76401         Meyering.
76402
76403 2005-12-28  Bruno Haible  <bruno@clisp.org>
76404
76405         * build-aux/config.rpath: Update from GNU gettext.
76406
76407 2005-12-16  Jim Meyering  <jim@meyering.net>
76408
76409         * modules/fprintftime: New module.
76410         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76411
76412 2005-12-16  Jim Meyering  <jim@meyering.net>
76413
76414         * m4/fprintftime.m4: New file.
76415
76416 2005-12-16  Jim Meyering  <jim@meyering.net>
76417
76418         * lib/fprintftime.c, lib/fprintftime.h: New files.
76419
76420 2005-12-15  Simon Josefsson  <jas@extundo.com>
76421
76422         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76423         new m4/socklen.m4.
76424
76425 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76426
76427         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76428         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76429
76430 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76431
76432         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76433         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76434         struct uparams is valid. Fall back to the default values if it is
76435         not.
76436
76437 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76438
76439         * modules/argp (Files): Add argp-pin.c
76440         (Depends-on): dirname
76441         (lib_SOURCES): Add argp-pin.c
76442
76443 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76444
76445         * m4/argp.m4:  Check if program_invocation_name and
76446         program_invocation_short_name are declared and define appropriate
76447         macros if they are not.
76448
76449 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76450
76451         * lib/argp-help.c (__argp_base_name): New function
76452         (__argp_short_program_name): Rewrite using __argp_base_name
76453         * lib/argp-namefrob.h: Define program_invocation_name and
76454         program_invocation_short_name if requested
76455         (__argp_base_name): Add prototype
76456         * lib/argp-parse.c (argp_def): Use gettext wrappers
76457         (argp_default_parser): Use __argp_base_name
76458         * lib/argp-pin.c: New file. Defines program_invocation_name and
76459         program_invocation_short_name on systems that lack them.
76460
76461 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76464         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76465         porting problem reported by Georg Schwarz in
76466         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76467
76468 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76471         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76472         porting problem reported by Georg Schwarz in
76473         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76474
76475 2005-12-05  Bruno Haible  <bruno@clisp.org>
76476
76477         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76478         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76479         Reported by Mark Junker <mjscod@gmx.de>.
76480
76481 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76484         Use implementation from Albert Chin, with some
76485         comments/corrections by Stepan Kasal and myself.
76486
76487 2005-12-02  Bruno Haible  <bruno@clisp.org>
76488
76489         * gnulib-tool (func_import): Accept GPLed build tool modules when
76490         --lgpl is given.
76491         * modules/csharpcomp-script: New file.
76492         * modules/csharpcomp: Depend on it.
76493         * modules/javacomp-script: New file.
76494         * modules/javacomp: Depend on it.
76495         Suggested by Simon Josefsson.
76496
76497 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76500         statement, to work around an HP-UX 10.20 compiler bug reported by
76501         Peter O'Gorman.
76502
76503 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76504
76505         * modules/savedir (Depends-on): Add openat.
76506
76507 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76508
76509         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76510         (uintmax_t) [defined uintmax_t]: Do not declare.
76511         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76512         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76513         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76514         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76515         sake of portability to weird hosts that C allows (though we don't
76516         know of any practical examples).
76517
76518         * lib/savedir.h (fdsavedir): New decl.
76519         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76520         contains most of the former guts of savedir.
76521         (savedir): Use savedirstream.
76522         Include "openat.h".
76523
76524 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * modules/obstack (Files): Add m4/ulonglong.m4.
76527         Problem reported by Davide Angelocola.
76528
76529 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76532         coreutils no longer futzes with rounding modes.
76533
76534 2005-11-14  Jim Meyering  <jim@meyering.net>
76535
76536         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76537         replacement of mkstemp.
76538
76539 2005-11-10  Simon Josefsson  <jas@extundo.com>
76540
76541         * lib/readline.c: Remove EOL.
76542
76543 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * modules/gethrxtime (Depends-on): Add gettime.
76546
76547 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76550         or gettimeofday; no longer needed.
76551
76552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76555         time business.
76556         (gethrxtime) [! (HAVE_NANOUPTIME
76557         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76558         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76559         our own approximation.
76560
76561 2005-11-08  Eric Blake  <ebb9@byu.net>
76562
76563         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76564
76565 2005-11-08  Eric Blake  <ebb9@byu.net>
76566
76567         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76568
76569 2005-11-04  Bruno Haible  <bruno@clisp.org>
76570
76571         * gnulib-tool: Implement --update mode.
76572
76573 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         Fix porting problem reported by Theodoros V. Kalamatianos.
76576         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76577         Don't assume that futimes failing means we must fail.
76578
76579 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76582         variables to suggest the intended function of the PATH_MAX check.
76583
76584 2005-10-30  Kean Johnston  <jkj@sco.com>
76585
76586         Trivial changes to support SCO systems.
76587         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76588         as PATH_MAX.
76589         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76590         where __ptr is null when no I/O is pending.
76591
76592 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76595         leave errno alone.  Problem reported by Dmitry V. Levin.
76596
76597 2005-10-28  Simon Josefsson  <jas@extundo.com>
76598
76599         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76600         Test more.
76601
76602         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76603
76604         * modules/md2, modules/md2-tests: New files.
76605
76606 2005-10-28  Simon Josefsson  <jas@extundo.com>
76607
76608         * m4/inet_ntop.m4: More tests.
76609
76610         * m4/gc-md2.m4, md2.m4: New file.
76611
76612 2005-10-28  Simon Josefsson  <jas@extundo.com>
76613
76614         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76615         "restrict" keywords, as per POSIX.  Protect the function
76616         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76617         Don't use K&R prototypes.  Check the sprintf return values.
76618         Re-define EAFNOSUPPORT if not present.  Indent.
76619
76620         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76621         suggested by Bruno Haible <bruno@clisp.org>.
76622
76623         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76624
76625         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76626
76627         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76628         libgcrypt).
76629
76630         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76631
76632         * lib/md2.h, lib/md2.c: New files.
76633
76634 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76637         errno alone.  Problem reported by Frederic Jolliton.
76638
76639 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * modules/verify (License): Change from GPL to LGPL.  This is a
76642         tiny module and there are apparently near-equivalents that are
76643         under the BSD license.
76644
76645 2005-10-24  Simon Josefsson  <jas@extundo.com>
76646
76647         * modules/sha1: Relicense to LGPL.
76648
76649 2005-10-24  Simon Josefsson  <jas@extundo.com>
76650
76651         * lib/md4.h: Shrink buffer size, now that we changed the type.
76652
76653 2005-10-23  Simon Josefsson  <jas@extundo.com>
76654
76655         * gnulib-tool (func_import): Fix --tests-base.
76656
76657 2005-10-22  Simon Josefsson  <jas@extundo.com>
76658
76659         * modules/arcfour (Depends-on): Need stdint.
76660
76661 2005-10-22  Simon Josefsson  <jas@extundo.com>
76662
76663         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76664         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76665
76666 2005-10-22  Simon Josefsson  <jas@extundo.com>
76667
76668         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76669         suggested by Bruno Haible <bruno@clisp.org>.
76670
76671 2005-10-22  Simon Josefsson  <jas@extundo.com>
76672
76673         * lib/crc.h: Include stddef.h, for size_t.
76674
76675 2005-10-22  Simon Josefsson  <jas@extundo.com>
76676
76677         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76678         arcfour_context struct (simplify test vector testing in GNU
76679         Shishi).
76680
76681 2005-10-21  Simon Josefsson  <jas@extundo.com>
76682
76683         * modules/des, modules/des-tests: New files.
76684
76685         * modules/gc-des, modules/gc-des-tests: New files.
76686
76687         * tests/test-des.c, tests/test-gc-des.c: New file.
76688
76689 2005-10-21  Simon Josefsson  <jas@extundo.com>
76690
76691         * modules/arctwo, modules/arctwo-tests: New files.
76692
76693         * tests/test-arctwo.c: New file.
76694
76695         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76696
76697         * tests/test-gc-arctwo.c: New file.
76698
76699 2005-10-21  Simon Josefsson  <jas@extundo.com>
76700
76701         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76702         Bruno Haible <bruno@clisp.org>.
76703
76704         * m4/gc-des.m4: New file.
76705
76706 2005-10-21  Simon Josefsson  <jas@extundo.com>
76707
76708         * m4/arctwo.m4: New file.
76709
76710         * m4/gc-arctwo.m4: New file.
76711
76712 2005-10-21  Simon Josefsson  <jas@extundo.com>
76713
76714         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76715         block.
76716
76717 2005-10-21  Simon Josefsson  <jas@extundo.com>
76718
76719         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76720         <bruno@clisp.org>.
76721
76722         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76723
76724         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76725         Bruno Haible <bruno@clisp.org>.
76726
76727         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76728         <bruno@clisp.org>.
76729
76730 2005-10-21  Simon Josefsson  <jas@extundo.com>
76731
76732         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76733
76734 2005-10-21  Simon Josefsson  <jas@extundo.com>
76735
76736         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76737
76738 2005-10-21  Simon Josefsson  <jas@extundo.com>
76739
76740         * lib/des.h, lib/des.c: New files.
76741
76742         * lib/gc-gnulib.c: Support DES.c
76743
76744 2005-10-21  Simon Josefsson  <jas@extundo.com>
76745
76746         * lib/arctwo.h, lib/arctwo.c: New files.
76747
76748         * lib/gc-gnulib.c: Support ARCTWO.
76749
76750 2005-10-21  Simon Josefsson  <jas@extundo.com>
76751
76752         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76753         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76754
76755 2005-10-21  Simon Josefsson  <jas@extundo.com>
76756
76757         * gnulib-tool (func_import, func_create_testdir): Define automake
76758         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76759         Makefile.am snippet),
76760         suggested by Bruno Haible <bruno@clisp.org>.
76761
76762         * modules/gc (Makefile.am): Use it.
76763
76764 2005-10-21  Bruno Haible  <bruno@clisp.org>
76765
76766         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76767         patch.
76768
76769 2005-10-19  Simon Josefsson  <jas@extundo.com>
76770
76771         * tests/test-gc-rijndael.c: New file.
76772
76773         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76774
76775 2005-10-19  Simon Josefsson  <jas@extundo.com>
76776
76777         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76778         interface too.
76779
76780 2005-10-19  Simon Josefsson  <jas@extundo.com>
76781
76782         * tests/test-gc-arcfour.c: New file.
76783
76784         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76785
76786 2005-10-19  Simon Josefsson  <jas@extundo.com>
76787
76788         * modules/gc-md4, modules/gc-md4-tests: New file.
76789
76790         * tests/test-gc-md4.c: New file.
76791
76792 2005-10-19  Simon Josefsson  <jas@extundo.com>
76793
76794         * m4/gc-md4.m4: New file.
76795
76796 2005-10-19  Simon Josefsson  <jas@extundo.com>
76797
76798         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76799         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76800         <kasal@ucw.cz>.
76801
76802 2005-10-19  Simon Josefsson  <jas@extundo.com>
76803
76804         * m4/gc-arcfour.m4: New file.
76805
76806         * m4/gc-rijndael.m4: New file.
76807
76808 2005-10-19  Simon Josefsson  <jas@extundo.com>
76809
76810         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76811
76812 2005-10-19  Simon Josefsson  <jas@extundo.com>
76813
76814         * lib/gc-gnulib.c: Support ARCFOUR.
76815
76816 2005-10-19  Simon Josefsson  <jas@extundo.com>
76817
76818         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76819         support.
76820
76821         * lib/gc.h: Add ECB enum type.
76822
76823         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76824
76825 2005-10-18  Simon Josefsson  <jas@extundo.com>
76826
76827         * tests/test-md5.c: New file.
76828
76829         * modules/md5-tests: New file.
76830
76831 2005-10-18  Simon Josefsson  <jas@extundo.com>
76832
76833         * tests/test-md4.c: New file.
76834
76835         * modules/md4, modules/md4-tests: New files.
76836
76837 2005-10-18  Simon Josefsson  <jas@extundo.com>
76838
76839         * m4/md4.m4: New file.
76840
76841 2005-10-18  Simon Josefsson  <jas@extundo.com>
76842
76843         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76844
76845 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76846
76847         * gnulib-tool (func_create_testdir): Omit the second check whether
76848         BUILT_SOURCES in nonempty.
76849
76850 2005-10-17  Simon Josefsson  <jas@extundo.com>
76851
76852         * tests/test-rijndael.c: New file.
76853
76854 2005-10-17  Simon Josefsson  <jas@extundo.com>
76855
76856         * modules/sha1: Depend on stdint instead of md5.
76857
76858         * modules/md5: Depend on stdint, remove uint32_t.
76859
76860 2005-10-17  Simon Josefsson  <jas@extundo.com>
76861
76862         * modules/gc-sha1-tests: New file.
76863
76864         * tests/test-gc-sha1.c: New file.
76865
76866 2005-10-17  Simon Josefsson  <jas@extundo.com>
76867
76868         * m4/md5.m4: Remove call to uint32_t.m4.
76869
76870 2005-10-17  Simon Josefsson  <jas@extundo.com>
76871
76872         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76873
76874         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76875         md5.h.
76876
76877         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76878
76879         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76880
76881 2005-10-17  Simon Josefsson  <jas@extundo.com>
76882
76883         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76884
76885 2005-10-17  Simon Josefsson  <jas@extundo.com>
76886
76887         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76888
76889 2005-10-17  Simon Josefsson  <jas@extundo.com>
76890
76891         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76892
76893         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76894
76895 2005-10-17  Bruno Haible  <bruno@clisp.org>
76896
76897         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76898         that it can also be used in a test.
76899
76900 2005-10-16  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76903         TESTS_ENVIRONMENT, so that individual tests can augment it.
76904
76905         * gnulib-tool (func_create_testdir): Use an intermediate target for
76906         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76907         macros, like $(ALLOCA_H), which cannot be passed through the command
76908         line.
76909
76910 2005-10-15  Simon Josefsson  <jas@extundo.com>
76911
76912         * modules/rijndael-tests: New file.
76913
76914         * modules/rijndael: New file.
76915
76916 2005-10-15  Simon Josefsson  <jas@extundo.com>
76917
76918         * m4/rijndael.m4: New file.
76919
76920 2005-10-15  Simon Josefsson  <jas@extundo.com>
76921
76922         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76923
76924         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76925
76926 2005-10-14  Simon Josefsson  <jas@extundo.com>
76927
76928         * tests/test-arcfour.c: New file.
76929
76930         * modules/arcfour, modules/arcfour-tests: New files.
76931
76932 2005-10-14  Simon Josefsson  <jas@extundo.com>
76933
76934         * m4/arcfour.m4: New file.
76935
76936 2005-10-14  Simon Josefsson  <jas@extundo.com>
76937
76938         * lib/arcfour.h, lib/arcfour.c: New files.
76939
76940 2005-10-14  Roland McGrath  <roland@redhat.com>
76941
76942         Import from libc.  [BZ #1331]
76943         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76944         macro argument.
76945         Reported by Matej Vela <vela@debian.org>.
76946
76947 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76950         include <wchar.h>; no longer needed.
76951
76952 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76955
76956 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76957         and  Ulrich Drepper  <drepper@redhat.com>
76958
76959         Import from libc.
76960         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76961         instead of inline stream orientation test and two separate
76962         function calls.  Pay no attention to USE_IN_LIBIO.
76963
76964 2005-10-13  Simon Josefsson  <jas@extundo.com>
76965
76966         * modules/gc-hmac-md5-tests: New file.
76967
76968         * tests/test-gc-hmac-sha1.c: New file.
76969
76970         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76971
76972         * modules/gc-hmac-md5-tests: New file.
76973
76974         * tests/test-gc-md5.c: New file.
76975
76976         * modules/gc-md5-tests: New file.
76977
76978 2005-10-13  Simon Josefsson  <jas@extundo.com>
76979
76980         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76981         Move memory allocation outside of loop.
76982
76983 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76986         intermediate directory is in a read-only file system.  Problem
76987         reported by Eric Blake.
76988
76989 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76990
76991         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76992
76993 2005-10-12  Simon Josefsson  <jas@extundo.com>
76994
76995         * tests/test-hmac-sha1.c: New file.
76996
76997         * modules/hmac-sha1-tests: New file.
76998
76999         * modules/hmac-sha1: New file.
77000
77001 2005-10-12  Simon Josefsson  <jas@extundo.com>
77002
77003         * modules/gc-sha1: New file.
77004
77005 2005-10-12  Simon Josefsson  <jas@extundo.com>
77006
77007         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
77008
77009         * tests/test-gc-pbkdf2-sha1.c: New file.
77010
77011 2005-10-12  Simon Josefsson  <jas@extundo.com>
77012
77013         * modules/gc-md5, modules/gc-hmac-md5: New files.
77014
77015         * modules/gc (Files): Remove md5, memxor and hmac files.
77016
77017 2005-10-12  Simon Josefsson  <jas@extundo.com>
77018
77019         * m4/gc-pbkdf2-sha1.m4: New file.
77020
77021         * m4/gc-hmac-sha1.m4: New file.
77022
77023         * m4/gc-sha1: New file.
77024
77025         * m4/hmac-sha1.m4: New file.
77026
77027 2005-10-12  Simon Josefsson  <jas@extundo.com>
77028
77029         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
77030
77031         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
77032
77033 2005-10-12  Simon Josefsson  <jas@extundo.com>
77034
77035         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
77036         suggested by Bruno Haible <bruno@clisp.org>.
77037
77038 2005-10-12  Simon Josefsson  <jas@extundo.com>
77039
77040         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
77041
77042 2005-10-12  Simon Josefsson  <jas@extundo.com>
77043
77044         * lib/gc-pbkdf2-sha1.c: New file.
77045
77046         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
77047
77048 2005-10-12  Simon Josefsson  <jas@extundo.com>
77049
77050         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
77051
77052         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
77053
77054 2005-10-12  Simon Josefsson  <jas@extundo.com>
77055
77056         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
77057         GC_USE_HMAC_MD5, respectively.
77058
77059         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
77060         (gc_md5): Fix typo.
77061
77062         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
77063
77064         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
77065
77066         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
77067
77068 2005-10-12  Bruno Haible  <bruno@clisp.org>
77069
77070         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
77071         Reported by Stepan Kasal <kasal@ucw.cz>.
77072
77073 2005-10-11  Simon Josefsson  <jas@extundo.com>
77074
77075         * tests/test-crc.c: New file.
77076
77077         * modules/crc, modules/crc-tests: New files.
77078
77079 2005-10-11  Simon Josefsson  <jas@extundo.com>
77080
77081         * m4/crc.m4: New file.
77082
77083 2005-10-11  Simon Josefsson  <jas@extundo.com>
77084
77085         * lib/gc.h: Add gc_hash and gc_hash_buffer.
77086
77087         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
77088
77089         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
77090
77091 2005-10-11  Simon Josefsson  <jas@extundo.com>
77092
77093         * lib/crc.h, lib/crc.c: New files.
77094
77095         * lib/gc.h (gc_hash_buffer): Add doc.
77096
77097 2005-10-11  Bruno Haible  <bruno@clisp.org>
77098
77099         * modules/c-strcasestr: New file.
77100         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
77101
77102 2005-10-11  Bruno Haible  <bruno@clisp.org>
77103
77104         * modules/c-strcase: New file.
77105         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
77106
77107 2005-10-11  Bruno Haible  <bruno@clisp.org>
77108
77109         * lib/strcasecmp.c: Include limits.h.
77110         (strcasecmp): Avoid integer overflow on exotic platforms.
77111         * lib/strncasecmp.c: Include limits.h.
77112         (strncasecmp): Avoid integer overflow on exotic platforms.
77113         Reported by Paul Eggert.
77114
77115 2005-10-11  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/c-strcasestr.h: New file, from GNU gettext.
77118         * lib/c-strcasestr.c: New file, from GNU gettext.
77119
77120 2005-10-11  Bruno Haible  <bruno@clisp.org>
77121
77122         * lib/c-strcase.h: New file, from GNU gettext.
77123         * lib/c-strcasecmp.c: New file, from GNU gettext.
77124         * lib/c-strncasecmp.c: New file, from GNU gettext.
77125
77126 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * modules/mempcpy (License): GPL -> LGPL.
77129         * modules/strchrnul (License): Likewise.
77130         * modules/sysexits (License): Likewise.
77131
77132 2005-10-08  Simon Josefsson  <jas@extundo.com>
77133
77134         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
77135
77136 2005-10-07  Simon Josefsson  <jas@extundo.com>
77137
77138         * m4/memxor.m4: Remove gl_C_RESTRICT call.
77139
77140 2005-10-06  Simon Josefsson  <jas@extundo.com>
77141
77142         * tests/test-hmac-md5.c: New file.
77143
77144         * modules/hmac-md5-tests: New file.
77145
77146         * modules/hmac-md5: New file.
77147
77148 2005-10-06  Simon Josefsson  <jas@extundo.com>
77149
77150         * m4/hmac-md5.m4: New file.
77151
77152         * m4/memxor.m4: Require gl_C_RESTRICT.
77153
77154 2005-10-06  Simon Josefsson  <jas@extundo.com>
77155
77156         * lib/memxor.c (memxor): Avoid casts and warnings.
77157
77158 2005-10-06  Simon Josefsson  <jas@extundo.com>
77159
77160         * lib/hmac-md5.c: New file.
77161
77162         * lib/hmac.h: New file.
77163
77164 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77165
77166         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77167         promotes to int, not unsigned int, to catch the AIX 5.3
77168         compiler bug.
77169
77170 2005-10-05  Simon Josefsson  <jas@extundo.com>
77171
77172         * modules/memxor: New file.
77173
77174         * modules/iconv (Files): Move config.rpath to havelib, it is used
77175         there.
77176
77177         * modules/havelib (Files): Add config.rpath.
77178
77179 2005-10-05  Simon Josefsson  <jas@extundo.com>
77180
77181         * m4/memxor.m4: New file.
77182
77183 2005-10-05  Simon Josefsson  <jas@extundo.com>
77184
77185         * lib/memxor.c (memxor): Fix compiler error.
77186
77187         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77188         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77189
77190         * lib/memxor.h, lib/memxor.c: New files.
77191
77192         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77193         we assume all systems have it, suggested by Jim Meyering
77194         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77195         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77196         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77197         same reasons.
77198
77199 2005-10-05  Simon Josefsson  <jas@extundo.com>
77200
77201         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77202
77203 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77206         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77207         needed, since the source code now assumes these .h files.
77208
77209 2005-10-05  Derek Price  <derek@ximbiot.com>
77210
77211         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77212
77213 2005-10-05  Bruno Haible  <bruno@clisp.org>
77214
77215         * modules/stdint (License): Change to LGPL.
77216
77217 2005-10-04  Simon Josefsson  <jas@extundo.com>
77218
77219         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77220         D. Baushke" <mdb@gnu.org>.
77221
77222 2005-10-04  Bruno Haible  <bruno@clisp.org>
77223
77224         * lib/verify.h (verify_true): Provide alternative definition for C++.
77225
77226 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77227
77228         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77229         (SSIZE_MAX): New macro, if not already defined.
77230         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77231         than 2 GiB.
77232
77233 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         Sync from coreutils.
77236         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77237         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77238         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77239         ULLONG_MAX doesn't work with 2.7.2.1.
77240
77241 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77244         From Ben Pfaff.
77245
77246         * modules/exclude (Depends-on): Depend on verify.
77247         * modules/strtoimax (Depends-on): Likewise.
77248         * modules/utimecmp (Depends-on): Likewise.
77249
77250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * lib/exclude.c: Include verify.h.
77253         (verify): Remove.  All callers changed to use verify.h's version.
77254         * lib/strtoimax.c: Likewise.
77255         * lib/utimecmp.c: Likewis.e
77256
77257         Sync from coreutils.
77258         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77259         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77260         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77261         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77262         bother returning ENOSYS if settimeofday or stime fails; just let
77263         them return whatever errno they want to return.
77264         * lib/utimens.c: Include unistd.h, for dup2.
77265         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77266         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77267
77268 2005-10-02  Jim Meyering  <jim@meyering.net>
77269
77270         Sync from coreutils.
77271         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77272         from glibc-2.2.5 that fails for read-only files.
77273
77274 2005-10-02  Jim Meyering  <jim@meyering.net>
77275
77276         Sync from coreutils.
77277         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77278         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77279         `#if HAVE_CONFIG_H'.
77280         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77281         Remove AT_FDCWD test.
77282         Do not consume the fd unless successful.
77283         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77284         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77285         block, so that we don't even try to compile it if settimeofday is
77286         available.  This works around a compilation failure on OSF1 V5.1,
77287         due to stime requiring a `long int*' while tv_sec is `int'.
77288
77289 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77290
77291         Sync from coreutils.
77292         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77293         against `yes', rather than just testing for nonempty.
77294
77295 2005-10-01  Simon Josefsson  <jas@extundo.com>
77296
77297         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77298         and Darwin.
77299
77300         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77301         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77302         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77303         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77304         Check if struct addrinfo is declared.
77305
77306 2005-10-01  Simon Josefsson  <jas@extundo.com>
77307
77308         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77309         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77310         AI_* and EAI_* definitions.  Protect function declarations.
77311
77312 2005-10-01  Jim Meyering  <jim@meyering.net>
77313
77314         Sync from coreutils.
77315
77316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77317         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77318         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77320         in the inet and nsl libraries.  Required on Solaris 5.7.
77321
77322 2005-10-01  Jim Meyering  <jim@meyering.net>
77323
77324         Sync from coreutils.
77325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77326         in the inet and nsl libraries.  Required on Solaris 5.7.
77327
77328 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77329
77330         * lib/getdelim.c (getdelim): Remove unused variables.
77331
77332 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77333
77334         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77335         so that the code works even with ancient cpp.  Portability problem
77336         with GCC 2.7.2.1 reported by Thomas M.Ott.
77337
77338 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * modules/regex (Depends-on): Add strcase.
77341
77342         * modules/gethostname (Licence): Change from GPL to LGPL, since
77343         gethostname.c is a trivial implementation of a standard library
77344         function.
77345         * modules/poll (License): Change from GPL to LGPL, since it's
77346         derived from LGPL code.
77347
77348 2005-09-27  Jim Meyering  <jim@meyering.net>
77349
77350         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77351         HAVE_CONFIG_H.
77352
77353         * lib/intprops.h (signed_type_or_expr__): Define.
77354         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77355         for unsigned types.
77356
77357 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * lib/verify.h (verify_expr): Remove, replacing with:
77360         (verify_true): New macro that returns true instead of void.
77361         (verify_type__): Remove.
77362         (verify): Use verify_true rather than verify_type__.
77363
77364 2005-09-26  Bruno Haible  <bruno@clisp.org>
77365
77366         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77367         is necessary.
77368         (lib_SOURCES): Remove mbchar.c.
77369         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77370         (Files): Add m4/mbrtowc.m4.
77371         * modules/mbiter: Likewise.
77372         * modules/mbuiter: Likewise.
77373
77374 2005-09-26  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77377         compile mbchar.c if they are not both present.
77378         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77379         * m4/mbiter.m4 (gl_MBITER): Likewise.
77380         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77381         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77382         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77383
77384 2005-09-25  Jim Meyering  <jim@meyering.net>
77385
77386         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77387         also uses socklen_t.
77388
77389 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * lib/utimens.c (ENOSYS): Define if not already defined.
77392         (futimens): Support having a null PATH if the file descriptor
77393         is nonnegative.
77394
77395         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77396         Remove.
77397         (__attribute): Define to empty unless GCC 3.1 or later.
77398         This works around a core dump on OpenBSD 3.4, which has GCC
77399         2.95.3, which dumps core when given __attribute__(()).  It also
77400         simplifies other tests, since we really don't want to bother with
77401         worrying about which ancient version of GCC supported what.
77402         Original problem reported by Yoann Vandoorselaere, with part of
77403         the fix suggested by Derek Price.
77404
77405 2005-09-24  Jim Meyering  <jim@meyering.net>
77406
77407         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77408         so we can once again use a positive bitfield width of 1 -- now we
77409         don't have to explain why we were using a bitfield width of 2.
77410
77411 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77412
77413         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77414         and similarly for the other external symbols.  Problem reported
77415         by James Gallager.
77416
77417         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77418         bug reported by Jim Meyering.
77419
77420         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77422         not needed, since socklen is a prerequisite module.
77423
77424 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77425
77426         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77427         Problem reported by Eric Blake.
77428         (getaddrinfo): Initialize se so that it's not garbage.
77429         Redo internal storage allocation so that it doesn't make unportable
77430         assumptions about alignment.
77431         Fix a memory leak.
77432
77433         * lib/utimens.c (futimens): Use futimesat if available.
77434         Prefer it to futimes since it doesn't have the futimes bug.
77435
77436         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77437         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77438         Instead, declare a function that returns a pointer to an array,
77439         and use verify_type__ to declare the size of the array.
77440         Problem and germ of a solution reported by Bruno Haible.
77441         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77442         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77443
77444 2005-09-23  Jim Meyering  <jim@meyering.net>
77445
77446         Sync from coreutils.
77447         Correct build failure (socklen_t not defined) on at least
77448         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77450
77451 2005-09-23  Jim Meyering  <jim@meyering.net>
77452
77453         * modules/getaddrinfo (Depends-on): Add socklen.
77454
77455 2005-09-23  Bruno Haible  <bruno@clisp.org>
77456
77457         * tests/test-verify.c: New file.
77458
77459 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         Sync from coreutils.
77462
77463         * modules/argmatch (Depends-on): Add verify.
77464         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77465         unistd-safer.
77466         * modules/save-cwd (Depends-on): Likewise.
77467
77468         * modules/openat (Files): Add lib/openat-die.c.
77469         (Depends-on): Remove error, exitfail.
77470         Add dirname.
77471
77472         * modules/verify: New file.
77473         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77474         with "verify" module.
77475
77476 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         Sync from coreutils.
77479
77480         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77481         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77482         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77483         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77484         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77485         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77486         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77487         Don't bother checking for string.h, stdlib.h, unistd.h.
77488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77489         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77490         module's job.
77491         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77492         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77493
77494         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77495         (gl_GETDATE): Use it.
77496
77497         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77498
77499 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         Sync from coreutils.
77502
77503         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77504         stat-time.h.
77505         * lib/argmatch.h: Include verify.h
77506         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77507         (ARGMATCH_ASSERT): Remove; unused.
77508         * lib/canonicalize.c: Assume STDC_HEADERS.
77509         * lib/exclude.c: Include "strcase.h".
77510         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77511         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77512         and stdio-safer.h.
77513         (getusershell): Call fopen, not fopen_safer.
77514         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77515         Do not include unistd-safer.h.
77516         (save_cwd): Don't call fd_safer; no longer needed
77517         now that we include fcntl--.h.
77518
77519         * lib/getdate.y (relative_time): New type.
77520         (RELATIVE_TIME_0): New constant.
77521         (parser_control): Use relative_time instead of doing it ourselves.
77522         (%union): Add new relative_time rel member.
77523         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77524         Now typeless.
77525         (relunit, relunit_snumber): Now of type rel.
77526         (zone, rel, relunit, get_date): Adjust to above changes.
77527
77528         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77529         Do not include unistd-safer.h.
77530         (getloadavg): Don't call fd_safer; no longer needed
77531         now that we include fcntl--.h.
77532
77533         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77534         (make_dir_parents): Treat ENOSYS like EEXIST.
77535
77536         Improve quality of diagnostics on restore_cwd failure.
77537         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77538         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77539         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77540         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77541         each time through the loop.  Do not diagnose restore_cwd failure;
77542         that is the caller's job (and perhaps the caller does not care).
77543
77544         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77545         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77546         If the file already exists but is not a directory, don't bother
77547         to try to make its parents.
77548         Close potential file descriptor leak if we can't chdir("/") (!).
77549         Don't always return true if chdir($PWD) fails; return true only
77550         if the requested action was done successfully (except for the
77551         chdir($PWD)).
77552         Don't log final directory unless we actually made it.
77553         Refactor to avoid duplicate code to fix up permissions.
77554         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77555
77556         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77557         to make it a bit faster and (I hope) clearer.
77558         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77559         Fix bug in formats like %2N.
77560
77561         * lib/verify.h: New file.
77562
77563 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         Sync from coreutils.
77566         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77567
77568 2005-09-22  Jim Meyering  <jim@meyering.net>
77569
77570         Sync from coreutils.
77571
77572         * m4/lstat.m4 (gl_FUNC_LSTAT):
77573         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77574         Remove obsolete comment.
77575         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77576         * m4/xstrtod.m4: Likewise.
77577
77578         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77579
77580 2005-09-22  Jim Meyering  <jim@meyering.net>
77581
77582         Sync from coreutils.
77583
77584         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77585
77586         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77587         the .tm_year member, since otherwise gcc-4.0 would now warn about
77588         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77589
77590         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77591         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77592
77593         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77594         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77595         when run in a time zone for which daylight savings time is in effect
77596         for the starting date.
77597
77598         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77599         stop us from restricting permissions of just-created absolute-named
77600         directories.
77601         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77602         to restore initial working directory.
77603         * lib/mkdir-p.c (make_dir_parents): New parameter:
77604         different_working_dir, to tell caller if/when we change the working
77605         directory and are unable to return to the initial one.
77606         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77607         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77608         `return false'.  This fixes a bug introduced on 2004-07-30.
77609
77610         * lib/openat.c (fdopendir): Be sure to close the supplied
77611         file descriptor before returning.  This makes our replacement
77612         implementation a little closer to Solaris's, where fdopendir
77613         ties the file descriptor to the returned DIR* pointer.
77614         * lib/openat.c (unlinkat): New function.
77615         * lib/openat.h (unlinkat): Add prototype.
77616         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77617         (openat_restore_fail): Rename from openat_restore_die.
77618         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77619
77620         Provide an alternative to exiting immediately upon save_cwd or
77621         restore_cwd failure.  Now, an application can arrange e.g.,
77622         to perform a longjump in that case.
77623         * lib/openat.c: Include dirname.h.
77624         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77625         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77626         and openat_restore_die rather than calling error directly.
77627         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77628
77629         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77630         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77631         define.
77632
77633         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77634         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77635                             int utc, int nanoseconds);
77636         Background:
77637         date should not have to allocate a megabyte of virtual memory to
77638         handle a format argument like +%1048575T.  When implemented with
77639         strftime, it must allocate such a buffer, use strftime to fill it
77640         in, print it, then free it.
77641         With fprintftime, it simply prints everything and exits.
77642         With no need for memory allocation, that's one fewer way to fail.
77643         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77644         optional field width, not before, so we accept %9:z, not %:9z.
77645         (my_strftime): Be sure to use L_('x') for literals.
77646
77647         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77648         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77649         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77650         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77651         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77652         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77653         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77654         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77655         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77656         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77657         * lib/xgethostname.c, lib/xreadlink.c:
77658         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77659
77660         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77661         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77662         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77663         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77664         and don't include <sys/file.h>).
77665
77666 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77667
77668         Sync from coreutils.
77669
77670         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77671         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77672         [!LDAV_DONE]: Avoid unused variable warning.
77673
77674 2005-09-21  Bruno Haible  <bruno@clisp.org>
77675
77676         * lib/unicodeio.h (unicode_to_mb): New declaration.
77677
77678 2005-09-20  Derek Price  <derek@ximbiot.com>
77679
77680         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77681         getaddrinfo.h.
77682
77683 2005-09-20  Bruno Haible  <bruno@clisp.org>
77684
77685         * gnulib-tool: Remove trailing slashes from the values specified for
77686         --source-base, --m4-base, --tests-base, --aux-dir.
77687         Suggested by Simon Josefsson <jas@extundo.com>.
77688
77689 2005-09-20  Bruno Haible  <bruno@clisp.org>
77690
77691         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77692         func_modules_to_filelist, func_import, func_create_testdir): Make all
77693         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77694         change when gnulib-tool is invoked in a different locale.
77695
77696 2005-09-19  Simon Josefsson  <jas@extundo.com>
77697
77698         * m4/socklen.m4: Fix typo.
77699
77700 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77701
77702         Use a consistent style for including <config.h>.
77703         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77704         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77705         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77706         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77707         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77708         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77709         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77710         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77711         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77712         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77713         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77714         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77715         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77716         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77717         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77718         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77719         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77720         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77721         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77722         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77723         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77724         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77725         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77726         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77727         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77728         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77729         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77730         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77731         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77732         lib/xstrtoumax.c, lib/yesno.c:
77733         Standardize inclusion of config.h.
77734         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77735         lib/inttostr.h:  Removed inclusion of config.h from header files.
77736         * lib/inttostr.c:  Adjusted in-tree users.
77737         * lib/timespec.h: Remove superfluous warning to include config.h.
77738         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77739         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77740         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77741         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77742         config.h with HAVE_CONFIG_H.
77743
77744 2005-09-19  Jim Meyering  <jim@meyering.net>
77745
77746         * modules/pathmax (License): Change to LGPL.
77747
77748 2005-09-19  Derek Price  <derek@ximbiot.com>
77749
77750         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77751
77752 2005-09-19  Bruno Haible  <bruno@clisp.org>
77753
77754         * gnulib-tool (import): Provide default for --tests-base.
77755
77756 2005-09-19  Bruno Haible  <bruno@clisp.org>
77757
77758         * doc/quote.texi: New file, extracted from gnulib.texi.
77759         * doc/ctime.texi: New file, extracted from gnulib.texi.
77760         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77761         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77762         * doc/gnulib.texi: Include them.
77763
77764 2005-09-18  Bruno Haible  <bruno@clisp.org>
77765
77766         Portability fix.
77767         * gnulib-tool (func_readlink): New function.
77768         (func_ln_if_changed): Use it.
77769
77770 2005-09-18  Bruno Haible  <bruno@clisp.org>
77771
77772         * gnulib-tool: Support --with-tests also with --import.
77773         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77774         (func_import): Use variables $testsbase and $inctests. Emit a
77775         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77776         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77777         SUBDIRS += $testsdir.
77778         (func_create_testdir): Update.
77779
77780 2005-09-18  Bruno Haible  <bruno@clisp.org>
77781
77782         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77783         instead of $dry_run.
77784         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77785         (func_ln_if_changed): Don't handle dry-run here.
77786         (func_import): In dry-run mode, detect more precisely which actions
77787         would be performed, and don't use "...ing" verbs.
77788
77789 2005-09-18  Bruno Haible  <bruno@clisp.org>
77790
77791         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77792         (func_import): Use join on two temporary files instead of three nested
77793         loops, in order to determine which files are new or old.
77794
77795 2005-09-18  Bruno Haible  <bruno@clisp.org>
77796
77797         * gnulib-tool (func_import): Comment out code that spits out the
77798         new files with --dry-run.
77799
77800 2005-09-18  Bruno Haible  <bruno@clisp.org>
77801
77802         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77803
77804 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * lib/stat-time.h: New file.
77807         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77808         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77809         in a different way.
77810         (timespec_cmp): New function.
77811         * lib/utimecmp.c: Include stat-time.h.
77812         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77813         members exist, not on the obsolescent ST_MTIM_NSEC.
77814         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77815
77816 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77819
77820 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * MODULES.html.sh (File system functions): Add stat-time.
77823         * modules/stat-time: New file.
77824         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77825         is now done in a different way, by the stat-time module.
77826         * modules/utimecmp (Depends-on): Add stat-time.
77827
77828 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * m4/st_mtim.m4: Remove.  Superseded by...
77831         * m4/stat-time.m4: New file.
77832         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77833         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77834
77835 2005-09-15  Derek Price  <derek@ximbiot.com>
77836
77837         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77838
77839 2005-09-15  Derek Price  <derek@ximbiot.com>
77840
77841         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77842         * lib/regex_internal.c: Ditto, using this...
77843         (__GNUC_PREREQ): ...new macro.
77844         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77845         using...
77846         (__GNUC_PREREQ): ...this new macro.
77847
77848         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77849
77850 2005-09-15  Derek Price  <derek@ximbiot.com>
77851             Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77854         changes, consolidating in...
77855         * lib/regex_internal.h: ...this file.
77856
77857 2005-09-13  Jim Meyering  <jim@meyering.net>
77858
77859         * lib/canon-host.c: Filter through gnu indent and reword comments
77860         slightly.
77861         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77862
77863 2005-09-13  Derek Price  <derek@ximbiot.com>
77864
77865         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77866         failure.
77867         Reported by Jim Meyering  <jim@meyering.net>.
77868
77869 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77870
77871         * lib/base64.c: Typo.
77872         (base64_encode): Put b64str in initialized data section.
77873
77874 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         Merge glibc and coreutils changes into gnulib, plus a few
77877         extra fixes.
77878         * lib/md5.c: Use #error rather than a string.
77879         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77880         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77881         (__attribute__): Define to empty for non recent-GCC.
77882         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77883         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77884         Renamed from their non-__ counterparts, with new macros replacing
77885         them if not _LIBC.  Add __THROW attribute.
77886         (rol): Remove.
77887         (struct md5_ctx): Align buffer if using GCC.
77888         * lib/sha1.h (struct sha1_ctx): Likewise.
77889         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77890         The old name was backwards.
77891         (NOTSWAP): Remove; not used.
77892         (rol): New macro, moved here from md5.h.
77893         (sha1_process_block): Remove a FIXME that doesn't make sense.
77894
77895 2005-09-12  Derek Price  <derek@ximbiot.com>
77896
77897         Return usable errors from canon-host.
77898         * lib/canon-host.h: New file.
77899         * lib/canon-host.c (canon_host): Wrap...
77900         (canon_host_r): ...this new function, which now relies exclusively on
77901         getaddrinfo.
77902         (ch_strerror): New function.
77903         (last_cherror): New global.
77904         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77905         interface.
77906         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77907         void *.
77908         (freeaddrinfo): Free ai->ai_canonname when set.
77909
77910 2005-09-12  Derek Price  <derek@ximbiot.com>
77911
77912         Make canon-host require getaddrinfo.
77913         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77914         AC_LIBSOURCE canon-host.h.  Call...
77915         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77916         gl_GETADDRINFO.
77917         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77918
77919 2005-09-12  Derek Price  <derek@ximbiot.com>
77920
77921         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77922         LGPL.
77923         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77924
77925 2005-09-12  Derek Price  <derek@ximbiot.com>
77926
77927         * lib/gai_strerror.c: Include config.h when available.  Include
77928         getaddrinfo.h before other headers to test interface.
77929         Reported by Larry Jones <lawrence.jones@ugs.com>.
77930
77931 2005-09-12  Derek Price  <derek@ximbiot.com>
77932             Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * modules/glob (Files): Add glob-libc.h.
77935
77936 2005-09-12  Derek Price  <derek@ximbiot.com>
77937             Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77940         glob_.h, glob-libc.h.
77941         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77942
77943 2005-09-12  Derek Price  <derek@ximbiot.com>
77944             Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77947         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77948         protecting things that should be done only in gnulib contexts.
77949         * lib/glob_.h: New file, containing only the glob things needed for
77950         gnulib.
77951         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77952         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77953         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77954         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77955         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77956         and to respect the namespace rules better.
77957
77958 2005-09-08  Simon Josefsson  <jas@extundo.com>
77959
77960         * modules/socklen: New file.
77961
77962 2005-09-08  Simon Josefsson  <jas@extundo.com>
77963
77964         * m4/socklen.m4: New file.
77965
77966 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * modules/utimens (Files): Add m4/utimbuf.m4, since
77969         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77970         Reported by Sergey Poznyakoff.
77971
77972 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77975         definitions, since that's the preferred style in glibc.
77976         Fix a minor spacing issue, and update copyright notice to match
77977         glibc's.
77978
77979 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77982
77983 2005-09-06  Simon Josefsson  <jas@extundo.com>
77984
77985         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77986         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77987
77988 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77991         warning.
77992
77993 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * config/srclist.txt: Add glibc bug 1302.
77996
77997 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         Change bitset word type from unsigned int to unsigned long int,
78000         as this has better performance on typical 64-bit hosts.
78001         Port bitset code to hosts with unusual word sizes.
78002         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
78003         (build_collating_symbol):
78004         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
78005         argument is a bitset.  This is merely a style issue, but it makes
78006         it clearer that an entire array is expected.
78007         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
78008         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
78009         Port to the case where bitset_word is not the same as unsigned int.
78010         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78011         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
78012         Likewise.
78013         * lib/regexec.c (check_dst_limits_calc_pos_1,
78014         check_subexp_matching_top):
78015         (build_trtable, group_nodes_into_DFAstates):
78016         Likewise.
78017         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
78018         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
78019         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
78020         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
78021         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
78022         * lib/regcomp.c (optimize_subexps, lower_subexp):
78023         Work even if bitset_word has holes in its bitwise representation.
78024         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
78025         * lib/regexec.c (check_dst_limits_calc_pos_1,
78026         check_subexp_matching_top):
78027         Likewise.
78028         * lib/regex_internal.c (re_string_reconstruct):
78029         Don't assume UCHAR_MAX == 255.
78030         * lib/regex_internal.h (bitset_set_all): Likewise.
78031         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
78032         All uses changed.
78033         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
78034         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
78035         All uses changed.
78036         (BITSET_WORD_MAX): New macro.
78037         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
78038         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
78039         (bitset_empty, bitset_copy):
78040         Prefer sizeof (bitset) to multiplying it out ourselves.
78041         (bitset_not_merge): Remove; unused.
78042         (bitset_contain): Return bool, not unsigned int with one bit on.
78043         All callers changed.
78044         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
78045         alignment than re_node_set; do this by defining a new internal
78046         type struct dests_alloc and using it to allocate memory.
78047
78048 2005-09-05  Bruno Haible  <bruno@clisp.org>
78049
78050         * gnulib-tool (func_import): Fix comparison in handling of symbolic
78051         links.
78052
78053 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
78054
78055         * modules/size_max (Makefile.am): Add size_max.h
78056
78057 2005-09-04  Derek Price  <derek@ximbiot.com>
78058
78059         * gnulib-tool (func_import): Fix reversed $symbolic logic.
78060
78061 2005-09-03  Simon Josefsson  <jas@extundo.com>
78062
78063         * gnulib-tool: Fix typo.
78064
78065 2005-09-03  Simon Josefsson  <jas@extundo.com>
78066
78067         * config/srclist.txt: Add glibc bug 1293.
78068
78069 2005-09-03  Derek Price  <derek@ximbiot.com>
78070
78071         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
78072         From Larry Jones <lawrence.jones@ugs.com>.
78073
78074 2005-09-02  Simon Josefsson  <jas@extundo.com>
78075
78076         * modules/socklen: New file.
78077
78078 2005-09-02  Simon Josefsson  <jas@extundo.com>
78079
78080         * modules/havelib: New module.
78081
78082         * modules/gettext, modules/iconv, modules/lock, modules/readline:
78083         Use havelib.
78084
78085 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         Check for arithmetic overflow when calculating sizes, to prevent
78088         some buffer-overflow issues.  These patches are conservative, in the
78089         sense that when I couldn't determine whether an overflow was possible,
78090         I inserted a run-time check.
78091         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
78092         macros.
78093         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
78094         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
78095         (re_xnrealloc, re_x2nrealloc): New inline functions.
78096         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
78097         parse_bracket_exp):
78098         (build_equiv_class, build_charclass): Check for arithmetic overflow
78099         in size expression calculations.
78100         * lib/regex_internal.c (re_string_realloc_buffers):
78101         (build_wcs_upper_buffer, re_node_set_add_intersect):
78102         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
78103         (re_dfa_add_node, register_state): Likewise.
78104         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
78105         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
78106         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
78107         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
78108
78109 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78112         m4/ulonglong.m4.  Problem reported by Martin Lambers.
78113
78114 2005-09-02  Bruno Haible  <bruno@clisp.org>
78115
78116         Support for lib vs. lib64 distinction on biarch platforms.
78117         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
78118         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
78119         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
78120
78121 2005-09-02  Bruno Haible  <bruno@clisp.org>
78122
78123         * gnulib-tool (import): In the other first-use case, provide defaults
78124         as well.
78125
78126 2005-09-02  Bruno Haible  <bruno@clisp.org>
78127
78128         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
78129         patches not yet found in the latest gettext release.
78130
78131 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
78134         to avoid a collision with bits/local_lim.h in glibc.
78135         All uses changed.  Problem reported by Dmitry V. Levin in
78136         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
78137
78138         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
78139         bugs in int versus size_t comparisons.
78140         (re_string_context_at): Fix bug where the code assumed that
78141         Idx is signed.
78142
78143         Use bool where appropriate.
78144         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
78145         All callers changed.
78146         (calc_eclosure_iter): Likewise, for ROOT arg.
78147         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
78148         (build_charclass_op): Likewise, for NON_MATCH arg.
78149         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78150         (re_string_construct_common): Likewise, for ICASE arg.
78151         * lib/regexec.c (re_search_2_stub, re_search_stub):
78152         Likewise, for RET_LEN arg.
78153         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78154         (set_regs): Likewise, for FL_BACKTRACK arg.
78155         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78156         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78157         (calc_eclosure_iter, parse_bracket_exp):
78158         Use bool for internal variables that are booleans.
78159         * lib/regexec.c (re_search_internal, check_matching,
78160         proceed_next_node):
78161         (set_regs, build_sifted_states, sift_states_bkref):
78162         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78163         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78164         (find_collation_sequence_value):
78165         Likewise.
78166         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78167         (re_node_set_compare):
78168         Return bool, not int. All callers changed.
78169         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78170         (build_trtable, check_node_accept): Likewise.
78171         * lib/regex_internal.h: Include stdbool.h.
78172
78173         Fix bugs uncovered when converting to bool.
78174         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78175         failure instead of charging ahead blindly.
78176         * lib/regex_internal.c (register_state): Likewise.
78177         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78178         for freeing internal storage.
78179         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78180         bitset pieces used as boolean, to avoid undefined behavior
78181         on hosts that do int overflow checking.
78182
78183 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78184
78185         * config/srclist.txt: Add glibc bugs 1285-1287.
78186
78187 2005-09-01  Jim Meyering  <jim@meyering.net>
78188
78189         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78190         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78191         Require gl_STAT_MACROS, too.
78192
78193 2005-09-01  Bruno Haible  <bruno@clisp.org>
78194
78195         * gnulib-tool (import): In the first-use case, provide defaults.
78196
78197 2005-09-01  Bruno Haible  <bruno@clisp.org>
78198
78199         * gnulib-tool (func_import): Remove the .tmp files.
78200
78201 2005-09-01  Bruno Haible  <bruno@clisp.org>
78202
78203         * gnulib-tool (func_import): Fix handling of symbolic links.
78204
78205 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78206
78207         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78208         old glibc regex code mishandles strings longer than 2**31 bytes.
78209         This patch fixes this when the regex code is used in gnulib
78210         (i.e., outside glibc).
78211
78212         This patch should not affect the use of the regex code inside
78213         glibc.  No doubt this problem also needs to be handled for glibc
78214         as well, but the result will be an incompatible change to the
78215         glibc ABI, and the old ABI will have to be supported too.  That
78216         can be the the subject for another patch.
78217
78218         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78219         governing whether the rest of this patch is active.  By default,
78220         the macro is disabled and the patch has no effect.
78221         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78222         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78223         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78224         (re_match_2, re_set_registers): Use the new types.
78225         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78226         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78227         New macros.
78228         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78229         (re_string_context_at, bin_tree_t, re_dfastate_t):
78230         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78231         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78232         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78233         (re_string_char_size_at, re_string_wchar_at):
78234         (re_string_elem_size_at):
78235         Use the new types and macros to port to 64-bit hosts.
78236         Use unsigned types for internal values, so that the code
78237         mostly works even for arrays larger than SSIZE_MAX.
78238         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78239         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78240         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78241         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78242         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78243         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78244         (calc_inveclosure, parse_dup_op, build_range_exp):
78245         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78246         (fetch_number, create_token_tree, mark_opt_subexp):
78247         Likewise.
78248         * lib/regex_internal.c (re_string_construct_common,
78249         create_ci_newstate):
78250         (create_cd_newstate, re_string_allocate, re_string_construct):
78251         (re_string_realloc_buffers, build_wcs_upper_buffer):
78252         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78253         (re_string_reconstruct, re_string_peek_byte_case):
78254         (re_string_fetch_byte_case, re_string_context_at):
78255         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78256         (re_node_set_init_copy, re_node_set_add_intersect):
78257         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78258         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78259         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78260         (re_acquire_state, re_acquire_state_context, register_state):
78261         Likewise.
78262         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78263         search_cur_bkref_entry):
78264         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78265         (re_search_internal, re_search_2_stub, re_search_stub)
78266         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78267         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78268         (update_cur_sifted_state, check_dst_limits):
78269         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78270         (check_subexp_limits, sift_states_bkref, merge_state_array):
78271         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78272         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78273         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78274         (expand_bkref_cache, check_node_accept_bytes):
78275         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78276         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78277         (acquire_init_state_context, check_halt_node_context):
78278         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78279         (sift_states_backward, clean_state_log_if_needed):
78280         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78281         (find_recover_state, transit_state_sb, transit_state_mb):
78282         (transit_state_bkref, build_trtable, match_ctx_clean):
78283         Likewise.
78284         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78285         to work around an assumption that REG_MISSING is negative.
78286
78287         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78288         (seek_collating_symbol_entry) [defined _LIBC]:
78289         (lookup_collation_sequence_value) [defined _LIBC]:
78290         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78291         Use prototypes rather than old-style function definitions.
78292         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78293         (transit_state_sb) [0]:
78294         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78295
78296         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78297         rm_eo.
78298
78299         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78300         (optimize_subexps, lower_subexp):
78301         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78302         since the signed shift might overflow.  Use 1u<<31 instead.
78303         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78304         Likewise.
78305         * lib/regexec.c (check_dst_limits_calc_pos_1,
78306         check_subexp_matching_top): Likewise.
78307
78308         * lib/regcomp.c (optimize_subexps, lower_subexp):
78309         Use CHAR_BIT rather than 8, for clarity.
78310         * lib/regexec.c (check_dst_limits_calc_pos_1):
78311         (check_subexp_matching_top): Likewise.
78312         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78313         have to worry about portability issues when shifting it left.
78314         Remove no-longer-needed test for table_size > 0.
78315         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78316         in a word, as the resulting behavior is undefined.
78317         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78318         in one case, a <= should have been an <, and in another case the
78319         whole test was missing.
78320         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78321         the standard name CHAR_BIT.
78322         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78323         this is not true on one's complement and signed-magnitude hosts.
78324
78325         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78326         next_last_offset.
78327         (struct re_dfa_t): Remove unused member states_alloc.
78328         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78329
78330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78333         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78334         and large-file glibc and in 32-bit large-file Solaris.
78335
78336 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78337
78338         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78339         lengths fit in regoff_t; this isn't true if regoff_t is the same
78340         width as size_t.
78341         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78342         (= START + RANGE) instead of RANGE.  This avoids overflow
78343         problems when regoff_t is the same width as size_t.
78344         All callers changed.
78345         (re_search_2_stub): Check for overflow when adding the
78346         sizes of the two strings.
78347         (re_search_stub): Check for overflow when adding START
78348         to RANGE; if it occurs, substitute the extreme value.
78349
78350 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78353
78354 2005-08-31  Jim Meyering  <jim@meyering.net>
78355
78356         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78357         a pointer-to-const.
78358         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78359         (register_state): Likewise.
78360         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78361         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78362         (group_nodes_into_DFAstates): Likewise.
78363
78364 2005-08-31  Jim Meyering  <jim@meyering.net>
78365
78366         * check-module: Add a FIXME comment.
78367
78368 2005-08-31  Eric Blake  <ebb9@byu.net>
78369
78370         * modules/unistd-safer (Files): Add unistd--.h.
78371         * modules/stdio-safer (Files): Add stdio--.h.
78372
78373 2005-08-31  Derek Price  <derek@ximbiot.com>
78374
78375         * lib/getdelim.c (getdelim): Return EOF on EOF.
78376         Reported by Larry Jones <lawrence.jones@ugs.com>.
78377
78378 2005-08-31  Bruno Haible  <bruno@clisp.org>
78379
78380         Avoid unnecessary diffs in the generated lib/Makefile.am.
78381         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78382         the generated files.
78383         (func_import): Don't set cmd.
78384
78385 2005-08-31  Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/strstr.c: Include <stddef.h>, for NULL.
78388         * lib/strcasestr.c: Likewise.
78389         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78390
78391 2005-08-31  Bruno Haible  <bruno@clisp.org>
78392
78393         * gnulib-tool: New option --macro-prefix.
78394         (func_import): Use macro_prefix.
78395         (import): Handle option --macro-prefix.
78396
78397 2005-08-31  Bruno Haible  <bruno@clisp.org>
78398
78399         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78400         Also use new variables cached_lgpl, cached_libtool.
78401
78402 2005-08-31  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78405         always instantiating them.
78406
78407 2005-08-31  Bruno Haible  <bruno@clisp.org>
78408
78409         * gnulib-tool (func_import): Read the previous cached settings
78410         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78411         earlier added by gnulib but are now dropped. Warn when a gnulib file
78412         overwrites a non-gnulib file.
78413
78414 2005-08-31  Bruno Haible  <bruno@clisp.org>
78415
78416         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78417         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78418         projects that don't keep autogenerated files in CVS. Put into
78419         actioncmd only the specified modules, not the transitive closure.
78420
78421 2005-08-31  Bruno Haible  <bruno@clisp.org>
78422
78423         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78424         Create directories that shall be filled.
78425         (import): Don't look for gl_* macros in configure.ac. Recurse across
78426         all directories containing a gnulib-cache.m4 files, if meaningful.
78427
78428 2005-08-31  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78431         (import): Set seen_libtool when we see gl_LIBTOOL.
78432
78433 2005-08-31  Bruno Haible  <bruno@clisp.org>
78434
78435         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78436         declaration macro definitions from generated gnulib.m4.
78437
78438 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78439
78440         * lib/iconvme.h: Add prototype for iconv_alloc.
78441
78442 2005-08-29  Simon Josefsson  <jas@extundo.com>
78443
78444         * lib/iconvme.c: Fix errno.
78445
78446 2005-08-29  Bruno Haible  <bruno@clisp.org>
78447
78448         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78449         that it works when the directory contains spaces.
78450
78451 2005-08-29  Bruno Haible  <bruno@clisp.org>
78452
78453         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78454
78455 2005-08-29  Bruno Haible  <bruno@clisp.org>
78456
78457         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78458         Emit more advice.
78459
78460 2005-08-29  Bruno Haible  <bruno@clisp.org>
78461         and Stepan Kasal  <kasal@ucw.cz>
78462
78463         * check-module: If more parameters are given, check each of them
78464         separately; add more exceptions, as noted by Jim Meyering.
78465         (check_module): New procedure.
78466         (%exempt_header): Now contains all exceptions.
78467
78468 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78469
78470         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78471
78472 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78473
78474         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78475
78476 2005-08-28  Bruno Haible  <bruno@clisp.org>
78477
78478         * m4/gnulib-tool.m4: New file.
78479
78480 2005-08-27  Jim Meyering  <jim@meyering.net>
78481
78482         * modules/unistd-safer (Files): Add pipe-safer.c.
78483         * modules/fcntl-safer (Files): Add creat-safer.c.
78484
78485 2005-08-27  Jim Meyering  <jim@meyering.net>
78486
78487         * m4/stdlib-safer.m4: New file.  From coreutils.
78488         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78489         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78490         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78491         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78492         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78493
78494 2005-08-27  Jim Meyering  <jim@meyering.net>
78495
78496         * lib/fopen-safer.c: Merge minor changes from coreutils.
78497         * lib/dup-safer.c: Likewise.
78498         * lib/fd-safer.c: Likewise.
78499
78500         Merge from coreutils.
78501         * lib/stdio--.h: New file.
78502         * lib/stdlib--.h: New file.
78503         * lib/mkstemp-safer.c: New file.
78504
78505         GNU tar needs these.
78506         * lib/pipe-safer.c: New file.
78507         * lib/creat-safer.c: New file.
78508         * lib/fcntl--.h (creat): Define to creat_safer.
78509         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78510         * lib/unistd--.h (pipe): Define to pipe_safer.
78511         * lib/unistd-safer.h: Declare pipe_safer.
78512
78513 2005-08-26  Simon Josefsson  <jas@extundo.com>
78514
78515         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78516         Haible <bruno@clisp.org>.
78517
78518 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * lib/regex_internal.h: Remove all references to
78521         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78522         or better.
78523         (bitset_not, bitset_merge, bitset_not_merge):
78524         (bitset_mask, re_string_allocate, re_string_construct):
78525         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78526         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78527         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78528         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78529         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78530         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78531         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78532         (re_acquire_state_context):
78533         Remove unnecessary forward decls.
78534         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78535         Put __attribute at function definition,
78536         now that the function decl has been removed.
78537         * lib/regex_internal.c (re_string_peek_byte_case):
78538         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78539         Likewise.
78540
78541 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78542
78543         * m4/regex.m4: Add AC_PREREQ(2.50).
78544         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78545
78546 2005-08-25  Simon Josefsson  <jas@extundo.com>
78547
78548         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78549         __fsetlocking.
78550
78551 2005-08-25  Simon Josefsson  <jas@extundo.com>
78552
78553         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78554         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78555         GLIBC specific code.
78556
78557 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         Make regex safe for g++.  This fixes one real bug (an "err"
78560         that should have been "*err").  g++ problem reported by
78561         Sam Steingold.
78562         * lib/regex_internal.h (re_calloc): New macro, consistent with
78563         re_malloc etc.  All callers of calloc changed to use re_calloc.
78564         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78565         not int.  All callers changed.
78566         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78567         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78568         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78569         (find_recover_state): Change "err" to "*err"; this fixes what
78570         appears to be a real bug.
78571         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78572         versus int.
78573
78574 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * modules/regex (Depends-on): Add malloc, since the code
78577         assumes that !malloc(0) means failure.
78578
78579 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78580
78581         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78582
78583         alloca modernization/simplification for regex.
78584         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78585         needs to be at the start of the file, and can be moved into
78586         regex_internal.h and simplified.
78587         * lib/regex_internal.h: Include <alloca.h>.
78588         (__libc_use_alloca) [!defined _LIBC]: New macro.
78589         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78590         now works outside glibc.
78591
78592 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * config/srclist.txt: Add glibc bugs 1241, 1245.
78595
78596 2005-08-25  Jim Meyering  <jim@meyering.net>
78597
78598         * lib/open-safer.c: Include <config.h>.
78599         Otherwise, we'd lose LARGEFILE support in any file using
78600         e.g. "fcntl--.h"
78601
78602 2005-08-25  Bruno Haible  <bruno@clisp.org>
78603
78604         * m4/minmax.m4: Require autoconf 2.52.
78605         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78606         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78607         alternatives of translit over the alphabet.
78608         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78609
78610 2005-08-24  Simon Josefsson  <jas@extundo.com>
78611
78612         * tests/test-getpass.c: New file.
78613
78614 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78617         for GNU regex features.
78618
78619 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78622         * lib/regex.h (regerror): Likewise.
78623
78624         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78625         requires this.  (The code never needed it.)
78626
78627         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78628         All uses of recently-renamed identifiers changed to use the new,
78629         POSIX-compliant names.  The code will build and run just fine
78630         without these changes, but it's better to eat our own dog food
78631         and use the standard-conforming names.
78632
78633         * lib/regex.h: Fix a multitude of POSIX name space violations.
78634         These changes have an effect only for programs that define
78635         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78636         do not change anything for programs compiled in the normal way.
78637         Also, there is no effect on the ABI.
78638
78639         (_REGEX_SOURCE): New macro.
78640         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78641         defined and _GNU_SOURCE is not; this fixes a name space violation.
78642
78643         Rename the following macros to obey POSIX requirements.
78644         The old names are still visible as macros if _REGEX_SOURCE is defined.
78645         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78646         RE_BACKSLASH_ESCAPE_IN_LISTS.
78647         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78648         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78649         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78650         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78651         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78652         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78653         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78654         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78655         (REG_INTERVALS): renamed from RE_INTERVALS.
78656         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78657         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78658         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78659         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78660         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78661         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78662         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78663         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78664         RE_UNMATCHED_RIGHT_PAREN_ORD.
78665         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78666         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78667         (REG_DEBUG): renamed from RE_DEBUG.
78668         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78669         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78670         unusual, since we can't clash with the POSIX REG_ICASE.
78671         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78672         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78673         (REG_NO_SUB): renamed from RE_NO_SUB.
78674         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78675         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78676         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78677         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78678         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78679         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78680         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78681         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78682         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78683         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78684         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78685         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78686         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78687         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78688         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78689         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78690         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78691         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78692         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78693         (REG_FIXED): Renamed from REGS_FIXED.
78694         (REG_NREGS): Renamed from RE_NREGS.
78695
78696         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78697         of other REG_* macros, since POSIX says the user is allowed to
78698         #undef these macros selectively.
78699
78700         (reg_errcode_t): Update comment stating what other tables need
78701         to be consistent.
78702
78703         Rename the following enum values to obey POSIX requirements.
78704         The old names are still visible as macros.
78705         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78706         is not defined, since GNU is supposed to be a superset of POSIX as
78707         much as possible, and since we want reg_errcode_t to be a signed
78708         type for implementation consistency.
78709         (_REG_NOERROR): Renamed from REG_NOERROR.
78710         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78711         (_REG_BADPAT): Renamed from REG_BADPAT.
78712         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78713         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78714         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78715         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78716         (_REG_EBRACK): Renamed from REG_EBRACK.
78717         (_REG_EPAREN): Renamed from REG_EPAREN.
78718         (_REG_EBRACE): Renamed from REG_EBRACE.
78719         (_REG_BADBR): Renamed from REG_BADBR.
78720         (_REG_ERANGE): Renamed from REG_ERANGE.
78721         (_REG_ESPACE): Renamed from REG_ESPACE.
78722         (_REG_BADRPT): Renamed from REG_BADRPT.
78723         (_REG_EEND): Renamed from REG_EEND.
78724         (_REG_ESIZE): Renamed from REG_ESIZE.
78725         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78726         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78727         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78728         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78729         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78730
78731         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78732         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78733         changed.  But support the old name if the new one is not defined
78734         and if _REGEX_SOURCE.
78735
78736         Change the following member names in struct re_pattern_buffer.
78737         The old names are still supported if !_REGEX_SOURCE.
78738         The new names are always supported, regardless of _REGEX_SOURCE.
78739         (re_buffer): Renamed from buffer.
78740         (re_allocated): Renamed from allocated.
78741         (re_used): Renamed from used.
78742         (re_syntax): Renamed from syntax.
78743         (re_fastmap): Renamed from fastmap.
78744         (re_translate): Renamed from translate.
78745         (re_can_be_null): Renamed from can_be_null.
78746         (re_regs_allocated): Renamed from regs_allocated.
78747         (re_fastmap_accurate): Renamed from fastmap_accurate.
78748         (re_no_sub): Renamed from no_sub.
78749         (re_not_bol): Renamed from not_bol.
78750         (re_not_eol): Renamed from not_eol.
78751         (re_newline_anchor): Renamed from newline_anchor.
78752
78753         Change the following member names in struct re_registers.
78754         The old names are still supported if !_REGEX_SOURCE.
78755         The new names are always supported, regardless of _REGEX_SOURCE.
78756         (rm_num_regs): Renamed from num_regs.
78757         (rm_start): Renamed from start.
78758         (rm_end): Renamed from end.
78759
78760         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78761         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78762         Prepend __ to parameter names.
78763
78764         Undo yesterday's changes.
78765
78766 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78769         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78770         lib/regex.c.
78771
78772 2005-08-24  Jim Meyering  <jim@meyering.net>
78773
78774         Sync from coreutils.
78775         * m4/fcntl-safer.m4: New file.
78776
78777         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78778         and object files for this module.
78779
78780 2005-08-24  Jim Meyering  <jim@meyering.net>
78781
78782         Sync from coreutils.
78783         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78784
78785 2005-08-24  Jim Meyering  <jim@meyering.net>
78786
78787         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78788         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78789
78790 2005-08-24  Jim Meyering  <jim@meyering.net>
78791
78792         * modules/fcntl-safer: New module.
78793         * modules/fts (Depends-on): Add fcntl-safer.
78794         * MODULES.html.sh (File descriptor based Input/Output):
78795         Add fcntl-safer.
78796
78797 2005-08-24  Bruno Haible  <bruno@clisp.org>
78798
78799         Support for unit test modules.
78800         * modules/README: Mention tests modules.
78801         * modules/TEMPLATE-TESTS: New file.
78802         * gnulib-tool: New options --extract-tests-module, --with-tests and
78803         --tests-base (unused for the moment).
78804         (testsbase, inctests): New variables.
78805         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78806         (func_verify_module): Exclude TEMPLATE-TESTS.
78807         (func_verify_nontests_module, func_verify_tests_module): New functions.
78808         (func_get_dependencies): Add implicit dependency for tests modules.
78809         (func_get_tests_module): New function.
78810         (func_modules_transitive_closure): When --with-tests was specified,
78811         include the unit tests as well, unless explicitly avoided.
78812         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78813         (func_emit_tests_Makefile_am): New function.
78814         (func_create_testdir): When --with-tests was specified, emit a
78815         tests/ directory.
78816         * MODULES.html.sh (Future developments): Update.
78817
78818 2005-08-24  Bruno Haible  <bruno@clisp.org>
78819
78820         * modules/tls-tests: New file.
78821         * tests/test-tls.c: New file, from GNU gettext.
78822
78823 2005-08-24  Bruno Haible  <bruno@clisp.org>
78824
78825         * modules/lock-tests: New file.
78826         * tests/test-lock.c: New file, from GNU gettext.
78827
78828 2005-08-24  Bruno Haible  <bruno@clisp.org>
78829
78830         * lib/lock.h: Add multiple inclusion guard.
78831         * lib/tls.h: Add multiple inclusion guard.
78832
78833 2005-08-24  Bruno Haible  <bruno@clisp.org>
78834
78835         * gnulib-tool: Add support for the --aux-dir option to
78836         --create-testdir, --create-megatestdir, --test, --megatest.
78837         (func_create_testdir, func_create_megatestdir): Optionally emit a
78838         AC_CONFIG_AUX_DIR directive.
78839         (create-testdir, create-megatestdir, test, megatest): Provide a
78840         default value for $auxdir.
78841
78842 2005-08-24  Bruno Haible  <bruno@clisp.org>
78843
78844         * gnulib-tool (import): Use compound statement instead of subshell
78845         where possible.
78846
78847 2005-08-24  Bruno Haible  <bruno@clisp.org>
78848
78849         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78850
78851 2005-08-24  Bruno Haible  <bruno@clisp.org>
78852
78853         * gnulib-tool (func_version): Update.
78854
78855 2005-08-24  Bruno Haible  <bruno@clisp.org>
78856
78857         * gnulib-tool (func_import, func_create_testdir,
78858         func_create_megatestdir): Quote all autoconf macro arguments.
78859
78860 2005-08-24  Bruno Haible  <bruno@clisp.org>
78861
78862         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78863         option --force, because --force causes the aclocal.m4 of each
78864         subdirectory to be newer than the corresponding config.h.in.
78865
78866 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78869         All contents moved to gl_REGEX.
78870         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78871         assume that it does.
78872
78873 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * lib/regex.h (REG_NOSYS)
78876         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78877         Define, since POSIX requires it as of 2001.
78878         (_REG_ENOSYS)
78879         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78880         New private symbol, used to keep the enum signed in all cases.
78881         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78882         Youngman in
78883         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78884
78885         * lib/regex_internal.c (re_string_skip_chars, register_state):
78886         (calc_state_hash):
78887         Remove forward decls; no longer needed now that we use prototypes.
78888         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78889         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78890         (clean_state_log_if_needed): Likewise.
78891
78892 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * config/srclist.txt: Add glibc bugs 1231-1233.
78895
78896 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         Fix problems reported by Sam Steingold in
78899         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78900         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78901         assumed that reg_errcode_t is a signed type, which is not
78902         necessarily true if _XOPEN_SOURCE is not defined.
78903         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78904         since some compilers warn about it otherwise.
78905
78906 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78909         (init_word_char, create_initial_state, duplicate_node_closure):
78910         (fetch_token, peek_token_bracket, build_range_exp):
78911         (build_collating_symbol): Remove forward decls; no longer needed
78912         now that we use prototypes.
78913
78914         * lib/regcomp.c:
78915         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78916         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78917         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78918         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78919         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78920         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78921         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78922         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78923         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78924         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78925         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78926         (build_charclass, build_charclass_op, fetch_number, create_tree):
78927         (create_token_tree, mark_opt_subexp, duplicate_tree):
78928         Use prototypes rather than old-style definitions.
78929
78930         * lib/regex_internal.c:
78931         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78932         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78933         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78934         (re_string_reconstruct, re_string_peek_byte_case):
78935         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78936         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78937         (re_node_set_init_copy, re_node_set_add_intersect):
78938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78940         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78941         (re_acquire_state, re_acquire_state_context, register_state):
78942         (create_ci_newstate, create_cd_newstate, free_state):
78943         Likewise.
78944         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78945         re_search_2):
78946         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78947         (re_search_internal, prune_impossible_nodes):
78948         (acquire_init_state_context, check_matching, static):
78949         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78950         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78951         (update_regs, sift_states_backward, build_sifted_states):
78952         (clean_state_log_if_needed, merge_state_array):
78953         (update_cur_sifted_state, add_epsilon_src_nodes):
78954         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78955         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78956         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78957         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78958         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78959         (check_arrival, check_arrival_add_next_nodes):
78960         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78961         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78962         (check_node_accept_bytes, check_node_accept, extend_buffers):
78963         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78964         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78965         (sift_ctx_init):
78966         Likewise.
78967
78968         * lib/regex_internal.h:
78969         (re_string_allocate, re_string_construct, re_string_reconstruct):
78970         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78971         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78972         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78973         (re_string_context_at, re_string_peek_byte_case):
78974         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78975         is defined, since we now use prototypes always.
78976
78977         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78978         C89 or better.  All uses removed.
78979
78980 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * config/srclist.txt: Add glibc bugs 1220-1227.
78983
78984 2005-08-20  Jim Meyering  <jim@meyering.net>
78985
78986         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78987         of unused local, dfa.
78988
78989 2005-08-20  Bruno Haible  <bruno@clisp.org>
78990
78991         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78992
78993 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78996         (re_node_set_insert_last, re_dfa_add_node):
78997         Rename local variables to avoid GCC shadowing warnings.
78998
78999 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
79002         [defined lint]: Suppress bogus uninitialized-variable warnings.
79003
79004         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
79005         and let the caller return REG_ESPACE if out of space.  This
79006         removes an uninitialied-variable warning with GCC 4.0.1, and also
79007         avoids taking the address of a local variable.  All callers
79008         changed.
79009
79010 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
79013         $LIBCSRC/posix/regexec.c.
79014         Add glibc bug 1217 for regcomp.c.
79015
79016 2005-08-19  Jim Meyering  <jim@meyering.net>
79017
79018         * lib/regexec.c (proceed_next_node): Redo local variables to
79019         avoid GCC shadowing warnings.
79020
79021 2005-08-18  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/strstr.c (strstr): Fix return value in multibyte case.
79024         * lib/strcasestr.c (strcasestr): Likewise.
79025
79026 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
79029
79030 2005-08-17  Jim Meyering  <jim@meyering.net>
79031
79032         Make the %s format (seconds since the epoch) work for a negative
79033         number and when used with a zero-padded field width, e.g. %015s.
79034
79035         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
79036         label so that it precedes the code to set `digits'.  Otherwise,
79037         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
79038         print `00-22'.  Now, it prints `-0022', as it should.
79039
79040 2005-08-17  Bruno Haible  <bruno@clisp.org>
79041
79042         * modules/strstr (Files): Add m4/mbrtowc.m4.
79043         (Depends-on): Add mbuiter.
79044
79045 2005-08-17  Bruno Haible  <bruno@clisp.org>
79046
79047         * modules/strcasestr: New file.
79048         * MODULES.html.sh (String handling, based on ANSI C 89): Add
79049         strcasestr.
79050
79051 2005-08-17  Bruno Haible  <bruno@clisp.org>
79052
79053         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
79054
79055 2005-08-17  Bruno Haible  <bruno@clisp.org>
79056
79057         * modules/mbuiter: New file.
79058         * MODULES.html.sh (Extended multibyte and wide character utilities):
79059         Add mbuiter.
79060
79061 2005-08-17  Bruno Haible  <bruno@clisp.org>
79062
79063         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
79064         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
79065
79066 2005-08-17  Bruno Haible  <bruno@clisp.org>
79067
79068         * m4/strcasestr.m4: New file.
79069
79070 2005-08-17  Bruno Haible  <bruno@clisp.org>
79071
79072         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
79073         * lib/strstr.c: Completely rewritten, with multibyte locale support.
79074
79075 2005-08-17  Bruno Haible  <bruno@clisp.org>
79076
79077         * lib/strcasestr.h: New file.
79078         * lib/strcasestr.c: New file.
79079
79080 2005-08-17  Bruno Haible  <bruno@clisp.org>
79081
79082         * lib/strcasecmp.c: Use mbuiter.h.
79083
79084 2005-08-17  Bruno Haible  <bruno@clisp.org>
79085
79086         * lib/mbuiter.h: New file.
79087
79088 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
79091         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
79092         and gl_GETOPT are both invoked via different paths (as happens
79093         with GNU tar CVS because it uses both argp and getopt), the former
79094         wins.
79095
79096 2005-08-16  Bruno Haible  <bruno@clisp.org>
79097
79098         * modules/tls: New file.
79099         * MODULES.html.sh (Multithreading): Add tls.
79100
79101 2005-08-16  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/strnlen1: New file.
79104         * MODULES.html.sh (String handling): Add strnlen1.
79105
79106 2005-08-16  Bruno Haible  <bruno@clisp.org>
79107
79108         * modules/strcase (Files): Add m4/mbrtowc.m4.
79109         (Depends-on): Add strnlen1, mbchar.
79110
79111 2005-08-16  Bruno Haible  <bruno@clisp.org>
79112
79113         * modules/mbiter: New file.
79114         * MODULES.html.sh (Extended multibyte and wide character utilities):
79115         Add mbiter.
79116
79117 2005-08-16  Bruno Haible  <bruno@clisp.org>
79118
79119         * modules/mbfile: New file.
79120         * MODULES.html.sh (Extended multibyte and wide character utilities):
79121         Add mbfile.
79122
79123 2005-08-16  Bruno Haible  <bruno@clisp.org>
79124
79125         * modules/mbchar: New file.
79126         * MODULES.html.sh (Extended multibyte and wide character utilities):
79127         New section.
79128
79129 2005-08-16  Bruno Haible  <bruno@clisp.org>
79130
79131         * m4/tls.m4: New file, from GNU gettext.
79132
79133 2005-08-16  Bruno Haible  <bruno@clisp.org>
79134
79135         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
79136         always.
79137         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
79138
79139 2005-08-16  Bruno Haible  <bruno@clisp.org>
79140
79141         * m4/mbiter.m4: New file.
79142
79143 2005-08-16  Bruno Haible  <bruno@clisp.org>
79144
79145         * m4/mbfile.m4: New file.
79146
79147 2005-08-16  Bruno Haible  <bruno@clisp.org>
79148
79149         * m4/mbchar.m4: New file.
79150
79151 2005-08-16  Bruno Haible  <bruno@clisp.org>
79152
79153         * lib/tls.h: New file, from GNU gettext.
79154         * lib/tls.c: New file, from GNU gettext.
79155
79156 2005-08-16  Bruno Haible  <bruno@clisp.org>
79157
79158         * lib/strnlen1.h: New file.
79159         * lib/strnlen1.c: New file.
79160
79161 2005-08-16  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79164         (mbi_init): Update.
79165         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79166         NUL byte, not after it.
79167
79168 2005-08-16  Bruno Haible  <bruno@clisp.org>
79169
79170         * lib/strcase.h (strcasecmp): Add note in comments.
79171         * lib/strncasecmp.c: Use code from strcasecmp.c.
79172         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79173         (strcasecmp): Work correctly in multibyte locales.
79174
79175 2005-08-16  Bruno Haible  <bruno@clisp.org>
79176
79177         * lib/mbiter.h: New file.
79178
79179 2005-08-16  Bruno Haible  <bruno@clisp.org>
79180
79181         * lib/mbfile.h: New file.
79182
79183 2005-08-16  Bruno Haible  <bruno@clisp.org>
79184
79185         * lib/mbchar.h: New file.
79186         * lib/mbchar.c: New file.
79187
79188 2005-08-16  Bruno Haible  <bruno@clisp.org>
79189
79190         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79191         the valid ones. Makes the comparison operations transitive:
79192         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79193         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79194
79195 2005-08-15  Simon Josefsson  <jas@extundo.com>
79196
79197         * modules/ssize_t (License): Change to 'unlimited'.
79198
79199         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79200
79201 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79204         Add comments for each pending glibc patch.
79205
79206 2005-08-15  Bruno Haible  <bruno@clisp.org>
79207
79208         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79209         __cplusplus is defined.
79210
79211 2005-08-14  Jim Meyering  <jim@meyering.net>
79212
79213         Sync from coreutils.
79214
79215         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79216         Use the hash-table-based cycle-detection code not just when
79217         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79218         Reported by James Youngman in
79219         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79220         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79221         FTS_TIGHT_CYCLE_CHECK.
79222         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79223         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79224         once again.
79225         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79226         * lib/fts.c (fd_safer): Remove decl.
79227         Include fcntl--.h rather than unistd-safer.h
79228         (fts_safe_changedir): Don't call fd_safer; no longer needed
79229         now that we include fcntl--.h.
79230
79231 2005-08-12  Simon Josefsson  <jas@extundo.com>
79232
79233         * modules/getndelim2: Use ssize_t module.
79234         * modules/getnline: Likewise.
79235         * modules/safe-read: Likewise.
79236         * modules/xreadlink: Likewise.
79237
79238         * modules/ssize_t: New file.
79239
79240 2005-08-12  Simon Josefsson  <jas@extundo.com>
79241
79242         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79243
79244 2005-08-12  Simon Josefsson  <jas@extundo.com>
79245
79246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79247         ssize_t.
79248
79249 2005-08-12  Simon Josefsson  <jas@extundo.com>
79250
79251         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79252         readline, getdelim and check_version.
79253         (Support for systems lacking ISO C 99: Sizes of integer types):
79254         Add size_max.
79255
79256 2005-08-12  Bruno Haible  <bruno@clisp.org>
79257
79258         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79259
79260 2005-08-11  Simon Josefsson  <jas@extundo.com>
79261
79262         * modules/readline: New file.
79263
79264         * modules/strnlen (Files): Add strnlen.h.
79265
79266 2005-08-11  Simon Josefsson  <jas@extundo.com>
79267
79268         * m4/readline.m4: New file.
79269
79270 2005-08-11  Simon Josefsson  <jas@extundo.com>
79271
79272         * lib/readline.h, readline.c: New file.
79273
79274 2005-08-11  Simon Josefsson  <jas@extundo.com>
79275
79276         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79277         gl_AVOID.
79278
79279 2005-08-11  Bruno Haible  <bruno@clisp.org>
79280
79281         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79282
79283 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79284
79285         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79286
79287 2005-08-10  Simon Josefsson  <jas@extundo.com>
79288
79289         * tests/test-iconvme.c: New file.
79290
79291 2005-08-10  Simon Josefsson  <jas@extundo.com>
79292
79293         * m4/strnlen.m4: New file.
79294
79295         * m4/strndup.m4: Don't check for strnlen declaration, done in
79296         strnlen.m4.
79297
79298 2005-08-10  Simon Josefsson  <jas@extundo.com>
79299
79300         * lib/strndup.c: Use strnlen.h.
79301
79302         * lib/strnlen.h: New file.
79303
79304 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79305
79306         * README: Typos.
79307
79308 2005-08-02  Simon Josefsson  <jas@extundo.com>
79309
79310         * modules/readline: New file.
79311
79312 2005-08-02  Simon Josefsson  <jas@extundo.com>
79313
79314         * modules/getdelim: New file.
79315
79316         * modules/getline: Rewrite, don't use getndelim2.
79317
79318 2005-08-02  Simon Josefsson  <jas@extundo.com>
79319
79320         * m4/getline.m4: Separate out getdelim stuff into separate module.
79321
79322         * m4/getdelim.m4: New file.
79323
79324 2005-08-02  Simon Josefsson  <jas@extundo.com>
79325
79326         * lib/getline.h, getline.c: Rewrite.
79327
79328         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79329
79330 2005-07-31  Bruno Haible  <bruno@clisp.org>
79331
79332         * lib/lock.h (gl_lock_initializer): New macro.
79333         (gl_lock_define_initialized): Use it.
79334         (gl_rwlock_initializer): New macro.
79335         (gl_rwlock_define_initialized): Use it.
79336         (gl_recursive_lock_initializer): New macro.
79337         (gl_recursive_lock_define_initialized): Use it.
79338
79339 2005-07-30  Karl Berry  <karl@gnu.org>
79340
79341         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79342         Report from Ben Pfaff, regarding getopt.
79343
79344 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79347         normal way.
79348         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79349         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79350         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79351         (gl_GETOPT): Use the new macros.  Most of the implementation
79352         is moved to the new macros.  This is for programs like Emacs
79353         that don't want all the functionality of gl_GETOPT.
79354
79355 2005-07-26  Bruno Haible  <bruno@clisp.org>
79356
79357         * m4/lock.m4: Update from GNU gettext.
79358
79359 2005-07-26  Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/lock.h: Update from GNU gettext.
79362         * lib/lock.c: Update from GNU gettext.
79363
79364 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79367         obsolescent AC_TRY_RUN.  Include the default includes files, for
79368         'exit'.
79369
79370 2005-07-24  Bruno Haible  <bruno@clisp.org>
79371
79372         * modules/visibility: New file.
79373         * MODULES.html.sh (Misc): Add visibility.
79374
79375 2005-07-24  Bruno Haible  <bruno@clisp.org>
79376
79377         * m4/visibility.m4: New file.
79378
79379 2005-07-24  Bruno Haible  <bruno@clisp.org>
79380
79381         * doc/visibility.texi: New file.
79382
79383 2005-07-22  Bruno Haible  <bruno@clisp.org>
79384
79385         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79386         $(ALLOCA_H), redundant through BUILT_SOURCES.
79387         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79388         redundant through BUILT_SOURCES.
79389         * modules/byteswap (Makefile.am): Remove explicit dependency on
79390         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79391         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79392         $(FNMATCH_H), redundant through BUILT_SOURCES.
79393         * modules/getopt (Makefile.am): Remove explicit dependency on
79394         $(GETOPT_H), redundant through BUILT_SOURCES.
79395         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79396         redundant through BUILT_SOURCES.
79397         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79398         redundant through BUILT_SOURCES.
79399         * modules/stdbool (Makefile.am): Remove explicit dependency on
79400         $(STDBOOL_H), redundant through BUILT_SOURCES.
79401         * modules/stdint (Makefile.am): Remove explicit dependency on
79402         $(STDINT_H), redundant through BUILT_SOURCES.
79403         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79404         Remove explicit dependency on $(SYSEXITS_H).
79405         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79406
79407 2005-07-18  Simon Josefsson  <jas@extundo.com>
79408
79409         * lib/check-version.c (check_version): Accept identical versions too.
79410
79411 2005-07-18  Bruno Haible  <bruno@clisp.org>
79412
79413         * modules/lock: New file.
79414         * MODULES.html.sh (Multithreading): New section.
79415
79416 2005-07-18  Bruno Haible  <bruno@clisp.org>
79417
79418         * m4/lock.m4: New file, from GNU gettext.
79419
79420 2005-07-18  Bruno Haible  <bruno@clisp.org>
79421
79422         * lib/lock.h: New file, from GNU gettext.
79423         * lib/lock.c: New file, from GNU gettext.
79424
79425 2005-07-18  Bruno Haible  <bruno@clisp.org>
79426
79427         * lib/lock.h (gl_once_t): New type.
79428         (gl_once_define, gl_once): New macros.
79429         * lib/lock.c (fresh_once): New variable.
79430         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79431         functions.
79432
79433 2005-07-16  Simon Josefsson  <jas@extundo.com>
79434
79435         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79436         workaround, suggested by Bruno.
79437
79438 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * modules/xalloc (Depends-on): Add xalloc-die.
79441         * modules/xvasprintf (Depends-on): Add xalloc-die.
79442
79443 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79446         with a minor change.
79447
79448 2005-07-15  Bruno Haible  <bruno@clisp.org>
79449
79450         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79451         When using lib/poll.c, define poll as rpl_poll.
79452
79453 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * modules/argp (Depends-on): Remove unlocked-io.
79456
79457 2005-07-14  Derek Price  <derek@ximbiot.com>
79458
79459         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79460         for glob symlink bug.
79461
79462 2005-07-14  Bruno Haible  <bruno@clisp.org>
79463
79464         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79465         Instead, test for *_unlocked function declarations directly.
79466
79467 2005-07-11  Simon Josefsson  <jas@extundo.com>
79468
79469         * modules/size_max: New file.
79470
79471         * modules/xsize: Depend on size_max module for size_max.m4.
79472
79473 2005-07-11  Simon Josefsson  <jas@extundo.com>
79474
79475         * lib/size_max.h: New file.
79476
79477 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79480         copyright symbol and the year.
79481         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79482         (version_etc_va): Use parameterized copyright notice.
79483         Reword to conform to the current GNU coding standards.
79484
79485 2005-07-11  Karl Berry  <karl@gnu.org>
79486
79487         * doc/gnulib.texi (Quoting): new node.
79488         (Initial import): more info, from Patrice.
79489
79490 2005-07-11  Bruno Haible  <bruno@clisp.org>
79491
79492         * gnulib-tool (func_usage): Document option --avoid.
79493         (Command line options): Handle --avoid.
79494         (func_acceptable): New function.
79495         (func_modules_transitive_closure): Use it.
79496
79497 2005-07-11  Bruno Haible  <bruno@clisp.org>
79498
79499         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79500         Reported by Jim Meyering.
79501
79502 2005-07-10  Bruno Haible  <bruno@clisp.org>
79503
79504         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79505         Needed when size_t is smaller than 'unsigned int'.
79506         Reported by Paul Eggert.
79507
79508 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79509
79510         * modules/argp (Depends-on): Add unlocked-io
79511
79512 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79513
79514         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79515         block of defines.
79516
79517 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79520         fix now.
79521
79522 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79523         and Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79526         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79527
79528 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * modules/regex (Files): Add lib/regex_internal.c,
79531         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79532         (Depends-on): Add extensions.
79533         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79534
79535 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79538         pathconf.
79539         * m4/same.m4 (gl_SAME): Likewise.
79540         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79541
79542         * m4/regex.m4: Adjust to new libc regex implementation.
79543         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79544         all the .c and .h parts of (the new) regex.
79545         Quote the m4 stuff better.
79546         Check for RE_ICASE bug of old gnulib.
79547         Check for REG_STARTEND of recent libc.
79548         Rename local variables from jm_* to gl_*.
79549         Quote operand of "test -f".
79550         Say "recent enough" version of libc, not "version 2".
79551         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79552         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79553         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79554         Remove check for btowc, isascii.
79555         Require AM_LANGINFO_CODESET.
79556
79557 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * lib/regex.c, regex.h: Sync from libc.
79560         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79561         * lib/regexec.c:
79562         New files, synced from libc, except that regex_internal.h
79563         currently has a small porting fix.
79564
79565 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79568         regex_internal.c, regexec.c.
79569         Add regex_internal.h too, but as a comment, since the libc version
79570         is currently broken in gnulib mode.
79571
79572 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         Support programs like Emacs that use gnulib but not gettext.
79575         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79576         * modules/gettext-h: New file.
79577         * modules/gettext (Files): Remove lib/gettext.h.
79578         (Depends-on): Add gettext-h.
79579         (Makefile.am): Remove lib_SOURCES.
79580         * modules/argmatch, modules/c-stack, modules/closeout:
79581         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79582         * modules/execute, modules/file-type, modules/getaddrinfo:
79583         * modules/getopt, modules/human, modules/javacomp:
79584         * modules/javaexec, modules/mkdir-p, modules/obstack:
79585         * modules/openat, modules/pagealign_alloc, modules/pipe:
79586         * modules/quotearg, modules/regex, modules/rpmatch:
79587         * modules/unicodeio, modules/userspec, modules/version-etc:
79588         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79589         * modules/xsetenv:
79590         Depend on gettext-h, not gettext.
79591
79592 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * gnulib-tool (func_import): Add support for 'public domain' license.
79595         * modules/alloca, modules/atexit, modules/memmove:
79596         Now public domain, not GPL.
79597         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79598         * modules/realloc, modules/strerror, modules/strtod:
79599         Now LGPL, not GPL.
79600
79601 2005-07-05  Bruno Haible  <bruno@clisp.org>
79602
79603         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79604         autoconf CVS. Needed for mingw.
79605
79606 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         Remove the dependency of the strftime module on the tzset module.
79609         * modules/strftime (Depends-on): Remove dependency on tzset.
79610
79611 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         Remove the dependency of the strftime module on the tzset module.
79614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79615         gl_FUNC_TZSET_CLOBBER.
79616
79617 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         Remove the dependency of the strftime module on the tzset module.
79620         * lib/strftime.c (my_strftime)
79621         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79622         Copy the input structure, to work around some of the bug with
79623         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79624         Solaris releases, you should also use the tzset module, but we won't
79625         require it as a dependency any more since we don't want LGPLed code
79626         to depend on GPLed code.
79627
79628 2005-07-02  Jim Meyering  <jim@meyering.net>
79629
79630         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79631         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79632         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79633         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79634
79635 2005-07-02  Jim Meyering  <jim@meyering.net>
79636
79637         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79638
79639 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79642         declares only 'struct timespec;' (!).
79643
79644 2005-07-01  Jim Meyering  <jim@meyering.net>
79645
79646         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79647         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79648         * lib/save-cwd.c, tempname.c:
79649         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79650         and don't include <sys/file.h>).
79651
79652 2005-06-29  Jim Meyering  <jim@meyering.net>
79653
79654         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79655         type name.  Use the variable name instead.
79656         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79657         Likewise.
79658
79659 2005-06-28  Simon Josefsson  <jas@extundo.com>
79660
79661         * modules/check-version (Files): Add check-version.m4.
79662
79663 2005-06-28  Simon Josefsson  <jas@extundo.com>
79664
79665         * m4/check-version.m4: New file, suggested by Jim Meyering
79666         <jim@meyering.net>.
79667
79668 2005-06-28  Simon Josefsson  <jas@extundo.com>
79669
79670         * lib/check-version.h, lib/check-version.c: New files.
79671
79672 2005-06-28  Simon Josefsson  <jas@extundo.com>
79673
79674         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79675         collision with global variable.  Better indentation.  Don't
79676         increment buffer pointer beyond buffer end.  Based on comments
79677         from Paul Eggert <eggert@cs.ucla.edu>.
79678
79679         * lib/base64.h: Indent.
79680
79681 2005-06-28  Simon Josefsson  <jas@extundo.com>
79682
79683         * doc/gnulib.texi (Library version handling): New section.
79684
79685 2005-06-28  Jim Meyering  <jim@meyering.net>
79686
79687         * check-module (find_included_lib_files): Hard-code another
79688         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79689         but modules/fts-lgpl (correctly) does not list those files.
79690
79691         * modules/canonicalize (Files): Add lib/pathmax.h.
79692
79693 2005-06-25  Simon Josefsson  <jas@extundo.com>
79694
79695         * modules/check-version: New file.
79696
79697 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79700         initializer of struct addrinfo, as an indication that we don't
79701         care how many members the structure has.
79702
79703 2005-06-24  Derek Price  <derek@ximbiot.com>
79704         and Bruno Haible  <bruno@clisp.org>
79705
79706         Remove stat module & update lstat.
79707         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79708         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79709         * m4/stat.m4: Remove this file.
79710
79711 2005-06-24  Derek Price  <derek@ximbiot.com>
79712         and Bruno Haible  <bruno@clisp.org>
79713
79714         Remove stat module & update lstat.
79715         * lib/stat.c: Remove this file...
79716         (slash_aware_lstat): ...moving this content and its support...
79717         * lib/lstat.c (rpl_lstat): ...into here.
79718         * lib/lstat.h: New file.
79719
79720 2005-06-24  Derek Price  <derek@ximbiot.com>
79721         and Bruno Haible  <bruno@clisp.org>
79722
79723         Remove stat module & update lstat.
79724         * config/srclist.txt (libc sources): Remove stat.
79725
79726 2005-06-24  Derek Price  <derek@ximbiot.com>
79727         and Bruno Haible  <bruno@clisp.org>
79728
79729         Remove stat module & update lstat.
79730         * MODULES.html.sh (stat): Remove.
79731         * MODULES.html: Regenerated.
79732         * modules/lstat (Description): Correct function name.
79733         (Files): Add "lstat.h".
79734         (Depends-on): Remove stat, add xalloc, stat-macros.
79735         * modules/stat: Remove this file.
79736         (Include): Add "lstat.h", remove <sys/stat.h>.
79737
79738 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79741         (ranged_convert): Don't save conversion in a temporary struct.
79742         This causes a warning with GCC 4.0.0, and anyway in the typical
79743         case it's not worth the extra 100 bytes or so of code.
79744         (ranged_convert, __mktime_internal): When calling a function via a
79745         pointer P, use P () rather than (*P) (), as we now assume C89 or
79746         better.
79747
79748 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79751         "who -r" failed to give output.  Problem reported by Tim Waugh.
79752
79753         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79754         (xcalloc): Use it to avoid needless tests.
79755         Problem reported by Jim Meyering.
79756
79757 2005-06-20  Derek Price  <derek@ximbiot.com>
79758
79759         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79760         unnecessary for Autoconfs > 2.59c.
79761
79762 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79763
79764         * lib/argp.h (__option_is_short): Check upper limit of
79765         __key. Isprint() requires its argument to have the value
79766         of an unsigned char or EOF.
79767
79768 2005-06-16  Jim Meyering  <jim@meyering.net>
79769
79770         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79771         when either N or S is zero.
79772
79773 2005-06-16  Derek Price  <derek@ximbiot.com>
79774
79775         * m4/bison.m4: Declare YACC & YFLAGS precious.
79776
79777 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79780         multibyte string or pattern, fall back on unibyte matching.
79781         Problem reported by James Youngman.
79782
79783 2005-06-08  Bruno Haible  <bruno@clisp.org>
79784
79785         * modules/csharpcomp: New file.
79786         * MODULES.html.sh (C#): Add csharpcomp.
79787
79788 2005-06-08  Bruno Haible  <bruno@clisp.org>
79789
79790         * m4/csharpcomp.m4: New file, from GNU gettext.
79791
79792 2005-06-08  Bruno Haible  <bruno@clisp.org>
79793
79794         * lib/csharpcomp.h: New file, from GNU gettext.
79795         * lib/csharpcomp.c: New file, from GNU gettext.
79796         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79797
79798 2005-06-08  Bruno Haible  <bruno@clisp.org>
79799
79800         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79801         warning on mingw.
79802
79803 2005-06-07  Derek Price  <derek@ximbiot.com>
79804
79805         Sync from CVS.
79806         * lib/glob_.h: Indent nested #ifdef.
79807
79808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         Sync from coreutils.
79811         Use "file name" when talking about file names, instead of "filename"
79812         or "path", as per the GNU coding standards.
79813         * lib/mkdir-p.c: Renamed from makepath.c.
79814         (make_dir_parents): Renamed from make_path.  All callers changed.
79815         * lib/mkdir-p.h: Likewise.  All includers changed.
79816         * lib/filenamecat.c: Renamed from path-concat.c.
79817         (file_name_concat): Renamed from path_concat.  All callers changed.
79818         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79819         * lib/filenamecat.h: Likewise.  All includers changed.
79820         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79821         in comments or local variable names.
79822         * lib/basename.c: Likewise.
79823         * lib/canonicalize.c, canonicalize.h: Likewise.
79824         * lib/dirname.c, dirname.h: Likewise.
79825         * lib/euidaccess.c: Likewise.
79826         * lib/exclude.c: Likewise
79827         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79828         * lib/fsusage.c, fsuage.h: Likewise.
79829         * lib/fts.c, fts_.h: Likewise.
79830         * lib/getcwd.c: Likewise.
79831         * lib/getloadavg.c: Likewise.
79832         * lib/mkstemp.c: Likewise.
79833         * lib/mountlist.c, mountlist.h: Likewise.
79834         * lib/openat.c, openat.h: Likewise.
79835         * lib/readlink-stub.c: Likewise.
79836         * lib/readutmp.c, readutmp.h: Likewise.
79837         * lib/rename.c: Likewise.
79838         * lib/rmdir.c: Likewise.
79839         * lib/same.c: Likewise.
79840         * lib/savedir.c: Likewise.
79841         * lib/stripslash.c: Likewise.
79842         * lib/tempname.c: Likewise.
79843         * lib/xreadlink.c: Likewise.
79844         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79845         All uses changed.
79846         * lib/exclude.h: Likewise.
79847
79848         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79849         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79850         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79851         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79852         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79853         files have been getting away with it for years (MORE/BSD 4.3
79854         is extinct now).
79855         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79856         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79857
79858         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79859         Define to 256, not 255, as per modern POSIX.
79860
79861 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79862
79863         Sync from coreutils.
79864         Use "file name" when talking about file names, instead of "filename"
79865         or "path", as per the GNU coding standards.
79866         * MODULES.html.sh: mkdir-p renamed from makepath.
79867         filenamecat renamed from path-concat.
79868         * modules/filenamecat: Renamed from modules/path-concat.
79869         (Files): filenamecat.h and filenamecat.c renamed from
79870         path-concat.h and path-concat.c.
79871         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79872         (Include): filenamecat.h, not path-concat.h.
79873         * modules/mkdir-p: Renamed from modules/makepath.
79874         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79875         makepath.c.
79876         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79877         (Include): mkdir-p.h, not makepath.h.
79878
79879 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         Sync from coreutils.
79882         * m4/mkdir-p.m4: Renamed from makepath.m4.
79883         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79884         Rename files from makepath.c to mkdir-p.c, and from
79885         makepath.h to mkdir-p.h.
79886         * m4/filenamecat.m4: Renamed from path-concat.m4.
79887         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79888         Rename files from path-concat.c to filenamecat.c,
79889         and from path-concat.h to filenamecat.h.
79890         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79891         "file name" in local variables or comments.
79892         * m4/rename.m4: Likewise.
79893
79894 2005-06-01  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/csharpexec: New file.
79897         * MODULES.html.sh (C#): New section.
79898
79899 2005-06-01  Bruno Haible  <bruno@clisp.org>
79900
79901         * m4/csharp.m4: New file, from GNU gettext.
79902         * m4/csharpexec.m4: New file, from GNU gettext.
79903
79904 2005-06-01  Bruno Haible  <bruno@clisp.org>
79905
79906         * lib/csharpexec.h: New file, from GNU gettext.
79907         * lib/csharpexec.c: New file, from GNU gettext.
79908         * lib/csharpexec.sh.in: New file, from GNU gettext.
79909
79910 2005-05-31  Derek Price  <derek@ximbiot.com>
79911             Paul Eggert  <eggert@cs.ucla.edu>
79912
79913         Sync from cvs.
79914         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79915
79916 2005-05-31  Derek Price  <derek@ximbiot.com>
79917             Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         Sync from cvs.
79920         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79921
79922 2005-05-29  Derek Price  <derek@ximbiot.com>
79923
79924         * config/srclist.txt (glob_.h, glob.c): Add these files.
79925
79926 2005-05-29  Derek Price  <derek@ximbiot.com>
79927
79928         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79929         * modules/glob: New file.
79930         * modules/getlogin_r: Add link to POSIX spec in description.
79931
79932 2005-05-29  Derek Price  <derek@ximbiot.com>
79933             Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * m4/glob.m4: New file.
79936
79937 2005-05-29  Derek Price  <derek@ximbiot.com>
79938             Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * lib/glob_.h, lib/glob.c: New files.
79941
79942 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79945         * modules/fts-lgpl (Depends-on): Remove gettext.
79946
79947 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79950         and don't require gt_INTTYPES_PRI.
79951
79952 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79955
79956         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79957         the configuration hassle isn't worth it.
79958         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79959         (LONGEST_MODIFIER, PRIuMAX): Remove.
79960
79961 2005-05-27  Bruno Haible  <bruno@clisp.org>
79962
79963         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79964
79965 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79968         _POSIX_PTHREAD_SEMANTICS for Solaris.
79969
79970 2005-05-25  Derek Price  <derek@ximbiot.com>
79971
79972         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79973
79974 2005-05-25  Derek Price  <derek@ximbiot.com>
79975             Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79978         * lib/getlogin_r.c, getlogin_r.h: New files.
79979
79980 2005-05-25  Bruno Haible  <bruno@clisp.org>
79981             Derek Price  <derek@ximbiot.com>
79982
79983         * lib/getlogin_r.h: Simplify API documentation.
79984
79985 2005-05-23  Derek Price  <derek@ximbiot.com>
79986
79987         * modules/minmax (Files): Add m4/minmax.m4.
79988         (configure.ac): Add gl_MINMAX.
79989
79990 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79993         so that unistd-safer.h (GPL'ed code) need not be included.
79994
79995 2005-05-22  Bruno Haible  <bruno@clisp.org>
79996
79997         * m4/minmax.m4: New file.
79998         Based on a patch by Derek Price <derek@ximbiot.com>.
79999
80000 2005-05-22  Bruno Haible  <bruno@clisp.org>
80001
80002         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
80003         (INT64_MIN): Fix definition.
80004         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
80005
80006         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
80007         NEED_SIGNED_INT_TYPES.
80008
80009         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
80010         HAVE_SYSTEM_INTTYPES.
80011
80012 2005-05-22  Bruno Haible  <bruno@clisp.org>
80013
80014         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
80015         Also include <sys/param.h> if it defines MIN, MAX.
80016         Based on a patch by Derek Price <derek@ximbiot.com>.
80017
80018 2005-05-21  Jim Meyering  <jim@meyering.net>
80019
80020         * modules/fts (Files): Add m4/inttypes-pri.m4.
80021         (Depends-on): Add lstat and remove gettext.  Alphabetize.
80022
80023 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         New fts module.
80026         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
80027         (setup_dir, free_dir): New functions.
80028         (enter_dir, leave_dir): Define trivial
80029         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
80030         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
80031         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
80032         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
80033         Move to fts-cycle.c.
80034         (fts_open): Use setup_dir.
80035         (fts_close): Use free_dir.
80036         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
80037         This adds a label and some gotos, but the alternatives were messier.
80038         Check for memory allocation failure when entering a dir.
80039         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
80040         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
80041         (FTS): New member fts_cycle, that is a union that contains the
80042         old active_dir_ht and cycle_state.  All uses changed to mention
80043         fts_cycle.ht and fts_cycle.state.
80044         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
80045         fts.c, with the following changes:
80046         (setup_dir, free_dir): New functions.
80047         (enter_dir): Now returns bool.  Return true if successful, false
80048         if memory exhausted.  All callers changed.
80049         Do not bother partly cleaning up on
80050         memory allocation failure; that is free_dir's job.
80051         However, free ad if hash_insert fails, to avoid memory leak.
80052         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
80053         fts->fts_options to see which union member to use.
80054
80055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
80058         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
80059
80060 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
80063
80064 2005-05-20  Jim Meyering  <jim@meyering.net>
80065
80066         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
80067         Now a macro, to pacify GCC.
80068
80069 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80070
80071         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
80072         of -1.
80073
80074 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80075
80076         * lib/chown.c (rpl_chown): Return -1 on failure.
80077
80078 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
80081         Don't check for stddef.h.
80082         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
80083         don't use its results.
80084         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
80085         since we include them unconditionally.  Don't require
80086         AM_STDBOOL_H, since stdbool is a prerequisite.
80087         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
80088         since we assume C89 or better.
80089         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
80090         as we don't use their results.
80091         Don't check for fchdir, memmove, memset, strrchr, as we use
80092         them unconditionally.
80093         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
80094         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
80095
80096 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
80099         Include <stddef.h> unconditionally, since we assume C89 now.
80100         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
80101         * lib/fts.c: Include fts_.h first, to check interface.
80102         Do not include intprops.h; no longer needed.
80103         Include cycle-check.h and hash.h, since fts_.h no longer does.
80104         Remove unnecessary casts of closedir to void.
80105         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
80106         decide whether to decrement nlinks.
80107         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
80108         (FTS): Use struct hash_table * instead of Hash_table, so that
80109         we no longer need to include hash.h here.
80110
80111 2005-05-18  Jim Meyering  <jim@meyering.net>
80112
80113         * modules/dirfd (License): Change to LGPL.  Most of the code
80114         is already in the public domain.
80115
80116 2005-05-18  Jim Meyering  <jim@meyering.net>
80117
80118         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
80119         Reported by Yoann Vandoorselaere.
80120
80121 2005-05-17  Jim Meyering  <jim@meyering.net>
80122
80123         * m4/fts.m4: New file, from coreutils.
80124
80125 2005-05-17  Jim Meyering  <jim@meyering.net>
80126
80127         * lib/fts.c, lib/fts_.h: New files, from coreutils.
80128
80129 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         Sync from coreutils.
80132         * m4/unlinkdir.m4: New file.
80133
80134 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         Sync from coreutils.
80137         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
80138         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
80139         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
80140         White space changes only.
80141         * lib/makepath.c (make_path): Port to hosts where leading "//" is
80142         special.
80143         * lib/yesno.c: Include getline.h, not ctype.h.
80144         (yesno): Don't remove leading white space; POSIX doesn't allow it.
80145         Use getline to remove arbitrary restriction on response length.
80146
80147 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * config/srclist-update: Spell out "Street" in FSF postal
80150         mail address; this is the style the FSF seems to prefer.
80151
80152         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80153         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80154         this updates FSF postal mail address.
80155
80156         Sync from coreutils.
80157         * modules/unlinkdir: New file.
80158         * modules/yesno (Depends-on): Add getline.
80159         * MODULES.html.sh (File system functions): Add unlinkdir.
80160
80161 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80164         lib/strsep.h:
80165         Change the initial comment to refer to GPL, not LGPL.
80166         gnulib-tool will change it to LGPL as needed.
80167
80168         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80169         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80170         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80171         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80172         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80173         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80174         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80175         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80176         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80177         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80178         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80179         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80180         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80181         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80182         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80183         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80184         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80185         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80186         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80187         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80188         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80189         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80190         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80191         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80192         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80193         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80194         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80195         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80196         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80197         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80198         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80199         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80200         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80201         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80202         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80203         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80204         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80205         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80206         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80207         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80208         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80209         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80210         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80211         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80212         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80213         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80214         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80215         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80216         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80217         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80218         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80219         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80220         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80221         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80222         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80223         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80224         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80225         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80226         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80227         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80228         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80229         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80230         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80231         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80232         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80233         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80234         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80235         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80236         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80237         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80238         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80239         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80240         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80241         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80242         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80243         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80244         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80245         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80246         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80247         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80248         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80249         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80250         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80251         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80252         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80253         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80254         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80255         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80256         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80257         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80258         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80259         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80260         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80261         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80262         lib/yesno.c, lib/yesno.h:
80263         Update FSF postal mail address.
80264
80265 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80268         tests/test-memmem.c, tests/test-stpncpy.c:
80269         Update FSF postal mail address.
80270
80271 2005-05-13  Bruno Haible  <bruno@clisp.org>
80272
80273         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80274         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80275         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80276         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80277         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80278         Add support for 64-bit integers in the MSVC compiler.
80279
80280 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80281
80282         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80283
80284 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80285
80286         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80287
80288 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * doc/getdate.texi (General date syntax): Don't say that date
80291         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80292         Problem reported by Nic Ferrier.
80293
80294 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80295
80296         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80297         specified in ai_socktype. Fix invalid ai_protocol
80298         check. ai_protocol is usually set to 0 or depending on
80299         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80300         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80301         ai_socktype / ai_protocol in the returned addrinfo structure.
80302
80303 2005-05-10  Simon Josefsson  <jas@extundo.com>
80304
80305         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80306         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80307
80308 2005-05-10  Karl Berry  <karl@gnu.org>
80309
80310         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80311         (from http://www.gnu.org/licenses).
80312         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80313         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80314         fdl.texi suffices.
80315
80316 2005-05-10  Karl Berry  <karl@gnu.org>
80317
80318         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80319         (COPYING.DOC): remove.
80320
80321         * config/srclist-update: new FSF address.
80322
80323 2005-05-10  Derek Price  <derek@ximbiot.com>
80324
80325         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80326         possible.
80327
80328 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80329             Bruno Haible  <bruno@clisp.org>
80330
80331         * modules/inet_ntop: New file.
80332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80333         inet_ntop.
80334
80335 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80336             Bruno Haible  <bruno@clisp.org>
80337
80338         * m4/inet_ntop.m4: New file.
80339
80340 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80341             Bruno Haible  <bruno@clisp.org>
80342
80343         * lib/inet_ntop.h: New file.
80344         * lib/inet_ntop.c: New file, from glibc with modifications.
80345
80346 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * modules/time_r (License): Change to LGPL.
80349         * modules/extensions (License): Change to LGPL.  Actually,
80350         the license is more permissive than that, but currently gnulib-tool
80351         doesn't know how to handle more-permissive licenses.
80352
80353         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80354         Problem reported by Dave Love.
80355
80356 2005-05-08  Jim Meyering  <jim@meyering.net>
80357
80358         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80359         blank.
80360
80361 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * modules/argmatch (Depends-on): Add stdbool.
80364         * modules/backupfile (Depends-on): Likewise.
80365         * modules/chdir-long (Depends-on): Likewise.
80366         * modules/closeout (Depends-on): Likewise.
80367         * modules/cycle-check (Depends-on): Likewise.
80368         * modules/dirname (Depends-on): Likewise.
80369         * modules/fnmatch (Depends-on): Likewise.
80370         * modules/fsusage (Depends-on): Likewise.
80371         * modules/fwriteerror (Depends-on): Likewise.
80372         * modules/getcwd (Depends-on): Likewise.
80373         * modules/getloadavg (Depends-on): Likewise.
80374         * modules/hard-locale (Depends-on): Likewise.
80375         * modules/makepath (Depends-on): Likewise.
80376         * modules/mountlist (Depends-on): Likewise.
80377         * modules/nanosleep (Depends-on): Likewise.
80378         * modules/posixtm (Depends-on): Likewise.
80379         * modules/quotearg (Depends-on): Likewise.
80380         * modules/readtokens (Depends-on): Likewise.
80381         * modules/readtokens0 (Depends-on): Likewise.
80382         * modules/readutmp (Depends-on): Likewise.
80383         * modules/save-cwd (Depends-on): Likewise.
80384         * modules/strftime (Depends-on): Likewise.
80385         * modules/userspec (Depends-on): Likewise.
80386         * modules/utimecmp (Depends-on): Likewise.
80387         * modules/xgetcwd (Depends-on): Likewise.
80388         * modules/xnanosleep (Depends-on): Likewise.
80389         * modules/xstrtod (Depends-on): Likewise.
80390         * modules/yesno (Depends-on): Likewise.
80391
80392 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80395         needless checks.
80396
80397 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         Merge from coreutils.  Among other things,
80400         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80401         * lib/fd-safer.c: New file.
80402         * lib/fcntl-safer.h, open-safer.c: Remove.
80403         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80404         * lib/dup-safer.c: Include unistd-safer.h first.
80405         Don't include errno.h.
80406         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80407         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80408         * lib/file-type.c: Rely on file-type.h change.
80409         * lib/getloadavg.c: Include unistd-safer.h.
80410         (getloadavg): Use safer open.
80411         * lib/getusershell.c: Include "stdio-safer.h".
80412         (getusershell): Use safer fopen.
80413         * lib/long-options.c (long_options): Use NULL rather than 0.
80414         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80415         'free'.
80416         * lib/modechange.c: Likewise.
80417         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80418         (MODE_DONE): New constant.
80419         (struct mode_change): Remove 'next' member.
80420         (make_node_op_equals): New function; like the old one of the
80421         same name, except it allocates an array.
80422         (mode_compile, mode_create_from_ref): Use it.
80423         (mode_compile): Allocate result as an array, not a linked list.
80424         Parse octal string ourself, so that we catch mistakes like "+0".
80425         (mode_adjust): Arg is an array, not a linked list.
80426         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80427         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80428         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80429         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80430         Remove.  This is now stat-macros.h's job.
80431         (talloc): Remove.  All callers replaced by xalloc, so that
80432         our invokers don't have to worry about reporting memory failures.
80433         (make_node_op_equals): Remove.
80434         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80435         New constants.
80436         (struct mode_change): Moved here from modechange.h.
80437         (mode_append_entry): Remove.
80438         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80439         apps to have incorrect behavior.  Use simpler algorithm for head
80440         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80441         Detect more invalid usages rather than having somewhat-random behavior.
80442         Don't insert an "a=" action, as that leads to incorrect behavior.
80443         (mode_compile, mode_create_from_ref): Return NULL on error instead
80444         of an enum, since now there's only one way to have an error.  All
80445         callers changed.
80446         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80447         at the correct time.  Simplify calculation of "+u" and its ilk.
80448         Don't mishandle "+X".
80449         (mode_free): Remove "register" and localize decls.
80450         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80451         (struct mode_change): Move to modechange.c; callers don't
80452         need to see this stuff.
80453         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80454         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80455         (mode_change, mode_adjust): Reflect the new signatures noted above.
80456         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80457         that might redefine system include files.
80458         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80459         (my_usleep): Use NULL rather than (void *) 0.
80460         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80461         Use siginterrupt to specify that system calls should be interrupted.
80462         (rpl_nanosleep): Move initialization of suspended closer to call of
80463         my_usleep.
80464         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80465         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80466         (desirable_utmp_entry): New function.
80467         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80468         using x2nrealloc, to simplify logic.
80469         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80470         size calculation.  Do not assume utmp file is a regular file.
80471         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80472         (READ_UTMP_CHECK_PIDS): New constant.
80473         * lib/save-cwd.c: Include unistd-safer.h.
80474         (save_cwd): Use fd_safer.
80475         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80476         [!_LIBC] Include "stat-macros.h" instead.
80477         * lib/unistd-safer.h (fd_safer): New decl.
80478
80479 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * modules/getloadavg (Depends-on): Add unistd-safer.
80482         * modules/getusershell (Depends-on): Add stdio-safer.
80483         * modules/lstat (Depends-on): Remove xalloc.
80484         * modules/mkstemp (Depends-on): Add stat-macros.
80485         * modules/modechange (Depends-on): Remove xstrtol.
80486         Add stat-macros, xalloc.
80487         * modules/save-cwd (Depends-on): Add unistd-safer.
80488         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80489         * modules/unistd-safer (Files): Add lib/fd-safer.c
80490         (Makefile.am): Remove lib_SOURCES.
80491
80492         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80493         Remove fcntl-safer; unistd-safer supersedes it.
80494
80495 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80498         AC_HEADER_STAT.
80499         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80500         (gl_PREREQ_CHOWN): Remove.
80501         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80502         it.  Don't require AC_HEADER_STAT.
80503         (gl_PREREQ_LSTAT): Remove.
80504         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80505         Don't require AC_HEADER_STAT.
80506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80507         (gl_PREREQ_RMDIR): Remove.
80508         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80509         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80510         the stat-macros module a prerequisite.
80511         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80512         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80513         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80514         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80515         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80516         variable names.
80517         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80518         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80519         variable prefixes.
80520         * m4/fcntl-safer.m4: Remove.
80521         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80522         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80523         Invoke gl_PREREQ_FD_SAFER.
80524         (gl_PREREQ_FD_SAFER): New macro.
80525         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80526         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80527         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80528         Remove duplicate call to AC_LIBOBJ(readutmp).
80529         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80530
80531         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80532         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80533
80534 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * MODULES.html.sh (Misc): Add byteswap.
80537
80538 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80539
80540         * modules/getcwd (Depends-on): Add extensions.
80541         * modules/openat (Depends-on): Likewise.
80542
80543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80544
80545         * modules/byteswap: New file.
80546
80547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80548
80549         * m4/byteswap.m4: New file.
80550
80551 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80552
80553         * lib/byteswap_.h: New file.
80554
80555 2005-04-25  Karl Berry  <karl@gnu.org>
80556
80557         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80558
80559 2005-04-25  Albert Chin  <china@thewrittenword.com>
80560
80561         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80562         Toolkit C bug.
80563
80564 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80565
80566         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80567         (func_ln_if_changed): Remove forcibly for no error message
80568         in case file does not exist.
80569
80570 2005-04-19  Simon Josefsson  <jas@extundo.com>
80571
80572         * gnulib-tool (Options): Make --symlink mean --symbolic.
80573
80574 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80575
80576         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80577
80578 2005-04-16  Simon Josefsson  <jas@extundo.com>
80579
80580         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80581
80582 2005-04-15  Simon Josefsson  <jas@extundo.com>
80583
80584         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80585
80586 2005-04-15  Simon Josefsson  <jas@extundo.com>
80587
80588         * gnulib-tool: Rename --symlink to --symbolic.
80589
80590 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80591
80592         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80593         symbolic links to files instead of copying/moving.  Add --aux-dir,
80594         specifying directory relative --dir where auxiliary build tools
80595         are placed.
80596
80597 2005-04-14  Bruno Haible  <bruno@clisp.org>
80598
80599         * modules/allocsa (License): Change to LGPL.
80600         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80601
80602 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80603
80604         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80605         that "UTC +1 second" continues to work.  Problem reported
80606         by Dmitry V. Levin.
80607         (relunit_snumber): New rule.
80608         (relunit): Use it.
80609
80610 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * lib/getdate.y (universal_time_zone_table): New constant.
80613         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80614         universal_time_zone_table.
80615         (lookup_zone): Prefer universal_time_zone_table to
80616         local_time_zone_table, so that "GMT" time stamps are allowed in
80617         London during the summer.  Problem reported by Ian Abbott.
80618
80619 2005-04-12  Jim Meyering  <jim@meyering.net>
80620
80621         * lib/human.c (humblock): Set *options even when returning due to
80622         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80623         warning from gcc-4.
80624
80625 2005-04-09  Jim Meyering  <jim@meyering.net>
80626
80627         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80628         -Wuninitialized: initialize tm0.tm_year.
80629
80630 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80631
80632         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80633         count, since there's no maximum.  All uses changed.
80634         Add member dsts_seen.
80635         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80636         not being INT_MAX.
80637         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80638         Use pc_rels_seen to decide whther a date is absolute.
80639
80640         * lib/getdate.y (number): Don't overwrite year.
80641         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80642         check.
80643
80644 2005-04-02  Simon Josefsson  <jas@extundo.com>
80645
80646         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80647         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80648
80649 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80650
80651         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80652         where no absolute path name can be longer than PATH_MAX.
80653
80654 2005-03-27  Jim Meyering  <jim@meyering.net>
80655
80656         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80657
80658 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80661         "one's complement" -> "ones' complement" in comment, as per Knuth.
80662         "value of type" -> "type or expression" in comment.
80663         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80664
80665 2005-03-26  Jim Meyering  <jim@meyering.net>
80666
80667         Comment nits.
80668         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80669         Correct typos: s/or/of/.
80670
80671 2005-03-26  Jim Meyering  <jim@meyering.net>
80672
80673         * modules/check-include-files: Move to ../ and rename to...
80674         * check-module: ...this.
80675
80676 2005-03-25  Jim Meyering  <jim@meyering.net>
80677
80678         * modules/xvasprintf (Files): Add xalloc.h.
80679
80680 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * modules/gettext (Files): config/config.rpath ->
80683         build-aux/config.rpath
80684         * modules/iconv (Files): Likewise.
80685         Problem reported by Oskar Liljeblad.
80686
80687 2005-03-23  Jim Meyering  <jim@meyering.net>
80688
80689         * modules/check-include-files: New script to check for
80690         missing dependencies, multiple includes, etc.
80691
80692         * modules/c-strtold (Depends-on): Add xalloc.
80693         * modules/c-strtod (Depends-on): Add xalloc.
80694         * modules/hash (Depends-on): Add xalloc.
80695         (Files): Remove lib/xalloc.h.
80696
80697         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80698         * modules/userspec (Files): Add lib/inttostr.h.
80699
80700 2005-03-23  Jim Meyering  <jim@meyering.net>
80701
80702         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80703
80704 2005-03-22  Jim Meyering  <jim@meyering.net>
80705
80706         * modules/stat-macros: New module.
80707         * modules/canonicalize, modules/euidaccess, modules/file-type,
80708         * modules/filemode, modules/lchown, modules/makepath,
80709         * modules/rmdir, modules/stat: Depend on new stat-macros module
80710         rather than listing lib/stat-macros.h manually.
80711         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80712
80713 2005-03-22  Jim Meyering  <jim@meyering.net>
80714
80715         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80716
80717 2005-03-22  Bruno Haible  <bruno@clisp.org>
80718
80719         * config/srclist.txt: Replace target directory 'config' with
80720         'build-aux'.
80721         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80722         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80723         ../build-aux/.
80724
80725 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * modules/chdir-long (Depends-on): Add mempcpy.
80728
80729         * modules/acl, modules/backupfile, modules/c-strtod,
80730         modules/c-strtold, modules/canon-host, modules/canonicalize,
80731         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80732         modules/exclude, modules/exitfail, modules/file-type,
80733         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80734         modules/getdate, modules/getline, modules/getpagesize,
80735         modules/getpass, modules/getugroups, modules/group-member,
80736         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80737         modules/inttostr, modules/long-options, modules/makepath,
80738         modules/md5, modules/memcasecmp, modules/memcoll,
80739         modules/modechange, modules/mountlist, modules/path-concat,
80740         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80741         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80742         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80743         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80744         modules/strftime, modules/strndup, modules/strverscmp,
80745         modules/timespec, modules/unlocked-io, modules/userspec,
80746         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80747         modules/yesno:
80748         Remove lib_SOURCES line from Makefile.am section, as this is now
80749         done automatically by the corresponding Autoconf macro.
80750
80751 2005-03-21  Jim Meyering  <jim@meyering.net>
80752
80753         Changes imported from coreutils.
80754
80755         * lib/cycle-check.c: Don't include xalloc.h.
80756
80757         * lib/path-concat.c: Don't include assert.h.
80758         (path_concat): Remove assertion that would have triggered
80759         for ABASE starting with more than one slash.
80760         Reported by Andreas Schwab.
80761
80762         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80763         properly when ABASE is an absolute file name.
80764         Correct the description of this function.
80765         Include <assert.h>.
80766         Add an assertion and a test driver.
80767         This fixes a bug introduced on 2004-07-02.
80768         Andreas Schwab reported the resulting failure of cp --parents:
80769         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80770
80771 2005-03-21  Jim Meyering  <jim@meyering.net>
80772
80773         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80774         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80775
80776 2005-03-21  Jim Meyering  <jim@meyering.net>
80777         and  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80780         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80781         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80782         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80783         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80784         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80785         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80786         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80787         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80788         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80789         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80790         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80791         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80792         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80793         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80794         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80795         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80796         for these modules.
80797
80798 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80801         (which shouldn't happen), generate nothing instead of returning 0
80802         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80803
80804 2005-03-16  Bruno Haible  <bruno@clisp.org>
80805
80806         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80807         HAVE_LONGLONG_64BIT.
80808
80809 2005-03-16  Bruno Haible  <bruno@clisp.org>
80810
80811         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80812         HAVE_LONGLONG_64BIT.
80813
80814 2005-03-16  Bruno Haible  <bruno@clisp.org>
80815
80816         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80817         HAVE_LONGLONG_64BIT.
80818
80819 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80822         reliably distinguish strftime failure from empty output on POSIX
80823         hosts.
80824
80825 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80828         (iconv_string): Don't guess a size-zero buffer, as that might cause
80829         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80830         result would be 'too large', where 'too large' is (heuristically)
80831         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80832         overflow concerns.  This will prevent some unwanted malloc failures
80833         when the inputs are very large.
80834
80835 2005-03-15  Karl Berry  <karl@gnu.org>
80836
80837         * config/srclist.txt (config.rpath): from gettext.
80838         * config/config.rpath: update.
80839
80840 2005-03-15  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80843         to 'negate'.
80844
80845         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80846         variable.
80847
80848         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80849         results.
80850
80851 2005-03-14  Simon Josefsson  <jas@extundo.com>
80852
80853         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80854         <fx@gnu.org>.
80855
80856 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80857
80858         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80859         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80860         intprops.h.
80861         * lib/strtol.c: Likewise.
80862
80863 2005-03-14  Jim Meyering  <jim@meyering.net>
80864
80865         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80866         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80867         to be nonzero so that we (and caller) can detect the difference
80868         between a valid zero-length expansion and an error return, even
80869         when the underlying strftime fails before writing anything into
80870         that location.
80871
80872 2005-03-14  Bruno Haible  <bruno@clisp.org>
80873
80874         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80875         Update from GNU gettext 0.14.3.
80876
80877 2005-03-10  Jim Meyering  <jim@meyering.net>
80878
80879         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80880
80881 2005-03-10  Jim Meyering  <jim@meyering.net>
80882
80883         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80884         so that this module works on systems without fchdir.
80885
80886 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         Factor int-properties macros into a single file, except for
80889         glibc-related files.
80890         * lib/intprops.h: New file.
80891         * lib/getloadavg.c: Include it instead of limits.h.
80892         (INT_STRLEN_BOUND): Remove.
80893         * lib/human.c: Include intprops.h.
80894         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80895         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80896         302/1000.
80897         * lib/inttostr.h: Include intprops.h instead of limits.h.
80898         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80899         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80900         for consistency with intprops.h.
80901         (time_t_is_integer, twos_complement_arithmetic): Use them.
80902         * lib/sig2str.h: Include <signal.h>, intprops.h.
80903         (INT_STRLEN_BOUND): Remove.
80904         * lib/strftime.c (TYPE_SIGNED): Remove.
80905         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80906         * lib/strtol.c: Adjust comments to match intprops.h.
80907         * lib/userspec.c: Include intprops.h.
80908         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80909         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80910         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80911         instead of rolling our own expressions.
80912         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80913
80914         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80915         instead of int.
80916         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80917         the right thing even if adding 1900 would overflow.  Similarly
80918         for tm_mon + 1 and tm_yday + 1.
80919         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80920         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80921         (DO_SIGNED_NUMBER): New macro.
80922         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80923
80924 2005-03-07  Bruno Haible  <bruno@clisp.org>
80925
80926         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80927
80928 2005-03-07  Bruno Haible  <bruno@clisp.org>
80929
80930         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80931
80932 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80933
80934         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80935         (func_import): Only replace files via --import when they have actually
80936         changed.
80937
80938 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80939
80940         * m4/mmap-anon.m4: New file.
80941         * m4/pagealign_alloc.m4: New file.
80942
80943 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80944             Bruno Haible  <bruno@clisp.org>
80945
80946         * modules/pagealign_alloc: New file.
80947         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80948
80949 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80950             Bruno Haible  <bruno@clisp.org>
80951
80952         * lib/pagealign_alloc.h: New file.
80953         * lib/pagealign_alloc.c: New file.
80954
80955 2005-03-03  Bruno Haible  <bruno@clisp.org>
80956
80957         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80958         Use an all-permissive copyright notice, recommended by RMS.
80959
80960 2005-03-02  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80963         of AIX, the replacement has to be done only after <string.h> is
80964         included, therefore not in config.h. stpncpy.h does the replacement,
80965         and stpncpy.c uses it.
80966
80967 2005-03-02  Bruno Haible  <bruno@clisp.org>
80968
80969         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80970         stpncpy.c uses it.
80971
80972 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80973
80974         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80975         The workaround isn't strictly needed for POSIX conformance, and
80976         it's too much of a pain to configure and maintain.  We'll ask
80977         people to fix their kernels instead.
80978         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80979         (NANOSLEEP_BUG_WORKAROUND): Remove.
80980         (xnanosleep): Remove the workaround.
80981
80982 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80985         Reported by Derek Price.
80986         (Include): Add "timespec.h".
80987
80988         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80989
80990 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80991
80992         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80993         to detect nanosleep bug.
80994
80995 2005-03-01  Bruno Haible  <bruno@clisp.org>
80996
80997         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80998
80999 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * modules/gethrxtime: New file.
81002         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
81003         (Depends-on): Add gethrxtime.
81004         (configure.ac): Add gl_XNANOSLEEP.
81005         (Makefile.am): Remove lib_SOURCES line.
81006
81007 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81008
81009         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
81010         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
81011
81012 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
81015         * lib/timespec.h (gettime): Return void, since it always
81016         succeeds now.  All uses changed.
81017         * lib/gettime.c (gettime): Likewise.
81018         [HAVE_NANOTIME]: Prefer nanotime.
81019         Assume gettimeofday succeeds, as POSIX requires.
81020         Assime time () succeeds, since other code already does.
81021         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
81022         (timespec_subtract): Remove.
81023         (NANOSLEEP_BUG_WORKAROUND): New constant.
81024         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
81025         things considerably.  Use it only on GNU/Linux hosts, since the
81026         workaround shouldn't be needed elsewhere.
81027
81028 2005-02-24  Bruno Haible  <bruno@clisp.org>
81029
81030         * modules/gettext (Files): Add m4/glibc2.m4.
81031
81032 2005-02-24  Bruno Haible  <bruno@clisp.org>
81033
81034         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
81035         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
81036         * m4/progtest.m4:
81037         Update from GNU gettext 0.14.2.
81038         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
81039
81040 2005-02-24  Bruno Haible  <bruno@clisp.org>
81041
81042         * lib/localcharset.c: Update from GNU gettext 0.14.2.
81043         * lib/config.charset: Update from GNU gettext 0.14.2.
81044
81045 2005-02-24  Bruno Haible  <bruno@clisp.org>
81046
81047         * lib/gettext.h: Update from GNU gettext 0.14.2.
81048
81049 2005-02-23  Simon Josefsson  <jas@extundo.com>
81050
81051         * m4/iconvme.m4: New file.
81052
81053 2005-02-23  Jim Meyering  <jim@meyering.net>
81054
81055         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
81056         change.
81057         Thanks to Bruno Haible for catching it.
81058
81059 2005-02-22  Simon Josefsson  <jas@extundo.com>
81060
81061         * modules/iconvme: New file.
81062
81063         * MODULES.html.sh: Add iconvme.
81064
81065 2005-02-22  Simon Josefsson  <jas@extundo.com>
81066
81067         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
81068
81069 2005-02-22  Simon Josefsson  <jas@extundo.com>
81070
81071         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
81072
81073 2005-02-22  Jim Meyering  <jim@meyering.net>
81074
81075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
81076         s/ifndef/ifdef/.
81077
81078 2005-02-20  Neil Conway  <neilc@samurai.com>
81079
81080         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
81081         returned by OSX/Darwin if the specified buffer is not large
81082         enough for the hostname.
81083
81084 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81085
81086         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
81087         pass it to _help, otherwise the latter coredumps trying to
81088         dereference state.root_argp.
81089
81090 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * modules/chdir-long (Depends-on): Add memrchr.
81093         * modules/memrchr (Files): Add lib/memrchr.h.
81094         (Include): "memrchr.h".
81095
81096 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
81099
81100 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * lib/memrchr.h: New file.
81103         * lib/chdir-long.c: Include it.
81104         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
81105         Don't bother including stddef.h.
81106
81107 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
81110         inclusion.
81111         Include <sys/types.h>, for dev_t.
81112         (ME_DUMMY, ME_REMOTE): Move from here....
81113         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
81114         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
81115         Dmitry V. Levin.
81116         Include mountlist.h first, to test the interface.
81117
81118 2005-01-29  Bruno Haible  <bruno@clisp.org>
81119
81120         * lib/progname.c (program_name): Initialize.
81121         Needed when linking statically on MacOS X.
81122
81123 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         Sync from coreutils.
81126         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
81127         (Depends-on): Add c-strtod.
81128         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
81129
81130 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         Sync from coreutils.
81133         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
81134
81135         Remove files that are specific to coreutils.
81136         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
81137
81138 2005-01-28  Bruno Haible  <bruno@clisp.org>
81139
81140         * modules/javacomp: New file.
81141         * MODULES.html.sh (Java): Add javacomp.
81142
81143 2005-01-28  Bruno Haible  <bruno@clisp.org>
81144
81145         * m4/javacomp.m4: New file, from GNU gettext.
81146
81147 2005-01-28  Bruno Haible  <bruno@clisp.org>
81148
81149         * lib/javacomp.sh.in: New file, from GNU gettext.
81150         * lib/javacomp.h: New file, from GNU gettext.
81151         * lib/javacomp.c: New file, from GNU gettext.
81152
81153 2005-01-26  Simon Josefsson  <jas@extundo.com>
81154
81155         * lib/gai_strerror.c: Use GPL in header.
81156
81157 2005-01-26  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/javaexec: New file.
81160         * MODULES.html.sh (Java): Add javaexec.
81161
81162 2005-01-26  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/javaexec.m4: New file, from GNU gettext.
81165
81166 2005-01-26  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/javaexec.sh.in: New file, from GNU gettext.
81169         * lib/javaexec.h: New file, from GNU gettext.
81170         * lib/javaexec.c: New file, from GNU gettext.
81171
81172 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81173
81174         * modules/lchown (Depends-on): Remove lchown.h
81175
81176 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81177
81178         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81179         must be defined if the header file was not found, in order
81180         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81181
81182 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81183
81184         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81185         initializers for struct pentry_state.
81186         (__argp_error): Check return value of __asprintf
81187         (__argp_failure): Translate error message
81188
81189         * lib/argp-parse.c: Removed braces around the expansion of N_()
81190
81191 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81194         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81195         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81196         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81197         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81198         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81199         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81200         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81201         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81202         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81203         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81204         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81205         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81206         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81207         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81208         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81209         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81210         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81211         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81212         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81213         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81214         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81215         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81216         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81217         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81218         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81219         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81220         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81221         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81222         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81223         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81224         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81225         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81226         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81227         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81228         Use an all-permissive copyright notice, recommended by RMS.
81229
81230 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * modules/chdir-long (Depends-on): Remove mempcpy.
81233
81234 2005-01-21  Jim Meyering  <jim@meyering.net>
81235
81236         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81237         same value as for Solaris 9.
81238
81239         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81240         component length.  This included changing the parameter to be
81241         of type `char *' rather than `char const *'.
81242         * lib/chdir-long.h (chdir_long): Update prototype.
81243
81244         * lib/openat.c (fdopendir, fstatat): New functions.
81245         * lib/openat.h: Include headers required for use of DIR and struct
81246         stat.
81247         [AT_SYMLINK_NOFOLLOW]: Define.
81248         (fdopendir, fstatat): Add prototypes.
81249
81250 2005-01-21  Bruno Haible  <bruno@clisp.org>
81251
81252         * modules/classpath: New file.
81253         * MODULES.html.sh (Java): Add classpath.
81254
81255 2005-01-21  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/classpath.h: New file, from GNU gettext.
81258         * lib/classpath.c: New file, from GNU gettext.
81259
81260 2005-01-20  Simon Josefsson  <jas@extundo.com>
81261
81262         * modules/version-etc-fsf: New file.
81263
81264 2005-01-20  Simon Josefsson  <jas@extundo.com>
81265
81266         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81267         * lib/version-etc.c: Remove version_etc_copyright.
81268         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81269         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81270
81271 2005-01-20  Simon Josefsson  <jas@extundo.com>
81272
81273         * lib/base64.h (isbase64): Add.
81274
81275         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81276         using a unsigned prototype, don't inline.
81277         (base64_decode): Use it.
81278
81279 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81282         it.
81283
81284 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81285
81286         * lib/save-cwd.c (save_cwd): Remove code to support the case
81287         where fchdir is missing or flaky.
81288
81289 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81292
81293 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81296         AC_LIBSOURCES now does this.
81297         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81298         with new ullong_max module.
81299
81300 2005-01-19  Bruno Haible  <bruno@clisp.org>
81301
81302         * modules/sh-quote: New file.
81303         * MODULES.html.sh (Executing programs): Add sh-quote.
81304
81305 2005-01-19  Bruno Haible  <bruno@clisp.org>
81306
81307         * lib/sh-quote.h: New file, from GNU gettext.
81308         * lib/sh-quote.c: New file, from GNU gettext.
81309
81310 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         Merge from coreutils.
81313         * m4/ullong_max.m4: New file.
81314         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81315         (gl_MACROS): Assume localeconv exists.
81316
81317 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         Merge changes from coreutils, as described below in several
81320         changelogs dated today.
81321
81322         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81323         (O_DIRECTORY): Remove; not needed here, since "." must be
81324         a directory.  All uses removed.
81325         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81326         universal on Suns, and we also need to test for IRIX.
81327         Revamp code to use 'if' rather than '#if'.
81328         Avoid unnecessary comparison of cwd->desc to 0.
81329
81330         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81331         for known valid error numbers rather than observed invalid ones.
81332
81333 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * modules/ullong_max: New file.
81336
81337         * modules/chdir-long, modules/openat: New files.
81338         * modules/save-cwd (Depends-on): Depend on chdir-long.
81339         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81340
81341 2005-01-18  Jim Meyering  <jim@meyering.net>
81342
81343         Merge from coreutils.
81344         * m4/chdir-long.m4, m4/openat.m4: New files.
81345         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81346         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81347         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81348         is sane and DOES follow symlinks.  Besides, testing 20 different
81349         systems found no broken chown implementations.
81350         Prompted by a change in rsync's copy of this macro.
81351         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81352
81353         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81354
81355         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81356         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81357         NULL-means-set-to-current-time semantics.
81358         Remove temporary file immediately, rather than waiting
81359         for configure's at-exit trap code to do it.
81360
81361 2005-01-18  Jim Meyering  <jim@meyering.net>
81362
81363         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81364
81365         * lib/utimens.c (futimens): Account for the fact that futimes
81366         can also fail with errno == ENOSYS or errno == ENOENT.
81367         Patch from Dmitry V. Levin.
81368
81369         Change the name of the robust chdir function from chdir to chdir_long.
81370         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81371         (restore_cwd): Use chdir_long, not chdir.
81372         * lib/chdir-long.c: Renamed from chdir.c.
81373         * lib/chdir-long.h: Renamed from chdir.h.
81374         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81375         Hurd.
81376
81377 2005-01-18  Bruno Haible  <bruno@clisp.org>
81378
81379         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81380         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81381         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81382         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81383         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81384         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81385         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81386         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81387         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81388         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81389         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81390         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81391         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81392         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81393         Use an all-permissive copyright notice, recommended by RMS.
81394
81395 2005-01-18  Bob Proulx  <bob@proulx.com>
81396
81397         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81398         simplify offsetof() macro construct to avoid compile failure with
81399         native HP-UX 11.0 ANSI C compiler.
81400
81401 2005-01-17  Bruno Haible  <bruno@clisp.org>
81402
81403         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81404         redundant because stpncpy.m4 takes care of it.
81405
81406 2005-01-17  Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81409
81410 2005-01-17  Bruno Haible  <bruno@clisp.org>
81411
81412         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81413         used.
81414
81415 2005-01-17  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/fwriteerror.h (fwriteerror): Change specification to include
81418         fclose.
81419         * lib/fwriteerror.c: Include <stdbool.h>.
81420         (fwriteerror): At the end, close the file stream. Record whether
81421         stdout was already closed.
81422
81423 2005-01-17  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/execute.c (environ): Declare if needed.
81426         * lib/pipe.c (environ): Likewise.
81427         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81428
81429 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81430
81431         * modules/argp: Depend on vsnprintf
81432
81433 2005-01-10  Jim Meyering  <jim@meyering.net>
81434
81435         * modules/closeout (Depends-on): Add atexit.
81436
81437 2005-01-06  Bruno Haible  <bruno@clisp.org>
81438
81439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81440
81441 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81442
81443         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81444         definitions to be after all include files, to avoid collisions.
81445         Problem reported by Bob Proulx.
81446
81447 2005-01-04  Jim Meyering  <jim@meyering.net>
81448
81449         Changes imported from coreutils.
81450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81451         as the mkstemp template, use a temporary directory and an
81452         8.3-friendly template to avoid trouble on systems like DJGPP.
81453         Reported by Juan M. Guerrero via Stepan Kasal.
81454         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81455         close. Remove the temporary directory right away, rather than waiting
81456         for configure's at-exit trap code to do it.
81457         Suggestion from Stepan Kasal.
81458
81459 2005-01-01  Simon Josefsson  <jas@extundo.com>
81460
81461         * gnulib-tool: Print #include directives when --import'ing.
81462
81463 2004-12-28  Simon Josefsson  <jas@extundo.com>
81464
81465         * tests/test-base64.c: Include required header files.  Remove
81466         unused variables.
81467
81468 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81469
81470         * modules/error (Depends-on): Remove gettext.
81471
81472 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81475         not needed.  This removes a dependency on the gettext module.
81476         [defined _LIBC]: Do not include <libintl.h>; not needed.
81477
81478 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81481         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81482
81483 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81484
81485         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81486         HAVE_DECL_STRTOLD.
81487
81488 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * modules/getdate (Depends-on): Remove alloca-opt.
81491
81492 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81493
81494         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81495
81496 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81497
81498         * lib/argp-parse.c: Include <stddef.h>.
81499         (alignof, alignto): New macros.
81500         (parser_init): Don't assume that void * is aligned sufficiently
81501         for struct option.
81502
81503         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81504         need to extend the stack.
81505         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81506         large.
81507
81508 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81509
81510         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81511
81512 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81513
81514         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81515         (2004-10-24) change.  Apparently this was a false alarm.
81516
81517         * modules/getdate: Depend on alloca-opt, not alloca.
81518
81519 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81522         Remove now-obsolete comment about AIX.
81523         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81524         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81525         (YYMAXDEPTH): New macro.
81526
81527 2004-12-18  Simon Josefsson  <jas@extundo.com>
81528
81529         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81530
81531 2004-12-18  Bruno Haible  <bruno@clisp.org>
81532
81533         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81534
81535 2004-12-18  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/fatal-signal.c (fatal_signals): Make non-const.
81538         (init_fatal_signals): New function.
81539         (uninstall_handlers, install_handlers): Ignore signals that were set to
81540         SIG_IGN.
81541         (at_fatal_signal): Call init_fatal_signals.
81542         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81543         SIG_IGN.
81544         Reported by Paul Eggert.
81545
81546 2004-12-18  Bruno Haible  <bruno@clisp.org>
81547
81548         * doc/alloca.texi: New file.
81549         * doc/alloca-opt.texi: New file.
81550
81551 2004-12-17  Jim Meyering  <jim@meyering.net>
81552
81553         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81554         Otherwise, install-sh could exit with improper exit status when
81555         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81556
81557 2004-12-16  Simon Josefsson  <jas@extundo.com>
81558
81559         * tests/test-base64.c: Add license.
81560
81561 2004-12-15  Stepan Kasal  <address@hidden>
81562
81563         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81564
81565 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         * modules/getcwd (Files): Add m4/d-ino.m4.
81568         Suggested by Mark D. Baushke.
81569
81570 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81571
81572         * lib/getdate.y (textint): New member "negative".
81573         (time_zone_hhmm): New function.
81574         Expect 14 shift-reduce conflicts, not 13.
81575         (o_colon_minutes): New rule.
81576         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81577         (yylex): Set the "negative" member of signed numbers.
81578
81579 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         * doc/getdate.texi (Time of day items, Time zone items):
81582         Describe new formats +00:00, UTC+00:00.
81583
81584 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81587         spurious "-l"s.  Problem reported by Stepan Kasal.
81588
81589 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81592         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81593
81594 2004-12-04  Simon Josefsson  <jas@extundo.com>
81595
81596         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81597         Vandoorselaere <yoann@prelude-ids.org>.
81598
81599 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81600
81601         Changes imported from coreutils.
81602         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81603         exist.
81604         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81605
81606 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         Changes imported from coreutils.
81609         * lib/hard-locale.c: Assume <locale.h> exists.
81610         Include "strdup.h".
81611         (GLIBC_VERSION): New macro.
81612         (hard_locale): Assume setlocale exists.
81613         Rewrite to avoid #ifdef.
81614         Use strdup rather than malloc + strcpy.
81615         * lib/human.c: Assume <locale.h> exists.
81616         (human_readable): Assume localeconv exists.
81617
81618 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * modules/hard-locale (Depends-on): Add strdup.
81621
81622 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81623
81624         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81625         convert T2, not T.  (Imported from libc.)
81626
81627 2004-11-30  Simon Josefsson  <jas@extundo.com>
81628
81629         * modules/restrict (License): Change to LGPL.
81630
81631 2004-11-30  Simon Josefsson  <jas@extundo.com>
81632
81633         * m4/restrict.m4: Add copyright and copying conditions.
81634
81635 2004-11-30  Simon Josefsson  <jas@extundo.com>
81636
81637         * m4/base64.m4: New file.
81638
81639 2004-11-30  Simon Josefsson  <jas@extundo.com>
81640
81641         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81642         base64.
81643
81644         * tests/test-base64.c: New file.
81645
81646         * modules/base64: New file.
81647
81648 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81651         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81652
81653         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81654
81655 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81656
81657         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81658         (__getcwd.c): Don't restore errno; glibc doesn't.
81659         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81660         first, falling back to our code only if its results look suspicious.
81661         Ensure that the resulting buffer is only as large as necessary.
81662
81663         * lib/readutmp.c: Include readutmp.h first.
81664         Include <errno.h>, since readutmp.h no longer does that.
81665         * lib/readutmp.h: Don't include <errno.h>,
81666         <sys/param.h>, <time.h>; not needed to establish interface.
81667         (errno): Remove decl.
81668         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81669         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81670         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81671
81672 2004-11-28  Simon Josefsson  <jas@extundo.com>
81673
81674         * lib/base64.h, base64.c: New file.
81675
81676 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81679
81680 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81683         (Depends-on): Remove pathmax, same.  Add mempcpy.
81684         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81685         (Makefile.am): Append getcwd.h to lib_SOURCES.
81686         (Include): Add getcwd.h.
81687         (Maintainer): Change from Jim Meyering to "all, glibc",
81688         since getdate now uses intended-for-glibc code.
81689         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81690         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81691
81692 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81695         HP's ANSI C compiler.
81696         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81697         Declaring int functions causes warnings on some modern systems and
81698         shouldn't be needed to compile on ancient ones.
81699         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81700         defined.
81701
81702         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81703         with the following changes.
81704         (__set_errno): Parenthesize properly.
81705         Include <stdbool.h>.
81706         (MIN, MAX, MATCHING_INO): New macros.
81707         (__getcwd): Define with prototype, not K&R form.
81708         Use heuristics to allocate default buffer on stack if possible.
81709         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81710         behavior, and to avoid the PATH_MAX limit when computing
81711         ../../../../...
81712         Use MATCHING_INO to compare inode number to file.
81713         Check for arithmetic overflow in size calculations.
81714         Fix bug in reallocation of dot array that caused getcwd to fail
81715         on directories nested deeper than 75.
81716         Be more careful about saving errno on error.
81717         Do not use realloc; use only free+malloc, as this is a bit
81718         more flexible and avoids a needless copy operation.
81719         Do not inspect st_dev and st_ino for symbolic links; POSIX
81720         doesn't specify the latter.
81721         Check for closedir errors.
81722         Avoid needless casts.
81723         Use "#ifdef weak_alias" around weak_alias, to be like other
81724         glibc code.
81725         The following changes to getcwd.c have effect only when used in
81726         gnulib; they have no effect inside glibc proper.
81727         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81728         as alloca isn't used.
81729         (alloca, __alloca): Likewise.
81730         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81731         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81732         unconditionally, as gnulib assumes C89 or better.
81733         Do not include <sys/param.h>.
81734         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81735         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81736         better.
81737         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81738         Include <dirent.h> in a way that is compatible with modern Autoconf.
81739         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81740         New macros, if not already defined.
81741         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81742         Use "_LIBC", not "defined _LIBC", for consistency.
81743         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81744         a mempcpy module.
81745         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81746         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81747         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81748         credit only to Jim Meyering and adjust the copyright dates.
81749         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81750         <stdlib.h>, <unistd.h>, "pathmax.h".
81751         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81752         (INITIAL_BUFFER_SIZE): Remove.
81753         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81754
81755 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81756
81757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81758         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81759         Use the _ONCE methods, for efficiency.
81760         Check for fcntl.h.  In test program, include <errno.h>
81761         and <fcntl.h> if available.  Remove old K&R cruft from
81762         test program.  Check for common errors in GNU/Linux,
81763         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81764         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81765         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81766         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81767         name accordingly.
81768         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81769         accommodate new getcwd.c.
81770         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81771         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81772         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81773         that's all we need now.
81774
81775 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81776
81777         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81778         argp-parse.c depends on getopt internals, that means we should
81779         always use our getopt, to be on the safe side.
81780         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81781         order not to spoil the result of an eventual previous invocation
81782         of gl_GETOPT_SUBSTITUTE.
81783
81784 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81785
81786         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81787         redefinition warnings. To avoid them, include the defines
81788         in `#if !defined __need_getopt ... #endif'. The only place
81789         where __getopt_argv_const is used is in definitions
81790         of getopt_long and getopt_long_only below, which are as well
81791         protected by `#ifndef __need_getopt'.
81792         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81793         __need_getopt after including <stdio.h> and <unistd.h> These
81794         headers might have defined it.
81795
81796 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81799
81800 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81801
81802         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81803         (futimens): New function, which uses futimes if available.
81804         (futimens, utimens): Support timespec==NULL, with same semantics
81805         as utime and utimens.
81806         * lib/utimens.h (futimens): New decl.
81807
81808 2004-11-23  Jim Meyering  <jim@meyering.net>
81809
81810         * lib/getopt_.h: Remove trailing blanks.
81811
81812 2004-11-23  Jim Meyering  <jim@meyering.net>
81813
81814         * lib/__fpending.c: Add comment.
81815
81816 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * modules/canonicalize (Depends-on): Add xreadlink.
81819         Problem reported by James Youngman.
81820
81821 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81824         New macros.
81825         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81826         optopt): Use them instead of invoking ## directly; otherwise, the
81827         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81828
81829 2004-11-19  Bruno Haible  <bruno@clisp.org>
81830
81831         * lib/strtok_r.c: Move comments from here...
81832         * lib/strtok_r.h: ... to here.
81833
81834 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81837         implementations that mishandle size_t overflow.
81838
81839 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81840
81841         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81842         might fail.  Problem reported by Yoann Vandoorselaere.
81843         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81844         implementations that mishandle size_t overflow.
81845
81846 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81847
81848         * modules/canon-host (Depends-on): Add strdup.
81849
81850 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81851
81852         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81853
81854 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/canon-host.c: Include "strdup.h".
81857         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81858         Use strdup instead of malloc/strcpy to duplicate strings.
81859
81860         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81861         (human_space_before_unit): New constant.
81862         * lib/human.c (human_readable): Support it.
81863
81864         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81865         (xgetcwd): Set errno correctly when failing.
81866         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81867         the failure is actually due to a PATH_MAX problem.
81868
81869         Further getopt changes to make it more likely that glibc will
81870         buy the changes back.
81871         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81872         (getopt): Use it, so to preserve glibc semantic
81873         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81874         when compiling for libc.
81875         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81876         (getopt_long, getopt_long_only): Use it.
81877
81878         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81879         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81880         (getopt): Argv is now char * const *, as per standard.
81881         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81882         not char *__getopt_argv_const *.
81883         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81884         _getopt_long_only_r): Likewise.
81885         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81887         _getopt_long_r, _getopt_long_only_r): Likewise.
81888         * lib/getopt_.h (__getopt_argv_const): Remove.
81889         (getopt): Argv is now char * const *, as per standard.
81890
81891         * lib/getdate.y (tORDINAL): New token.
81892         (day, relunit): Allow it for relative times.
81893         (relative_time_table): Use tORDINAL for ordinals.
81894
81895 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81896
81897         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81898         Document that "second" isn't allowed as an ordinal number.
81899
81900 2004-11-16  Jim Meyering  <jim@meyering.net>
81901
81902         * modules/closeout (Depends-on): Add fpending.
81903
81904 2004-11-15  Jim Meyering  <jim@meyering.net>
81905
81906         * lib/closeout.c: Include "__fpending.h" once again.
81907         Include <stdbool.h>.
81908         (close_stdout): Don't fail just because stdout was closed initially,
81909         since some programs don't write to stdout in the normal course of
81910         operation (other than --version and --help), and we don't want this
81911         function to make e.g. `touch file >&-' fail.
81912         But do fail if it was closed and someone has tried to write to it.
81913         E.g., `printf foo >&-' must fail.
81914
81915 2004-11-13  Jim Meyering  <jim@meyering.net>
81916
81917         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81918
81919 2004-11-12  Simon Josefsson  <jas@extundo.com>
81920
81921         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81922         small doc fix is still pending.
81923
81924 2004-11-11  Simon Josefsson  <jas@extundo.com>
81925
81926         * modules/strtok_r: New file.
81927
81928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81929         strtok_r.
81930
81931 2004-11-11  Simon Josefsson  <jas@extundo.com>
81932
81933         * m4/strtok_r.m4: New file.
81934
81935         * m4/getopt.m4: Replace opterr.
81936
81937 2004-11-11  Simon Josefsson  <jas@extundo.com>
81938
81939         * lib/strtok_r.h, strtok_r.c: New file.
81940
81941 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81944         of replacing opterr, getopt, etc.  This should handle the
81945         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81946
81947 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81950         we can stop lying to compilers about the constness of argv when we
81951         are compiled outside glibc.
81952         (getopt, getopt_long, getopt_long_only): Use it.
81953         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81954         _getopt_internal, getopt): Likewise.
81955         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81956         _getopt_long_only_r): Likewise.
81957         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81958         _getopt_long_r, _getopt_long_only_r): Likewise.
81959
81960         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81961         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81962         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81963         the other external symbols.
81964         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81965         declaration, since the above renaming now works around collisions.
81966
81967 2004-11-11  Jim Meyering  <jim@meyering.net>
81968
81969         * lib/linebreak.c: Remove trailing blanks.
81970         * lib/alloca_.h: Likewise.
81971         * lib/acosl.c: Likewise.
81972         * lib/euidaccess.c: Likewise.
81973         * lib/allocsa.h: Likewise.
81974
81975 2004-11-10  Simon Josefsson  <jas@extundo.com>
81976
81977         * m4/getaddrinfo.m4: New file.
81978
81979 2004-11-10  Simon Josefsson  <jas@extundo.com>
81980
81981         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81982
81983 2004-11-10  Simon Josefsson  <jas@extundo.com>
81984
81985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81986         getaddrinfo.
81987
81988         * modules/getaddrinfo: New file.
81989
81990 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81993
81994 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         * lib/mktime.c (SHR): New macro, which is a portable
81997         substitute for >> that should work even on Crays.
81998         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81999         Problem reported by Mark D. Baushke in
82000         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
82001         * lib/getdate.y (SHR): Likewise.
82002         (tm_diff): Use it.
82003         * lib/strftime.c (SHR): Likewise.
82004         (tm_diff): Use it.
82005         * lib/quotearg.c (struct quoting_options): Use unsigned int for
82006         quote_these_too, so that right shifts are well defined.  All uses
82007         changed.
82008
82009 2004-11-10  Jim Meyering  <jim@meyering.net>
82010
82011         Ensure that no close failure goes unreported.
82012         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
82013         return early when it seems there's nothing to flush.
82014         Don't include __fpending.h.
82015
82016 2004-11-10  Jim Meyering  <jim@meyering.net>
82017
82018         * modules/closeout (Depends-on): Remove fpending.
82019
82020 2004-11-10  Jim Meyering  <jim@meyering.net>
82021
82022         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
82023
82024 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
82027         gl_FUNC_STRFTIME.
82028         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
82029         and AC_REQUIRE when possible, to avoid duplicate checks.
82030         Check for <wchar.h>.
82031
82032 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
82035
82036 2004-11-09  Bruno Haible  <bruno@clisp.org>
82037
82038         * m4/sockpfaf.m4: New file.
82039
82040 2004-11-05  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
82043         Reported by Mark D. Baushke <mdb@cvshome.org>.
82044
82045 2004-11-04  Bruno Haible  <bruno@clisp.org>
82046
82047         2004-09-11  Bruno Haible  <bruno@clisp.org>
82048                 * allocsa.valgrind: New file.
82049         2004-02-06  Bruno Haible  <bruno@clisp.org>
82050                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
82051                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
82052                 Reported by Christopher Seip <chris.seip@hp.com>.
82053
82054 2004-11-04  Bruno Haible  <bruno@clisp.org>
82055
82056         * modules/allocsa (Files): Add lib/allocsa.valgrind.
82057         (Makefile.am): Distribute it.
82058
82059 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
82062         with errno == ERANGE if the buffer is too small.
82063         Problem reported by Mark D. Baushke.
82064
82065 2004-11-03  Albert Chin  <china@thewrittenword.com>
82066             Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
82069         equivalent, substitute $ac_type for equivalent type rather than
82070         blindly using uint32_t *always* which won't work if uint32_t is not
82071         available.  Define _UINT32_T to work around typedef of uint32_t if
82072         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
82073         2.5.1.
82074
82075 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * m4/jm-macros.m4: Sync from coreutils.
82078         (gl_MACROS): Check for mbrlen, for pathchk.
82079         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
82080
82081 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82082
82083         * lib/xreadlink.c (MAXSIZE): New macro.
82084         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
82085         size does not exceed MAXSIZE.  Avoid cast.
82086         As suggested by Mark D. Baushke in
82087         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
82088         if readlink fails with buffer size just under MAXSIZE, try again
82089         with MAXSIZE.
82090
82091 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82092
82093         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
82094
82095 2004-11-02  Derek R. Price  <derek@ximbiot.com>
82096         and  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
82099         (get_date): Overparenthesize to avoid GCC warning.
82100
82101 2004-11-02  Bruno Haible  <bruno@clisp.org>
82102
82103         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
82104         returns void.
82105
82106 2004-11-02  Bruno Haible  <bruno@clisp.org>
82107
82108         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
82109         function returns void.
82110
82111 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
82114         fflush_unlocked, flockfile, funlockfile, funlockfile,
82115         fputs_unlocked, putc_unlocked.
82116
82117 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82120         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
82121         already declared.
82122
82123 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         * modules/getdate (Files): Add doc/getdate.texi.
82126         (Depends-on): Add setenv, xalloc.
82127
82128 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         * lib/getdate.y: Add support for TZ="foo" within a date string.
82131         Fix some bugs near time_t boundaries.  Reject dates with
82132         out-of-range components, e.g., "Sept 31".
82133         Include <stdlib.h>, "setenv.h", "xalloc.h".
82134         (ISDIGIT_LOCALE): Remove; unused.
82135         Note that the TZ and time functions used here are not reentrant.
82136         (mktime_ok, get_tz): New functions.
82137         (TZBUFSIZE): New constant.
82138         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
82139         This requires that we sometimes generate our own TZ="XXX..." setting.
82140
82141 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * doc/getdate.texi: New file, from coreutils with modifications for
82144         the new TZ parsing.
82145
82146 2004-10-27  Derek R. Price  <derek@ximbiot.com>
82147
82148         * lib/mktime.c (not_equal_tm): Remove redundant check.
82149
82150 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * modules/regex (lib_SOURCES): Add regex.c.
82153         Reported by James Youngman in
82154         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82155
82156 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * lib/getdate.y: Use Bison 1.875 features, and some minor
82159         code cleanups.  This change does not affect semantics.
82160         Don't include <stdlib.h>; no longer needed.
82161         Don't include unlocked-io.h; only the "#if TEST" code uses
82162         stdio, and performance isn't crucial there.
82163         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82164         Bison 1.875 features as described below.
82165         All uses of "PC." replaced by "pc->".
82166         (YYSTYPE): Add a forward declaration.
82167         (yylex, yyerror): Use full prototypes in forward decls.
82168         Use "%pure-parser" rather than obsolescent "%pure_parser".
82169         Use %parse-param and %lex-param instead of obsolescent
82170         YYPARSE_PARAM and YYLEX_PARAM.
82171         (meridian_table, month_and_day_table, time_units_table,
82172         relative_time_table, time_zone_table, military_table,
82173         lookup_zone, lookup_word, get_date):
82174         Use NULL instead of 0 where appropriate.
82175         (to_hour): Avoid abort (), to avoid a dependency on
82176         stdlib.h.
82177         (yyerror, yylex): Now accepts parser_control * arg.
82178         (main) [TEST]: Use '\0' rather than 0 for char.
82179
82180 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82183
82184 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82187         It's now the caller's responsibility to handle the case where
82188         !HAVE_GETPAGESIZE && !defined getpagesize.
82189
82190         * lib/mktime.c (leapyear): Arg is long int, not int.
82191
82192 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82195
82196 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82197
82198         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82199         missing.  Problem reported by James Youngman.
82200
82201 2004-10-16  Simon Josefsson  <jas@extundo.com>
82202
82203         * gnulib-tool: Fix comments.  Fix parse problem.
82204         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82205
82206 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82207
82208         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82209         implementation of getopt_long.  Problem reported by Alexander Taler in:
82210         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82211
82212 2004-10-15  Bruno Haible  <bruno@clisp.org>
82213
82214         * gnulib-tool: Untabify. Initialize supplied_libname.
82215         (func_usage): More homogenous output.
82216         (func_modules_transitive_closure, func_modules_to_filelist,
82217         func_emit_lib_Makefile_am): New functions.
82218         (func_import): New function, extracted from big case statement. Use
82219         func_get_license, func_modules_transitive_closure,
82220         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82221         opt_lgpl. Don't use test -a, as it's not portable.
82222         (func_create_testdir): Use func_modules_transitive_closure,
82223         func_modules_to_filelist, func_emit_lib_Makefile_am.
82224
82225 2004-10-15  Bruno Haible  <bruno@clisp.org>
82226
82227         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82228
82229 2004-10-15  Bruno Haible  <bruno@clisp.org>
82230
82231         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82232         the portions belonging to each module.
82233         Suggested by Derek Robert Price <derek@ximbiot.com>.
82234
82235 2004-10-12  Simon Josefsson  <jas@extundo.com>
82236
82237         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82238         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82239         to real functions.
82240
82241 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82242
82243         * modules/vsnprintf: New file.
82244
82245 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82246
82247         * m4/vsnprintf.m4: New file.
82248
82249 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82250
82251         * lib/vsnprintf.h: New file.
82252         * lib/vsnprintf.c: New file.
82253
82254 2004-10-11  Bruno Haible  <bruno@clisp.org>
82255
82256         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82257         vsnprintf.
82258
82259 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82260
82261         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82262
82263 2004-10-07  Bruno Haible  <bruno@clisp.org>
82264
82265         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82266         fits into the provided buffer.
82267
82268 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82269
82270         * lib/diacrit.c, diacrit.h: Add GPL notice.
82271
82272         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82273         notice.
82274         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82275         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82276         This avoids a potential constant-folding bug.
82277
82278 2004-10-05  Bruno Haible  <bruno@clisp.org>
82279
82280         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82281         for the declaration of strsep.
82282
82283 2004-10-05  Bruno Haible  <bruno@clisp.org>
82284
82285         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82286
82287 2004-10-04  Simon Josefsson  <jas@extundo.com>
82288
82289         * modules/memmem: New file.
82290         * tests/test-memmem.c: New file.
82291         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82292
82293 2004-10-04  Simon Josefsson  <jas@extundo.com>
82294
82295         * m4/memmem.m4: New file.
82296
82297 2004-10-04  Simon Josefsson  <jas@extundo.com>
82298
82299         * lib/memmem.h: New file.
82300         * lib/memmem.c: New file, taken from glibc.
82301
82302 2004-10-04  Simon Josefsson  <jas@extundo.com>
82303
82304         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82305         '#ifdef USE_UNLOCKED_IO'.
82306
82307 2004-10-04  Simon Josefsson  <jas@extundo.com>
82308
82309         * config/srclist.txt: Add memmem from glibc.
82310
82311 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82312
82313         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82314
82315         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82316         modules/exclude, modules/getdate, modules/getline,
82317         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82318         modules/getusershell, modules/linebuffer, modules/md5,
82319         modules/mountlist, modules/posixtm, modules/readtokens,
82320         modules/readutmp, modules/regex, modules/sha1,
82321         modules/version-etc, modules/yesno:
82322         Remove dependency on unlocked-io.
82323
82324 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82327
82328         * m4/unlocked-io.m4: Add copyright notice.
82329         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82330
82331 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82332
82333         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82334         * lib/xmalloc.c (xmemdup): Likewise.
82335         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82336         XFREE): Remove these long-obsolescent macros.
82337         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82338         * lib/xstrdup.c: Remove.
82339
82340         * lib/regex.c (re_comp): Cast gettext return value to char *,
82341         Problem reported by Martin Neitzel via Mark D. Baushke.
82342
82343 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82346         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82347         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82348         regex.c, sha1.c, version-etc.c, yesno.c:
82349         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82350         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82351         the includer's responsibility.
82352
82353         Sync from coreutils.
82354
82355         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82356         points to the start of a string, as the C Standard says the
82357         resulting behavior is undefined.
82358
82359         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82360         simple -> simple_backups, numbered_existing ->
82361         numbered_existing_backups, numbered -> numbered_backups
82362         to avoid shadowing problems.  All uses changed.
82363         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82364         * lib/backupfile.c (check_extension, numbered_backup):
82365         Rename locals to avoid shadowing 'basename'.
82366         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82367         once.
82368
82369         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82370         * lib/.cvsignore: Add getopt.h.
82371
82372 2004-10-04  Bruno Haible  <bruno@clisp.org>
82373
82374         * modules/README: New file.
82375         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82376         not a module.
82377
82378 2004-10-02  Jim Meyering  <jim@meyering.net>
82379
82380         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82381
82382 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82383
82384         * modules/strsep: New file.
82385
82386 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82387
82388         * m4/strsep.m4: New file.
82389
82390 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82391
82392         * lib/strsep.h: New file.
82393         * lib/strsep.c: New file.
82394
82395 2004-10-01  Simon Josefsson  <jas@extundo.com>
82396
82397         * lib/snprintf.c (snprintf): Handle size==0.
82398
82399 2004-10-01  Simon Josefsson  <jas@extundo.com>
82400             Bruno Haible  <bruno@clisp.org>
82401
82402         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82403         (snprintf): Declare 'args'.
82404
82405 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82406
82407         * lib/snprintf.c: Remove comments as to why each header is needed.
82408
82409 2004-10-01  Bruno Haible  <bruno@clisp.org>
82410
82411         * MODULES.html.sh: Add strsep.
82412
82413 2004-09-30  Simon Josefsson  <jas@extundo.com>
82414
82415         * modules/snprintf: New file.
82416
82417 2004-09-30  Simon Josefsson  <jas@extundo.com>
82418
82419         * m4/snprintf.m4: New file.
82420
82421 2004-09-30  Simon Josefsson  <jas@extundo.com>
82422
82423         * lib/snprintf.h, lib/snprintf.c: New files.
82424
82425 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82426
82427         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82428         (hol_entry_help): Never translate an empty string.
82429         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82430         * lib/argp.h (OPTION_NO_TRANS): New option.
82431
82432 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         * modules/argp (Maintainer): Replace Simon Josefsson
82435         by Sergey Poznyakoff.
82436
82437 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82440         changes merged back into glibc.
82441
82442 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82445
82446 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82447
82448         * lib/xvasprintf.c: Include xalloc.h.
82449         (xvasprintf): Use xalloc_die, not xmalloc_die.
82450
82451 2004-09-29  Bruno Haible  <bruno@clisp.org>
82452
82453         * modules/alloca-opt: New file, derived from modules/alloca.
82454         * modules/allocsa: Depend on alloca-opt instead of alloca.
82455         * modules/setenv: Likewise.
82456         * modules/vasnprintf: Likewise.
82457         * MODULES.html.sh: Add alloca-opt.
82458
82459 2004-09-28  Simon Josefsson  <jas@extundo.com>
82460
82461         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82462         LGPL, and to replace license template from GPL to LGPL.
82463
82464 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82465
82466         * modules/dummy: Change license to LGPL.
82467
82468 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82469
82470         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82471
82472 2004-09-24  Simon Josefsson  <jas@extundo.com>
82473
82474         * modules/minmax (License): Change from GPL to LGPL.
82475
82476 2004-09-23  Simon Josefsson  <jas@extundo.com>
82477
82478         * gnulib-tool (--import): Typo.
82479
82480 2004-09-23  Simon Josefsson  <jas@extundo.com>
82481
82482         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82483
82484 2004-09-22  Bruno Haible  <bruno@clisp.org>
82485
82486         * modules/*: Add 'License' field.
82487         * gnulib-tool: Accept --extract-license option.
82488         (func_get_license): New function.
82489
82490 2004-09-21  Bruno Haible  <bruno@clisp.org>
82491
82492         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82493         Reported by Simon Josefsson.
82494
82495 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82498         gl_AC_TYPE_LONG_LONG.
82499
82500 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82501
82502         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82503
82504 2004-09-18  Simon Josefsson  <jas@extundo.com>
82505         and  Paul Eggert  <eggert@cs.ucla.edu>
82506
82507         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82508         calls with autoreconf.  Define GL_LIB.
82509
82510 2004-09-14  Karl Berry  <karl@gnu.org>
82511
82512         * config/srclist.txt: unsync setenv.c, sigh.
82513
82514 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82515
82516         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82517         Problem reported by Bruno Haible in:
82518         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82519
82520 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * config/srclist.txt: Comment out argp-pvh.c.
82523
82524 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82525
82526         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82527         in case some system header has #define'd it.  Problem reported by
82528         Soeren D. Schulze in
82529         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82530
82531 2004-09-09  Karl Berry  <karl@gnu.org>
82532
82533         * regex.[ch]: delete from the root.  These were supposed to be
82534                 synced with emacs cvs, but this has not happened for about
82535                 a year, and anyway nothing else uses emacs regex.[ch].
82536                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82537                 lib/regex[.ch] is untouched.
82538
82539 2004-09-09  Bruno Haible  <bruno@clisp.org>
82540
82541         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82542
82543 2004-09-09  Bruno Haible  <bruno@clisp.org>
82544
82545         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82546         modifications.
82547         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82548
82549 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82550
82551         * modules/xvasprintf: New file.
82552         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82553
82554 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82555
82556         * lib/xvasprintf.h: New file.
82557         * lib/xvasprintf.c: New file.
82558         * lib/xasprintf.c: New file.
82559
82560 2004-09-08  Bruno Haible  <bruno@clisp.org>
82561
82562         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82563
82564 2004-09-08  Bruno Haible  <bruno@clisp.org>
82565
82566         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82567         length is > INT_MAX.
82568         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82569         more.
82570
82571 2004-09-08  Bruno Haible  <bruno@clisp.org>
82572
82573         * lib/stdint_.h: New file, taken from GNU clisp.
82574
82575 2004-09-08  Bruno Haible  <bruno@clisp.org>
82576             Oskar Liljeblad  <oskar@osk.mine.nu>
82577
82578         * modules/stdint: New file.
82579         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82580
82581 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82582
82583         Import from coreutils.
82584         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82585         strings on unbounded length.  alloca's performance benefits aren't
82586         that important here.
82587         (V_STRDUP): Remove.
82588         (parse_with_separator): New function, with most of the internals
82589         of the old parse_user_spec.  Allow user to omit both user and group,
82590         for compatibility with FreeBSD.
82591         Clone only the user name, not the entire spec.
82592         Do not set *uid, *gid unless entirely successful.
82593         Avoid memory leak in some failing cases.
82594         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82595         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82596         (parse_user_spec): Rewrite to use parse_with_separator.
82597
82598 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         * modules/userspec: Don't depend on alloca.
82601
82602 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82605
82606 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82607
82608         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82609         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82610         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82611
82612 2004-08-16  Simon Josefsson  <jas@extundo.com>
82613
82614         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82615         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82616         Add --dry-run for --import.
82617         Let user provided command line parameters override configure.ac
82618         settings.
82619
82620 2004-08-12  Simon Josefsson  <jas@extundo.com>
82621
82622         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82623         as discussed with Paul Eggert in threads rooted at
82624         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82625         and
82626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82627         Before, the test was empty, and relied on ELIDE_CODE in source
82628         code.)
82629         (gl_PREREQ_GETOPT): New macro.
82630         (gl_GETOPT): Use them.
82631
82632 2004-08-12  Simon Josefsson  <jas@extundo.com>
82633
82634         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82635         * lib/getopt_.h: Renamed from getopt.h.
82636
82637 2004-08-12  Simon Josefsson  <jas@extundo.com>
82638
82639         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82640         Change default library name from libfoo to libgnu.
82641         Now, if you have a configure.ac that says:
82642                 gl_SOURCE_BASE(gl)
82643                 gl_M4_BASE(gl/m4)
82644                 gl_MODULES(error getopt etcetera)
82645                 gl_INIT
82646         you can import all you need by running:
82647                 ../gnulib/gnulib-tool --import
82648
82649         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82650         (Makefile.am): Rewrite, use logic from argz.
82651         (Include): Use <getopt.h> instead of "getopt.h".
82652
82653 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * modules/argp (Files): Add m4/unlocked-io.m4.
82656         (Depends-on): Add extensions.
82657
82658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82661         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82662         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82663         Check for program_invocation_name, program_invocation_short_name,
82664         flockfile, funlockfile, features.h, _getopt_long_only_r.
82665
82666 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82669         its complicated substitute.
82670         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82671         and program_invocation_name.
82672         (__argp_basename) [!_LIBC]: Remove; the only use was
82673         replaced by its body.
82674         (__argp_short_program_name): Change condition from
82675         !defined __argp_short_program_name to
82676         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82677         to match argp-namefrob.h.
82678         (__argp_failure): Don't assume strerror_r returns char *.
82679         * lib/argp-parse.c (N_): Define unconditionally.
82680         (argp_default_options): Fill out initializers with 0 to avoid
82681         gcc warnings.
82682
82683 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82686         getopt1.c.
82687
82688 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         Merge from coreutils.
82691
82692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82693
82694         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82695         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82696
82697 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         Merge from coreutils.
82700
82701         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82702         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82703         for Reliant Unix 5.43.
82704
82705         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82706         (union fooround): Use uintmax_t, not long int.
82707         The rest is a merge from libc:
82708         [defined _LIBC]: Include <shlib-compat.h>.
82709         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82710
82711         * lib/settime.c (settime): Recode to avoid warning with
82712         Sun Forte C 6U2.
82713
82714         * lib/strverscmp.c: Convert to UTF-8.
82715
82716 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82717
82718         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82719         m4/uintmax_t.m4.
82720
82721 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * modules/xalloc-die: New file.
82724         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82725
82726         * modules/md5 (Files): Add m4/uint32_t.m4.
82727         * modules/sha1: Renamed from modules/sha.
82728         (Files):
82729         Rename lib/sha.h to lib/sha1.h.
82730         Rename lib/sha.c to lib/sha1.c.
82731         Rename m4/sha.m4 to m4/sha1.m4.
82732         (lib_SOURCES): Likewise.
82733         (configure.ac): Rename gl_SHA to gl_SHA1.
82734         (Include): sha.h -> sha1.h.
82735
82736 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82737
82738         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82739         * m4/sha1.m4: Renamed from sha.m4.
82740         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82741
82742 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * lib/obstack.h (obstack_empty_p):
82745         Don't assume that chunk->contents is suitably aligned.
82746         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82747         Likewise. Problem reported by Benno in
82748         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82749
82750         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82751         readable.  This could be improved further but it'd take some work.
82752
82753 2004-08-08  Simon Josefsson  <jas@extundo.com>
82754
82755         * modules/xgethostname (Depends-on): Remove exit and error (not
82756         used).
82757
82758         * modules/getpass-gnu: Add getpass.h.
82759         (Depends-on): Add stdbool.
82760         * modules/getpass: Add getpass.h.
82761
82762 2004-08-08  Simon Josefsson  <jas@extundo.com>
82763
82764         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82765         Check getpass declaration.
82766
82767 2004-08-08  Simon Josefsson  <jas@extundo.com>
82768
82769         * lib/xgethostname.c: Don't include error.h (not used).
82770
82771         * lib/getpass.h: Add.
82772         * lib/getpass.c: Include getpass.h first.
82773
82774 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * lib/xalloc-die.c: New file.
82777         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82778         All uses removed.
82779         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82780         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82781         xalloc-die.c.
82782         (_, N_, xalloc_die): Move to xalloc-die.c.
82783         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82784         so that we needn't mess with xalloc_msg_memory_exhausted.
82785
82786         * lib/sha1.h: Renamed from sha.h.
82787         (SHA1_H): Renamed from _SHA_H.
82788         (sha1_ctx): Renamed from sha_ctx.
82789         (sha1_init_ctx): Renamed from sha_init_ctx.
82790         (sha1_process_block): Renamed from sha_process_block.
82791         (sha1_process_bytes): Renamed from sha_process_bytes.
82792         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82793         (sha1_read_ctx): Renamed from sha_read_ctx.
82794         (sha1_stream): Renamed from sha_stream.
82795         (sha1_buffer): Renamed from sha_buffer.
82796         * lib/sha1.c: Likewise; renamed from sha.c.
82797         Do not include <sys/types.h>.
82798         Include <stddef.h> rather than <stdlib.h>.
82799
82800 2004-08-08  Bruno Haible  <bruno@clisp.org>
82801
82802         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82803         FILESYSTEM_PREFIX_LEN.
82804         * lib/progreloc.c: Likewise.
82805         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82806
82807 2004-08-06  Simon Josefsson  <jas@extundo.com>
82808
82809         * modules/progname (Depends-on): Don't depend on stdbool.
82810
82811 2004-08-06  Simon Josefsson  <jas@extundo.com>
82812
82813         * modules/getsubopt: New file.
82814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82815         getsubopt.
82816
82817 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82818
82819         More merge from coreutils.
82820
82821         * m4/utimens.m4, m4/utimecmp.m4: New files.
82822         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82823         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82824         prereq.m4, sha.m4: Import changes from coreutils.
82825
82826 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82827
82828         More merge from coreutils.
82829         * modules/raise, modules/readtokens0, modules/utimens:
82830         * modules/utimecmp, module/xnanosleep: New files.
82831         * modules/strftime: Add lib/strftime.h.
82832         Change include from <time.h> to "strftime.h".
82833         * modules/yesno: Add lib/yesno.h.
82834         * modules/backupfile: Remove lib/addext.c.
82835         * modules/euidaccess: Add stat-macros.h.
82836         * modules/canonicalize, modules/euidaccess,
82837         modules/filemode, modules/lchown, modules/makepath,
82838         modules/rmdir, modules/stat: Likewise.
82839
82840 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         Merge from tar.
82843         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82844         SIZE_MAX is a valid preprocessor constant.
82845         (__argp_basename): Change from "#ifndef _LIBC"
82846         to "#ifndef __argp_short_program_name", so that
82847         we don't compile these functions for tar.
82848
82849         More merges from coreutils.
82850         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82851         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82852         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82853         * lib/addext.c: Remove; no longer needed.
82854         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82855         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82856         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82857         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82858         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82859         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82860         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82861         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82862         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82863         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82864         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82865         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82866         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82867         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82868         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82869         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82870         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82871         Import changes from coreutils.
82872
82873 2004-08-05  Simon Josefsson  <jas@extundo.com>
82874
82875         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82876
82877 2004-08-05  Simon Josefsson  <jas@extundo.com>
82878
82879         * m4/getsubopt.m4: New file.
82880
82881 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82882
82883         Merge from coreutils.
82884
82885         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82886         * m4/getcwd-path-max.m4: New files.
82887
82888         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82889         FILESYSTEM_PREFIX_LEN ->
82890         FILE_SYSTEM_PREFIX_LEN.
82891         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82892         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82893         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82894         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82895
82896         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82897         prerequisite modules now handle the DOS stuff.
82898         Don't check for unistd.h.
82899
82900 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82901
82902         Merge from coreutils.
82903
82904         * lib/.gdb-history: Remove; this doesn't belong here.
82905
82906         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82907         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82908         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82909         * lib/getcwd.c: New files.
82910
82911         * lib/dirname.h: Include <stdbool.h>.
82912         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82913         for consistency with POSIX terminology.  All uses changed.
82914         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82915         (strip_trailing_slashes): Use bool for booleans.
82916         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82917
82918         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82919         sometimes returns a positive errno value even when it succeeds.
82920         (print_errno_message) [!LIBC]: Fall back on strerror if
82921         __strerror_r fails.
82922
82923         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82924         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82925         (longest_relative_suffix): New function.
82926         (path_concat): Use it.  Assume first argument is not NULL.
82927         Port to DOS.  Omit redundant separators.
82928         Report an error instead of returning NULL.
82929         Use mempcpy instead of memcpy.
82930         (xpath_concat): Remove: not declared or used.
82931
82932         * lib/same.h: Include <stdbool.h>
82933         (same_name): Return bool, not int.
82934         * lib/same.c (same_name): Likewise.
82935         (errno): Don't declare; we assume C89 or better now.
82936
82937         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82938         if not already defined.
82939
82940         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82941         * lib/dup-safer.c (errno): Likewise.
82942
82943 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         Merge from coreutils.
82946         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82947         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82948         * modules/path-concat: Don't depend on strdup.
82949
82950 2004-08-03  Simon Josefsson  <jas@extundo.com>
82951
82952         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82953         * lib/progname.h: Don't include stdbool.h.
82954
82955 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82958         * MODULES.html.sh (func_all_modules): Remove fatal.
82959
82960 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82963
82964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82965
82966         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82967         working.
82968
82969 2004-08-02  Simon Josefsson  <jas@extundo.com>
82970
82971         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82972         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82973         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82974
82975 2004-08-01  Simon Josefsson  <jas@extundo.com>
82976
82977         * lib/xgetdomainname.c: Include stdlib.h, for free().
82978
82979 2004-07-19  Bruno Haible  <bruno@clisp.org>
82980
82981         * MODULES.html.sh (func_all_modules): Add dummy.
82982
82983 2004-07-16  Simon Josefsson  <jas@extundo.com>
82984
82985         * modules/dummy: New file.
82986
82987 2004-07-16  Simon Josefsson  <jas@extundo.com>
82988
82989         * lib/dummy.c: New file.
82990
82991 2004-07-16  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/backupfile.h: Add extern "C" for C++.
82994         * lib/closeout.h: Likewise.
82995         * lib/copy-file.h: Likewise.
82996         * lib/findprog.h: Likewise.
82997         * lib/full-write.h: Likewise.
82998         * lib/pathname.h: Likewise.
82999         * lib/progname.h: Likewise.
83000         * lib/stpcpy.h: Likewise.
83001         * lib/stpncpy.h: Likewise.
83002         * lib/strcase.h: Likewise.
83003         * lib/strstr.h: Likewise.
83004         * lib/xalloc.h: Likewise.
83005
83006         * lib/mbswidth.h: Add extern "C" for C++.
83007         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
83008
83009 2004-07-13  Robert Millan  <robertmh@gnu.org>
83010
83011         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
83012
83013 2004-07-09  Simon Josefsson  <jas@extundo.com>
83014
83015         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
83016         failed without this.)
83017
83018 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83019
83020         * modules/chown (Files): Add lib/fchown-stub.c, since
83021         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
83022
83023 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83024
83025         * lib/fchown-stub.c: New file.
83026
83027 2004-06-24  Jim Meyering  <jim@meyering.net>
83028
83029         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
83030
83031 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         * modules/argz: Omit "#include".
83034
83035         * MODULES.html.sh (func_all_modules): Add calloc, to match
83036         2004-06-01 addition of calloc module.
83037
83038 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         * m4/argz.m4: New file, which is autoupdated from libtool.
83041
83042 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
83045         libtool.
83046
83047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * config/srclist-update: Don't insist on "USA." before the
83050         close-comment, as libtool omits the period and puts the */ on a
83051         separate line.
83052         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
83053         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
83054
83055 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
83056
83057         * modules/argz: New file.
83058         * MODULES.html.sh (func_all_modules): Add argz.
83059
83060 2004-06-12  Jim Meyering  <jim@meyering.net>
83061         and  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * modules/hash (Files): Add lib/xalloc.h.
83064         * modules/pipe (Depends-on): Add wait-process.
83065         * modules/stat (Depends-on): Add xalloc.
83066         * modules/userspec (Files): Add lib/userspec.h.
83067         * modules/xstrto
83068
83069         Upgrade from gettext-0.13.
83070         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
83071         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
83072         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
83073
83074 2004-06-10  Jim Meyering  <jim@meyering.net>
83075
83076         * lib/calloc.c: New file.
83077
83078 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83079
83080         * lib/getdate.y (yylex): Allow space between sign and number.
83081         Problem reported by Dan Jacobson.
83082
83083 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83084
83085         Merge from coreutils CVS.
83086
83087         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
83088         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
83089         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
83090         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
83091         xstrtol.m4: Fix copyright date and/or serial number.
83092
83093         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
83094         See if we need an fchown replacement.
83095         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
83096         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
83097         and use the replacement function if we detect either defect.
83098
83099         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
83100         gl_UTIMECMP.
83101
83102 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83103         and  Jim Meyering  <jim@meyering.net>
83104
83105         Merge from coreutils CVS.
83106
83107         * lib/stat-macros.h: New file, with contents from file-type.h
83108         and coreutils' system.h.
83109         * lib/file-type.c: Include "stat-macros.h".
83110         * lib/file-type.h (file_type): Move all macro definitions to new file,
83111         stat-macros.h.
83112
83113         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
83114         Wrap old code with this conditional.
83115         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
83116         function that does not dereference symlinks.
83117         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
83118
83119         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
83120         dependency problems.
83121         (xreadlink): Accept new arg SIZE, for efficiency.
83122         All decls and uses changed.
83123         * lib/xreadlink.h: Include <stddef.h>, for size_t.
83124
83125         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
83126         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
83127
83128         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
83129         sysexits.h.
83130
83131 2004-06-01  Jim Meyering  <jim@meyering.net>
83132
83133         * m4/calloc.m4: New file.
83134
83135 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
83138         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
83139         Also, fix a typo in a diagnostic.
83140
83141 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
83144         or AC_FUNC_REALLOC.
83145
83146 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83147
83148         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83149         macros to be defined.
83150         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83151         the allocator returns NULL because the requested size is zero.
83152
83153 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83156         var.  Add comment explaining why libc still defines it.  This
83157         merges the following patch from glibc:
83158         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83159
83160 2004-05-20  Andreas Schwab  <schwab@suse.de>
83161
83162         * m4/free.m4: Replace free if it not known to work, not the other
83163         way round.
83164
83165 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83166
83167         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83168         present in glibc since revision 1.1 of this file.
83169         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83170         obstack_alignment_mask, obstack_alloc, obstack_base,
83171         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83172         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83173         obstack_grow0, obstack_init, obstack_int_grow,
83174         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83175         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83176         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83177         nonexistent functions.
83178
83179 2004-05-18  Karl Berry  <karl@gnu.org>
83180
83181         * config/srclist.txt: break link for vasnprintf.c.
83182
83183 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         Port obstack to the AS/400, where pointers are 16 bytes wide and
83186         you cannot cast an integer to a valid pointer.  This patch is
83187         currently waiting to be integrated into glibc; see
83188         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83189
83190         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83191         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83192         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83193         (struct obstack): temp member is now a union of a pointer and
83194         an integer, instead of an integer.  All integer uses changed.
83195         This does not affect the physical layout of struct obstack,
83196         except on hosts (like the AS/400) where the size or alignment of
83197         void * is greater than that of ptrdiff_t.
83198         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83199         __STDC__)]: Store temporary in pointer member of union, not
83200         integer member.
83201         * lib/obstack.c: Include <stddef.h>, for offsetof.
83202         (struct fooalign): Remove; it doesn't need a name.
83203         (union fooround): Change double to long double, and add void *.
83204         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83205         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83206         not a macro.  Hence the values are always int; so remove all
83207         casts-to-int in uses.
83208
83209 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83212         we can get this patch merged into glibc.
83213
83214 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83215             Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * m4/argp: Depend on alloca.
83218
83219 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83220             Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83223         freecoding.
83224
83225 2004-05-17  Bruno Haible  <bruno@clisp.org>
83226
83227         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83228         precision that consists of a '.' followed by an empty digit string.
83229         Patch by Tor Lillqvist <tml@iki.fi>.
83230
83231 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83234         for backward compatibility with older code.  We need our own
83235         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83236         it under some other name, and our alloca.h will define it.
83237
83238 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83239             Derek Price  <derek@ximbiot.com>
83240
83241         * lib/alloca.c: Include <alloca.h>, to get our interface.
83242         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83243         include <alloca.h> first.  Use C89 prototype for alloca; this
83244         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83245         Use #elif for simplicity, since we can assume C89 now.
83246         Don't try to source the system alloca.h since it will not be found
83247         and to prevent recursively including its replacement.
83248         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83249         * lib/regex.c: Likewise.
83250
83251 2004-05-16  Derek Price  <derek@ximbiot.com>
83252             Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         getline cleanup.  This changes the getndelim2 API: both order of
83255         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83256         no delimiter).
83257
83258         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83259         interface does that.
83260         (getline): Always use getdelim, so that we don't have two
83261         copies of this code.
83262         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83263         if available.
83264         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83265         (GETNDELIM2_MAXIMUM): New macro.
83266         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83267         instead of the old practice of delim2==0.  All callers changed.
83268         Return -1 on overflow, instead of returning junk.
83269         Do not set *linesize unless allocation succeeds.
83270         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83271         that we include sys/types.h.
83272         * lib/getnline.h: Likewise.
83273         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83274         (getndelim2): Reorder arguments.
83275         * lib/getnline.c (getnline, getndelim):
83276         Don't discard the NMAX argument.
83277         (getnline): Invoke getndelim, to avoid code duplication.
83278         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83279         of (size_t) -1 by callers of the getnline family.
83280
83281 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83282
83283         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83284         Check for gettimeofday.
83285         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83286         Check for settimeofday, stime.
83287
83288 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * lib/nanosleep.c (suspended): Change its type from int to
83291         sig_atomic_t volatile.
83292         (first_call): Make it private to rpl_nanosleep, and have it
83293         be zero initially as that's a bit faster.
83294         (my_usleep): Round up fractional times instead of truncating them,
83295         as this is the usual meaning for 'sleep'.
83296
83297         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83298         doesn't work.
83299         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83300         (ENOSYS): Define if not defined.
83301         (settime): Fall back on stime if it exists and settimeofday fails.
83302         But don't bother with fallbacks if a method fails with errno == EPERM.
83303
83304 2004-05-11  Jim Meyering  <jim@meyering.net>
83305
83306         Prior to this change, the save_cwd caller required read access to the
83307         current directory on most systems (ones with the fchdir function).
83308
83309         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83310         fails, try write-only, and finally, resort to using xgetcwd.
83311
83312 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83313
83314         * lib/obstack.c, obstack.h: Import changes from libc.
83315
83316 2004-04-28  Bruno Haible  <bruno@clisp.org>
83317
83318         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83319         also implicitly appends .exe to executables.
83320         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83321         accepts Windows pathnames.
83322         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83323         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83324         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83325         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83326         Reported by Derek Robert Price <derek@ximbiot.com>.
83327
83328 2004-04-21  Karl Berry  <karl@gnu.org>
83329
83330         * config/srclist.txt (localcharset.c): break sync.
83331
83332 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83333
83334         * m4/host-os.m4: Add a copyright notice.
83335
83336 2004-04-20  Jim Meyering  <jim@meyering.net>
83337
83338         Change UTILS_ to gl_ in AC_DEFINE'd names.
83339         Change utils_- and jm_-prefixed variables, too.
83340         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83341         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83343
83344         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83345         Don't emit trailing blanks.
83346         Also rename jm_-prefixed variables to have gl_ prefix.
83347
83348         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83349         Also rename jm_-prefixed variables to have gl_ prefix.
83350
83351         * m4/jm-macros.m4: Reflect the renamings.
83352         * m4/prereq.m4: Likewise.
83353
83354 2004-04-20  Jim Meyering  <jim@meyering.net>
83355
83356         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83357         memory.
83358
83359 2004-04-20  Jim Meyering  <jim@meyering.net>
83360             Bruno Haible  <bruno@clisp.org>
83361
83362         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83363         memory when realloc fails.
83364
83365 2004-04-19  Jim Meyering  <jim@meyering.net>
83366
83367         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83368         now that readutmp.c may call `free (0)'.
83369
83370 2004-04-19  Bruno Haible  <bruno@clisp.org>
83371
83372         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83373         * m4/inttypes_h.m4: Likewise.
83374         * m4/stdint_h.m4: Likewise.
83375         * m4/intmax_t.m4: Likewise.
83376         * m4/uintmax_t.m4: Likewise.
83377
83378 2004-04-18  Jim Meyering  <jim@meyering.net>
83379
83380         * m4/prereq.m4: Don't forbid jm_ prefix.
83381
83382         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83383         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83384         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83385         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83386         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83387         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83388         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83389         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83390         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83391         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83392         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83393         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83394         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83395         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83396         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83397         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83398         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83399         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83400         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83401
83402 2004-04-18  Jim Meyering  <jim@meyering.net>
83403
83404         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83405         failure, don't leak memory and do call END_UTMP_ENT.
83406
83407 2004-04-16  Jim Meyering  <jim@meyering.net>
83408
83409         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83410         coreutils' stat program.
83411         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83412
83413 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83414
83415         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83416         C89.
83417         (CHAR_BIT): Remove, since we assume C89.
83418         Include <stdint.h> if available, as per current Autoconf CVS advice.
83419
83420 2004-03-31  Jim Meyering  <jim@meyering.net>
83421
83422         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83423         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83424         * m4/xalloc.m4: Likewise.
83425
83426 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83427
83428         Merge from coreutils.
83429
83430         * m4/inttostr.m4: New file.
83431         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83432         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83433         Require gl_CLOCK_TIME.
83434         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83435
83436 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83437
83438         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83439         not bool, to be more consistent with Unix conventions.
83440         Suggested by Bruno Haible.
83441
83442         Merge from coreutils.
83443
83444         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83445         * lib/umaxtostr.c: New files.
83446
83447         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83448         the usual <time.h> dance.
83449         (get_date): Change signature to support fractional time stamps.
83450         All callers changed.
83451         * lib/getdate.y: Include "getdate.h" first, as we can now
83452         assume C89 and don't need to worry about 'const'.
83453         Similarly, include "unlocked-io.h" near start, not in middle.
83454         Include <limits.h>.
83455         (textint.value): Use long int rather than int.
83456         (textint.digits): Use size_t rather than int.
83457         (BILLION, LOG10_BILLION): New constants.
83458         (parser_control): New member rel_ns.  Members day_ordinal,
83459         time_zone, month, day, hour, minutes, rel_year, rel_month,
83460         rel_day, rel_hour, rel_minutes, rel_seconds
83461         are now long int, not int.  Member seconds is now struct timespec,
83462         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83463         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83464         not int.
83465         (%union.intval): Now long int, not int.
83466         New member timespec.
83467         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83468         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83469         (spec): Now is a timespec or an item list.
83470         (timespec, items): New nonterminals.
83471         (time, rel, relunit, number, get_date):
83472         Add support for fractional seconds.
83473         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83474         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83475         (to_hour): First arg is now long int, not int.
83476         (to_year): Returns long int, not int.
83477         Don't treat year -70 like 70.
83478         (tm_diff): Returns long int, not int.
83479         (lookup_word): Use bool instead of int when appropriate.
83480         (yylex): Use size_t for count, not int.
83481         Detect overflow when parsing large integer constants.
83482         Add support for fractions.
83483         (get_date): Make pointers 'const' if possible.
83484         Use more-portable code to detect integer overflow.
83485         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83486         Don't use ctime; it's not reliable if the year has >4 digits.
83487
83488         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83489         This is for compatibility with BSD.
83490
83491         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83492         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83493         From coreutils' system.h.
83494
83495         * lib/userspec.c: Don't include "posixver.h".
83496         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83497         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83498         compatible extension.  Simplify code by removing a boolean int
83499         that was always nonzero if a string was nonnull.
83500
83501 2004-03-30  Jim Meyering  <jim@meyering.net>
83502
83503         Merge from coreutils.
83504
83505         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83506         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83507         on some systems one must include <grp.h> before it.
83508         Reported by Christian Krackowizer.
83509
83510 2004-03-30  Jim Meyering  <jim@meyering.net>
83511
83512         Merge from coreutils.
83513
83514         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83515
83516         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83517         an empty input stream.
83518
83519         * lib/readtokens.c: Include <stdbool.h>.
83520         (readtoken): Use `size_t' rather than int/long.
83521         All callers adjusted.
83522         Use `bool' rather than `int' where appropriate.
83523         Use memset rather than an explicit loop.
83524         Use x2nrealloc rather than xrealloc.
83525         Allow the use of `\0' as a delimiter.
83526         (readtokens): Likewise.
83527         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83528
83529 2004-03-30  Jim Meyering  <jim@meyering.net>
83530
83531         * m4/realloc.m4: Remove file, since now it does no more than
83532         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83533         the `configure.ac' section of module/realloc.
83534         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83535
83536 2004-03-30  Bruno Haible  <bruno@clisp.org>
83537
83538         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83539         nonnull.
83540
83541 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83542
83543         Merge changes to getloadavg.c from coreutils and Emacs.
83544
83545         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83546         Define to an expression, not to the empty string.
83547         Include cloexec.h and xalloc.h.
83548         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83549         Use set_cloexec_flag rather than rolling our own.
83550         * lib/cloexec.c, lib/cloexec.h: New files.
83551
83552 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83553
83554         * m4/cloexec.m4: New file.
83555
83556 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83557
83558         * lib/getopt.h: Sync with libc CVS.
83559
83560 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83561             Bruno Haible  <bruno@clisp.org>
83562
83563         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83564         mbswidth.
83565
83566 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83567             Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/mbswidth.h: Include <wchar.h> only if
83570         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83571         <wchar.h>.
83572         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83573
83574 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83575
83576         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83577         Sync with libc CVS.
83578         * lib/getopt_int.h: New file, also synced from libc.
83579
83580 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83581
83582         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83583         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83584         Bring back getopt.c, getopt.h, getopt1.c.
83585
83586 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83587
83588         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83589         All uses changed.  Check for sa_sigaction member; this fixes
83590         a bug first reported by Jason Andrade in
83591         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83592
83593 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83594
83595         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83596         '#if' expressions.  Unlike the code it replaces, it does not
83597         depend on (defined _SC_PAGESIZE).  However, it does depend on
83598         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83599         first reported by Jason Andrade in
83600         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83601
83602 2004-02-25  Simon Josefsson  <jas@extundo.com>
83603
83604         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83605
83606 2004-02-25  Simon Josefsson  <jas@extundo.com>
83607
83608         * lib/strdup.h: New file.
83609         * lib/strdup.c: Include it.
83610         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83611         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83612
83613 2004-02-23  Karl Berry  <karl@gnu.org>
83614
83615         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83616         (from fencepost.gnu.org:/gd/gnuorg).
83617
83618 2004-02-23  Karl Berry  <karl@gnu.org>
83619
83620         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83621         * config/srclist.txt: add maintain/standards documents.
83622
83623 2004-02-18  Bruno Haible  <bruno@clisp.org>
83624
83625         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83626         Reported by Derek Robert Price <derek@ximbiot.com>.
83627
83628 2004-02-16  Karl Berry  <karl@gnu.org>
83629
83630         * config/mkinstalldirs, install-sh: update from automake.
83631
83632 2004-02-06  Karl Berry  <karl@gnu.org>
83633
83634         * m4/po.m4: update from gettext 0.14.1.
83635
83636 2004-02-06  Karl Berry  <karl@gnu.org>
83637
83638         * lib/config.charset: update from gettext 0.14.1.
83639
83640 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83641
83642         Add comments and code, prompted by suggestions from Bruno Haible
83643         for sh-quote.
83644         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83645         describing the enum quoting_style values.
83646         * lib/quotearg.c (quotearg_alloc): New function.
83647         (quotearg_buffer_restyled): Treat lone { and } as special.
83648         Treat = as special.  Work around bug with older shells
83649         that "see" a '\' that is really the 2nd byte of a multibyte char.
83650         Quote empty string with shell_quoting_style.
83651
83652 2004-02-03  Bruno Haible  <bruno@clisp.org>
83653
83654         * m4/pipe.m4: New file, from GNU gettext.
83655
83656 2004-02-03  Bruno Haible  <bruno@clisp.org>
83657
83658         * lib/pipe.h: New file, from GNU gettext.
83659         * lib/pipe.c: New file, from GNU gettext.
83660
83661 2004-01-27  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/execute.m4: New file, from GNU gettext.
83664
83665 2004-01-27  Bruno Haible  <bruno@clisp.org>
83666
83667         * lib/execute.h: New file, from GNU gettext.
83668         * lib/execute.c: New file, from GNU gettext.
83669         * lib/w32spawn.h: New file, from GNU gettext.
83670
83671 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83672
83673         Merge from diffutils.
83674
83675         * lib/file-type.c (file_type): Add typed memory objects.
83676         * lib/file-type.h (S_TYPEISTMO): New macro.
83677
83678         * lib/c-stack.h (c_stack_action): Remove argv argument.
83679         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83680         (die): Don't calculate message unless segv_action returns.
83681         (get_stack_location, min_address_from_argv, max_address_from_argv,
83682         volatile stack_base, volatile_stack_size): Remove.
83683         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83684         that every segmentation violation is a stack overflow.  (Ouch!)
83685         See Debian bug 136249 (still outstanding) for more info about why
83686         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83687
83688 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83689
83690         Exit-status fix from coreutils.
83691
83692         Use exit_failure consistently in place of EXIT_FAILURE,
83693         so that program exit statuses are consistent on failure.
83694
83695         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83696         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83697         * lib/argmatch.h: Comment fix to match the above.
83698         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83699         Now a macro referring to exit_failure, instead of a separate
83700         variable.  Include "exitfail.h" to get it.
83701         * lib/xstrtol.h: Include "exitfail.h".
83702         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83703
83704         * lib/long-options.c (parse_long_options): Use prototype
83705         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83706         for clarity.
83707
83708 2004-01-21  Jim Meyering  <jim@meyering.net>
83709
83710         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83711         so as not to conflict with a different-sized __mktime_internal
83712         function in GNU libc.
83713         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83714         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83715
83716 2004-01-20  Karl Berry  <karl@gnu.org>
83717
83718         * config/config.guess: update from config.
83719
83720         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83721
83722 2004-01-20  Bruno Haible  <bruno@clisp.org>
83723
83724         Safer stack allocation.
83725         * lib/setenv.c: Include allocsa.h.
83726         (alloca): Remove fallback definition.
83727         (freea): Remove macro.
83728         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83729         instead of freea.
83730
83731 2004-01-20  Bruno Haible  <bruno@clisp.org>
83732
83733         * m4/eealloc.m4: New file, from GNU gettext.
83734
83735 2004-01-20  Bruno Haible  <bruno@clisp.org>
83736
83737         * m4/allocsa.m4: New file, from GNU gettext.
83738
83739 2004-01-20  Bruno Haible  <bruno@clisp.org>
83740
83741         * lib/xallocsa.h: New file, from GNU gettext.
83742         * lib/xallocsa.c: New file, from GNU gettext.
83743
83744 2004-01-20  Bruno Haible  <bruno@clisp.org>
83745
83746         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83747
83748 2004-01-20  Bruno Haible  <bruno@clisp.org>
83749
83750         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83751         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83752         specially.
83753
83754 2004-01-20  Bruno Haible  <bruno@clisp.org>
83755
83756         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83757         patch.
83758
83759 2004-01-20  Bruno Haible  <bruno@clisp.org>
83760
83761         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83762
83763 2004-01-20  Bruno Haible  <bruno@clisp.org>
83764
83765         * lib/eealloc.h: New file.
83766
83767 2004-01-20  Bruno Haible  <bruno@clisp.org>
83768
83769         * lib/binary-io.h: Avoid warnings on Cygwin.
83770
83771 2004-01-20  Bruno Haible  <bruno@clisp.org>
83772
83773         * lib/allocsa.h: New file, from GNU gettext.
83774         * lib/allocsa.c: New file, from GNU gettext.
83775
83776 2004-01-18  Karl Berry  <karl@gnu.org>
83777
83778         * doc/gpl.texi, doc/lgpl.texi: new files.
83779
83780 2004-01-18  Karl Berry  <karl@gnu.org>
83781
83782         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83783         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83784
83785 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83786
83787         Merge from coreutils.
83788
83789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83790         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83791         (gl_DEFAULT_POSIX2_VERSION): Move
83792         the documentation from 'configure' into 'config.hin',
83793         so that 'configure --help' isn't burdened by it and
83794         we don't have to worry about its formatting there.
83795         Reword the documentation so that it's more succinct
83796         and can be run together into a single paragraph.
83797         * m4/same.m4 (gl_SAME): Check for pathconf.
83798
83799 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83800
83801         Merge from coreutils.
83802
83803         * lib/posixver.c: Include posixver.h.
83804
83805         * lib/same.c: Include <stdbool.h>, <limits.h>.
83806         (_POSIX_NAME_MAX): Define if not defined.
83807         (MIN): New macro.
83808         (same_name): If file names are silently truncated, report
83809         that the file names are the same if they are the same after
83810         the silent truncation.
83811
83812         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83813         conversion function.
83814         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83815         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83816         longer needed.
83817
83818 2004-01-15  Jim Meyering  <jim@meyering.net>
83819
83820         Merge from coreutils.
83821
83822         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83823         if no library is required.
83824         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83825         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83826         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83827         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83828         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83829         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83830         value, $ac_cv_search_crypt, if it's "none required".
83831         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83832         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83833         not gl_FUNC_GETLOADAVG.
83834         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83835         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83836
83837 2004-01-15  Jim Meyering  <jim@meyering.net>
83838
83839         Merge from coreutils.
83840
83841         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83842         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83843         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83844
83845         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83846         optional configure-time default.
83847
83848         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83849
83850         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83851
83852 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83853
83854         Merge from coreutils.
83855
83856         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83857         value, $ac_cv_search_nanosleep, if it's "none required".
83858
83859 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83860
83861         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83862         with like-named macro in fnmatch.c.
83863         (EXT): Use an internal constant instead.
83864
83865         Merge fnmatch patches from glibc.
83866         * lib/fnmatch.c (mbsinit): Remove define.
83867         Add libc_hidden_ver (__fnmatch, fnmatch).
83868         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83869         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83870
83871 2004-01-14  Karl Berry  <karl@gnu.org>
83872
83873         * config/install-sh: update from automake.
83874
83875 2004-01-13  Karl Berry  <karl@gnu.org>
83876
83877         * config/install-sh: update from automake.
83878
83879 2004-01-09  Karl Berry  <karl@gnu.org>
83880
83881         * config/install-sh: update from automake.
83882
83883 2004-01-05  Karl Berry  <karl@gnu.org>
83884
83885         * config/config.{sub,guess}: update from config.
83886
83887 2003-12-31  Karl Berry  <karl@gnu.org>
83888
83889         * config/depcomp: update from automake.
83890
83891 2003-12-14  Karl Berry  <karl@gnu.org>
83892
83893         * lib/config.charset: update from gettext-runtime.
83894
83895 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83896
83897         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83898         Bug reported by Alfred M. Szmidt.
83899
83900 2003-12-03  Bruno Haible  <bruno@clisp.org>
83901
83902         * m4/gettext.m4: Upgrade from gettext-0.13.
83903         * m4/po.m4: Upgrade from gettext-0.13.
83904         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83905         * m4/intmax.m4: New file, from gettext-0.13.
83906         * m4/printf-posix.m4: New file, from gettext-0.13.
83907
83908 2003-11-29  Karl Berry  <karl@gnu.org>
83909
83910         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83911
83912 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83913             Bruno Haible  <bruno@clisp.org>
83914
83915         * lib/printf-parse.h: Don't include sys/types.h.
83916         (ARG_NONE): New macro.
83917         (char_directive): Change type of *arg_index fields to size_t.
83918         * lib/printf-parse.c: Don't include sys/types.h.
83919         (SSIZE_MAX): Remove macro.
83920         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83921         Remove unnecessary overflow check.
83922         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83923         fields.
83924
83925 2003-11-25  Bruno Haible  <bruno@clisp.org>
83926
83927         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83928
83929 2003-11-25  Bruno Haible  <bruno@clisp.org>
83930
83931         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83932         gt_TYPE_SSIZE_T.
83933
83934 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83935
83936         * modules/alloca: Remove dependency on xalloc.
83937
83938 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83939
83940         * lib/alloca.c: Remove dependency on xalloc module.
83941         (xalloc_die): Remove.
83942         (memory_full) [!defined emacs]: New macro.
83943         [!defined emacs]: Don't include xalloc.h.
83944         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83945         address arithmetic overflows.  Change datatypes a bit to avoid
83946         unnecessary casts.
83947
83948 2003-11-22  Jim Meyering  <jim@meyering.net>
83949
83950         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83951         s/size/size_t/.
83952
83953 2003-11-21  Karl Berry  <karl@gnu.org>
83954
83955         * config/config.{sub,guess}: update from config.
83956
83957 2003-11-18  Karl Berry  <karl@gnu.org>
83958
83959         * config/config.{sub,guess}: update from config.
83960
83961         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83962
83963 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83964
83965         * README: Mention that S+T cannot overflow if S is the size of
83966         an existing object and T is sufficiently small.
83967
83968 2003-11-17  Jim Meyering  <jim@meyering.net>
83969
83970         On systems without utime and without a utimes function capable of
83971         dealing with a NULL struct utimbuf* argument, this utime replacement
83972         could -- in unusual circumstances -- leak a file descriptor.
83973         * lib/utime.c: Include <unistd.h> and <errno.h>.
83974         (utime_null): Be sure to close `fd' and to preserve errno.
83975         Reported by Geoff Collyer via Arnold Robbins.
83976
83977 2003-11-17  Bruno Haible  <bruno@clisp.org>
83978
83979         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83980         (Depends-on): Add xsize.
83981
83982 2003-11-17  Bruno Haible  <bruno@clisp.org>
83983
83984         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83985
83986 2003-11-17  Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/vasnprintf.c (alloca): Remove fallback definition.
83989         (freea): Remove definition.
83990         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83991         Reported by Paul Eggert.
83992
83993 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83994             Bruno Haible  <bruno@clisp.org>
83995
83996         Protect against address arithmetic overflow.
83997         * lib/printf-args.h: Include stddef.h.
83998         (arguments): Change type of field 'count' to size_t.
83999         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
84000         'unsigned int' where appropriate.
84001         * lib/printf-parse.h: Include sys/types.h.
84002         (char_directive): Change type of *arg_index fields to ssize_t.
84003         (char_directives): Change type of fields 'count', max_*_length to
84004         size_t.
84005         * lib/printf-parse.c: Include sys/types.h and xsize.h.
84006         (SSIZE_MAX): Define fallback value.
84007         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
84008         instead of 'int' where appropriate. Check a_allocated, d_allocated
84009         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
84010         * lib/vasnprintf.c: Include xsize.h.
84011         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
84012         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
84013         overflow. Avoid wraparound when converting a width or precision from
84014         decimal to binary.
84015
84016 2003-11-16  Bruno Haible  <bruno@clisp.org>
84017
84018         Update from GNU gettext.
84019         * lib/printf-parse.c: Generalize to it can be compiled for wide
84020         strings.
84021         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
84022         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
84023         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
84024         SNPRINTF): New macros.
84025         Don't include <alloca.h> if the file is used inside libintl.
84026         (local_wcslen): New function, for Solaris 2.5.1.
84027         (VASNPRINTF): Use it instead of wcslen.
84028
84029 2003-11-16  Bruno Haible  <bruno@clisp.org>
84030
84031         * lib/xsize.h (xmax): New function.
84032         (xsum, xsum3, xsum4): Declare as "pure" functions.
84033
84034 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84035
84036         * modules/xalloc (Files): Undo latest change, since xalloc.h
84037         no longer needs SIZE_MAX or PTRDIFF_MAX.
84038
84039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84040
84041         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
84042         gl_PTRDIFF_MAX.
84043
84044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84045
84046         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
84047         "return", to pacify some unknown compiler.  Problem reported
84048         by Joerg Schilling.
84049
84050 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84051
84052         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
84053         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
84054         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
84055         heuristic is just as accurate as far as we know, and it removes a
84056         dependency on size_max.m4 and ptrdiff_max.m4.
84057
84058 2003-11-11  Bruno Haible  <bruno@clisp.org>
84059
84060         * modules/xsize (Files): Add m4/size_max.m4.
84061         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
84062
84063 2003-11-11  Bruno Haible  <bruno@clisp.org>
84064
84065         * m4/size_max.m4: New file.
84066         * m4/ptrdiff_max.m4: New file.
84067         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
84068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
84069         (gl_XALLOC): Invoke it.
84070
84071 2003-11-11  Bruno Haible  <bruno@clisp.org>
84072
84073         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
84074         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
84075         defined.
84076
84077 2003-11-10  Paul Eggert  <eggert@twinsun.com>
84078
84079         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
84080         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
84081         rejected some allocations of exactly SIZE_MAX - 2 bytes.
84082         From Bruno Haible.
84083         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
84084         not (size_t) -1, since it's defined here.
84085
84086 2003-11-09  Karl Berry  <karl@gnu.org>
84087
84088         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
84089
84090 2003-11-06  Paul Eggert  <eggert@twinsun.com>
84091
84092         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
84093         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
84094         Reject sizes of exactly SIZE_MAX bytes.
84095         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
84096         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
84097
84098 2003-11-05  Bruno Haible  <bruno@clisp.org>
84099
84100         * lib/xsize.h: Include limits.h, to avoid a possible collision with
84101         SIZE_MAX defined in <limits.h> on Solaris.
84102
84103 2003-11-04  Jim Meyering  <jim@meyering.net>
84104
84105         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
84106         variable names, rather than @VAR@.
84107         * modules/poll: Likewise.
84108
84109 2003-11-04  Bruno Haible  <bruno@clisp.org>
84110
84111         * modules/xsize: New file.
84112         * modules/linebreak: Depend on xsize.
84113         * MODULES.html.sh (func_all_modules): Add xsize.
84114
84115 2003-11-04  Bruno Haible  <bruno@clisp.org>
84116
84117         * m4/xsize.m4: New file.
84118
84119 2003-11-04  Bruno Haible  <bruno@clisp.org>
84120
84121         * lib/xsize.h: New file.
84122         * lib/linebreak.c: Include xsize.h.
84123         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
84124         argument for overflow.
84125         Suggested by Paul Eggert.
84126
84127 2003-11-03  Karl Berry  <karl@gnu.org>
84128
84129         * config/config.{guess,sub}: update from config.
84130
84131 2003-11-03  Jim Meyering  <jim@meyering.net>
84132
84133         * modules/userspec (lib_SOURCES): Add userspec.h.
84134         (Include): Add "userspec.h".
84135         Improve description.
84136
84137 2003-11-03  Jim Meyering  <jim@meyering.net>
84138
84139         * lib/userspec.c: Include "userspec.h".
84140         * lib/userspec.h: New file.
84141
84142 2003-11-03  Bruno Haible  <bruno@clisp.org>
84143
84144         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
84145
84146 2003-11-03  Bruno Haible  <bruno@clisp.org>
84147
84148         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84149         available, to avoid (extremely rare) race condition.
84150         Suggested by Paul Eggert.
84151
84152 2003-11-02  Karl Berry  <karl@gnu.org>
84153
84154         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84155
84156 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84157
84158         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84159         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84160         (read_filesystem_list): Set and use me_type_malloced.
84161         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84162         whatever the type happens to be), for brevity and consistency.
84163         Check for size calculation overflow on Alphas running OSF/1.
84164
84165 2003-10-31  Jim Meyering  <jim@meyering.net>
84166
84167         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84168
84169         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84170
84171 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84172             Bruno Haible  <bruno@clisp.org>
84173
84174         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84175         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84176
84177 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84180         netbsd*-gnu*.  Suggested by Robert Millan.
84181
84182 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84183
84184         * modules/group-member: Depend on stdbool.
84185
84186 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84187
84188         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84189
84190 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84191
84192         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84193         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84194         after the 'gnu' in these cases.  This fixes some bugs in the
84195         previous change, and is based on suggestions by Robert Millan.
84196
84197 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84198
84199         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84200         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84201         no longer needed.
84202         * lib/quotearg.c (quotearg_n_options): Use it.
84203         * lib/group-member.c: Include <stdbool.h>.
84204         (free_group_info): Arg is now const *; don't free arg.
84205         (get_group_info): Now returns bool and accepts struct group_info *,
84206         rather than returning a malloc'ed struct group_info *.
84207         All uses changed.  Check for overflow in internal size calculation.
84208
84209         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84210         rather than xmalloc/xrealloc.
84211         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84212         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84213         conformance bug: the old code used a pointer after freeing the
84214         storage that it addressed.
84215         * lib/hash.c (hash_initialize): Simplify the code by using
84216         xalloc_oversized rather than doing it by hand.
84217         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84218         the buffer preserved.  Use free and xmalloc instead.
84219         * lib/quotearg.c (quotearg_n_options): Likewise.
84220         Use a simpler test for size overflow.  Don't use xalloc_oversized
84221         because unsigned int might be wider than size_t (!); this suggests
84222         that we should switch from unsigned int to size_t for slot numbers.
84223
84224 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84225
84226         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84227         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84228         NetBSD kernels.  Requested by Richard Stallman.
84229
84230 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84231
84232         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84233         to allocate the returned structure.  Do not allocate a subarray,
84234         as x2nrealloc will do that.
84235         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84236         instead of xnrealloc.
84237         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84238
84239 2003-10-27  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/stdbool_.h: Better support for BeOS.
84242
84243 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84244
84245         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84246         now uses inline.
84247
84248 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84249
84250         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84251         callers that want to do their own size-overflow checking.  Include
84252         <stdbool.h>, since xalloc_oversized returns bool.
84253         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84254         to use xalloc_oversized.
84255
84256         Add two functions x2realloc, x2nrealloc, for programs that grow
84257         arrays dynamically by doubling their sizes.
84258         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84259         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84260         New functions.
84261
84262         Port to C99 semantics for 'inline' of external functions.
84263         Bug reported by Bruno Haible.
84264         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84265         with the old contents of xnmalloc.
84266         (xnmalloc, xmalloc): Use it.
84267         (xnrealloc_inline): New static inline function,
84268         with the old contents of xnrealloc.
84269         (xnrealloc, xrealloc): Use it.
84270
84271         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84272         that.
84273
84274 2003-10-26  Karl Berry  <karl@gnu.org>
84275
84276         * config/srclist.txt (COPYING.DOC): no longer available from
84277         /gd/gnuorg; don't know where the ultimate source is.
84278
84279 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84280
84281         Fix several address-calculation bugs in the hash modules,
84282         plus some minor code cleanup.
84283
84284         * lib/hash.h: Include <stdbool.h>, for bool.
84285         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84286         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84287         hash_get_n_entries, hash_get_max_bucket_length,
84288         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84289         hash_rehash): Use size_t rather than unsigned.
84290         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84291         hash_get_n_buckets_used, hash_get_n_entries,
84292         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84293         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84294         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84295         Likewise.
84296         (SIZE_MAX): Define if not defined.
84297         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84298         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84299         hash_print):
84300         Use const * when possible.
84301         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84302         (check_tuning): Fix bug: if tuning parameters were very close to
84303         0 or 1, rounding errors could have caused subscript violations.
84304         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84305         (hash_initialize): Add 'fail:' label
84306         to free table and return NULL, and use it to simplify code.
84307         Use calloc rather than clearing the storage ourself.
84308         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84309         buffer size calculations.
84310         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84311         Include <stddef.h>, for size_t.
84312         * lib/hash-pjw.c (hash_pjw): Likewise.
84313         Switch to method described by Bruno Haible.
84314         Include <limits.h>, for CHAR_BIT.
84315         (SIZE_BITS): New macro.
84316
84317 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84318
84319         * m4/getline.m4 (AM_FUNC_GETLINE):
84320         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84321         hosts.  Problem reported by Derek Robert Price in
84322         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84323         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84324         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84325
84326 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84327
84328         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84329         ceiling the allocation at NMAX bytes rather than silently
84330         discarding input bytes before NMAX is reached.  This makes
84331         a difference only if NMAX exceeds SIZE_MAX / 2.
84332
84333         * lib/obstack.c: Merge from glibc.
84334         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84335         Add libc_hidden_def (_obstack_newchunk).
84336         (_obstack_free) [! defined _LIBC]: Remove.
84337         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84338         a clone of the function body.
84339         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84340         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84341
84342         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84343         glibc.
84344         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84345         arg to memcpy.
84346
84347         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84348         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84349         Don't use lvalue casts, as GCC plans to remove support for them
84350         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84351         was also present in the non-GCC version, indicating that this
84352         code had always been buggy and had never been widely used.
84353         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84354         Use the fast variant of each macro, rather than copying the
84355         definiens of the fast variant; that way, we'll be more likely to
84356         catch future bugs in the fast variants.
84357
84358 2003-10-20  Bruno Haible  <bruno@clisp.org>
84359
84360         * modules/wait-process: New file.
84361         * MODULES.html.sh (func_all_modules): Add wait-process.
84362
84363 2003-10-20  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/wait-process.m4: New file.
84366
84367 2003-10-20  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/wait-process.h: New file, from GNU gettext.
84370         * lib/wait-process.c: New file, from GNU gettext.
84371
84372 2003-10-19  Jim Meyering  <jim@meyering.net>
84373
84374         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84375         HPUX 10.20.
84376
84377 2003-10-18  Karl Berry  <karl@gnu.org>
84378
84379         * config/config.guess: update from config.
84380
84381 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84382
84383         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84384         (getgroups): First arg is int, not size_t.
84385         Don't let 'free' mangle errno.
84386
84387 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84388
84389         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84390
84391 2003-10-16  Karl Berry  <karl@gnu.org>
84392
84393         * config/config.{guess,sub}: update from config.
84394
84395 2003-10-16  Jim Meyering  <jim@meyering.net>
84396
84397         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84398         memcpy.
84399
84400 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84401
84402         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84403         (SIZE_MAX): Remove.
84404         (new_exclude, add_exclude_file): Initial size no longer needs to
84405         be a power of 2.
84406         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84407         our own address arithmetic overflow checking.
84408
84409         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84410         (fnmatch): Do not alloca more than 2000 wide characters;
84411         instead, use malloc for large buffers.
84412         Check for address arithmetic overflow, and return -1
84413         with errno set to ENOMEM in that case.
84414         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84415         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84416         instead, return -1.  Check for address arithmetic overflow.
84417
84418 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84419
84420         Handle invalid suffixes and overflow independently, so that
84421         callers can treat them independently as needed.  Fix some bugs in
84422         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84423         suffix for a human-readable blocksize.  The major caller-visible
84424         change is the addition of a new
84425         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84426         that both overflow and suffix chars were found.
84427
84428         * lib/human.c (humblock): Don't check separately for invalid suffix
84429         char; that is xstrtoumax's job (now that its bug is fixed).
84430         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84431         INTMAX_MAX]: New macros.
84432         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84433         TYPE_MAXIMUM): New macros.
84434         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84435         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84436         if overflow occurs, as it's what __strtol does and it's more useful
84437         in practice.
84438         (__xstrtol): If __strtol reports some error other than ERANGE,
84439         reflect it to the caller as LONGINT_INVALID.  If it reports
84440         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84441         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84442         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84443         value.
84444         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84445         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84446         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84447         [defined UINTMAX_MAX]: New macros.
84448
84449 2003-10-14  Bruno Haible  <bruno@clisp.org>
84450
84451         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84452
84453 2003-10-14  Bruno Haible  <bruno@clisp.org>
84454
84455         * m4/sig_atomic_t: New file, from GNU gettext.
84456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84457
84458 2003-10-14  Bruno Haible  <bruno@clisp.org>
84459
84460         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84461         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84462         Also use volatile where needed.
84463
84464 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84465
84466         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84467         Change maintainer from Bruno Haible to 'all'.
84468
84469 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84470
84471         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84472
84473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84474
84475         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84476         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84477         and define in terms of the other primitives.
84478         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84479         (SIZE_MAX): Define if not already defined.
84480         (array_size_overflow): New function.
84481         (xalloc_die): Abort instead of exiting if 'error' returns.
84482         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84483         (xmalloc, xrealloc): Use them.
84484         (xcalloc): Check for address arithmetic overflow.
84485         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84486         a bit faster than strcpy.
84487
84488 2003-10-10  Simon Josefsson  <jas@extundo.com>
84489
84490         * modules/argp (Depends-on): Add restrict and strcase.
84491
84492 2003-10-10  Simon Josefsson  <jas@extundo.com>
84493
84494         * m4/argp.m4: Add AC_C_INLINE.
84495
84496 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84497
84498         Merge getpass from libc, plus a few fixes.
84499
84500         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84501         Include <stdbool.h>.
84502         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84503         __fsetlocking to empty.
84504         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84505         do include <bits/libc-lock.h>.
84506         Do not include <fcntl.h>; not needed.
84507         [_LIBC]: Include <wchar.h>.
84508         (NOTCANCEL_MODE): New macro.
84509         (flockfile, funlockfile) [_LIBC]: New macros.
84510         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84511         [!_LIBC]: New macros.
84512         (call_fclose): New function.
84513         (getpass): Use it.  Save tty stream separately; this simplifies the
84514         code and makes it more reliable if stdin happens to equal stdout.
84515         Invoke __fsetlocking on tty.
84516         Handle thread cancellation if needed.
84517         Namespace cleanup (use __tcgetattr, __getline).
84518         Use bool for Booleans.
84519         [USE_IN_LIBIO]: Handle wide streams.
84520         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84521         stream might go where.
84522
84523         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84524         doesn't have to include <stdio.h> before us.
84525         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84526         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84527         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84528         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84529         if not declared, so that we can use getpass.c code from libc without
84530         rewriting it.
84531         (flockfile, ftrylockfile, funlockfile): New macros.
84532
84533 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84534
84535         * modules/getpass: Depend on stdbool.
84536
84537 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84538
84539         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84540
84541 2003-10-07  Karl Berry  <karl@gnu.org>
84542
84543         * config/config.{guess,sub}: update from config.
84544
84545 2003-10-06  Jim Meyering  <jim@meyering.net>
84546             Bruno Haible  <bruno@clisp.org>
84547
84548         This lets translators provide better translations for the
84549         "Written by ..." part of --version output.
84550         * lib/version-etc.h: Include stdarg.h.
84551         (version_etc_copyright): Declare as readonly.
84552         (version_etc): Make this function variadic with a NULL-terminated list
84553         of author name strings.
84554         (version_etc_va): New declaration.
84555         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84556         (version_etc_copyright): Declare as readonly.
84557         (version_etc_va): New function. Provide a different translatable string
84558         for each possible number of authors < 10. Abbreviate when there are 10
84559         authors or more.
84560         (version_etc): Make this function variadic. Call version_etc_va.
84561         Suggestion from Gary V. Vaughan.
84562
84563         * lib/long-options.h (parse_long_options): Change prototype: the
84564         authors string is moved to the end and becomes variadic.
84565         * lib/long-options.c: Include stdarg.h.
84566         (parse_long_options): Make this function variadic, too.
84567         Call version_etc_va, not version_etc.
84568
84569 2003-10-06  Bruno Haible  <bruno@clisp.org>
84570
84571         * modules/version-etc-2: Remove file.
84572         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84573
84574 2003-10-06  Bruno Haible  <bruno@clisp.org>
84575
84576         * modules/fatal-signal: New file.
84577         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84578
84579 2003-10-06  Bruno Haible  <bruno@clisp.org>
84580
84581         * m4/fatal-signal.m4: New file.
84582         * m4/signalblocking.m4: New file, from GNU gettext.
84583
84584 2003-10-06  Bruno Haible  <bruno@clisp.org>
84585
84586         * lib/version-etc-2.h: Remove file.
84587         * lib/version-etc-2.c: Remove file.
84588
84589 2003-10-06  Bruno Haible  <bruno@clisp.org>
84590
84591         * lib/fatal-signal.h: New file, from GNU gettext.
84592         * lib/fatal-signal.c: New file, from GNU gettext.
84593
84594 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84595
84596         * README: Rework advice for preventing empty .o files.
84597         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84598         not <sys/types.h>.
84599
84600 2003-10-04  Karl Berry  <karl@gnu.org>
84601
84602         * lib/argp*: update from libc.
84603
84604 2003-10-04  Karl Berry  <karl@gnu.org>
84605
84606         * config/config.{guess,sub}: update from config.
84607
84608 2003-10-02  Bruno Haible  <bruno@clisp.org>
84609
84610         * modules/lchown (Include): Add lchown.h.
84611         * modules/time_r (Include): Use "..." syntax.
84612         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84613
84614 2003-10-01  Simon Josefsson  <jas@extundo.com>
84615
84616         * MODULES.html.sh (func_all_modules): Move gethostname from section
84617         'based on' to section 'lacking' POSIX:2001.
84618
84619 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84620
84621         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84622         to output mode on the same stream.
84623
84624 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84625
84626         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84627         Fix arg typo in previous patch.
84628
84629 2003-09-28  Jim Meyering  <jim@meyering.net>
84630
84631         * lib/error.c: Correct cpp indentation.
84632
84633 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84634
84635         * modules/free: New file.
84636
84637 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84638
84639         * m4/free.m4: New file.
84640
84641 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84642
84643         * lib/minmax.h (MIN, MAX)
84644         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84645         Omit the special code that used __typeof__, since we worry that
84646         it could be more trouble than it's worth.  See:
84647         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84648         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84649
84650         * lib/free.c: New file.
84651
84652 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84653
84654         Trivial fixes to Makefile.am parts of module listings.
84655         * modules/strstr: Append strstr.h to lib_SOURCES.
84656         * modules/strcase: Likewise, for strcase.h.
84657
84658 2003-09-27  Karl Berry  <karl@gnu.org>
84659
84660         * config/mkinstalldirs: update from automake.
84661
84662 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84663
84664         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84665         (error_tail): Do not loop, reallocating temporary buffer, since
84666         the output cannot contain more wide characters than the input
84667         contains bytes, the size must be big enough already.  This avoids
84668         one potential size overflow calculation.  Check for size overflow
84669         when calculating temporary buffer size.  Free temporary buffer
84670         when done, if it was allocated with malloc; this plugs a memory
84671         leak.  Remove casts from void * to pointers, that are no longer
84672         needed now that we're assuming C89 or better.
84673
84674         Merge error changes from glibc.
84675
84676         * lib/error.c, error.h: Update copyright notice header to match glibc.
84677         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84678         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84679         Disable cancellation while printing error.
84680         * lib/error.h: Prepend __ to parameter names.
84681
84682 2003-09-26  Jim Meyering  <jim@meyering.net>
84683
84684         * lib/error.c (error_tail): Move some declarations
84685         into inner scope where the local variables are used.
84686
84687 2003-09-26  Bruno Haible  <bruno@clisp.org>
84688
84689         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84690         stpncpy().
84691         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84692
84693 2003-09-26  Bruno Haible  <bruno@clisp.org>
84694
84695         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84696         (stpncpy): Define as alias for gnu_stpncpy.
84697         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84698
84699 2003-09-25  Simon Josefsson  <jas@extundo.com>
84700
84701         * lib/xgetdomainname.h: New file.
84702         * lib/xgetdomainname.c: New file.
84703
84704 2003-09-25  Simon Josefsson  <jas@extundo.com>
84705             Bruno Haible  <bruno@clisp.org>
84706
84707         * modules/getdomainname: New file.
84708         * modules/xgetdomainname: New file.
84709         * MODULES.html.sh (func_all_modules): Add getdomainname,
84710         xgetdomainname.
84711
84712 2003-09-25  Simon Josefsson  <jas@extundo.com>
84713             Bruno Haible  <bruno@clisp.org>
84714
84715         * m4/getdomainname.m4: New file.
84716
84717 2003-09-25  Simon Josefsson  <jas@extundo.com>
84718             Bruno Haible  <bruno@clisp.org>
84719
84720         * lib/getdomainname.h: New file.
84721         * lib/getdomainname.c: New file.
84722
84723 2003-09-25  Karl Berry  <karl@gnu.org>
84724
84725         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84726
84727 2003-09-25  Karl Berry  <karl@gnu.org>
84728
84729         * config/install-sh: update from automake.
84730
84731 2003-09-25  Bruno Haible  <bruno@clisp.org>
84732
84733         * modules/version-etc-2: New file, from modules/version-etc with
84734         modifications.
84735         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84736
84737 2003-09-25  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84740         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84741
84742 2003-09-24  Simon Josefsson  <jas@extundo.com>
84743
84744         * modules/xgethostname: Add xgethostname.h.
84745
84746 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84747
84748         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84749         the buffer associated with the argument.  Bug reported by
84750         Simon Josefsson.
84751
84752 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84753
84754         * README: Document assumptions that 'int' is at least 32 bits
84755         wide, that integer arithmetic is 2's complement without overflow,
84756         that there are no holes in integer values, that adding sizes of
84757         two nonoverlapping objects can't overflow, and that all-bits-zero
84758         yields scalar zero.  Fix spelling and capitalization typos.
84759
84760 2003-09-19  Karl Berry  <karl@gnu.org>
84761
84762         * lib/argp.h: update from libc.
84763
84764 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84765
84766         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84767         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84768         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84769
84770 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84771
84772         * gnulib-tool: Use "test -h", not "test -L", for portability
84773         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84774         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84775         (sed_extract_prog): Issue s commands one-by-one, rather than
84776         using \| in one s command.
84777
84778 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84779
84780         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84781         input error, instead of returning NULL the next time we are called
84782         (and therefore losing track of errno).
84783
84784 2003-09-16  Bruno Haible  <bruno@clisp.org>
84785
84786         * gnulib-tool (func_create_testdir): Warn about duplicated
84787         dependencies.
84788
84789 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84790
84791         * modules/argmatch, modules/fatal, modules/obstack,
84792         modules/xalloc, modules/xgethostname: Sort dependencies by
84793         importance, not alphabetically.
84794
84795 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84796
84797         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84798         fails, so that the caller gets the proper errno.
84799
84800         * lib/readutmp.c (read_utmp): Likewise.
84801         Check for fstat error.  Close stream and free storage
84802         when failing.
84803
84804 2003-09-14  Karl Berry  <karl@gnu.org>
84805
84806         * config/srclist.txt (strdup.c): disable for c89 changes.
84807
84808 2003-09-14  Jim Meyering  <jim@meyering.net>
84809
84810         * lib/getloadavg.c: Correct cpp indentation.
84811         * lib/strdup.c: Likewise.
84812         * lib/vasnprintf.c: Likewise.
84813
84814 2003-09-14  Bruno Haible  <bruno@clisp.org>
84815
84816         * modules/fwriteerror: New file.
84817         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84818
84819 2003-09-14  Bruno Haible  <bruno@clisp.org>
84820
84821         * lib/fwriteerror.h: New file.
84822         * lib/fwriteerror.c: New file.
84823
84824 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84825
84826         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84827         modules/xgethostname, modules/xalloc: Depend on exit.
84828
84829 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84830
84831         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84832
84833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84834         and AC_MINIX, too, so that their extensions are available.
84835
84836         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84837         This macro has been superseded by gl_BACKUPFILE.
84838
84839         More patches to assume C89 or better.
84840
84841         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84842
84843         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84844         unconditionally.
84845         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84846         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84847         Include <string.h>, <stdlib.h> unconditionally.
84848         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84849         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84850         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84851         headers or for string.h.
84852         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84853         or strtoul.
84854
84855         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84856         headers.
84857         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84858         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84859         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84860         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84861         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84862         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84863         memcpy, memset.
84864         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84865         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84866         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84867         strtol.
84868         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84869         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84871         strtoul.
84872
84873 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84874
84875         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84876         * lib/obstack.c [!defined _LIBC]: Likewise.
84877         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84878         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84879         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84880
84881         More changes to assume C89 or better.
84882
84883         * lib/error.c (error_tail): Assume vprintf.
84884
84885         * lib/argmatch.c (getenv): Remove decl.
84886         * lib/progreloc.c (get_full_program_name): Define via prototype.
84887         * lib/setenv.c (clearenv): Likewise.
84888         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84889         needed.
84890         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84891         (malloc, memcpy): Remove decls.
84892         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84893         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84894         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84895         (memcpy): Remove macro.
84896         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84897         (__P): Remove.  All uses removed.
84898         (PTR): Remove.  All uses changed to void *.
84899         (CHAR_BIT, NULL): Remove.
84900         (spaces, zeros, memset_space, memset_zero)
84901         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84902         Remove.
84903         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84904         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84905         Define with prototype.
84906         Remove now-unnecessary prototype decl.
84907         (extra_args_spec): Assume ANSI C.  All uses changed.
84908         (extra_args_spec_iso): Remove.
84909         (my_strftime, emacs_strftimeu): Define via prototype.
84910         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84911         unconditionally.
84912         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84913         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84914         (strtoul, strtol): Remove decls.
84915         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84916         LONG_MAX): Remove.
84917         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84918         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84919         (LOCALE_PARAM_PROTO): New macro.
84920         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84921         (INTERNAL (strtol), strtol): Define with a prototype.
84922         (PARAMS): Remove.  All uses removed.
84923         * lib/tempname.c: Include <string.h> unconditionally.
84924         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84925         * lib/xgethostname.c (main): Define with a prototype.
84926         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84927         Include <stdlib.h> unconditionally.
84928         (calloc, malloc, realloc, free): Remove decls.
84929         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84930         Include <stdlib.h> unconditionally.  Sort include file names.
84931         (strtod): Remove.
84932         (xstrtod): Define with a prototype.
84933         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84934         (strtol, strtoul): Remove decls.
84935
84936 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84937
84938         More patches to assume C89 or better.
84939         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84940         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84941         string.h, memchr, STDC_HEADERS.
84942
84943 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84944
84945         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84946         Include <stdlib.h>, <string.h> unconditionally.
84947         Remove now-unnecessary cast to char *.
84948         * lib/strnlen.c: Include <string.h> unconditionally.
84949         * lib/yesno.c (yesno): Define with a prototype.
84950
84951 2003-09-11  Bruno Haible  <bruno@clisp.org>
84952
84953         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84954
84955 2003-09-10  Jim Meyering  <jim@meyering.net>
84956
84957         * lib/error.c: Correct indentation of cpp directives.
84958
84959 2003-09-10  Bruno Haible  <bruno@clisp.org>
84960
84961         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84962         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84963         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84964         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84965         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84966         <stdlib.h> and <string.h> checks.
84967         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84968         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84969
84970 2003-09-10  Bruno Haible  <bruno@clisp.org>
84971
84972         * lib/strcspn.c: Include <string.h> unconditionally.
84973         * lib/strpbrk.c: Include <string.h> unconditionally.
84974         * lib/strstr.c: Include <string.h> unconditionally.
84975         * lib/unicodeio.c: Include <string.h> unconditionally.
84976         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84977         * lib/unsetenv.c: Likewise.
84978         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84979         * lib/yesno.c: Include <stdlib.h> unconditionally.
84980         (rpmatch): Add prototype.
84981
84982 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84983
84984         More patches to assume C89 or better.
84985         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84986         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84987         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84988         or for string.h.
84989         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84990         stdlib.h.
84991         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84992         C headers.
84993         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84994         string.h.
84995         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84996         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84997         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84998         or for string.h.
84999         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
85000         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
85001         C headers.
85002         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
85003         memcpy.
85004         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
85005         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
85006         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
85007         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
85008         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
85009         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
85010         string.h, free.
85011         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
85012         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
85013         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
85014         C headers, or for string.h.
85015         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
85016         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
85017         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
85018         headers, memory.h, stdlib.h, string.h, strings.h.
85019         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
85020         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
85021         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
85022         strchr.
85023         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
85024         headers, memory.h, string.h.
85025         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
85026         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
85027         free.
85028         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
85029         headers.
85030         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
85031         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
85032         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
85033         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
85034         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
85035
85036 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85037
85038         More K&R removal.
85039
85040         * lib/acosl.c (main): Use a prototype.
85041         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
85042         tanl.c: Likewise.
85043
85044         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
85045
85046         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
85047         (getopt, etopt_long, getopt_long_only, _getopt_internal)
85048         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
85049         with a prototype.
85050         * lib/getopt.c (const): Remove macro.
85051         Include <string.h> unconditionally.
85052         (my_index): Remove; all uses changed to strchr.
85053         (strlen): Remove decl.
85054         (exchange): Remove forward decl; no longer needed.
85055         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
85056         Define with prototype.
85057         * lib/getopt1.c (const): Remove macro.
85058         (getopt_long, getopt_long_only, main): Define with prototype.
85059
85060         * lib/getugroups.c: Include <string.h> unconditionally.
85061
85062         * lib/getusershell.c: Include <stdlib.h> unconditionally.
85063         (getusershell, setusershell, endusershell, readname, main):
85064         Define with prototypes.
85065
85066         * lib/group-member.c: Include group-member.h first.
85067         Include <stdlib.h> unconditionally.
85068
85069         * lib/hard-locale.c: Include hard-locale.h first.
85070         Include <stdlib.h>, <string.h> unconditionally.
85071
85072         * lib/hash.c (free, malloc): Remove decls.
85073         Include <stdlib.h> unconditionally.
85074
85075         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
85076         (getenv): Do not declare.
85077
85078         * lib/idcache.c: Include <string.h> unconditionally.
85079
85080         * lib/long-options.c: Include long-options.h first, to test interface.
85081         Include <stdlib.h> unconditionally.
85082
85083         * lib/makepath.c: Include makepath.h first, to test interface.
85084         Include <stdlib.h> and <string.h> unconditionally.
85085
85086         * lib/linebuffer.c: Include <stdlib.h>.
85087         (free): Remove decl.
85088
85089         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
85090         stddef.h. rpl_malloc returns void *, not char *.
85091         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
85092         prototype.
85093
85094         * lib/md5.h: Include <limits.h> unconditionally.
85095         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
85096         (__P): Remove; all uses removed.
85097         * lib/md5.c: Include "md5.h" first.
85098         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
85099         md5_buffer, md5_process_bytes, md5_process_block):
85100         Define with prototypes.
85101         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
85102         * lib/sha.c: Include "sha.h" first.
85103         Include <stdlib.h>, <string.h> unconditionally.
85104
85105         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
85106         * lib/memcmp.c (__ptr_t): Likewise.
85107         * lib/memrchr.c (__ptr_t): Likewise.
85108         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
85109         Include <string.h> unconditionally.
85110         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
85111         * lib/memchr.c: Include <stdlib.h> unconditionally.
85112         * lib/memchr.c (LONG_MAX): Remove.
85113         * lib/memrchr.c (LONG_MAX): Likewise.
85114         * lib/memchr.c (__memchr): Define via a prototype.
85115         * lib/memrchr.c (__memrchr): Likewise.
85116         * lib/memcmp.c (__P): Remove, and remove all uses.
85117         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
85118         Remove forward decls; no longer needed.
85119         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
85120         Use types required by C89 in prototype.
85121
85122         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
85123         * lib/savedir.c: Likewise.
85124         * lib/mkdir.c (free): Remove decl.
85125         * lib/rmdir.c (rmdir): Define with a prototype.
85126         * lib/savedir.c: Include savedir.h first, to test interface.
85127
85128         * lib/mktime.c (STDC_HEADERS): Remove.
85129         Include <stdlib.h>, <string.h> unconditionally.
85130
85131         * lib/modechange.c: Include <stdlib.h> unconditionally.
85132         (malloc): Remove decl.
85133
85134         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
85135         (free): Remove decl.
85136
85137         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
85138         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
85139         (This type really should be intptr_t, but that's a C99ism.)
85140         (_obstack_memcpy): Remove: all uses changed to memcpy.
85141         Include <string.h> unconditionally.
85142         (struct obstack): Assume __STDC__ for types of members
85143         chunkfun, freefun, extra_arg.
85144         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
85145         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
85146         obstack_begin, obstack_specify_allocation,
85147         obstack_specify_allocation_with_arg, obstack_chunkfun,
85148         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85149         Remove unprototyped decls and the macros that use them.
85150         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85151         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85152         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85153         (defined __STDC__ && __STDC__)]:
85154         Remove nonprototyped code.
85155         Include <stdlib.h> unconditionally.
85156         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85157         _obstack_allocated_p, _obstack_free, obstack_free,
85158         _obstack_memory_used, print_and_abort):
85159         Define using prototypes.
85160         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85161         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85162         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85163         obstack_next_free, obstack_object_size, obstack_room) [0]:
85164         Remove unused, unprototyped code.
85165
85166         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85167
85168         * lib/physmem.c (physmem_total, physmem_available, main): Define
85169         with prototypes.
85170
85171         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85172         (main): Define with a prototype.
85173
85174         * lib/posixver.c (getenv): Remove decl.
85175
85176         * lib/putenv.c (malloc): Returns void *, not char *.
85177         Include <string.h> unconditionally.
85178         (strchr, memcpy, NULL): Do not define.
85179
85180         * lib/readtokens.c: Include readtokens.h first, to test interface.
85181         Include <stdlib.h>, <string.h> unconditionally.
85182         (init_tokenbuffer): Define with a prototype.
85183
85184         * lib/regex.c (PARAMS): Remove.  All uses removed.
85185         All uses of _RE_ARGS removed, too.
85186         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85187         unconditionally.
85188         (bzero): Assume memset exists.
85189         (memcmp, memcpy, NULL): Remove.
85190         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85191         char, or assignments to local vars of type signed char.
85192         (init_syntax_once, PREFIX(extract_number_and_incr),
85193         PREFIX(print_partial_compiled_pattern),
85194         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85195         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85196         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85197         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85198         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85199         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85200         wcs_compile_range, byte_compile_range, truncate_wchar,
85201         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85202         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85203         count_mbs_length, wcs_re_match_2_internal,
85204         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85205         PREFIX(alt_match_null_string_p),
85206         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85207         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85208         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85209         now-unnecessary declaration, if any.
85210         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85211         regcomp, regexec):
85212         Remove now-unnecessary casts among pointer types.
85213         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85214
85215         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85216         (free): Remove decl.
85217
85218         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85219
85220         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85221         (free): Remove decl.
85222
85223         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85224         * lib/xgetcwd.c: Likewise.
85225
85226         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85227         (free): Remove decl.
85228
85229         * lib/strchrnul.c (strchrnul): Define with a prototype.
85230         Fix bug: c_in was not converted to char before searching.
85231
85232         The following changes are not K&R related:
85233
85234         * lib/group-member.h: Include <sys/types.h>, so that this file is
85235         self-contained.
85236         * lib/makepath.h: Likewise.
85237
85238         * lib/getusershell.c (readname, default_index, line_size, readname):
85239         Use size_t, not int, for sizes.
85240         (readname): If the size overflows, report an error instead of
85241         looping forever.
85242
85243 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85244
85245         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85246         libc.
85247
85248 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85249
85250         * README: New section: portability guidelines.
85251
85252 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85253
85254         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85255         C89 spec.
85256
85257 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85258
85259         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85260
85261 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85262
85263         Assume C89 or better; remove K&R cruft.
85264         A few of these changes were first proposed by Derek Robert Price
85265         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85266
85267         * lib/addext.c: Include <string.h> unconditionally.
85268         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85269         Don't declare getenv or malloc.
85270
85271         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85272         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85273         (NULL): Remove.
85274         (find_stack_direction, alloca): Use prototypes.
85275
85276         * lib/atexit.c (atexit): Define using a prototype.
85277
85278         * lib/basename.c, dirname.c, stripslash.c:
85279         Include <string.h> unconditionally.
85280
85281         * lib/bcopy.c: Include <stddef.h>.
85282         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85283
85284         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85285
85286         * lib/error.h (error, error_at_line, error_print_progname)
85287         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85288         * lib/error.c: Include error.h first, to check interface.
85289         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85290         (VA_START): Remove; all uses changeed to va_start.
85291         (exit, strerror): Remove decls.
85292         (error_print_progname): Prototype uncondionally.
85293         Don't include <errno.h>; no longer needed.
85294         (private_strerror): Remove.
85295         (error_tail): Always define.
85296         (error, error_at_line): Assume C89 or better; always use prototypes.
85297         * lib/fatal.c: Include "fatal.h" first, to test interface.
85298         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85299         (VA_START): Remove; all uses changed to va_start.
85300         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85301         this case.
85302         (exit): Remove decl.
85303         (fatal): Prototype unconditionally.  Assume va_start works.
85304         Abort at end, to pacify gcc.
85305
85306         * lib/euidaccess.c (main): Define with a prototype.
85307
85308         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85309
85310         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85311
85312         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85313         prototypes.
85314         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85315         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85316         (getenv): Remove decl.
85317         (fnmatch): Define using a prototype.
85318         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85319         (FCT): Define using a prototype.
85320
85321         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85322
85323         * lib/gethostname.c: Include <stddef.h>.
85324         (gethostname): Define with prototype.  Length is size_t, not int.
85325
85326 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85327
85328         Assume C89 or better; remove K&R cruft.
85329         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85330         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85331         string.h, getenv, malloc.
85332         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85333         headers.
85334         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85335         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85336         do not check for strerror.
85337         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85338         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85339         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85340         do not check for doprnt or vprintf.
85341         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85342         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85343
85344 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85345
85346         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85347         getversion.c should have been removed then, but was accidentally
85348         preserved.
85349
85350         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85351         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85352
85353 2003-09-08  Karl Berry  <karl@gnu.org>
85354
85355         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85356                 config, forget about prep.
85357
85358         * config/depcomp, missing: update from automake.
85359
85360 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85361
85362         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85363         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85364
85365 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85366
85367         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85368         copy_tm_result.  Bug reported by Simon Josefsson in
85369         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85370
85371 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85372
85373         * m4/time_r.m4: New file.
85374         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85375         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85376         is. Check for timegm declaration.
85377         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85378         Do not check for gmtime_r.
85379         Replace mktime if __mktime_internal does not exist and if mktime
85380         hasn't been replaced already.
85381
85382 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85383
85384         * lib/time_r.c, lib/time_r.h: New files.
85385
85386         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85387         __localtime_r.
85388         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85389         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85390
85391         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85392         __gmtime_r.
85393         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85394         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85395         Include <time_r.h>.
85396
85397         * lib/timegm.c: Switch to glibc implementation, with the following
85398         changes:
85399         [defined HAVE_CONFIG_H]: Include <config.h>.
85400         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85401         (__mktime_internal) [!defined _LIBC]: New decl.
85402         (__gmtime_r) [!defined _LIBC]: New macro and function.
85403         (timegm): Use a prototype, since gnulib assumes C89.
85404         Do not bother declaring tmp to be const, as it's not really usefu.
85405         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85406         (timegm): Declare only if HAVE_DECL_TIMEGM.
85407
85408 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85409
85410         * MODULES.html.sh (func_all_modules): Add time_r.
85411         * modules/time_r: New file.
85412         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85413         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85414
85415 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85416
85417         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85418         Bug reported by Lute Kamstra in
85419         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85420
85421         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85422         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85423         course with correspondingly smaller numbers for tomorrow and
85424         yesterday.  From Tadayoshi Funaba.  Originally installed into
85425         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85426         coreutils merge?).
85427
85428 2003-08-31  Simon Josefsson  <jas@extundo.com>
85429
85430         * modules/timegm: New file.
85431         * MODULES.html.sh (func_all_modules): Add timegm.
85432
85433 2003-08-31  Simon Josefsson  <jas@extundo.com>
85434
85435         * m4/timegm.m4: New file.
85436
85437 2003-08-31  Simon Josefsson  <jas@extundo.com>
85438
85439         * lib/timegm.h: New file.
85440         * lib/timegm.c: New file.  Based on
85441         wget-1.8.2/src/http.c:mktime_from_utc.
85442
85443 2003-08-31  Karl Berry  <karl@gnu.org>
85444
85445         * lib/argp.h: update from libc.
85446
85447 2003-08-28  Bruno Haible  <bruno@clisp.org>
85448
85449         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85450         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85451         followed by '#define fnmatch fnmatch_posix' gives an error.
85452
85453 2003-08-28  Bruno Haible  <bruno@clisp.org>
85454
85455         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85456         warning on QNX, which defines O_BINARY to 000000.
85457
85458 2003-08-27  Jim Meyering  <jim@meyering.net>
85459
85460         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85461         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85462         would fail after 32.  Reported by Danny Levinson.  Details here:
85463         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85464
85465 2003-08-24  Bruno Haible  <bruno@clisp.org>
85466
85467         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85468         MSVC7 <stdio.h> is included later.
85469
85470 2003-08-22  Simon Josefsson  <jas@extundo.com>
85471
85472         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85473
85474 2003-08-20  Karl Berry  <karl@gnu.org>
85475
85476         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85477
85478 2003-08-20  Bruno Haible  <bruno@clisp.org>
85479
85480         * modules/progname: New file.
85481         * MODULES.html.sh (func_all_modules): Add progname.
85482
85483 2003-08-20  Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/progname.h: New file, from GNU gettext.
85486         * lib/progname.c: New file, from GNU gettext.
85487         * lib/progreloc.c: New file, from GNU gettext.
85488
85489 2003-08-19  Jim Meyering  <jim@meyering.net>
85490
85491         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85492         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85493
85494 2003-08-19  Bruno Haible  <bruno@clisp.org>
85495
85496         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85497         more.
85498
85499 2003-08-19  Bruno Haible  <bruno@clisp.org>
85500
85501         * lib/xstrdup.c: Assume <string.h> exists.
85502
85503 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85504
85505         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85506         in makefile rules.
85507
85508 2003-08-18  Jim Meyering  <jim@meyering.net>
85509
85510         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85511         * m4/lib-ld.m4: Likewise.
85512
85513 2003-08-18  Jim Meyering  <jim@meyering.net>
85514
85515         * lib/setenv.h: Indent nested cpp directive.
85516         * lib/vasnprintf.c: Remove trailing blanks.
85517
85518 2003-08-17  Simon Josefsson  <jas@extundo.com>
85519
85520         * modules/xstrndup: New file.
85521         * MODULES.html.sh (func_all_modules): Add xstrndup.
85522
85523 2003-08-17  Simon Josefsson  <jas@extundo.com>
85524
85525         * modules/argp: Fix autoconf macro name. Add more dependencies.
85526
85527 2003-08-17  Simon Josefsson  <jas@extundo.com>
85528
85529         * m4/xstrndup.m4: New file.
85530
85531 2003-08-17  Simon Josefsson  <jas@extundo.com>
85532
85533         * m4/argp.m4: New file.
85534
85535 2003-08-17  Simon Josefsson  <jas@extundo.com>
85536             Bruno Haible  <bruno@clisp.org>
85537
85538         * lib/xstrndup.h: New file.
85539         * lib/xstrndup.c: New file.
85540
85541 2003-08-17  Bruno Haible  <bruno@clisp.org>
85542
85543         * modules/strndup (Files, Include): Add lib/strndup.h.
85544
85545 2003-08-17  Bruno Haible  <bruno@clisp.org>
85546
85547         * modules/euidaccess (Files): Add lib/euidaccess.h.
85548
85549 2003-08-17  Bruno Haible  <bruno@clisp.org>
85550
85551         * lib/strndup.h: New file.
85552
85553 2003-08-17  Bruno Haible  <bruno@clisp.org>
85554
85555         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85556         like AC_GNU_SOURCE.
85557         * modules/extensions (configure.ac): Comment out the invocation of
85558         gl_USE_SYSTEM_EXTENSIONS.
85559
85560 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85561
85562         Merges from coreutils, etc.
85563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85564         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85565         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85566         fixing a typo.
85567         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85568         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85569
85570 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85571
85572         Document merge from coreutils.
85573         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85574         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85575         * modules/utime: Add m4/utimes-null.m4.
85576
85577 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85578
85579         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85580         space, undoing this 2003-08-12 change:
85581         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85582
85583 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85584
85585         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85586         strtoul.c from libc, undoing this 2003-08-12 change:
85587         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85588
85589 2003-08-16  Jim Meyering  <jim@meyering.net>
85590
85591         Merges from coreutils.
85592         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85593         prefix.  Adjust cache variables similarly.  Create 500 rather than
85594         just 300 files, to exercise bug on Darwin6.5, too.
85595         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85596         $missing_dir.
85597         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85598         AM_SYS_POSIX_TERMIOS.
85599         Reported by mkc@mathdogs.com.
85600         Also change use of $am_cv_sys_posix_termios
85601         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85602         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85603         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85604         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85605         in /proc/mounts until it finds one with matching device number.  This
85606         is unnecessary when the FILE argument *is* a mount point.  No stat call
85607         is necessary in that case.  So, disable the statvfs-testing code on
85608         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85609         as RedHat bug# 84846.
85610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85611         to 1MB, so as not to render systems with no stack size limit (e.g.,
85612         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85613         Include <unistd.h>.  On some systems,
85614         it is required for the definition of _SC_PAGESIZE.
85615
85616 2003-08-16  Jim Meyering  <jim@meyering.net>
85617
85618         Merge from coreutils.
85619         * lib/xstrtoimax.c: #else #if -> #elif.
85620         * lib/xstrtoumax.c: Likewise.
85621
85622 2003-08-16  Jim Meyering  <jim@meyering.net>
85623
85624         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85625         * m4/utimes.m4: Removed.
85626         * m4/utimes-null.m4: Renamed from utimes.m4.
85627
85628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85629         to 1MB, so as not to render systems with no stack size limit (e.g.,
85630         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85631         Include <unistd.h>.  On some systems,
85632         it is required for the definition of _SC_PAGESIZE.
85633
85634 2003-08-16  Jim Meyering  <jim@meyering.net>
85635         and Paul Eggert  <eggert@cs.ucla.edu>
85636
85637         Merges from coreutils, etc.
85638
85639         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85640         using the latest version from cvs.  This avoids problems with #line
85641         directives using a vendor (Sun) compiler.
85642         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85643         Don't set GETGROUPS_LIB here; now it's
85644         done via getgroups.m4's wrapper function.
85645         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85646         rather than just in sh-util/configure.in, so that the
85647         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85648         same.
85649         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85650         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85651         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85652         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85653         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85654         Remove code that is now done by the newly-required macros.
85655         Append $(EXEEXT) to DF_PROG.
85656         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85657         Do not invoke or require the following here,
85658         since prereq.m4 or some gnulib .m4 now does this for us:
85659         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85660         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85661         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85662         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85663         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85664         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85665         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85666         AC_FUNC_OBSTACK.
85667         Do not replace the following functions, as this is now the job
85668         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85669         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85670         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85671         atexit getpass, strdup, getpagesize.
85672         Replace 'raise'.
85673         Do not check for the following functions, as this is now the job
85674         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85675         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85676         setregid.
85677         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85678         Check for sys/sysctl.h.
85679         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85680         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85681         of checking for ssize_t ourselves.
85682
85683         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85684         Require every macro that gnulib/modules/* suggests for us.
85685         (jm_PREREQ_ADDEXT): New macro.
85686         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85687         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85688
85689         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85690         (gl_PHYSMEM): Use it.
85691         Also check for `table' function.
85692         Check for new headers and functions.
85693         Add check for sys/sysmp.h.
85694         With suggestions from Kaveh Ghazi.
85695         Ignore headers that are present but cannot be compiled.  This
85696         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85697         C 5.4.
85698
85699 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85700
85701         Document merge from coreutils.
85702         * modules/userspec: Depend on posixver.
85703         * modules/strftime: Depend on tzset.
85704
85705 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85706
85707         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85708         rather than tab, after '#' in shell-script copyright notices.
85709         Suggested by Bruno Haible.
85710
85711 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85712
85713         * config/srclist-update: Use three spaces, rather than tab, after '#'
85714         in shell-script copyright notices.  Suggested by Bruno Haible.
85715         Remove unnecessary parenthesization in regular expression.
85716
85717 2003-08-15  Jim Meyering  <jim@meyering.net>
85718
85719         Merge from coreutils.
85720         * lib/xgethostname.c: Include <stdlib.h>.
85721         (xghostname): Don't exit for anything other than memory-related
85722         failure; just return NULL.
85723         * lib/userspec.c: Include "posixver.h".
85724         (parse_user_spec): Accept `.' as a separator only
85725         in pre-POSIX-200112 mode.
85726         * lib/strtoimax.c: Use #elif rather than #else #if.
85727         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85728         Remove function, now that we can rely on a working tzset function.
85729         [!_LIBC]: Ensure that the required autoconf test has been run.
85730         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85731         Use underlying_strftime for %r.
85732         * lib/sha.c: Merge in some clean-up and optimization changes from
85733         glibc.
85734         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85735         Ensure that it is a multiple of 64.
85736         Rearrange loop exit tests so as to avoid performing an
85737         additional fread after encountering an error or EOF.
85738         * lib/realloc.c: Update copyright date.
85739
85740 2003-08-15  Jim Meyering  <jim@meyering.net>
85741         and Paul Eggert  <eggert@twinsun.com>
85742
85743         Merge from coreutils.
85744         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85745         member but strut utmpx does not.  Needed for AIX 4.3.3.
85746         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85747
85748 2003-08-15  Jim Meyering  <jim@meyering.net>
85749         and Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         Merges from coreutils, etc.
85752         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85753         Require gl_FUNC_TZSET_CLOBBER.
85754         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85755         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85756         members.
85757
85758 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85759
85760         Help the merge from coreutils.
85761         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85762         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85763         * m4/tzset.m4: Use it too.
85764
85765 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85766
85767         * modules/tzset: New file.
85768
85769 2003-08-14  Jim Meyering  <jim@meyering.net>
85770
85771         Merges from coreutils.
85772         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85773         variable names, rather than @FNMATCH_H@.
85774         * modules/alloca: Likewise for $(ALLOCA_H).
85775
85776         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85777         the three copies of the literal target, `fnmatch.h'.
85778         * modules/alloca (alloca.h): Likewise.
85779
85780 2003-08-14  Jim Meyering  <jim@meyering.net>
85781
85782         Merge from coreutils.
85783         * m4/tzset.m4: New file.
85784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85785         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85786         otherwise, AIX 5.1 systems would end up using the latter.
85787         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85788         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85789         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85790         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85791
85792 2003-08-14  Jim Meyering  <jim@meyering.net>
85793
85794         Merge from coreutils.
85795         * lib/obstack.h: Whitespace changes.
85796         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85797         and xcalloc return values.
85798         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85799         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85800         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85801         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85802         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85803         error from mntctl.
85804         Use mntctl's return value to drive the entry-processing loop, since
85805         we can't rely on the value of the vmt_length member in the last
85806         entry.  On some systems doing so could result in exhausting
85807         virtual memory.  Based in part on a patch from Mike Jetzer.
85808
85809 2003-08-14  Jim Meyering  <jim@meyering.net>
85810         and Paul Eggert  <eggert@twinsun.com>
85811
85812         Merges from coreutils, plus other fixes.
85813         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85814         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85815         for credits and details.  Thanks to Kaveh Ghazi for helping
85816         to keep these files in sync.
85817         (ARRAY_SIZE): Define it.
85818         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85819         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85820         (memcasecmp): Don't assume size_t fits in unsigned int.
85821         Remove casts and duplicate code.
85822         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85823         (memcpy): Remove definition.
85824         Merge in some clean-up and optimization changes from glibc.
85825         [BLOCKSIZE]: Move definition to top of file.
85826         Ensure that it is a multiple of 64.
85827         Rearrange loop exit tests so as to avoid performing an
85828         additional fread after encountering an error or EOF.
85829         * lib/md5.h (md5_uintptr): Define.
85830         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85831         return to the initial working directory.  Preserve errno
85832         for caller.
85833         * lib/idcache.c: Include "xalloc.h".
85834         (xmalloc, xrealloc): Remove decls.
85835         (getuser): Remove casts no longer required in C89.
85836         * lib/human.c: Include stdio.h, for sprintf.
85837         * lib/group-member.c: Include "xalloc.h".
85838         (xmalloc, xrealloc): Remove decls.
85839         (get_group_info): Remove casts no longer required in C89.
85840         * lib/getusershell.c (readname): Remove casts no longer required in
85841         C89.
85842         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85843         * lib/getline.c: Whitespace fix, from coreutils.
85844
85845 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85846
85847         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85848         Check for isascii.
85849
85850         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85851         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85852         Undo previous (whitespace-only) change.
85853
85854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85855
85856         * lib/exclude.c: Include <ctype.h>
85857         (IN_CTYPE_DOMAIN): New macro.
85858         (is_space): New fn.
85859         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85860         and empty lines.
85861
85862         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85863         Undo previous (whitespace-only) change.
85864
85865 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85866
85867         * config/srclist-update: Change update back to the old behavior,
85868         leaving whitespace alone.  Use one 'sed' command rather than a
85869         pipeline.
85870         (fixlicense): Now a variable, not a function.
85871         (remove_trailing_blanks): Remove.
85872         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85873         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85874         Undo previous (whitespace-only) change.
85875
85876 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85877
85878         Merge from coreutils.
85879         * modules/euidaccess: Add lib_SOURCES, include for new
85880         file euidaccess.h
85881
85882 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85883
85884         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85885         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85886         Normalize leading white space and remove trailing white space.
85887
85888         Merge from coreutils
85889         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85890
85891         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85892         0.12.1.  These files are now being upgraded automatically by
85893         ../config/srclist-update.
85894
85895 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85896
85897         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85898         Normalize leading white space and remove trailing white space.
85899         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85900         notice, as per ../config/srclist-update.
85901
85902         Merge from coreutils.
85903         * lib/euidaccess.h: New file.
85904         * lib/euidaccess.c: Include it.
85905         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85906         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85907         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85908
85909 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85910
85911         * config/srclist-update: Add copyright notice.
85912         (remove_id_lines, remove_trailing_blanks): New constants.
85913         (fixfile): Use them to normalize spacing a bit in copied files.
85914         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85915         Normalize leading white space and remove trailing white space.
85916
85917         * config/texinfo.tex: Sync with texinfo.
85918
85919         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85920         strtoul.c from libc, to merge coreutils whitespace changes.
85921
85922         * config/srclist.txt: Get the following m4 files from gettext:
85923         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85924         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85925         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85926         wint_t.m4.
85927
85928 2003-08-12  Karl Berry  <karl@gnu.org>
85929
85930         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85931         been made.
85932
85933 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85934
85935         * modules/gnu-source, m4/gnu-source.m4:
85936         Remove; we're assuming Autoconf 2.54 or later now.
85937         Suggested by Bruno Haible.
85938         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85939
85940 2003-08-11  Bruno Haible  <bruno@clisp.org>
85941
85942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85943
85944 2003-08-11  Bruno Haible  <bruno@clisp.org>
85945
85946         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85947         (vasnprintf): Use it instead of wcslen.
85948
85949 2003-08-11  Bruno Haible  <bruno@clisp.org>
85950
85951         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85952         value to ensure that _Bool promotes to int. Use #define for _Bool when
85953         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85954
85955 2003-08-10  Karl Berry  <karl@gnu.org>
85956
85957         * lib/regex.h: update from libc (whitespace fix).
85958
85959 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85960
85961         Merge some files from coreutils.  These changes were
85962         originally made by Jim Meyering.
85963         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85964         many older Unixes require this.
85965         * lib/alloca.c (alloca): Remove cast to argument of free;
85966         no longer needed in C89.
85967         * lib/alloca_.h, regex.h: Fix white space to match
85968         what GNU indent does.
85969
85970 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85971
85972         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85973         apparently Emacs's Unicode mode got confused before my 2003-08-05
85974         checkin.
85975
85976 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85977
85978         * m4/extensions.m4: New file.
85979         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85980         Require gl_USE_SYSTEM_EXTENSIONS.
85981         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85982         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85983
85984 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85985
85986         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85987         * modules/extensions, modules/gnu-source: New files.
85988         * modules/timespec, modules/unlocked-io: Depend on extensions.
85989
85990 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85991
85992         * modules/restrict: New file.
85993         * MODULES.html.sh (func_all_modules): Add restrict.
85994         * modules/regex: Depend on restrict.
85995
85996 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85997
85998         * m4/restrict.m4: New file.
85999         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
86000
86001 2003-08-07  Bruno Haible  <bruno@clisp.org>
86002
86003         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
86004         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
86005
86006 2003-08-07  Bruno Haible  <bruno@clisp.org>
86007
86008         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
86009         makes the module 'getndelim2' compatible with the module 'getline'.
86010
86011 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86012
86013         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
86014         byte with "\201" to avoid glitches when editing that source file
86015         with multi-gnome-terminal.
86016
86017 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86018
86019         * lib/bumpalloc.h: Remove.
86020
86021 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86022
86023         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
86024         * modules/bumpalloc: Remove.
86025
86026 2003-08-04  Paul Eggert  <eggert@twinsun.com>
86027
86028         * lib/getloadavg.c: Change copyright notice and spacing to conform to
86029         GNU coding style.
86030
86031         Merge from coreutils.
86032         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
86033         1. From glibc.
86034         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
86035         from Karl Berry, implemented by Jim Meyering.
86036         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
86037         from Dmitry V. Levin.
86038         Remove anachronistic cast of xrealloc.
86039         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
86040         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
86041         type. Otherwise, it wouldn't compile with at least /bin/cc on
86042         ymp-cray-unicos9.0.2.X.
86043         Combine two mostly-identical uses of alloca into one.
86044         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
86045
86046 2003-08-04  Dave Love  <d.love@dl.ac.uk>
86047
86048         [From Emacs.]
86049
86050         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
86051         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
86052         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
86053         obsolete NLIST_NAME_UNION.
86054         [__GNU__]: Undef BSD and FSCALE.
86055         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
86056
86057 2003-08-03  Paul Eggert  <eggert@twinsun.com>
86058
86059         * lib/stdbool_.h (_Bool): Make it signed char, instead of
86060         an enum type, so that it's guaranteed to promote to int.  See:
86061         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
86062
86063 2003-08-03  Karl Berry  <karl@gnu.org>
86064
86065         * config/depcomp: update from automake.
86066
86067 2003-07-31  Paul Eggert  <eggert@twinsun.com>
86068
86069         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
86070         (strerror): Don't assume that a printable int fits in 14 bytes.
86071
86072 2003-07-31  Bruno Haible  <bruno@clisp.org>
86073
86074         * modules/getpass-gnu: New file.
86075         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
86076
86077 2003-07-31  Bruno Haible  <bruno@clisp.org>
86078
86079         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
86080
86081 2003-07-24  Karl Berry  <karl@gnu.org>
86082
86083         * config/missing: update from automake.
86084
86085 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
86086             Bruno Haible  <bruno@clisp.org>
86087
86088         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
86089         * lib/getline.c (getline, getdelim): Likewise.
86090         Remove _GNU_SOURCE define; now it's defined in config.h through
86091         m4/getline.m4.
86092
86093 2003-07-23  Karl Berry  <karl@gnu.org>
86094
86095         * config/config.sub: update from prep.
86096
86097 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86098
86099         * modules/xalloc (Depends-on): Add exitfail.
86100         * modules/xmemcoll: Likewise.
86101
86102 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86103
86104         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
86105         over-parenthesization in macros.
86106
86107         Sync with coreutils.
86108
86109         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
86110         required by C99.
86111
86112         Use `exit_failure' for xalloc and xmemcoll instead of their own
86113         private exit-failure variables.
86114         * lib/xalloc.h (xalloc_exit_failure): Remove.
86115         * lib/xmalloc.c: Likewise.  Include exitfail.h.
86116         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
86117         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
86118         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
86119         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
86120
86121 2003-07-20  Jim Meyering  <jim@meyering.net>
86122
86123         * modules/closeout (Depends-on): Add exitfail.
86124         Suggestion from Bruno Haible.
86125
86126 2003-07-19  Karl Berry  <karl@gnu.org>
86127
86128         * config/config.sub: update from prep.
86129
86130 2003-07-18  Paul Eggert  <eggert@twinsun.com>
86131
86132         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
86133         Remove.
86134         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
86135         to test that it can stand by itself.  Include "exitfail.h".
86136         Clients should set exit_failure instead.
86137         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
86138
86139 2003-07-18  Bruno Haible  <bruno@clisp.org>
86140
86141         * modules/getndelim2: New file.
86142         * modules/getline: Share files with module getndelim2.
86143         * modules/getnline: Depend on getndelim2 instead of sharing files with
86144         it. Add getnline.c to lib_SOURCES.
86145         * MODULES.html.sh (func_all_modules): Add getndelim2.
86146
86147 2003-07-18  Bruno Haible  <bruno@clisp.org>
86148
86149         * m4/getndelim2.m4: New file.
86150         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86151         invoke gl_PREREQ_GETNDELIM2.
86152         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86153         gl_PREREQ_GETNDELIM2.
86154         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86155         gl_GETNDELIM2.
86156
86157 2003-07-18  Bruno Haible  <bruno@clisp.org>
86158
86159         * lib/getndelim2.h: New file.
86160         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86161         getndelim2.h.
86162         (getndelim2): Make non-static. Change return type to ssize_t.
86163         * lib/getline.h: Change argument names.
86164         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86165         * lib/getnline.c: Include getndelim2.h.
86166
86167 2003-07-18  Andreas Schwab  <schwab@suse.de>
86168
86169         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86170
86171 2003-07-17  Karl Berry  <karl@gnu.org>
86172
86173         * config/config.sub: update from prep.
86174
86175 2003-07-17  Bruno Haible  <bruno@clisp.org>
86176
86177         * modules/getnline: New file.
86178         * modules/getline: Add lib/getndelim2.c to source file list.
86179         * MODULES.html.sh (func_all_modules): Add getnline.
86180
86181 2003-07-17  Bruno Haible  <bruno@clisp.org>
86182
86183         * m4/getnline.m4: New file.
86184
86185 2003-07-17  Bruno Haible  <bruno@clisp.org>
86186
86187         * m4/Makefile.am.in: Remove file.
86188         * m4/Makefile.am: Remove file.
86189         * m4/Makefile.in: Remove file.
86190
86191 2003-07-17  Bruno Haible  <bruno@clisp.org>
86192
86193         * lib/getnline.h: New file.
86194         * lib/getnline.c: New file.
86195         * lib/getndelim2.c: New file, extracted from getline.c.
86196         (getndelim2): Renamed from getdelim2, with added nmax argument.
86197         * lib/getline.c: Include getndelim2.c.
86198         (getdelim2): Moved out to getndelim2.c.
86199         (getline, getdelim): Update.
86200
86201 2003-07-17  Bruno Haible  <bruno@clisp.org>
86202
86203         * lib/Makefile.am: Remove file.
86204         * lib/Makefile.in: Remove file.
86205
86206 2003-07-17  Bruno Haible  <bruno@clisp.org>
86207
86208         * configure.in: Remove file.
86209         * Makefile.in: Remove file.
86210
86211 2003-07-17  Bruno Haible  <bruno@clisp.org>
86212
86213         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86214
86215 2003-07-16  Karl Berry  <karl@gnu.org>
86216
86217         * config/srclist-update: was running fixlicense twice, which caused
86218                 texinfo.tex to be nullified for some reason.  Simplify,
86219                 $gplsrc is no longer needed as far as I can see?
86220
86221 2003-07-16  Jim Meyering  <jim@meyering.net>
86222
86223         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86224
86225 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86226
86227         * config/srclist.txt: Get the following files from gettext-runtime/intl
86228         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86229         ref-del.sin.  From Bruno Haible.
86230         * config/srclist-update (fixfile): Change grep pattern again, since the
86231         previous fix didn't work (there was another trailing $).  Use
86232         '[$]' to escape the $s.
86233
86234 2003-07-15  Karl Berry  <karl@gnu.org>
86235
86236         * lib/vasnprintf.c: update from gettext.
86237
86238 2003-07-15  Karl Berry  <karl@gnu.org>
86239
86240         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86241         gets expanded when surrounded by '$'.
86242
86243 2003-07-15  Jim Meyering  <jim@meyering.net>
86244
86245         * modules/save-cwd: Don't depend on error.  From Derek Price.
86246
86247 2003-07-15  Jim Meyering  <jim@meyering.net>
86248
86249         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86250
86251 2003-07-14  Simon Josefsson  <jas@extundo.com>
86252
86253         * modules/mempcpy: New file.
86254         * MODULES.html.sh (func_all_modules): Add mempcpy.
86255
86256 2003-07-14  Simon Josefsson  <jas@extundo.com>
86257
86258         * m4/mempcpy.m4: New file.
86259
86260 2003-07-14  Simon Josefsson  <jas@extundo.com>
86261
86262         * lib/mempcpy.h: New file.
86263         * lib/mempcpy.c: New file.
86264
86265 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86266
86267         * modules/getdate, modules/posixtm: Depend on mktime.
86268
86269 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86270
86271         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86272         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86273         unicodeio.c, unicodeio.h, unlocked-io.h:
86274         Switch from LGPL to GPL.
86275
86276 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86277
86278         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86279         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86280         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86281         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86282         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86283         updated automatically by ../config/srclist-update.  This changes
86284         their license from LPGL to GPL.
86285
86286 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86287
86288         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86289         assumed to refer to the root of the most recent stable gettext version.
86290         * config/srclistvars.sh: Add defaults for eggert.
86291         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86292         Match "This program" as well as "The program".  This is needed
86293         for gettext.
86294
86295 2003-07-14  Jim Meyering  <jim@meyering.net>
86296
86297         Don't emit diagnostics.  Let callers do that.
86298         * lib/save-cwd.c: Don't include "error.h".
86299         (save_cwd): Don't call error.  Ensure that errno is valid
86300         when returning nonzero.
86301
86302         * lib/save-cwd.h (restore_cwd): Update prototype.
86303         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86304         Simplify.  Don't call error upon failure.  Let callers do that.
86305         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86306         when auditing is enabled.  But don't bother updating the #if.
86307
86308 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86309
86310         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86311         it breaks C++ compilation.
86312         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86313
86314 2003-07-10  Simon Josefsson  <jas@extundo.com>
86315
86316         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86317
86318 2003-07-10  Jim Meyering  <jim@meyering.net>
86319
86320         * m4/clock_time.m4: Remove trailing blank.
86321         * m4/intmax_t.m4: Likewise.
86322
86323 2003-07-10  Jim Meyering  <jim@meyering.net>
86324
86325         * lib/vasnprintf.c: Remove trailing blanks.
86326         Make cpp indentation consistent.
86327
86328 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86329
86330         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86331         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86332         Switch from LGPL to GPL.
86333
86334 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86335
86336         * config/srclist.txt: Sort sublists.  Add
86337         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86338         that differ from gnulib for one reason or another; we'd like this list
86339         to be smaller but for now let's document what we have.
86340
86341 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86342
86343         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86344         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86345         and sweeter "eval x=$x".
86346         * config/srclist.txt: Get lib/argp* from glibc.
86347
86348 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/mktime.c: Fix some boundary cases and remove need for floating
86351         point.
86352
86353         Issue a compile-time diagnostic if time_t is floating point, or if
86354         two's complement arithmetic is not in effect, or if arithmetic
86355         right shift does not propagate the sign.  These assumptions were
86356         all in the original code but they weren't checked.
86357
86358         (TIME_T_MIDPOINT, verify): New macros.
86359         (__isleap): Remove; it has integer overflow problems.
86360         (leapyear): New function, without those problems.
86361         (ydhms_tm_diff): Remove; splitting into two parts.
86362         (ydhms_diff): New function, containing the arithmetic part of
86363         the old ydhms_tm_diff function.  Issue a compile-time
86364         diagnostic if we are not using C99 integer division.
86365         Avoid casts when possible.
86366         (guess_time_tm): New function, containing the checking part of
86367         the old ydhms_tm_diff function.  Return the new value, rather than
86368         the difference between it and the old.  Accept a new argument T
86369         so that *T specifies the old value.  Check for overflow in the result.
86370
86371         (__mktime_internal): Use a time_t offset, not a long int offset.
86372         This undoes the 2003-06-04 change, which is no longer needed now
86373         that we have better overflow checking.
86374         (localtime_offset): Likewise.
86375
86376         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86377         and long are 64-bit but int is only 32-bit.
86378         (ydhms_diff): Use long int to store year1 and yday1.
86379         Issue a compile-time diagnostic if long int is not wide enough.
86380
86381         (__mktime_internal): Use long int to store adjusted year and yday.
86382         Use plain C rather than preprocessor commands, if that doesn't
86383         affect efficiency.
86384         Check for overflow (and try to repair) after each probe
86385         rather than checking only at the very end.  This avoids some bugs
86386         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86387         does not equal GMT offset at maximum time).
86388         Use integer to check for overflow rather than floating point; this
86389         is more portable to non-IEEE hosts, and is a tad faster.
86390         When we detect that we are oscillating between two values,
86391         don't check whether tm_isdst has the requested value, since
86392         we already know the answer.  When tm_isdst has the wrong value,
86393         use a different heuristic to find the right one, based on the
86394         extreme values actually observed in practice in tz2003a,
86395         rather than the (overly optimistic) "previous 3 calendar quarters".
86396
86397         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86398         "T const" to accommodate glibc style.
86399         (check_result): Use less-confusing report format.  "long" -> "long int.
86400         (main): Likewise.
86401         Don't loop if the iteration overflows time_t.
86402         Allow a negative step in the iteration.
86403
86404 2003-07-06  Karl Berry  <karl@gnu.org>
86405
86406         * config/depcomp: update from automake.
86407         * config/config.sub: update from prep.
86408
86409 2003-07-03  Karl Berry  <karl@gnu.org>
86410
86411         * config/config.guess: update from prep.
86412
86413 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86414
86415         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86416         xreadlink.c now includes it unconditionally.
86417
86418 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86419
86420         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86421         having it depend on HAVE_SYS_TYPES_H.
86422
86423 2003-07-01  Bruno Haible  <bruno@clisp.org>
86424
86425         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86426         <sys/types.h> should be sufficient.
86427         Reported by Paul Eggert.
86428
86429 2003-06-26  Karl Berry  <karl@gnu.org>
86430
86431         * config/depcomp: update from automake.
86432
86433 2003-06-26  Bruno Haible  <bruno@clisp.org>
86434
86435         * modules/human: Depend on module stdbool.
86436
86437 2003-06-25  Bruno Haible  <bruno@clisp.org>
86438
86439         * modules/readlink: New file.
86440         * modules/xreadlink: Depend on it.
86441         * MODULES.html.sh (func_all_modules): Add readlink.
86442
86443 2003-06-25  Bruno Haible  <bruno@clisp.org>
86444
86445         * m4/readlink.m4: New file.
86446
86447 2003-06-25  Bruno Haible  <bruno@clisp.org>
86448
86449         * lib/readlink.c: New file.
86450
86451 2003-06-22  Karl Berry  <karl@gnu.org>
86452
86453         * config/srclist.txt: update mkinstalldirs from automake.
86454         * config/mkinstalldirs: update.
86455
86456 2003-06-22  Bruno Haible  <bruno@clisp.org>
86457
86458         Portability to mingw32.
86459         * m4/ssize_t.m4: New file, from GNU gettext.
86460         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86461         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86462
86463 2003-06-22  Bruno Haible  <bruno@clisp.org>
86464
86465         * modules/safe-read: Add m4/ssize_t.m4.
86466         * modules/xreadlink: Add m4/ssize_t.m4.
86467
86468 2003-06-20  Bruno Haible  <bruno@clisp.org>
86469
86470         Assume C89, so PARAMS isn't needed.
86471         * lib/unicodeio.h (PARAMS): Remove.
86472         * lib/unicodeio.c: Don't use PARAMS.
86473
86474 2003-06-18  Karl Berry  <karl@gnu.org>
86475
86476         * config/config.{guess,sub}: update from prep.
86477
86478 2003-06-18  Jim Meyering  <jim@meyering.net>
86479
86480         Merge changes from coreutils.
86481         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86482         Remove explicit declarations of xmalloc and realloc.
86483         Include xalloc.h.
86484         (read_utmp): Remove anachronistic cast of xmalloc.
86485
86486 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86487
86488         Assume C89, so PARAMS isn't needed.
86489         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86490         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86491         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86492         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86493         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86494         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86495         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86496         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86497         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86498         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86499         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86500         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86501         no longer needed. Anyway, config.h should always be included before any
86502         other file.
86503
86504 2003-06-11  Simon Josefsson  <jas@extundo.com>
86505
86506         * modules/sysexits: New file.
86507         * MODULES.html.sh (func_all_modules): Add sysexits.
86508
86509 2003-06-11  Simon Josefsson  <jas@extundo.com>
86510
86511         * lib/sysexit_.h: New file.
86512
86513 2003-06-11  Derek Price  <derek@ximbiot.com>
86514
86515         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86516         necessary.
86517
86518 2003-06-11  Bruno Haible  <bruno@clisp.org>
86519
86520         * m4/sysexits.m4: New file.
86521
86522 2003-06-10  Simon Josefsson  <jas@extundo.com>
86523
86524         * lib/argp.h: New file, from glibc.
86525         * lib/argp-ba.c: New file, from glibc.
86526         * lib/argp-eexst.c: New file, from glibc.
86527         * lib/argp-fmtstream.c: New file, from glibc.
86528         * lib/argp-fmtstream.h: New file, from glibc.
86529         * lib/argp-fs-xinl.c: New file, from glibc.
86530         * lib/argp-help.c: New file, from glibc.
86531         * lib/argp-namefrob.h: New file, from glibc.
86532         * lib/argp-parse.c: New file, from glibc.
86533         * lib/argp-pv.c: New file, from glibc.
86534         * lib/argp-pvh.c: New file, from glibc.
86535         * lib/argp-xinl.c: New file, from glibc.
86536
86537 2003-06-10  Simon Josefsson  <jas@extundo.com>
86538
86539         * modules/strchrnul: New file.
86540
86541 2003-06-10  Simon Josefsson  <jas@extundo.com>
86542
86543         * modules/argp: New file.
86544
86545 2003-06-10  Simon Josefsson  <jas@extundo.com>
86546
86547         * m4/strchrnul.m4: New file.
86548
86549 2003-06-10  Simon Josefsson  <jas@extundo.com>
86550
86551         * lib/strchrnul.h: New file.
86552         * lib/strchrnul.c: New file.
86553
86554 2003-06-10  Bruno Haible  <bruno@clisp.org>
86555
86556         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86557
86558 2003-06-07  Karl Berry  <karl@gnu.org>
86559
86560         * config/config.{guess,sub}: update from prep.
86561
86562 2003-06-07  Jim Meyering  <jim@meyering.net>
86563
86564         * modules/strtod: Use $(...) notation, not @...@ for
86565         AC_REPLACE'd variables.
86566         * modules/localcharset: Likewise.
86567
86568 2003-06-07  Jim Meyering  <jim@meyering.net>
86569
86570         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86571         in place of my name in the copyright comment.
86572         Remove definition and uses of __P.
86573
86574         From coreutils.
86575         * lib/stat.c: Don't declare xmalloc explicitly.
86576         Instead, include "xalloc.h".
86577         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86578         xrealloc, and xcalloc return values.
86579         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86580         Improve comment.
86581         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86582
86583 2003-06-07  Bruno Haible  <bruno@clisp.org>
86584
86585         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86586         avoid AC_CONFIG_LINKS.
86587         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86588         fnmatch.h, to avoid AC_CONFIG_LINKS.
86589         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86590
86591 2003-06-07  Bruno Haible  <bruno@clisp.org>
86592
86593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86594         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86595         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86596         directory.
86597         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86598         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86599         directory.
86600
86601 2003-06-06  Jim Meyering  <jim@meyering.net>
86602
86603         Merge from coreutils.
86604         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86605         Consolidate declarations and initializations of *_base* locals.
86606
86607         Merge from coreutils.
86608         This avoids a core dump on systems without GNU putenv,
86609         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86610         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86611         (unsetenv): New static function, from GNU libc.
86612         (rpl_putenv): Use it.
86613
86614         * lib/modechange.c: Remove trailing blanks.
86615
86616         Merge from coreutils.
86617         * lib/fsusage.c: Remove declaration of statfs.
86618         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86619
86620         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86621
86622 2003-06-06  Jim Meyering  <jim@meyering.net>
86623
86624         * lib/stdbool_.h: Renamed from stdbool.h.in.
86625
86626 2003-06-06  Jim Meyering  <jim@meyering.net>
86627             Bruno Haible  <bruno@clisp.org>
86628
86629         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86630         Adjust Makefile.am snippet not to redirect directly to target.
86631         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86632
86633 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86634
86635         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86636         mismatch, look in future quarters as well as past.  This fixes a
86637         bug when processing fall-backwards gaps immediately after a long
86638         period of daylight-saving time.
86639
86640         * lib/mktime.c: Assume freestanding C89 or better.
86641         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86642         (__P): Remove; not used.
86643         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86644         (mktime, not_equal_tm, print_tm, check_result,
86645         main): Use prototypes.  Use const * where appropriate.
86646         (main): Fix typo in testing code that uncovered by above changes.
86647         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86648
86649 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86650
86651         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86652         locale.h, localeconv.  This merges changes from coreutils.
86653
86654         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86655         It can be removed after the next Autoconf is released.
86656         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86657         needed.
86658
86659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86660
86661         * lib/mktime.c: Fix Debian bug 177940
86662         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86663         (localtime_offset): Now long int, not time_t, because we want it
86664         to be guaranteed to be signed.  All uses changed.
86665         (__mktime_internal): If overflow would occur when adding offset,
86666         don't add it.
86667
86668         Merge 'human' changes from coreutils.  Rewrite to support
86669         locale-specific notations like thousands separators.
86670         * lib/human.c: Simplify authorship notice.
86671         Include human.h immediately after config.h.
86672         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86673         <limits.h>: Do not include, since human.h does.
86674         (SIZE_MAX, UINTMAX_MAX): New macros.
86675         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86676         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86677         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86678         (power_letter): Renamed from suffixes.
86679         (generate_suffix_backwards): Remove.
86680         (adjust_value): Now takes int style (because of human.h changes)
86681         and long double value (for greater precision on some platforms).
86682         (group_number): New function.
86683         (human_readable): Use it.  Use integer options, not enum.
86684         Put the options before the sizes in the arg list.
86685         Support all the new options.
86686         The old human_readable function has been removed;
86687         use inttostr.h instead.
86688         (human_readable, default_block_size, humblock):
86689         Use uintmax_t, not int, for block sizes.
86690         (human_readable_inexact, block_size_types): Remove.
86691         (block_size_opts): New constant.
86692         (human_options): Renamed from human_block_size, with new signature
86693         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86694         * lib/human.h: Add copyright and authorship notice.
86695         Include <limits.h> and <stdbool.h> unconditionally.
86696         (PARAMS): Remove.  All uses removed.
86697         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86698         (enum human_inexact_style): Remove tag; now a nameless enum.
86699         (human_floor, human_ceiling, human_round_to_even): Now have
86700         values 2, 0, 1 rather than -1, 1, 0.
86701         (human_group_digits, human_suppress_point_zero, human_autoscale,
86702         human_base_1024, human_SI, human_B): New constants.
86703         (human_readable_inexact, human_block_size): Remove.
86704         (human_readable): Size args are now uintmax_t, not int.
86705         (human_options): New decl.
86706
86707         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86708         unnecessary now that we assume C89 or better.  This change
86709         imported from coreutils.
86710
86711         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86712         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86713         in the 2003-05-30 sync from glibc.
86714
86715         .h files should stand alone, but we shouldn't include <sys/types.h>
86716         if we can get away with just <stddef.h>.
86717
86718         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86719         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86720         rather than <sys/types.h>, as we merely need size_t.
86721         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86722         to get size_t.
86723         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86724         Include <stdio.h>, to get FILE.
86725         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86726         memcasecmp.h has included <stddef.h> and all we need is size_t.
86727         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86728         our interface, instead of including <sys/types.h>
86729
86730 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86731
86732         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86733         now, as glibc mktime is buggy on non-glibc systems.
86734
86735 2003-06-03  Karl Berry  <karl@gnu.org>
86736
86737         * config/config.sub: update from prep.
86738
86739 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86740
86741         [from coreutils]
86742         Fix some minor time-related bugs with POSIX time arguments.
86743         Some valid time stamps were being rejected (notably -1, and
86744         time stamps before 1900 on 64-bit hosts).  And some invalid
86745         time stamps were being accepted, e.g. September 31.
86746
86747         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86748         that we can return (time_t) -1 successfully.
86749         * lib/posixtm.c: Likewise.
86750         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86751         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86752         (t): Remove static var.
86753         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86754         of static var.  All uses changed.
86755         (year): Do not reject years before 1900; they can occur with
86756         64-bit time_t.
86757         (posix_time_parse): Do not check for out-of-range components;
86758         that is now the caller's responsibility, since our checks were
86759         only approximations.
86760         (posixtime): Use mktime to check for out-of-range components,
86761         since it knows them exactly.
86762         If mktime returns (time_t) -1, check whether an error actually occurred
86763         by invoking localtime on -1.
86764         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86765         posixtime failures better.
86766         Improve the test data (in comments only).
86767
86768 2003-06-02  Karl Berry  <karl@gnu.org>
86769
86770         * config/mkinstalldirs (version): new variable.
86771         (--version): new option.
86772         (usage): improve message.
86773
86774 2003-05-30  Karl Berry  <karl@gnu.org>
86775
86776         * lib/mktime.c: update from libc.
86777
86778 2003-05-30  Bruno Haible  <bruno@clisp.org>
86779
86780         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86781         * config/config.rpath: Upgrade to gettext-0.12.1.
86782
86783 2003-05-30  Bruno Haible  <bruno@clisp.org>
86784
86785         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86786         * m4/nls.m4: New file, from gettext-0.12.1.
86787         * m4/po.m4: New file, from gettext-0.12.1.
86788         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86789
86790 2003-05-30  Bruno Haible  <bruno@clisp.org>
86791
86792         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86793         * lib/localcharset.h: Likewise.
86794         * lib/localcharset.c: Likewise.
86795
86796 2003-05-29  Karl Berry  <karl@gnu.org>
86797
86798         * config/config.rpath: update from gettext.
86799
86800 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86801
86802         Assume the headers required for C89 freestanding compilers.
86803         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86804         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86805         * m4/human.m4 (gl_HUMAN): Likewise.
86806         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86807         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86808         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86809         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86810         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86811         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86812
86813 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86814
86815         Assume the headers required for C89 freestanding compilers.
86816         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86817         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86818         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86819         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86820         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86821         define, since <limits.h> is guaranteed to do that.
86822         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86823         * lib/exclude.c: Include <stdbool.h> unconditionally.
86824         * lib/tempname.c: Include <stddef.h> unconditionally.
86825         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86826         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86827         <stddef.h> does that.
86828         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86829         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86830         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86831         needed.
86832         * lib/xstrtol.c: Likewise.
86833         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86834         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86835
86836         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86837         warnings on some platforms.
86838
86839         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86840         arbitrarily.
86841
86842 2003-05-26  Jim Meyering  <jim@meyering.net>
86843
86844         Merge in a change from coreutils:
86845         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86846         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86847         that condition, rather than `-1' which is slightly misleading.
86848         Change the name of the cache variable to have the gl_ prefix.
86849         Prompted by a patch from Richard Dawe for DJGPP.
86850
86851 2003-05-24  Karl Berry  <karl@gnu.org>
86852
86853         * config/config.guess: update from prep.
86854
86855 2003-05-22  Karl Berry  <karl@gnu.org>
86856
86857         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86858
86859 2003-05-20  Karl Berry  <karl@gnu.org>
86860
86861         * config/config.guess: update from prep.
86862
86863 2003-05-18  Karl Berry  <karl@gnu.org>
86864
86865         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86866         might actually be set by the user.
86867
86868         * config/depcomp, install-sh, mdate-sh: update from automake.
86869
86870 2003-05-17  Bruno Haible  <bruno@clisp.org>
86871
86872         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86873         invalid expansion for AC_EGREP_CPP.
86874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86875         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86876         Suggested by Akim Demaille <akim@epita.fr> in
86877         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86878
86879 2003-05-12  Jim Meyering  <jim@meyering.net>
86880
86881         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86882         the space-padded-by-default conversion specifiers, %e, %k, %l.
86883
86884 2003-05-12  Bruno Haible  <bruno@clisp.org>
86885
86886         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86887         the string is longer than 4 KB.
86888
86889 2003-05-11  Karl Berry  <karl@gnu.org>
86890
86891         * config/config.{guess,sub}: update from prep.
86892
86893 2003-05-09  Bruno Haible  <bruno@clisp.org>
86894
86895         * modules/error: Add m4/strerror_r.m4 to file list.
86896
86897 2003-05-03  Bruno Haible  <bruno@clisp.org>
86898
86899         Upgrade to Unicode-4.0.
86900         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86901         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86902         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86903         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86904         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86905         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86906         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86907         Change width of U+E0100..U+E01EF from 1 to 0.
86908
86909 2003-04-25  Jim Meyering  <jim@meyering.net>
86910
86911         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86912         of type size_t, not int.
86913
86914 2003-04-25  Bruno Haible  <bruno@clisp.org>
86915
86916         * lib/copy-file.c: Include <stddef.h>, for size_t.
86917
86918 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86919
86920         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86921         code which expansion is under static control.  Patch imported from
86922         Akim Demaille's patch to Bison; see
86923         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86924
86925 2003-04-14  Bruno Haible  <bruno@clisp.org>
86926
86927         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86928
86929 2003-04-11  Jim Meyering  <jim@meyering.net>
86930
86931         Merge changes from Coreutils.
86932
86933         2003-03-22  Jim Meyering  <jim@meyering.net>
86934
86935         * lib/strftime.c (widen): Cast alloca return value to proper type.
86936
86937         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86938
86939         From GNU libc.
86940         * lib/strftime.c (my_strftime): Handle very large width
86941         specifications for numeric values correctly.  Improve checks for
86942         overflow.
86943
86944         2003-01-19  Jim Meyering  <jim@meyering.net>
86945
86946         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86947         definitions.
86948         (nl_get_alt_digit) [! defined my_strftime]: Define.
86949         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86950         _nl_get_alt_digit and _nl_get_walt_digit.
86951
86952         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86953         libc. These changes have no effect outside of _LIBC.
86954
86955 2003-04-10  Bruno Haible  <bruno@clisp.org>
86956
86957         * modules/findprog: New file.
86958         * MODULES.html.sh (func_all_modules): Add it.
86959
86960 2003-04-10  Bruno Haible  <bruno@clisp.org>
86961
86962         * m4/findprog.m4: New file.
86963         * m4/eaccess.m4: New file.
86964
86965 2003-04-10  Bruno Haible  <bruno@clisp.org>
86966
86967         * lib/findprog.h: New file, from GNU gettext.
86968         * lib/findprog.c: New file, from GNU gettext.
86969
86970 2003-04-05  Jim Meyering  <jim@meyering.net>
86971
86972         Merge changes from Coreutils.
86973
86974         * lib/exclude.h (PARAMS): Remove definition and uses.
86975         * lib/exclude.c: Remove uses of `PARAMS'.
86976
86977         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86978         Add test-cases for DOS filenames. Declare program_name.
86979         (main): Set up program_name.  Patch by Rich Dawe.
86980
86981         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86982         error from mntctl.
86983         Use mntctl's return value to drive the entry-processing loop, since
86984         we can't rely on the value of the vmt_length member in the last
86985         entry.  On some systems doing so could result in exhausting
86986         virtual memory.  Based in part on a patch from Mike Jetzer.
86987
86988 2003-04-04  Bruno Haible  <bruno@clisp.org>
86989
86990         * modules/linebreak: New file.
86991         * MODULES.html.sh (func_all_modules): Add it.
86992
86993 2003-04-04  Bruno Haible  <bruno@clisp.org>
86994
86995         * m4/linebreak.m4: New file.
86996
86997 2003-04-04  Bruno Haible  <bruno@clisp.org>
86998
86999         * lib/linebreak.h: New file, from GNU gettext.
87000         * lib/linebreak.c: New file, from GNU gettext with slight
87001         modifications.
87002         * lib/lbrkprop.h: New file, from GNU gettext.
87003
87004 2003-04-03  Bruno Haible  <bruno@clisp.org>
87005
87006         * modules/utf8-ucs4: New file.
87007         * modules/utf16-ucs4: New file.
87008         * modules/ucs4-utf8: New file.
87009         * modules/ucs4-utf16: New file.
87010         * MODULES.html.sh (func_all_modules): Add them.
87011
87012 2003-04-03  Bruno Haible  <bruno@clisp.org>
87013
87014         * m4/utf-ucs4.m4: New file.
87015         * m4/ucs4-utf.m4: New file.
87016
87017 2003-04-03  Bruno Haible  <bruno@clisp.org>
87018
87019         * lib/utf8-ucs4.h: New file, from GNU gettext.
87020         * lib/utf16-ucs4.h: New file, from GNU gettext.
87021         * lib/ucs4-utf8.h: New file, from GNU gettext.
87022         * lib/ucs4-utf16.h: New file, from GNU gettext.
87023
87024 2003-04-02  Bruno Haible  <bruno@clisp.org>
87025
87026         * modules/binary-io: New file.
87027         * MODULES.html.sh (func_all_modules): Add it.
87028
87029 2003-04-02  Bruno Haible  <bruno@clisp.org>
87030
87031         * lib/binary-io.h: New file, from GNU gettext.
87032
87033 2003-04-01  Bruno Haible  <bruno@clisp.org>
87034
87035         * modules/pathname: New file.
87036         * MODULES.html.sh (func_all_modules): Add it.
87037
87038 2003-04-01  Bruno Haible  <bruno@clisp.org>
87039
87040         * lib/pathname.h: New file, from GNU gettext.
87041         * lib/concatpath.c: New file, from GNU gettext.
87042
87043 2003-03-30  Bruno Haible  <bruno@clisp.org>
87044
87045         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
87046
87047 2003-03-30  Bruno Haible  <bruno@clisp.org>
87048
87049         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
87050         function chown() doesn't exist.
87051
87052 2003-03-28  Bruno Haible  <bruno@clisp.org>
87053
87054         * modules/copy-file: New file.
87055         * MODULES.html.sh (func_all_modules): Add it.
87056
87057 2003-03-28  Bruno Haible  <bruno@clisp.org>
87058
87059         * m4/copy-file.m4: New file.
87060
87061 2003-03-28  Bruno Haible  <bruno@clisp.org>
87062
87063         * lib/copy-file.h: New file, from GNU gettext.
87064         * lib/copy-file.c: New file, from GNU gettext.
87065
87066 2003-03-18  Jim Meyering  <jim@meyering.net>
87067
87068         * lib/quote.c (quote_n): Fix typo in comment.
87069
87070 2003-03-18  Bruno Haible  <bruno@clisp.org>
87071
87072         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
87073         checking.
87074         * m4/onceonly_2_57.m4: Likewise.
87075
87076 2003-03-17  Bruno Haible  <bruno@clisp.org>
87077
87078         * m4/onceonly.m4: Require autoconf 2.54 or newer.
87079         (m4_quote): Remove macro.
87080         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
87081
87082 2003-03-14  Jim Meyering  <jim@meyering.net>
87083
87084         Merge changes from Coreutils.
87085         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
87086         to be const, in order to avoid warnings.
87087         (obstack_room): Likewise.
87088         (obstack_empty_p): Likewise.
87089
87090 2003-03-14  Bruno Haible  <bruno@clisp.org>
87091
87092         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
87093         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
87094
87095 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87096
87097         Merge changes from Bison.
87098         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
87099         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
87100         when compiling Bison 1.875's `bitset bset = obstack_alloc
87101         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
87102         * lib/hash.c: Include <stdbool.h> unconditionally.
87103
87104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87105
87106         * m4/onceonly.m4 (m4_quote): New macro.
87107         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
87108         Quote AC_FOREACH variable-expansions properly.
87109
87110 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87111
87112         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
87113
87114 2003-03-09  Paul Eggert  <eggert@twinsun.com>
87115
87116         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
87117         Reported by Bruce Becker; see:
87118         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
87119
87120 2003-03-03  Paul Eggert  <eggert@twinsun.com>
87121             Bruno Haible  <bruno@clisp.org>
87122
87123         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
87124         Reported by John Hughes, see
87125         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
87126
87127 2003-02-20  Bruno Haible  <bruno@clisp.org>
87128
87129         * MODULES.html.sh (func_all_modules): Add poll.
87130
87131 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87132
87133         * modules/poll: New file.
87134
87135 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87136
87137         * lib/poll_.h: New file.
87138         * lib/poll.c: New file.
87139
87140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87141
87142         * m4/poll.m4: New file.
87143
87144 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87145
87146         * modules/mathl: New file.
87147
87148 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87149
87150         * lib/mathl.h: New file.
87151         * lib/acosl.c: New file.
87152         * lib/asinl.c: New file.
87153         * lib/atanl.c: New file.
87154         * lib/ceill.c: New file.
87155         * lib/cosl.c: New file.
87156         * lib/expl.c: New file.
87157         * lib/floorl.c: New file.
87158         * lib/frexpl.c: New file.
87159         * lib/ldexpl.c: New file.
87160         * lib/logl.c: New file.
87161         * lib/sincosl.c: New file.
87162         * lib/sinl.c: New file.
87163         * lib/sqrtl.c: New file.
87164         * lib/tanl.c: New file.
87165         * lib/trigl.c: New file.
87166         * lib/trigl.h: New file.
87167
87168 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87169
87170         * m4/mathl.m4: New file.
87171
87172 2003-02-18  Bruno Haible  <bruno@clisp.org>
87173
87174         * MODULES.html.sh (func_all_modules): Add mathl.
87175
87176 2003-02-17  Bruno Haible  <bruno@clisp.org>
87177
87178         * modules/mkdtemp: New module.
87179         * MODULES.html.sh (func_all_modules): Add it.
87180
87181 2003-02-17  Bruno Haible  <bruno@clisp.org>
87182
87183         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87184
87185 2003-02-17  Bruno Haible  <bruno@clisp.org>
87186
87187         * lib/mkdtemp.h: New file, from GNU gettext.
87188         * lib/mkdtemp.c: New file, from GNU gettext.
87189
87190 2003-02-02  Jim Meyering  <jim@meyering.net>
87191
87192         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87193         e.g. glibc-2.2.93.
87194
87195 2003-01-31  Bruno Haible  <bruno@clisp.org>
87196
87197         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87198         'rpl_rename'.
87199         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87200         'rpl_strnlen'.
87201         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87202         'rpl_strtod'.
87203         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87204         'rpl_utime'.
87205
87206 2003-01-31  Bruno Haible  <bruno@clisp.org>
87207
87208         * lib/rename.c: #undef rename before defining rpl_rename.
87209         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87210
87211 2003-01-30  Bruno Haible  <bruno@clisp.org>
87212
87213         * modules/vasnprintf, modules/vasprintf: New modules.
87214         * MODULES.html.sh (func_all_modules): Add them.
87215
87216 2003-01-30  Bruno Haible  <bruno@clisp.org>
87217
87218         * m4/signed.m4: New file, from GNU gettext.
87219         * m4/longdouble.m4: New file, from GNU gettext.
87220         * m4/wchar_t.m4: New file, from GNU gettext.
87221         * m4/wint_t.m4: New file, from GNU gettext.
87222         * m4/vasnprintf.m4: New file.
87223         * m4/vasprintf.m4: New file.
87224
87225 2003-01-30  Bruno Haible  <bruno@clisp.org>
87226
87227         * lib/printf-args.h: New file, from GNU gettext.
87228         * lib/printf-args.c: New file, from GNU gettext.
87229         * lib/printf-parse.h: New file, from GNU gettext.
87230         * lib/printf-parse.c: New file, from GNU gettext.
87231         * lib/vasnprintf.h: New file, from GNU gettext.
87232         * lib/vasnprintf.c: New file, from GNU gettext.
87233         * lib/asnprintf.c: New file, from GNU gettext.
87234         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87235         * lib/vasprintf.c: New file, from GNU gettext.
87236         * lib/asprintf.c: New file, from GNU gettext.
87237
87238 2003-01-29  Bruno Haible  <bruno@clisp.org>
87239
87240         * modules/stpncpy: New module.
87241         * MODULES.html.sh (func_all_modules): Add it.
87242
87243 2003-01-29  Bruno Haible  <bruno@clisp.org>
87244
87245         * m4/stpncpy.m4: New file.
87246
87247 2003-01-29  Bruno Haible  <bruno@clisp.org>
87248
87249         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87250         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87251
87252 2003-01-28  Bruno Haible  <bruno@clisp.org>
87253
87254         * modules/c-ctype: New module.
87255         * MODULES.html.sh (func_all_modules): Add it.
87256
87257 2003-01-28  Bruno Haible  <bruno@clisp.org>
87258
87259         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87260         Paul Eggert.
87261         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87262         Paul Eggert.
87263
87264 2003-01-27  Bruno Haible  <bruno@clisp.org>
87265
87266         * modules/xsetenv: New module.
87267         * MODULES.html.sh (func_all_modules): Add it.
87268
87269 2003-01-27  Bruno Haible  <bruno@clisp.org>
87270
87271         * lib/xsetenv.h: New file, from GNU gettext.
87272         * lib/xsetenv.c: New file, from GNU gettext.
87273
87274 2003-01-23  Jim Meyering  <jim@meyering.net>
87275
87276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87277         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87278
87279 2003-01-23  Bruno Haible  <bruno@clisp.org>
87280
87281         * modules/minmax: New module.
87282         * MODULES.html.sh (func_all_modules): Add it.
87283
87284 2003-01-23  Bruno Haible  <bruno@clisp.org>
87285
87286         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87287         Eggert.
87288
87289 2003-01-22  Bruno Haible  <bruno@clisp.org>
87290
87291         * modules/exit: New module.
87292         * MODULES.html.sh (func_all_modules): Add it.
87293
87294 2003-01-22  Bruno Haible  <bruno@clisp.org>
87295
87296         * lib/exit.h: New file, from GNU gettext.
87297
87298 2003-01-19  Bruno Haible  <bruno@clisp.org>
87299
87300         * gnulib-tool: Recognize option --extract-maintainer.
87301         (func_get_maintainer): New function.
87302         * modules/*: Add Maintainer entry.
87303
87304 2003-01-16  Jim Meyering  <jim@meyering.net>
87305
87306         * m4/regex.m4: The `regex' struct is both input and output.
87307         Initialize it before each use.  Patch by Tim Waugh.
87308
87309 2003-01-16  Bruno Haible  <bruno@clisp.org>
87310
87311         * MODULES.html.sh: Add a table of contents. Add the module name as
87312         leftmost column. Add hyperlinks.
87313
87314 2003-01-15  Bruno Haible  <bruno@clisp.org>
87315
87316         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87317
87318 2003-01-15  Bruno Haible  <bruno@clisp.org>
87319
87320         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87321         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87322         suffix.
87323
87324 2003-01-15  Bruno Haible  <bruno@clisp.org>
87325
87326         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87327
87328 2003-01-15  Bruno Haible  <bruno@clisp.org>
87329
87330         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87331         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87332
87333 2003-01-14  Jim Meyering  <jim@meyering.net>
87334
87335         * lib/same.c (same_name): Tweak a comment.
87336
87337 2003-01-14  Bruno Haible  <bruno@clisp.org>
87338
87339         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87340         when a string comparison is sufficient.
87341
87342 2003-01-14  Bruno Haible  <bruno@clisp.org>
87343
87344         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87345         'unsigned int'.
87346
87347 2003-01-14  Bruno Haible  <bruno@clisp.org>
87348
87349         * lib/hash-pjw.c: Add comment about low quality of this function.
87350
87351 2003-01-13  Bruno Haible  <bruno@clisp.org>
87352
87353         * modules/stpcpy: Distribute lib/stpcpy.h.
87354         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87355
87356 2003-01-13  Bruno Haible  <bruno@clisp.org>
87357
87358         * modules/*: Add a description.
87359         * modules/strpbrk: Fix Makefile.am snippet.
87360         * modules/strtoimax: Fix dependencies.
87361         * modules/strtoumax: Likewise.
87362
87363 2003-01-13  Bruno Haible  <bruno@clisp.org>
87364
87365         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87366         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87367         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87368
87369 2003-01-13  Bruno Haible  <bruno@clisp.org>
87370
87371         * gnulib-tool (func_create_testdir): Store config/* files in the main
87372         directory.
87373         * config.rpath: Move to ...
87374         * config/config.rpath: ... here.
87375         * modules/gettext: Contains config/config.rpath, not config.rpath.
87376         * modules/iconv: Likewise.
87377
87378 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87379
87380         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87381         to avoid collisions with libcurses and libreadline.
87382
87383         * m4/getstr.m4: Remove.
87384         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87385
87386 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87387
87388         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87389         to avoid collisions with libcurses and libreadline.
87390
87391         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87392         * lib/getstr.h, getstr.c: Remove.
87393         * lib/getline.c: Include "getline.h", to check interface.
87394         Move body of old getstr.c here: this defines MIN_CHUNK and
87395         declares getdelim2, which is renamed from getstr.
87396         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87397
87398         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87399         All uses changed.
87400         * lib/linebuffer.h: Likewise.
87401         (readline): Remove backward-compatibility macro.
87402
87403 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87404
87405         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87406         to avoid collisions with libcurses and libreadline.
87407         * getstr: Remove.
87408         * MODULES.html.sh: Remove getstr.
87409         * modules/getline: Depend on unlocked-io, not getstr.
87410
87411 2003-01-12  Jim Meyering  <jim@meyering.net>
87412
87413         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87414
87415 2003-01-10  Bruno Haible  <bruno@clisp.org>
87416
87417         * modules/alloca: Change Makefile.am requirements. Simplify Include
87418         requirements. Add lib/alloca_.h to file list.
87419
87420 2003-01-10  Bruno Haible  <bruno@clisp.org>
87421
87422         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87423
87424 2003-01-10  Bruno Haible  <bruno@clisp.org>
87425
87426         * lib/alloca_.h: New file.
87427         * lib/getdate.y: Unconditionally include alloca.h.
87428         * lib/makepath.c: Likewise.
87429         * lib/setenv.c: Likewise.
87430         * lib/userspec.c: Likewise.
87431
87432 2003-01-09  Karl Berry  <karl@gnu.org>
87433
87434         * MODULES.html.sh: include `dirname $0` in PATH, to find
87435         gnulib-tool.
87436
87437 2003-01-09  Bruno Haible  <bruno@clisp.org>
87438
87439         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87440         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87441
87442 2003-01-09  Bruno Haible  <bruno@clisp.org>
87443
87444         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87445
87446 2003-01-09  Bruno Haible  <bruno@clisp.org>
87447
87448         * lib/stdbool.h.in: New file.
87449
87450 2003-01-09  Bruno Haible  <bruno@clisp.org>
87451
87452         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87453         * MODULES.html.sh: Likewise.
87454
87455 2003-01-08  Jim Meyering  <jim@meyering.net>
87456
87457         * lib/full-write.c: Undefine and define-away `const' after inclusion
87458         of errno.h, not before.  Suggestion from Bruno Haible.
87459
87460 2003-01-08  Bruno Haible  <bruno@clisp.org>
87461
87462         * modules/full-read: Depend on full-write.
87463
87464 2003-01-08  Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/safe-read.c: Include specification header first, to ensure its
87467         selfcontainedness.
87468         * lib/full-write.c: Likewise.
87469
87470 2003-01-07  Jim Meyering  <jim@meyering.net>
87471
87472         * lib/full-write.c: Rework so that it may serve to define full_read,
87473         too.
87474         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87475
87476 2003-01-07  Bruno Haible  <bruno@clisp.org>
87477
87478         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87479         <inttypes.h>.
87480         * lib/xstrtol.h: Likewise.
87481         * lib/xstrtoimax.c: Likewise.
87482         * lib/xstrtoumax.c: Likewise.
87483         * lib/human.h: Likewise.
87484
87485         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87486         on systems that have <inttypes.h> but not <stdint.h>.
87487
87488 2003-01-07  Bruno Haible  <bruno@clisp.org>
87489
87490         * MODULES.html.sh: Add copyright notice.
87491         (missed_files): Omit CVS directory entries.
87492         (func_module): Make it work with sed-3.02.
87493         * MODULES.txt: Remove file.
87494
87495 2003-01-06  Jim Meyering  <jim@meyering.net>
87496
87497         * lib/version-etc.c: Update year in translatable copyright string.
87498
87499 2003-01-03  Karl Berry  <karl@gnu.org>
87500
87501         * config/config.{guess,sub}: update from prep.
87502
87503 2003-01-02  Karl Berry  <karl@gnu.org>
87504
87505         * doc/COPYING.DOC: belatedly updated to 1.2.
87506
87507 2003-01-01  Karl Berry  <karl@gnu.org>
87508
87509         * gnulib-tool (func_verify_module): report module name $module in
87510         error message, not $1.
87511         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87512         be created, only if it doesn't exist.
87513         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87514
87515 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87516
87517         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87518
87519 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87520
87521         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87522         memcmp if strcoll doesn't work.
87523
87524 2002-12-31  Bruno Haible  <bruno@clisp.org>
87525
87526         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87527         nonempty.
87528
87529 2002-12-31  Bruno Haible  <bruno@clisp.org>
87530
87531         * lib/memcoll.c (STRCOLL): New macro.
87532         (memcoll): Use it.
87533
87534 2002-12-31  Bruno Haible  <bruno@clisp.org>
87535
87536         * lib/localcharset.h: New file.
87537         * lib/localcharset.c: Include it.
87538         * lib/unicodeio.c: Likewise.
87539
87540 2002-12-31  Bruno Haible  <bruno@clisp.org>
87541
87542         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87543         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87544
87545 2002-12-31  Bruno Haible  <bruno@clisp.org>
87546
87547         * lib/getline.h: Include <stddef.h>, for size_t.
87548
87549         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87550         * lib/unicodeio.c: Don't include <stddef.h>.
87551
87552 2002-12-31  Bruno Haible  <bruno@clisp.org>
87553
87554         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87555         HAVE_TM_ZONE.
87556
87557 2002-12-24  Karl Berry  <karl@gnu.org>
87558
87559         * config/config.guess: update from prep.
87560
87561 2002-12-24  Bruno Haible  <bruno@clisp.org>
87562
87563         General infrasructure.
87564         * m4/README: Rewritten.
87565         * m4/onceonly.m4: New file.
87566         * m4/onceonly_2_57.m4: New file.
87567
87568         Module atexit.
87569         * m4/atexit.m4: New file.
87570
87571         Module strtod.
87572         * m4/strtod.m4: New file.
87573
87574         Module strtol.
87575         * m4/strtol.m4: New file.
87576
87577         Module strtoul.
87578         * m4/strtoul.m4: New file.
87579
87580         Module memchr.
87581         * m4/memchr.m4: New file.
87582
87583         Module memcmp.
87584         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87585         (jm_FUNC_MEMCMP): Invoke it.
87586
87587         Module memcpy.
87588         * m4/memcpy.m4: New file.
87589
87590         Module memmove.
87591         * m4/memmove.m4: New file.
87592
87593         Module memset.
87594         * m4/memset.m4: New file.
87595
87596         Module strcspn.
87597         * m4/strcspn.m4: New file.
87598
87599         Module strpbrk.
87600         * m4/strpbrk.m4: New file.
87601
87602         Module strstr.
87603         * m4/strstr.m4: New file.
87604
87605         Module strerror.
87606         * m4/strerror.m4: New file.
87607
87608         Module mktime.
87609         * m4/mktime.m4: Renamed from jm-mktime.m4.
87610         (gl_PREREQ_MKTIME): New macro.
87611         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87612
87613         Module malloc.
87614         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87615         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87616         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87617
87618         Module realloc.
87619         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87620         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87621         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87622
87623         Module strftime.
87624         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87625         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87626         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87627         gl_TM_GMTOFF.
87628         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87629
87630         Module xalloc.
87631         * m4/xalloc.m4: New file.
87632
87633         Module alloca.
87634         * m4/alloca.m4: New file.
87635
87636         Module putenv.
87637         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87638         (jm_FUNC_PUTENV): Invoke it.
87639
87640         Module setenv.
87641         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87642         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87643         when invoked twice.
87644         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87645         gt_FUNC_SETENV.
87646
87647         Module memrchr.
87648         * m4/memrchr.m4: New file.
87649
87650         Module stpcpy.
87651         * m4/stpcpy.m4: New file.
87652
87653         Module strcase.
87654         * m4/strcase.m4: New file.
87655
87656         Module strdup.
87657         * m4/strdup.m4: New file.
87658
87659         Module strnlen.
87660         * m4/strnlen.m4: New file.
87661
87662         Module strndup.
87663         * m4/strndup.m4: New file.
87664
87665         Module xstrtod.
87666         * m4/xstrtod.m4: New file.
87667
87668         Module xstrtol.
87669         * m4/xstrtol.m4: New file.
87670
87671         Module getdate.
87672         * m4/getdate.m4: New file.
87673
87674         Module unlocked-io.
87675         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87676         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87677         * m4/jm-glibc-io.m4n: Remove file.
87678
87679         Module long-options.
87680         * m4/long-options.m4: New file.
87681
87682         Module md5.
87683         * m4/md5.m4: New file.
87684
87685         Module sha.
87686         * m4/sha.m4: New file.
87687
87688         Module getstr.
87689         * m4/getstr.m4: New file.
87690
87691         Module getline.
87692         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87693         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87694         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87695         simply getline. Infoke gl_PREREQ_GETLINE.
87696
87697         Module obstack.
87698         * m4/obstack.m4: New file.
87699
87700         Module hash.
87701         * m4/hash.m4: New file.
87702
87703         Module readtokens.
87704         * m4/readtokens.m4: New file.
87705
87706         Module strverscmp.
87707         * m4/strverscmp.m4: New file.
87708
87709         Module stdbool.
87710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87711         OSF/1.
87712
87713         Module strtoll.
87714         * m4/strtoll.m4: New file.
87715
87716         Module strtoull.
87717         * m4/strtoull.m4: New file.
87718
87719         Module strtoimax.
87720         * m4/strtoimax.m4: New file.
87721
87722         Module strtoumax.
87723         * m4/strtoumax.m4: New file.
87724
87725         Module xstrtoimax.
87726         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87727         jm_AC_PREREQ_XSTRTOIMAX.
87728         Moved the strtol prerequisites to strtol.m4.
87729         Moved the strtoll prerequisites to strtoll.m4.
87730         Moved the strtoimax prerequisites to strtoimax.m4.
87731
87732         Module xstrtoumax.
87733         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87734         jm_AC_PREREQ_XSTRTOUMAX.
87735         Moved the strtoul prerequisites to strtoul.m4.
87736         Moved the strtoull prerequisites to strtoull.m4.
87737         Moved the strtoumax prerequisites to strtoumax.m4.
87738
87739         Module chown.
87740         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87741         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87742
87743         Module dup2.
87744         * m4/dup2.m4: New file.
87745
87746         Module ftruncate.
87747         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87748         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87749
87750         Module getgroups.
87751         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87752         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87753
87754         Module gettimeofday.
87755         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87756         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87757         gl_PREREQ_GETTIMEOFDAY.
87758
87759         Module mkdir.
87760         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87761         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87762
87763         Module mkstemp.
87764         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87765         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87766         jm_AC_TYPE_UINTMAX_T.
87767         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87768
87769         Module stat.
87770         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87771         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87772
87773         Module lstat.
87774         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87775         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87776
87777         Module timespec.
87778         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87779         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87780         * m4/st_mtim.m4: Indentation.
87781
87782         Module nanosleep.
87783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87784         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87785         gl_PREREQ_NANOSLEEP.
87786
87787         Module regex.
87788         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87789         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87790         (gl_REGEX): New macro.
87791
87792         Module rename.
87793         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87794         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87795
87796         Module rmdir.
87797         * m4/rmdir.m4: New file.
87798
87799         Module utime.
87800         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87801         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87802         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87803
87804         Module dirname.
87805         * m4/dirname.m4: New file.
87806
87807         Module getopt.
87808         * m4/getopt.m4: New file.
87809
87810         Module unistd-safer.
87811         * m4/unistd-safer.m4: New file.
87812
87813         Module fnmatch.
87814         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87815         declaration.
87816         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87817         (gl_FUNC_FNMATCH_POSIX): New macro.
87818         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87819         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87820         simply fnmatch.
87821
87822         Module exclude.
87823         * m4/exclude.m4: New file.
87824
87825         Module human.
87826         * m4/human.m4: New file.
87827
87828         Module acl.
87829         * m4/acl.m4: Nop.
87830
87831         Module backupfile.
87832         * m4/backupfile.m4: New file.
87833         * m4/d-ino.m4: Indentation.
87834
87835         Module fsusage.
87836         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87837         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87838         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87839
87840         Module dirfd.
87841         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87842         requirements.
87843
87844         Module euidaccess.
87845         * m4/euidaccess.m4: New file.
87846
87847         Module file-type.
87848         * m4/file-type.m4: New file.
87849
87850         Module fileblocks.
87851         * m4/fileblocks.m4: New file.
87852
87853         Module filemode.
87854         * m4/filemode.m4: New file.
87855
87856         Module isdir.
87857         * m4/isdir.m4: New file.
87858
87859         Module lchown.
87860         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87861         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87862
87863         Module makepath.
87864         * m4/makepath.m4: New file.
87865
87866         Module modechange.
87867         * m4/modechange.m4: New file.
87868
87869         Module mountlist.
87870         * m4/mountlist.m4: New file.
87871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87872         Indentation.
87873
87874         Module path-concat.
87875         * m4/path-concat.m4: New file.
87876
87877         Module pathmax.
87878         * m4/pathmax.m4: New file.
87879
87880         Module same.
87881         * m4/same.m4: New file.
87882
87883         Module save-cwd.
87884         * m4/save-cwd.m4: New file.
87885
87886         Module savedir.
87887         * m4/savedir.m4: New file.
87888
87889         Module xgetcwd.
87890         * m4/xgetcwd.m4: New file.
87891         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87892
87893         Module xreadlink.
87894         * m4/xreadlink.m4: New file.
87895
87896         Module safe-read.
87897         * m4/safe-read.m4: New file.
87898
87899         Module safe-write.
87900         * m4/safe-write.m4: New file.
87901
87902         Module closeout.
87903         * m4/closeout.m4: New file.
87904
87905         Module stdio-safer.
87906         * m4/stdio-safer.m4: New file.
87907
87908         Module getpass.
87909         * m4/getpass.m4: New file.
87910
87911         Module getugroups.
87912         * m4/getugroups.m4: New file.
87913
87914         Module group-member.
87915         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87916         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87917
87918         Module idcache.
87919         * m4/idcache.m4: New file.
87920
87921         Module userspec.
87922         * m4/userspec.m4: New file.
87923
87924         Module gettime.
87925         * m4/clock_time.m4: New file.
87926         * m4/gettime.m4: New file.
87927
87928         Module settime.
87929         * m4/settime.m4: New file.
87930
87931         Module posixtm.
87932         * m4/posixtm.m4: New file.
87933
87934         Module gethostname.
87935         * m4/gethostname.m4: New file.
87936
87937         Module canon-host.
87938         * m4/canon-host.m4: New file.
87939
87940         Module gettext.
87941         * m4/codeset.m4: New file, from gettext-0.11.5.
87942         * m4/gettext.m4: New file, from gettext-0.11.5.
87943         * m4/glibc21.m4: New file, from gettext-0.11.5.
87944         * m4/iconv.m4: New file, from gettext-0.11.5.
87945         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87946         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87947         * m4/inttypes.m4: New file, from gettext-0.11.5.
87948         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87949         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87950         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87951         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87952         * m4/lib-link.m4: New file, from gettext-0.11.5.
87953         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87954         * m4/progtest.m4: New file, from gettext-0.11.5.
87955         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87956         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87957         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87958
87959         Module localcharset.
87960         * m4/localcharset.m4: New file.
87961
87962         Module hard-locale.
87963         * m4/hard-locale.m4: New file.
87964
87965         Module mbswidth.
87966         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87967         onceonly macros.
87968         * m4/mbrtowc.m4: Add comment.
87969
87970         Module memcasecmp.
87971         * m4/memcasecmp.m4: New file.
87972
87973         Module memcoll.
87974         * m4/memcoll.m4: New file.
87975
87976         Module unicodeio.
87977         * m4/unicodeio.m4: New file.
87978
87979         Module rpmatch.
87980         * m4/rpmatch.m4: New file.
87981
87982         Module yesno.
87983         * m4/yesno.m4: New file.
87984
87985         Module exitfail.
87986         * m4/exitfail.m4: New file.
87987
87988         Module c-stack.
87989         * m4/c-stack.m4 (gl_C_STACK): New macro.
87990         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87991
87992         Module error.
87993         * m4/error.m4 (gl_ERROR): New macro.
87994         (jm_PREREQ_ERROR): Use onceonly macros.
87995
87996         Module fatal.
87997         * m4/fatal.m4: New file.
87998
87999         Module getloadavg.
88000         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
88001         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
88002
88003         Module getpagesize.
88004         * m4/getpagesize.m4: New file.
88005
88006         Module getusershell.
88007         * m4/getusershell.m4: New file.
88008
88009         Module physmem.
88010         * m4/physmem.m4: New file.
88011
88012         Module posixver.
88013         * m4/posixver.m4: New file.
88014
88015         Module quotearg.
88016         * m4/quotearg.m4: New file.
88017
88018         Module quote.
88019         * m4/quote.m4: New file.
88020
88021         Module readutmp.
88022         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
88023
88024         Module sig2str.
88025         * m4/sig2str.m4: New file.
88026
88027         Other.
88028         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
88029         ulonglong.m4.
88030         * m4/intmax_t.m4: New file.
88031         * m4/d-type.m4: Indentation.
88032         * m4/jm-macros.m4: Update.
88033         * m4/prereq.m4 (jm_PREREQ): Update.
88034         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
88035         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
88036         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
88037         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
88038         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
88039         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
88040         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
88041         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
88042         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
88043         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
88044         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
88045         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
88046         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
88047         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
88048         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
88049         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
88050         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
88051         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
88052         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
88053
88054 2002-12-24  Bruno Haible  <bruno@clisp.org>
88055
88056         * MODULES.txt: Update according to m4/ changes.
88057
88058         Module gettext.
88059         * config.rpath: New file, from gettext-0.11.5.
88060
88061         * modules/*: New module descriptions.
88062         * gnulib-tool: New file.
88063         * MODULES.html.sh: New file.
88064
88065 2002-12-21  Karl Berry  <karl@gnu.org>
88066
88067         * doc/fdl.texi: update to version 1.2.
88068
88069 2002-12-19  Karl Berry  <karl@gnu.org>
88070
88071         * config/config.guess: update from prep.
88072
88073 2002-12-18  Bruno Haible  <bruno@clisp.org>
88074
88075         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
88076         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
88077
88078 2002-12-17  Bruno Haible  <bruno@clisp.org>
88079
88080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
88081         stdlib.h, string.h.
88082
88083 2002-12-17  Bruno Haible  <bruno@clisp.org>
88084
88085         * lib/canon-host.c (strdup): Remove unused declaration.
88086
88087         * lib/fsusage.c: Include full_read.h.
88088         (get_fs_usage): Use full_read instead of safe_read.
88089
88090         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
88091
88092 2002-12-12  Karl Berry  <karl@gnu.org>
88093
88094         * config/config.guess: update from prep.
88095
88096 2002-12-11  Bruno Haible  <bruno@clisp.org>
88097
88098         * m4/setenv.m4: New file, from gettext-0.11.5.
88099
88100 2002-12-11  Bruno Haible  <bruno@clisp.org>
88101
88102         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
88103         not unsetenv().
88104         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
88105         modifications:
88106
88107         2002-12-11  Bruno Haible  <bruno@clisp.org>
88108
88109                 * setenv.c (alloca): Fall back to malloc.
88110                 (freea): New macro.
88111                 (setenv): Use freea() to free memory allocated with alloca().
88112
88113         2002-11-13  Bruno Haible  <bruno@clisp.org>
88114
88115                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
88116                 function declarations.
88117                 * unsetenv.c (unsetenv): Likewise.
88118
88119         2002-03-04  Bruno Haible  <bruno@clisp.org>
88120
88121                 Portability to AIX 4.3.3.
88122                 * unsetenv.c: New file, extracted from setenv.c.
88123                 * setenv.c: Move the unsetenv() function to unsetenv.c.
88124
88125         2001-12-20  Bruno Haible  <bruno@clisp.org>
88126
88127                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
88128                 use malloc instead. For SunOS 4.
88129
88130         2001-12-11  Bruno Haible  <bruno@clisp.org>
88131
88132                 * setenv.c: Declare alloca.
88133                 (compar_fn_t): New typedef.
88134                 (KNOWN_VALUE, STORE_VALUE): Use it.
88135
88136         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
88137         setenv.h.
88138
88139 2002-12-10  Paul Eggert  <eggert@twinsun.com>
88140
88141         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
88142         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
88143         Choose values that are less likely to collide with system fnmatch
88144         options.
88145         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88146         defined (e.g., a pure POSIX system).
88147         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
88148         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88149
88150 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88151
88152         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88153         a pain in practice to deal with generated m4 files.  This change
88154         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88155
88156         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88157         and jm-glibc-io.m4, as they are no longer a special case.
88158         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88159         kludge and the auto-generation stuff.  Check only whether the
88160         functions are declared, not whether they exist, since older hosts
88161         that don't declare the functions can't use the optimization anyway.
88162
88163 2002-12-06  Jim Meyering  <jim@meyering.net>
88164
88165         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88166
88167         Merge in changes from libc's misc/error.c, in preparation
88168         for the merge of gnulib's changes back into libc.
88169
88170         * lib/error.c (_): Define only if not already defined.
88171         Move definition to follow all #include directives.
88172         Include unlocked-io.h only if !_LIBC.
88173         [_LIBC]: Include <libio/libioP.h>.
88174         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88175         (fflush): Tweak definition to use INTUSE.
88176         (putc): Define.
88177
88178 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88179
88180         * lib/alloca.c [defined emacs]: Include "lisp.h".
88181         (xalloc_die) [defined emacs]: New macro.
88182         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88183         [! defined emacs]: Include <xalloc.h>.
88184         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88185         (pointer): Typedef to POINTER_TYPE *.
88186         (malloc): Remove decl; we now always use xmalloc.
88187         (alloca): Use old-style definition, since Emacs needs this.
88188         Check for arithmetic overflow when computing combined size.
88189
88190 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88191
88192         Do not generate unlocked-io.h automatically, since it's easier to
88193         maintain it by hand.
88194
88195         * lib/unlocked-io.h: New file, from GNU diffutils,
88196         but with proper copyright notice and attribution.
88197         * lib/gen-uio: Remove.
88198         * lib/Makefile.am: Add copyright notice.
88199         (libfetish_a_SOURCES): Add unlocked-io.h.
88200         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88201         (DISTCLEANFILES, io_functions): Remove macros.
88202         (EXTRA_DIST): Remove gen_uio.
88203         (unlocked-io.h): Remove rule.
88204
88205 2002-12-04  Jim Meyering  <jim@meyering.net>
88206
88207         Reflect the fact that stat.c and lstat.c are no longer generated.
88208         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88209         (DISTCLEANFILES): Likewise.
88210         (EXTRA_DIST): Likewise.
88211         (all_local): Don't depend on stat.c or lstat.c.
88212         (stat.c, lstat.c): Remove rules.
88213         (EXTRA_DIST): Remove xstat.in.
88214
88215         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88216         * lib/stat.c: New file.  Contents mostly from xstat.in.
88217         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88218         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88219
88220         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88221         too.
88222         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88223
88224 2002-12-03  Jim Meyering  <jim@meyering.net>
88225
88226         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88227         but not semantics, to minimize the differences between these two files.
88228         (safe_read): Change comment to mention SAFE_READ_ERROR.
88229
88230         * lib/safe-read.c (IS_EINTR): Define.
88231         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88232
88233 2002-12-02  Jim Meyering  <jim@meyering.net>
88234
88235         * lib/safe-read.c (EINTR): Define.
88236         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88237         (INT_MAX): Provide fallback.
88238         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88239
88240         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88241
88242 2002-12-02  Bruno Haible  <bruno@clisp.org>
88243
88244         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88245         Define, taken from safe-read.c.
88246         (INT_MAX): Provide fallback.
88247         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88248         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88249
88250         * lib/safe-read.c (EINTR): Remove definition.
88251         (safe_read): Don't use EINTR if it is absent.
88252
88253 2002-12-01  Jim Meyering  <jim@meyering.net>
88254
88255         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88256         zero.
88257         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88258
88259 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88260
88261         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88262         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88263         with `if (! (value < limit)) abort ();', for readability.
88264
88265 2002-11-26  Karl Berry  <karl@gnu.org>
88266
88267         * lib/strdup.c: copy from libc again, with jim's ok.
88268         * lib/.cppi-disable: re-add strdup.c
88269
88270 2002-11-25  Karl Berry  <karl@gnu.org>
88271
88272         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88273         instead of "strtol.c".
88274
88275 2002-11-25  Karl Berry  <karl@gnu.org>
88276
88277         * config/install-sh: update from automake for variable quoting, $0 in
88278         error msgs, etc.
88279
88280         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88281         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88282         entry.
88283
88284 2002-11-25  Jim Meyering  <jim@meyering.net>
88285
88286         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88287
88288 2002-11-24  Karl Berry  <karl@gnu.org>
88289
88290         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88291         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88292
88293 2002-11-24  Jim Meyering  <jim@meyering.net>
88294
88295         Update from coreutils:
88296
88297         * lib/mktime.c: Merge in changes from libc.
88298
88299         Avoid a link-time failure on some Linux systems.
88300         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88301         (otherwise).
88302         (__mon_yday): Declare with the STATIC attribute.
88303         (__mktime_internal): Likewise.
88304         Based on a report from Greg Schafer.
88305
88306 2002-11-23  Jim Meyering  <jim@meyering.net>
88307
88308         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88309         Use `unsigned', not `int', as type of index.
88310
88311         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88312
88313         * lib/fsusage.c: Remove unneeded parentheses around operands of
88314         `defined'.
88315
88316 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88317
88318         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88319         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88320         so that we can be included first.
88321         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88322         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88323         No need to include stddef.h or sys/types.h any more.
88324         Surround local include files with "", not "<>".
88325         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88326         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88327         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88328         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88329         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88330         (ISPRINT): Remove; no longer needed now that we assume C89.
88331
88332         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88333         Preserve errno.
88334
88335         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88336         quotearg_char): Use SIZE_MAX rather than
88337         (size_t) -1 when we are talking about "infinity".
88338
88339         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88340
88341 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88342
88343         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88344         hint that one should use `if (! x) abort ();' rather than `assert
88345         (x);', and anyway it's one less thing to worry about configuring.
88346         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88347         hash_rehash, hash_insert): Use abort rather than assert.
88348
88349 2002-11-22  Bruno Haible  <bruno@clisp.org>
88350
88351         * lib/safe-read.h: Assume C89. Add comments.
88352         (safe_read): Change return type to size_t.
88353         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88354         byte counts > SSIZE_MAX correctly.
88355         * lib/safe-write.h: New file.
88356         * lib/safe-write.c: New file.
88357         * lib/full-read.h: New file.
88358         * lib/full-read.c: New file.
88359         * lib/full-write.h: Assume C89. Add comments.
88360         * lib/full-write.c: Include safe-write.h.
88361         (full_write): Rewritten to use safe_write.
88362         Suggested by Jim Meyering and Paul Eggert.
88363
88364 2002-11-21  Jim Meyering  <jim@meyering.net>
88365
88366         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88367
88368         Merge in changes from the coreutils.
88369
88370         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88371         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88372         <stdint.h>.
88373         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88374         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88375         int.  Work more efficiently if X is the same width as uintmax_t.
88376         Do not compare X to -1, to avoid bogus compiler warning.
88377         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88378         Don't assume that f_frsize and f_bsize are the same type.
88379
88380         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88381         warning on FreeBSD.
88382
88383         * lib/makepath.c (make_path): Restore umask *before* creating the final
88384         component.
88385         (make_path): Minor reformatting.
88386
88387         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88388         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88389         HAVE_MALLOC/HAVE_REALLOC.
88390
88391         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88392         dummy ones.  At least on GNU/Linux systems, `auto' means something
88393         else.
88394         From Michael Stone.
88395
88396 2002-11-21  Bruno Haible  <bruno@clisp.org>
88397
88398         Remove case insensitive option matching.
88399         * lib/argmatch.h (argcasematch): Remove declaration.
88400         (ARGCASEMATCH): Remove macro.
88401         (__xargmatch_internal): Remove case_sensitive argument.
88402         (XARGMATCH): Update.
88403         (XARGCASEMATCH): Remove macro.
88404         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88405         case_sensitive argument.
88406         (argcasematch): Remove function.
88407         (__xargmatch_internal): Remove case_sensitive argument.
88408         (main): Use XARGMATCH instead of XARGCASEMATCH.
88409
88410         * lib/xmalloc.c: Change compile-time error message. Add comment about
88411         required autoconf version.
88412
88413 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88414
88415         Merge argmatch cleanups from Bison.  Assume C89.
88416
88417         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88418         Include stdlib.h, for EXIT_FAILURE.
88419         Always include <string.h>, since we assume C89.
88420         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88421         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88422         Include <stddef.h> instead, since it's all we need for size_t.
88423         (PARAMS): Remove.  All uses removed.
88424         (ARRAY_CARDINALITY): Do not bother to #undef.
88425         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88426         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88427         Remove unnecessary parentheses.
88428         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88429         Insert necessary parentheses.
88430         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88431         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88432
88433 2002-11-19  Bruno Haible  <bruno@clisp.org>
88434
88435         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88436         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88437
88438         * lib/mbswidth.h (PARAMS): Remove macro.
88439         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88440         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88441
88442         * lib/gcd.h (PARAMS): Remove macro.
88443         (gcd): Use ANSI C function declarations.
88444         * lib/gcd.c (gcd): Likewise.
88445
88446 2002-11-15  Bruno Haible  <bruno@clisp.org>
88447
88448         * lib/strcspn.c: Include <stddef.h>.
88449         (strcspn): Use ANSI C function declaration. Change return type to
88450         size_t. Use NULL.
88451         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88452         (strpbrk): Use NULL.
88453         * lib/strpbrk.h (PARAMS): Remove macro.
88454         (strpbrk): Use ANSI C function declaration.
88455         * lib/strstr.c: Don't include <sys/types.h>.
88456         * lib/strstr.h (PARAMS): Remove macro.
88457         (strstr): Use ANSI C function declarations.
88458
88459 2002-11-14  Karl Berry  <karl@gnu.org>
88460
88461         * config/mkinstalldirs: `do' on separate line, instead of
88462         `for var; do'.
88463
88464 2002-11-06  Bruno Haible  <bruno@clisp.org>
88465
88466         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88467         * lib/gcd.c (gcd): Likewise.
88468
88469 2002-11-05  Bruno Haible  <bruno@clisp.org>
88470
88471         * lib/gcd.h: New file, from gettext-0.11.5.
88472         * lib/gcd.c: New file, from gettext-0.11.5.
88473
88474 2002-11-05  Bruno Haible  <bruno@clisp.org>
88475
88476         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88477         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88478         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88479         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88480
88481         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88482         <libintl.h>.
88483         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88484         <libintl.h>.
88485
88486         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88487         * lib/human.c: Include gettext.h instead of <libintl.h>.
88488         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88489         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88490         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88491         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88492         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88493         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88494         (textdomain): Remove definition.
88495         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88496
88497         * lib/long-options.c: Remove include of <libintl.h> and definition of
88498         _.
88499         * lib/same.c: Remove include of <libintl.h> and definition of _.
88500
88501 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88502
88503         * lib/config.charset: A few additions for Solaris.
88504
88505 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88506
88507         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88508         * lib/localcharset.c (locale_charset): Declare as extern "C".
88509
88510 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88511
88512         * lib/config.charset: msdos in uk_UA uses CP1125.
88513
88514 2002-11-04  Bruno Haible  <bruno@clisp.org>
88515
88516         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88517         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88518         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88519         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88520         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88521
88522 2002-11-04  Bruno Haible  <bruno@clisp.org>
88523
88524         * lib/localcharset.c (locale_charset): Don't return an empty string.
88525
88526 2002-11-04  Bruno Haible  <bruno@clisp.org>
88527
88528         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88529         aliases.
88530
88531 2002-11-04  Bruno Haible  <bruno@clisp.org>
88532
88533         * lib/config.charset: Update for newest glibc. Add canonical names
88534         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88535
88536 2002-11-04  Bruno Haible  <bruno@clisp.org>
88537
88538         * lib/config.charset: Add support for NetBSD.
88539
88540 2002-11-04  Bruno Haible  <bruno@clisp.org>
88541
88542         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88543
88544 2002-11-01  Bruno Haible  <bruno@clisp.org>
88545
88546         * configure.in: Add AC_CONFIG_AUX_DIR call.
88547         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88548         test/Makefile.
88549         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88550
88551 2002-09-28  Karl Berry  <karl@gnu.org>
88552
88553         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88554         installed automake until the next release, since changes have been
88555         made.
88556
88557 2002-09-25  Karl Berry  <karl@gnu.org>
88558
88559         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88560         * lib/getopt*: copy from libc/posix.
88561         * lib/gettext.h: copy from gettext.
88562         * lib/.cppi-disable: add strdup.c, gettext.h.
88563
88564 2002-09-25  Karl Berry  <karl@gnu.org>
88565
88566         * config/srclist.txt: enable gettext.h check.
88567         * config/config.{guess,sub}: update from prep.
88568         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88569                 from automake 1.6.3.
88570         See srclist*.
88571
88572 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88573
88574         * regex.c (PATFETCH): Remove the translating fetch.
88575         (PATFETCH_RAW): Rename to PATFETCH.
88576         (set_image_of_range): New fun.
88577         (SET_RANGE_TABLE_WORK_AREA): Use it.
88578         (regex_compile): Don't translate the pattern chars so eagerly.
88579         Only do it when inserting an `exactn' bytecode or when handling
88580         a char-range.
88581         (mutually_exclusive_p): Avoid empty statement.
88582
88583 2002-07-06  Jim Meyering  <meyering@lucent.com>
88584
88585         * m4/README: Don't mention Makefile.am.in.
88586         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88587
88588 2002-07-01  Jim Meyering  <meyering@lucent.com>
88589
88590         * lib/c-stack.c: Include sys/time.h.
88591         From Volker Borchert.
88592
88593 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88594
88595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88596
88597 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88598
88599         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88600         New macro.  Use it uniformly instead of
88601         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88602         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88603         reported by Vin Shelton.
88604
88605 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88606
88607         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88608         Do not assume SA_SIGINFO behavior.
88609         Bug reported by Jim Meyering on NetBSD 1.5.2.
88610
88611 2002-06-22  Jim Meyering  <meyering@lucent.com>
88612
88613         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88615
88616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88617         now that configure.ac uses AC_GNU_SOURCE.
88618         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88619         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88620
88621         Update to latest tools.  Suggestions from Paul Eggert.
88622         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88623         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88624         * m4/fnmatch.m4: Likewise.
88625         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88626         to AC_HEADER_STDBOOL
88627
88628 2002-06-22  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88631         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88632
88633 2002-06-22  Jim Meyering  <meyering@lucent.com>
88634
88635         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88636
88637         * lib/exitfail.c, exitfail.h: Likewise.
88638         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88639
88640         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88641         of fnmatch.h.
88642         (EXTRA_DIST): Add fnmatch_loop.c.
88643         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88644
88645         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88646         * lib/fnmatch.c: Update from diffutils-2.8.2.
88647         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88648         * lib/fnmatch.h: Remove file.
88649
88650 2002-06-21  Jim Meyering  <meyering@lucent.com>
88651
88652         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88653         * m4/mbrtowc.m4: Likewise.
88654
88655         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88656         * m4/mbswidth.m4: Reflect name change:
88657         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88659
88660         * m4/lib-link.m4: Update from gettext-0.11.2.
88661         * m4/gettext.m4: Likewise.
88662
88663         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88664         From Alfred M. Szmidt.
88665
88666 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88667
88668         * lib/file-type.h: Report an error if neither S_ISREG nor
88669         S_IFREG is defined, instead of using a test specific to glibc
88670         2.2.  This should be safe, since POSIX requires S_ISREG and
88671         Unix Version 7 had S_IFREG.  We don't need to check for
88672         <sys/types.h> since we don't use any symbols that it defines.
88673
88674 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88675
88676         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88677         $@-t, so that each temporary file name is unique and valid in the first
88678         8 characters, for operation under DOS.
88679
88680 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88681
88682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88683
88684 2002-06-15  Jim Meyering  <meyering@lucent.com>
88685
88686         Work even with DJGPP 2.03, which lacks support for symlinks.
88687         From Richard Dawe.
88688         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88689         is defined.
88690         * lib/lchown.c (S_ISLNK): Likewise.
88691
88692 2002-06-15  Jim Meyering  <meyering@lucent.com>
88693
88694         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88695         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88696         have been included before this file.
88697
88698 2002-06-14  Jim Meyering  <meyering@lucent.com>
88699
88700         * lib/file-type.h: Use the version from diffutils-2.8.2.
88701         * lib/file-type.c: Likewise.
88702
88703 2002-06-07  Jim Meyering  <meyering@lucent.com>
88704
88705         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88706         They're needed at least for NetBSD 1.5.2.
88707         ($statxfs_includes): Include those same headers.
88708         ($statxfs_includes): Include sys/vfs.h if available.
88709         ($statxfs_includes): Likewise for sys/statvfs.h.
88710         Check for the following members in both structs statfs and statvfs:
88711         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88712
88713 2002-06-01  Jim Meyering  <meyering@lucent.com>
88714
88715         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88716         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88717
88718 2002-05-28  Jim Meyering  <meyering@lucent.com>
88719
88720         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88721         Reported by Volker Borchert.
88722
88723 2002-05-27  Jim Meyering  <meyering@lucent.com>
88724
88725         Fix a problem seen only on nonconforming systems whereby ls.c's
88726         use of localtime, and then of gettimeofday would cause trouble:
88727         the localtime call used to initialize rpl_gettimeofday's save
88728         mechanism would clobber ls's current local time information so
88729         that in any long listing the first file would always be listed
88730         with date 1970-01-01.  Analysis by Volker Borchert.
88731
88732         * lib/gettimeofday.c (localtime): Undefine.
88733         (rpl_localtime): New function.
88734
88735 2002-05-27  Jim Meyering  <meyering@lucent.com>
88736
88737         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88738         localtime.
88739
88740         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88741         use the replacement function; it wouldn't resolve at link time.
88742         Reported by Volker Borchert.
88743
88744 2002-05-22  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88747         file-type.h.
88748         * lib/file-type.h: New file.
88749         * lib/file-type.c (file_type): New file/function.  Extracted from
88750         diffutils.
88751
88752 2002-04-30  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88755
88756 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88757
88758         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88759
88760 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88761
88762         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88763         Do not check for alloca.h (no longer used) or stdbool.h (was never
88764         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88765
88766 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88767
88768         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88769
88770 2002-04-29  Jim Meyering  <meyering@lucent.com>
88771
88772         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88773         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88774         Use AC_FUNC_STRNLEN here instead.
88775
88776         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88777         With autoconf-2.53a, it's part of AC_PROG_CC.
88778
88779 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88780
88781         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88782         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88783
88784 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88785
88786         * lib/sig2str.h, lib/sig2str.c: New files.
88787         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88788
88789 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88790
88791         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88792         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88793         of 127, since 64 is the largest conceivable number for ancient
88794         nonstandard hosts.
88795         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88796
88797 2002-04-28  Jim Meyering  <meyering@lucent.com>
88798
88799         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88800
88801 2002-04-24  Jim Meyering  <meyering@lucent.com>
88802
88803         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88804         (jm_PREREQ): Use it.
88805
88806         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88807         mach/mach.h fcntl.h.
88808         Check for this function: setlocale.
88809
88810 2002-04-24  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/gettext.h: New file, from Gettext.
88813         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88814         (libfetish_a_SOURCES): Add gettext.h.
88815
88816 2002-04-16  Jim Meyering  <meyering@lucent.com>
88817
88818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88819         ut_pid, ut_id, ut_exit.
88820
88821 2002-04-16  Jim Meyering  <meyering@lucent.com>
88822
88823         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88824         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88825         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88826
88827 2002-04-12  Jim Meyering  <meyering@lucent.com>
88828
88829         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88830         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88831         existence of the getmntinfo function.  Needed for Darwin 5.3.
88832
88833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88834         This is necessary at least on Darwin 5.3.
88835
88836         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88837         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88838         strnlen.o in the library, and that makes some versions of ranlib
88839         object.
88840
88841 2002-04-12  Jim Meyering  <meyering@lucent.com>
88842
88843         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88844
88845 2002-04-09  Jim Meyering  <meyering@lucent.com>
88846
88847         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88848         to be more precise.  Rather than saying we're checking whether the
88849         function `works', say what we're testing.
88850         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88851         Reported by Bruno Haible.
88852
88853 2002-03-10  Jim Meyering  <meyering@lucent.com>
88854
88855         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88856         Suggestion from Santiago Vila.
88857
88858 2002-03-08  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/rename.c: Mention that this wrapper is needed also on
88861         mips-dec-ultrix4.4 systems.
88862
88863 2002-03-02  Jim Meyering  <meyering@lucent.com>
88864
88865         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88866         not HAVE_CLOCK_SETTIME.
88867
88868 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88869
88870         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88871         Check for clock_settime.
88872
88873 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88874
88875         * lib/nanosleep.h: Rename to....
88876         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88877
88878         * lib/gettime.c: New file.
88879         * lib/settime.c: New file.
88880         * lib/stime.c: Remove.
88881
88882         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88883         timespec.h.  Remove nanosleep.h.
88884
88885 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88886
88887         * m4/acl.m4: New file.
88888         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88889         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88890
88891 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88892
88893         * lib/acl.c, lib/acl.h: New files.
88894         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88895
88896 2002-02-24  Jim Meyering  <meyering@lucent.com>
88897
88898         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88899         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88900         cause trouble.  Reported by Nelson Beebe.
88901
88902 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88903
88904         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88905         compilers that don't know that xalloc_die never returns.
88906
88907 2002-02-20  Jim Meyering  <meyering@lucent.com>
88908
88909         * lib/getdate.c: Regenerate using bison-1.33.
88910
88911 2002-02-17  Jim Meyering  <meyering@lucent.com>
88912
88913         * config/config.guess (main): Don't use `head -1'; it's no longer
88914         portable. Use `sed 1q' instead.
88915
88916 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88917
88918         * m4/codeset.m4: Upgrade to gettext-0.11.
88919         * m4/gettext.m4: Upgrade to gettext-0.11.
88920         * m4/glibc21.m4: Upgrade to gettext-0.11.
88921         * m4/iconv.m4: Upgrade to gettext-0.11.
88922         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88923         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88924         * m4/lib-ld.m4: New file, from gettext-0.11.
88925         * m4/lib-link.m4: New file, from gettext-0.11.
88926         * m4/lib-prefix.m4: New file, from gettext-0.11.
88927         * m4/progtest.m4: Upgrade to gettext-0.11.
88928
88929 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88930
88931         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88932         (jm_PREREQ): Use it.
88933
88934 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88935
88936         * lib/posixver.c, lib/posixver.h: New files.
88937         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88938
88939 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88940             Bruno Haible  <bruno@clisp.org>
88941
88942         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88943         (fwrite_success_callback): New declaration.
88944         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88945         print_unicode_char. Call failure callback instead of error.
88946         (fwrite_success_callback): New function.
88947         (exit_failure_callback): New function.
88948         (fallback_failure_callback): New function.
88949         (print_unicode_char): Call unicode_to_mb.
88950
88951 2002-01-26  Jim Meyering  <meyering@lucent.com>
88952
88953         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88954         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88955
88956 2002-01-26  Jim Meyering  <meyering@lucent.com>
88957
88958         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88959
88960 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88961
88962         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88963
88964 2002-01-22  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88967         Otherwise, some versions of automake would omit the rule that makes
88968         Makefile from Makefile.in.
88969
88970 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88971
88972         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88973         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88974         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88975         (memcoll): Set errno to zero if there is no error.
88976
88977         * lib/quotearg.c (quotearg_buffer_restyled):
88978         Fix bug with quoting buffers containing NUL when backslashing escapes.
88979         This bug was exposed by the other changes in this patch.
88980         (quotearg_n_options): New arg ARGSIZE.
88981         All callers changed.
88982         (quoting_options_from_style): New function.
88983         (quotearg_n_style): Use it.
88984         (quotearg_n_style_mem): New function.
88985
88986         * lib/quotearg.h (quotearg_n_style_mem): New function.
88987
88988 2002-01-19  Jim Meyering  <meyering@lucent.com>
88989
88990         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88991         Remove useless quotes: DF_PROG="df".
88992         * m4/strnlen.m4: New file.
88993
88994 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88995
88996         * lib/backupfile.c (ISDIGIT): Comment fix.
88997         * lib/getdate.y (ISDIGIT): Likewise.
88998         * lib/posixtm.c (ISDIGIT, year): Likewise.
88999         * lib/strverscmp.c (ISDIGIT): Likewise.
89000         * lib/userspec.c (ISDIGIT): Likewise.
89001
89002 2002-01-16  Jim Meyering  <meyering@lucent.com>
89003
89004         * lib/getdate.y: Add three semicolons, each just before a closing
89005         brace. Bison (as of version 1.31) no longer papers over that mistake.
89006
89007 2002-01-05  Jim Meyering  <meyering@lucent.com>
89008
89009         * lib/version-etc.c (version_etc_copyright): Update copyright year.
89010
89011 2001-12-19  Paul Eggert  <eggert@twinsun.com>
89012
89013         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
89014         not silently exit merely because the output buffer happens to
89015         have nothing pending.
89016
89017 2001-12-18  Paul Eggert  <eggert@twinsun.com>
89018
89019         See the big note in ../ChangeLog.
89020         * lib/human.c (suffixes): Prefer K to k for 1024.
89021         (generate_suffix_backwards): New function.
89022         (human_readable_inexact): Use it.
89023         * lib/xstrtol.c (__xstrtol): If there is no number but there
89024         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
89025         Accept 'K' as well as 'k'.
89026
89027 2001-12-15  Jim Meyering  <meyering@lucent.com>
89028
89029         * lib/regex.h (__restrict_arr): Update from libc.
89030
89031         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
89032         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
89033         (STREQ): Define.
89034
89035 2001-12-14  Jim Meyering  <meyering@lucent.com>
89036
89037         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
89038         Suggestion from Bruno Haible.
89039
89040 2001-12-10  Jim Meyering  <meyering@lucent.com>
89041
89042         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
89043         xrealloc, Instead, include "xalloc.h".
89044         (initbuffer): Don't cast xmalloc return value to char*.
89045         (readline): Reword comment.
89046         Don't cast xrealloc return value to char*
89047         Return NULL, not 0.
89048
89049 2001-12-09  Jim Meyering  <meyering@lucent.com>
89050
89051         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
89052         about `signed and unsigned type in conditional expression'.
89053         * lib/posixtm.c (posix_time_parse): Likewise.
89054
89055         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
89056
89057         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
89058         to avoid a pedantic warning.
89059
89060         * lib/getstr.c: Don't include assert.h.
89061         (getstr): Remove warning-evoking assertions.
89062         Return -1 if offset parameter is out of bounds.
89063         Change the type of a local from int to size_t.
89064
89065         * lib/strftime.c (my_strftime_localtime_r): Include this function
89066         definition in the `#if ! HAVE_TM_GMTOFF' block.
89067
89068         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
89069         Include xalloc.h instead.
89070
89071 2001-12-02  Jim Meyering  <meyering@lucent.com>
89072
89073         * lib/tempname.c: Don't declare getenv, thus reverting the change of
89074         2001-11-18.  It's no longer necessary, now that stdlib.h is always
89075         included.
89076
89077         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
89078         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
89079
89080 2001-11-30  Akim Demaille  <akim@epita.fr>
89081
89082         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
89083         before being defined.
89084
89085 2001-11-27  Paul Eggert  <eggert@twinsun.com>
89086
89087         * lib/quotearg.h (quotearg_n, quotearg_n_style):
89088         First arg is int, not unsigned.
89089         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
89090         (SIZE_MAX, UINT_MAX): New macros.
89091         (quotearg_n_options): Abort if N is negative.
89092         Avoid overflow check on hosts where size_t is 64 bits and int
89093         is 32 bits, as overflow is impossible there.
89094         Fix off-by-one typo that caused unnecessary reallocation.
89095
89096 2001-11-27  Jim Meyering  <meyering@lucent.com>
89097
89098         * lib/tempname.c: Merge with version from libc.
89099         * lib/regex.c: Likewise.
89100
89101         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
89102         systems for which STDC_HEADERS is 0, it was not included, resulting in
89103         a warning about an integer-to-pointer conversion problem with getenv.
89104         Reported by Volker Borchert.
89105
89106 2001-11-26  Jim Meyering  <meyering@lucent.com>
89107
89108         * lib/gtod.h: Remove file.
89109         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
89110         * lib/gettimeofday.c: Don't include gtod.h.
89111         (GTOD_init): Remove function.
89112         (rpl_gettimeofday): Do its job here instead, rather than aborting.
89113         Suggestion from Volker Borchert.
89114
89115 2001-11-23  Jim Meyering  <meyering@lucent.com>
89116
89117         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
89118         it.
89119         * lib/hash.c (struct hash_table): Define it here instead.
89120
89121 2001-11-22  Jim Meyering  <meyering@lucent.com>
89122
89123         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
89124
89125 2001-11-20  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
89128         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
89129
89130 2001-11-19  Jim Meyering  <meyering@lucent.com>
89131
89132         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
89133         directory.  Use "conftestXXXXXX" as the template.
89134         Suggestion from Paul Eggert.
89135
89136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
89137         immediately, so the test doesn't mistakenly hit the max-open-files
89138         limit.
89139
89140 2001-11-18  Paul Eggert  <eggert@twinsun.com>
89141
89142         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
89143         (TEMPORARIES): New macro.
89144         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
89145         removes an artificial limitation (e.g. HP-UX 10.20, where
89146         TMP_MAX is 17576).
89147
89148 2001-11-18  Jim Meyering  <meyering@lucent.com>
89149
89150         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89151
89152 2001-11-18  Jim Meyering  <meyering@lucent.com>
89153
89154         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89155         on SunOS 4.
89156
89157         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89158         files will be created before anything else.
89159
89160 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89161
89162         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89163         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89164
89165 2001-11-17  Jim Meyering  <meyering@lucent.com>
89166
89167         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89168         Prompted by a report from Bob Proulx.
89169
89170         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89171         Instead, require UTILS_FUNC_MKSTEMP.
89172
89173 2001-11-17  Jim Meyering  <meyering@lucent.com>
89174
89175         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89176         Now, that's done as part of AC_FUNC_STRTOD.
89177
89178 2001-11-17  Jim Meyering  <meyering@lucent.com>
89179
89180         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89181         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89182         rather than group writable.  Patch by Juan F. Codagnone.
89183
89184         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89185         xrealloc, Instead, include "xalloc.h".
89186
89187         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89188         Remove explicit declarations of xmalloc, xrealloc,
89189         and xstrdup.  Instead, include "xalloc.h".
89190
89191         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89192         unlocked-io.h.
89193         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89194         Likewise.
89195         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89196
89197         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89198         Reported by Padraig Brady.
89199
89200         * lib/mkstemp.c: #undef mkstemp.
89201         Include config.h.
89202         (rpl_mkstemp): Rename from mkstemp.
89203         Protoize.
89204
89205 2001-11-16  Jim Meyering  <meyering@lucent.com>
89206
89207         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89208         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89209         determine the amount of total physical memory, use pstat_getstatic.
89210         HPUX-11 doesn't define _SC_PHYS_PAGES.
89211         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89212         If sysconf couldn't be used to determine the amount of available
89213         physical memory, use both pstat_getstatic and pstat_getdynamic.
89214         Based on a patch from Bob Proulx.
89215
89216 2001-11-10  Jim Meyering  <meyering@lucent.com>
89217
89218         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89219         (jm_PREREQ): Use it.
89220
89221 2001-11-09  Jim Meyering  <meyering@lucent.com>
89222
89223         * m4/jm-macros.m4: Require autoconf-2.52f.
89224         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89225         Use these AC_-prefixed names, not the AM_-prefixed ones.
89226
89227         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89228
89229 2001-11-05  Jim Meyering  <meyering@lucent.com>
89230
89231         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89232
89233 2001-11-04  Jim Meyering  <meyering@lucent.com>
89234
89235         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89236         $DEFS.
89237
89238 2001-11-03  Jim Meyering  <meyering@lucent.com>
89239
89240         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89241         of AC_DEFUN.
89242
89243         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89244         know the name of the variable in the macro definition.
89245
89246 2001-11-03  Jim Meyering  <meyering@lucent.com>
89247
89248         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89249         in argmatch_to_argument call.
89250
89251         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89252         argument.
89253
89254         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89255         e.g., a fault due to an attempt to free a NULL pointer.
89256
89257 2001-11-01  Jim Meyering  <meyering@lucent.com>
89258
89259         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89260         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89261
89262 2001-11-01  Jim Meyering  <meyering@lucent.com>
89263
89264         * lib/dirfd.c, lib/dirfd.h: New files.
89265         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89266
89267         * lib/hash.c (hash_print) [TESTING]: Clean up.
89268
89269 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89270
89271         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89272         to avoid a warning if -Wall.
89273
89274 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89275
89276         * README: New file
89277         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89278         (per RMS's instructions, this is now the canonical source)
89279         * lgpl/, gpl/: New directories.
89280
89281 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89282
89283         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89284
89285 2001-10-21  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89288         this code would end up calling gettext even in packages built
89289         with --disable-nls.
89290         * lib/getopt.c (_): Likewise.
89291         * lib/regex.c (_): Likewise.
89292
89293 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89294
89295         * m4/error.m4 (jm_PREREQ_ERROR):
89296         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89297         AC_FUNC_STRERROR_R does that.
89298         Check for strerror declaration.
89299
89300         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89301         are supposed to have them these days.
89302         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89303         Merge changes from latest Autoconf CVS.
89304         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89305         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89306         POSIX decided to standardize on the int flavor of strerror_r.
89307
89308 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89309
89310         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89311         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89312         Use strerror_r that is only a macro, even if it is not a function.
89313         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89314         (private_strerror): Use prototypes, not old-style function definition.
89315         (print_errno_message): New function.
89316         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89317         char*-flavored one.
89318         (error_tail, error, error_at_line): Use it.
89319
89320 2001-10-11  Jim Meyering  <meyering@lucent.com>
89321
89322         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89323         and quote_n (1, ... to avoid clobbering a buffer.
89324
89325 2001-10-05  Jim Meyering  <meyering@lucent.com>
89326
89327         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89328         hash-pjw.h.
89329         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89330         * lib/hash-pjw.h: New file.
89331
89332 2001-09-30  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89335         `struct fsstat' has the `f_fstypename' member.
89336         Use that to define FS_TYPE, which is now used to make
89337         the getfsstat link test tighter.
89338
89339 2001-09-30  Jim Meyering  <meyering@lucent.com>
89340
89341         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89342         Include <sys/ucred.h>, for Apple Darwin.
89343         Include sys/mount.h and sys/fs_types.h only if available.
89344         (FS_TYPE): Define.
89345         (read_filesystem_list): Use FS_TYPE.
89346
89347 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89348
89349         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89350         a boolean context.
89351
89352 2001-09-29  Jim Meyering  <meyering@lucent.com>
89353
89354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89355         [one-argument getmntent function]): Include stdio.h before mntent.h.
89356         SunOS 4.1.x needs it for the declaration of `FILE'.
89357         Patch by Volker Borchert.
89358
89359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89360         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89361         sys/fs_types.h, and make the link-test for getfsstat guard #include
89362         directives with appropriate #if HAVE_*_H tests so that we can
89363         detect getfsstat on Apple Darwin1.3.7 systems.
89364         Reported by Nelson Beebe.
89365         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89366
89367 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89368
89369         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89370         #defines strtoimax.  Also treat the other strto* functions
89371         like strtoimax.
89372
89373         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89374         Check for strtoul and strtoumax,
89375         as those declarations are made even in the signed case.
89376         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89377         Likewise, for strtol and strtoimax.
89378
89379 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89380
89381         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89382         #defines strtoimax.  Also treat the other strto* functions
89383         like strtoimax.
89384
89385         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89386         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89387         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89388
89389 2001-09-26  Jim Meyering  <meyering@lucent.com>
89390
89391         Most macros in unlocked-io.h had the wrong number of arguments.
89392         * lib/gen-uio: New script.
89393         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89394         * lib/unlocked-io.hin: Remove file.
89395         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89396         rather than trying to embed it here.
89397         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89398         Reported by Padraig Brady.
89399
89400 2001-09-25  Volker Borchert  <bt@teknon.de>
89401
89402         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89403         `result'.
89404
89405 2001-09-24  Jim Meyering  <meyering@lucent.com>
89406
89407         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89408
89409 2001-09-23  Jim Meyering  <meyering@lucent.com>
89410
89411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89412         instead of the mere test for existence of mntent.h.  The latter
89413         would get a false-positive on AIX 3.4 systems.
89414         In the outer getmntent if-block, don't die if neither of the getmntent
89415         tests succeeds.  Instead, just fall through and continue with the
89416         remaining tests.
89417
89418 2001-09-23  Jim Meyering  <meyering@lucent.com>
89419
89420         * lib/mountlist.c: Remove useless parentheses in #if directives.
89421         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89422         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89423
89424 2001-09-22  Jim Meyering  <meyering@lucent.com>
89425
89426         * m4/gettext.m4: New file.  From gettext.
89427         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89428         * m4/progtest.m4: Likewise
89429         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89430         * m4/glibc21.m4: Likewise.
89431
89432         * m4/libintl.m4: Remove.  No longer used.
89433
89434 2001-09-22  Jim Meyering  <meyering@lucent.com>
89435
89436         * lib/localcharset.c: Update from latest gettext.
89437         * lib/config.charset: Likewise.
89438
89439 2001-09-20  Jim Meyering  <meyering@lucent.com>
89440
89441         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89442         strtoimax.
89443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89444         strtoumax.
89445
89446 2001-09-20  Jim Meyering  <meyering@lucent.com>
89447
89448         * lib/xstrtol.c (strtoimax): Guard declaration with
89449         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89450         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89451         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89452         (strtoumax): Likewise, for completeness (it wasn't necessary).
89453
89454 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89455
89456         * lib/strtoimax.c (HAVE_LONG_LONG):
89457         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89458         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89459         to work around bug in IBM C compiler.
89460
89461 2001-09-17  Jim Meyering  <meyering@lucent.com>
89462
89463         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89464         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89465         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89466         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89467         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89468         whenever the right hand side need not be expanded by the shell.
89469
89470 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89471
89472         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89473         library.  It's not correct, as some older glibcs are buggy.
89474         fnmatch wasn't fixed until glibc 2.2.
89475
89476         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89477         special shell magic here.
89478
89479 2001-09-16  Jim Meyering  <meyering@lucent.com>
89480
89481         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89482         * m4/jm-macros.m4: Require it.
89483
89484 2001-09-16  Jim Meyering  <meyering@lucent.com>
89485
89486         * lib/mkdir.c: New file.
89487
89488 2001-09-15  Jim Meyering  <meyering@lucent.com>
89489
89490         * m4/jm-macros.m4: Check for help2man.
89491
89492 2001-09-11  Jim Meyering  <meyering@lucent.com>
89493
89494         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89495         The body, by Paul Eggert, was moved here from configure.in.
89496         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89497
89498 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89499
89500         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89501         (jm_PREREQ): Use it.
89502
89503 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89504
89505         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89506         Use ssize_t, not int, to store result of readlink.
89507         Check for ssize_t overflow as well as size_t overflow,
89508         as POSIX says the result of readlink is implementation-defined
89509         when ssize_t overflows.
89510         Remove unnecessary cast to char*.
89511         Use free+malloc instead of realloc, as the storage doesn't need
89512         to be preserved and it's clearer and can be more efficient that way.
89513         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89514         * lib/xreadlink.h (xreadlink): Update prototype.
89515
89516 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89517
89518         * lib/xgetcwd.c: Revert some of the previous change; intead,
89519         fix the HAVE_GETCWD_NULL code to behave more like the
89520         !HAVE_GETCWD_NULL code used to.
89521
89522         Include "xalloc.h".
89523         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89524         invoke xalloc_die.
89525
89526 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89527
89528         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89529         sys/param.h, as pathmax.h includes them.
89530
89531 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89532
89533         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89534         (jm_PREREQ_XGETCWD): New macro.
89535
89536         * m4/getcwd.m4: New file.
89537
89538 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89539
89540         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89541         like the HAVE_GETCWD_NULL code.
89542         Include pathmax.h if not HAVE_GETCWD.
89543         Do not include xalloc.h.
89544         (INITIAL_BUFFER_SIZE): New symbol.
89545         Do not use xmalloc / xrealloc, since the caller is responsible for
89546         handling errors.  Preserve errno around `free' during failure.
89547         Do not overrun buffer when using getwd.
89548
89549 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89550
89551         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89552         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89553         getcwd (NULL, 0).
89554
89555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89556
89557         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89558         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89559         spotted by Jim Meyering.
89560
89561 2001-09-03  Jim Meyering  <meyering@lucent.com>
89562
89563         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89564         failure.
89565
89566 2001-09-02  Jim Meyering  <meyering@lucent.com>
89567
89568         * lib/error.c: Update from GNU libc.
89569
89570 2001-09-01  Jim Meyering  <meyering@lucent.com>
89571
89572         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89573         Used by df.
89574
89575 2001-09-01  Jim Meyering  <meyering@lucent.com>
89576
89577         * lib/xreadlink.c: New file.
89578         * lib/xreadlink.h: New file.
89579         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89580         xreadlink.h.
89581
89582         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89583         doesn't conflict with sparc Solaris 7's definition in
89584         /usr/include/sys/int_types.h.
89585
89586         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89587         files.
89588         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89589         and strncasecmp as r-values.  Unixware didn't have declarations.
89590
89591 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89592
89593         * lib/xstrtol.h: Add copyright notice.
89594         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89595         LONGINT_INVALID_SUFFIX_CHAR.
89596
89597 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89598
89599         * lib/xstrtol.c (strtoimax): New decl.
89600
89601 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89602
89603         * lib/xgetcwd.c: Don't include pathmax.h.
89604         Include stdlib.h and unistd.h if available.
89605         Include xalloc.h.
89606         (xmalloc, xstrdup, free): Remove decls.
89607         (xgetcwd): Don't assume sizes fit in unsigned.
89608         Check for overflow when computing sizes.
89609         Simplify reallocation code.
89610
89611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89612
89613         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89614         a directory's st_size can have an arbitrary value, so the old
89615         usage could waste an arbitrary amount of memory.  All uses
89616         changed.
89617         * lib/savedir.h: Update prototype.
89618
89619 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89620
89621         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89622
89623         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89624         old strtoimax.c.
89625
89626         Also, make the following further changes to make this file's
89627         configuration more similar to that of strtol.c:
89628         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89629         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89630         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89631         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89632         changed to signed values.
89633
89634         And make the following changes as well:
89635         Fix copyright notice, as 1999 was missing.
89636         (verify): New macro.
89637         (strtoimax): Check sizes at compile-time, not run-time.
89638         Prefer strtol to strtoll if both work.
89639         (main): Remove; it was not that useful and was a pain to maintain.
89640
89641         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89642
89643 2001-08-31  Jim Meyering  <meyering@lucent.com>
89644
89645         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89646         Use an initial, malloc'd, buffer of length 128 rather than
89647         a statically allocated one of length 1024.
89648
89649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89650
89651         Simplify code, partly by assuming autoconf 2.52 semantics.
89652
89653         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89654
89655         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89656         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89657         All uses removed.
89658         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89659         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89660         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89661         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89662         jm_AC_HEADER_INTTYPES_H.
89663         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89664
89665         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89666
89667         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89668         Quote first arg of AC_DEFUN.
89669         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89670         since they are needed to parse the include file even if we need
89671         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89672         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89673         but with opposite signedness.
89674
89675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89676
89677         Merge 'exclude' changes from tar 1.13.22.
89678         This fixes one or two unlikely storage allocation overflow bugs,
89679         but doesn't change user-visible behavior otherwise.
89680
89681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89682
89683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89684         (jm_PREREQ_EXCLUDE): New macro.
89685
89686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89687
89688         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89689         tm to be declared.
89690
89691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89692
89693         * lib/hash.c: Remove '2001' from copyright notice.
89694
89695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89696
89697         * lib/full-write.h: New file.
89698         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89699         * lib/full-write.c: Correct credits, as cccp.c no longer
89700         exists and anyway it was so heavily changed from the old cccp
89701         code as to be unrecognizable.  Include full-write.h.
89702         (full_write): Return size_t, with short writes meaning failure.
89703         All callers changed.  This fixes a bug with large buffers
89704         on 64-bit hosts.
89705         * lib/utime.c: Include full-write.h.
89706
89707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89708
89709         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89710         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89711         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89712         Include if available.
89713         (<xalloc.h>): Include
89714         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89715         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89716         collide with FNM macros.
89717         (struct patopts): New struct.
89718         (struct exclude): Use it, as exclude patterns now come with options.
89719         (new_exclude): Support above changes.
89720         (new_exclude, add_exclude_file):
89721         Initial size must now be a power of two to simplify overflow checking.
89722         (free_exclude, fnmatch_no_wildcards): New function.
89723         (excluded_filename): No longer requires options arg, as the options
89724         are determined by add_exclude.  Now returns bool, not int.
89725         (excluded_filename, add_exclude):
89726         Add support for the fancy new exclusion options.
89727         (add_exclude, add_exclude_file): Now takes int options arg.
89728         Check for arithmetic overflow when computing sizes.
89729         (add_exclude_file): xrealloc might modify errno, so don't
89730         realloc until after errno might be used.
89731
89732         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89733         New macros.
89734         (free_exclude): New decl.
89735         (add_exclude, add_exclude_file): Now takes int options arg.
89736         (excluded_filename): No longer requires options arg, as the options
89737         are determined by add_exclude.  Now returns bool, not int.
89738
89739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89740
89741         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89742
89743 2001-08-27  Jim Meyering  <meyering@lucent.com>
89744
89745         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89746
89747         * lib/version-etc.c (N_): Remove definition.
89748         Revert most of last change.
89749         Instead, simply don't mark the `Copyright...' string for translation.
89750         Based on advice from Paul Eggert.
89751
89752         * lib/strtoxmax.c: Tweak comment.
89753
89754 2001-08-26  Jim Meyering  <meyering@lucent.com>
89755
89756         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89757
89758         * m4/xstrtoimax.m4: New file.
89759         * m4/xstrtoumax.m4: Add comments explaining why we
89760         AC_REPLACE_FUNCS(strtol).
89761
89762 2001-08-26  Jim Meyering  <meyering@lucent.com>
89763
89764         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89765         of copyright with `%s' so translators don't get an untranslated
89766         message in 2002.
89767         (COPYRIGHT_YEAR): Define.
89768         (version_etc): Use fprintf rather than fputs.
89769         Suggestion from Ulrich Drepper.
89770
89771         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89772
89773         * lib/strtoll.c: New file, from GNU libc.
89774         * lib/xstrtoimax.c: New file.
89775
89776         * lib/xstrtol.h: Add xstrtoimax.
89777         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89778         * lib/strtoimax.c: New file.  Likewise, but first define
89779         STRTOUXMAX_SIGNED.
89780
89781         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89782         ...
89783         * lib/strtoxmax.c: ... then renamed to this.
89784
89785 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89786
89787         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89788         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89789         (jm_AC_TYPE_INTMAX_T): New macro.
89790         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89791
89792         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89793
89794         * m4/longlong.m4: Renamed from ulonglong.m4.
89795         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89796         * m4/uintmax_t.m4: Removed.
89797
89798 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89799
89800         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89801         Port to Solaris 8, where 'sed' requires a space after the 'r'
89802         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89803         Redirect output to $tmp just once.
89804
89805 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89806
89807         * lib/addext.c (<errno.h>): Include.
89808         (errno): Declare if not defined.
89809         (addext): Work correctly when pathconf returns -1 and leaves
89810         errno alone because there is no limit.  Also, work even if
89811         pathconf returns a value greater than SIZE_MAX.
89812
89813 2001-08-12  Jim Meyering  <meyering@lucent.com>
89814
89815         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89816         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89817         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89818         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89819         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89820         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89821         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89822         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89823         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89824         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89825         utime.m4, utimes.m4, xstrtoumax.m4:
89826         Quote the first argument in each use of AC_DEFUN.
89827
89828 2001-08-12  Jim Meyering  <meyering@lucent.com>
89829
89830         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89831         Simply `return getcwd (NULL, 0);'.
89832         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89833         Use 1300 as initial value for length, not PATH_MAX.
89834
89835         * lib/pathmax.h: Clean up cpp syntax.
89836
89837 2001-08-12  Jim Meyering  <meyering@lucent.com>
89838
89839         * lib/gettimeofday.c: New file.
89840         * lib/gtod.h: New file.
89841         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89842
89843 2001-08-05  Jim Meyering  <meyering@lucent.com>
89844
89845         * m4/jm-macros.m4: Require autoconf-2.52.
89846
89847 2001-08-04  Jim Meyering  <meyering@lucent.com>
89848
89849         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89850         stmt, to get in sync with glibc.
89851
89852 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89853
89854         The following changes are from gettext 0.10.39 as maintained by
89855         Bruno Haible.
89856
89857         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89858         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89859         with inverted sense.  All uses changed.
89860
89861         * lib/mbswidth.c: Don't include <limits.h>.
89862         Include <stdlib.h> and <string.h> unconditionally.
89863         (iswcntrl, mbsinit, ISCNTRL): New macros.
89864         (mbsnwidth): Use K&R style function declarations.
89865         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89866         can optimize it when MB_CUR_MAX == 1.
89867         The width of control characters is zero, not 1.
89868
89869 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89870
89871         The following changes are from gettext 0.10.39 as maintained by
89872         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89873
89874         * m4/codeset.m4: Upgrade to serial AM1.
89875         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89876         all uses changed.  Quote first arg of AC_DEFUN.
89877         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89878
89879         * m4/iconv.m4: Upgrade to serial AM2.
89880         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89881         Add --with-libconv-prefix.
89882         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89883         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89884         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89885         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89886         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89887
89888         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89889         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89890         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89891         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89892         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89893         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89894         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89895         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89896         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89897
89898         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89899         string.h any more.
89900
89901         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89902         not the default value.
89903
89904         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89905         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89906         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89907         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89908         Also check for iswcntrl, used for wcwidth fallback.
89909         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89910         to Autoconf 2.13.
89911
89912 2001-08-03  Jim Meyering  <meyering@lucent.com>
89913
89914         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89915         as it was in the original.  Reported by Paul Eggert.
89916
89917 2001-07-16  Jim Meyering  <meyering@lucent.com>
89918
89919         * m4/gettimeofday.m4: New file.
89920         Prompted by a report from Bernhard Baehr.
89921
89922 2001-07-15  Jim Meyering  <meyering@lucent.com>
89923
89924         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89925         stuff. Now it's in ../Makefile.cfg.
89926
89927 2001-07-15  Jim Meyering  <meyering@lucent.com>
89928
89929         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89930         (BUILT_SOURCES): Add unlocked-io.h.
89931         (io_functions): Define.
89932         (unlocked-io.h): New rule.
89933         (DISTCLEANFILES): Add unlocked-io.h.
89934         (all-local): Depend on unlocked-io.h, to ensure it is created.
89935
89936         * lib/unlocked-io.hin: New file
89937
89938         * lib/regex.c: Update from glibc.
89939
89940 2001-07-05  Jim Meyering  <meyering@lucent.com>
89941
89942         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89943         recommendation.
89944         (libfetish_a_SOURCES): Put all .h files here instead.
89945         Remove a thus-exposed (better checks in automake) duplicate and
89946         two unnecessary .h files.
89947
89948 2001-07-04  Jim Meyering  <meyering@lucent.com>
89949
89950         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89951         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89952         distcheck failure.
89953
89954 2001-07-02  Jim Meyering  <meyering@lucent.com>
89955
89956         The following changes were prompted by suggestions from Bruno Haible.
89957
89958         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89959         is now generated.
89960         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89961         definition of EXTRA_DIST.
89962         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89963         ensure that the generated file is created/updated whenever the list
89964         of $(unlocked_functions) is changed.
89965         (jm-glibc-io.m4): New rule.
89966         (unlocked-io.h): New rule -- currently unused.
89967
89968 2001-06-24  Jim Meyering  <meyering@lucent.com>
89969
89970         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89971         unmatched right bracket, rather than kludging it with an extra,
89972         falsely-matching quote in a comment.  Patch by Akim Demaille.
89973
89974 2001-06-11  Jim Meyering  <meyering@lucent.com>
89975
89976         * lib/regex.c: Update from GNU libc.
89977
89978 2001-05-27  Jim Meyering  <meyering@lucent.com>
89979
89980         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89981         Check for ut_type in struct utmp.
89982
89983 2001-05-27  Jim Meyering  <meyering@lucent.com>
89984
89985         * lib/readutmp.h (UT_TYPE): Define.
89986
89987 2001-05-24  Jim Meyering  <meyering@lucent.com>
89988
89989         * lib/argmatch.c: Include "quote.h".
89990         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89991         quote function.  Reported by Göran Uddeborg.
89992
89993 2001-05-22  Jim Meyering  <meyering@lucent.com>
89994
89995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89996         now that we use the package-supplied version unconditionally.
89997         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89998
89999 2001-05-21  Jim Meyering  <meyering@lucent.com>
90000
90001         * m4/regex.m4: Change a couple backticks to single quotes to avoid
90002         shell syntax errors.
90003
90004 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90005
90006         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
90007
90008 2001-05-20  Paul Eggert  <eggert@twinsun.com>
90009
90010         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
90011         Don't bother to check library strftime, since
90012         we'll be using our own my_strftime function anyway.
90013         Define my_strftime instead of strftime.
90014
90015 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
90016
90017         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
90018         which is not yet declared.
90019
90020 2001-05-15  Jim Meyering  <meyering@lucent.com>
90021
90022         * m4/regex.m4: Use proper quoting so brackets appear in the test
90023         program.
90024         Reported by, and with help from, Bruno Haible.
90025
90026 2001-05-13  Jim Meyering  <meyering@lucent.com>
90027
90028         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
90029         undefined.
90030
90031 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90032
90033         dirname code cleanup.  base_name now behaves more compatibly
90034         with POSIX basename when given file names that have trailing
90035         slashes, and similarly for dir_name.  Add new primitives
90036         base_len and dir_len.  Put the directory-name-related decls
90037         into dirname.h.
90038
90039         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
90040         * lib/backupfile.c (base_name): Likewise.
90041         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
90042         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
90043         * lib/makepath.c (strip_trailing_slashes): Likewise.
90044         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
90045         ISSLASH): Likewise.
90046         * lib/rename.c (strip_trailing_slashes): Likewise.
90047         * lib/same.c (base_name): Likewise.
90048         * lib/stripslash.c (ISSLASH): Likewise.
90049
90050         * lib/addext.c: Include <dirname.h> after size_t is defined.
90051         * lib/backupfile.c: Likewise.
90052
90053         * lib/addext.c (addext): Use base_len to trim redundant
90054         trailing slashes instead of doing it ourselves.
90055         But do not trim the last slash if it is not redundant.
90056
90057         * lib/backupfile.c (find_backup_file_name,
90058         max_backup_version): Use base_len instead of rolling it ourselves.
90059         Handle the case of "" and (on DOS) "C:" correctly.
90060
90061         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
90062         needed. Include <string.h>, <dirname.h>.
90063         (base_name): Allow file names ending in slashes, other than names
90064         that are all slashes.  In this case, return the basename followed
90065         by the slashes.  This is more general, and can be used in places
90066         where the original base_name purposely had an assertion failure.
90067         (base_len): New function.
90068
90069         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
90070         Do not include <assert.h>; no longer needed.
90071         Include xalloc.h.
90072         (memrchr): Remove decl.
90073         (dir_name_r): Remove.
90074         (dir_len): Renamed from dirlen.  All callers changed.
90075         Rewrite in terms of base_name, for simplicity and consistency.
90076         (dir_name): Never return NULL.  All callers changed.
90077         Do not include <stdlib.h> in test program; no longer needed.
90078         return 0; is fine for test program.
90079
90080         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
90081         New macros.
90082         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
90083
90084         * lib/path-concat.c (path_concat): Use base_len to compute
90085         base length, not strlen; this means we cannot rely on memcpy
90086         to null-terminate.
90087
90088         * lib/same.c (STREQ): Remove.
90089         (same_name): Handle the case where the basename ends in trailing '/'.
90090
90091         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
90092         a slash was stripped.  Do not strip the last slash after a
90093         file system prefix.
90094
90095 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90096
90097         * lib/Makefile.am (libfetish_a_SOURCES):
90098         Add strftime.c, since we now compile it on all hosts.
90099
90100         * lib/strftime.c (my_strftime):
90101         Define to nstrftime if emacs, but only if my_strftime is not defined.
90102         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
90103         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
90104         Add one more extra argument: a nanoseconds value.
90105         All uses changed.
90106         (ns): New macro.
90107         (my_strftime function): Add %N format.
90108         (emacs_strftimeu): Renamed from emacs_strftime,
90109         with extra ut argument.
90110
90111 2001-05-09  Paul Eggert  <eggert@twinsun.com>
90112
90113         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
90114
90115 2001-04-21  Jim Meyering  <meyering@lucent.com>
90116
90117         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
90118         doesn't interfere.
90119
90120 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90121
90122         * m4/ftruncate.m4: Check for chsize.
90123         Link with ftruncate.o unconditionally if ftruncate is missing.
90124         This was required when cross-compiling to i586-mingw32msvc.
90125
90126 2001-04-08  Jim Meyering  <meyering@lucent.com>
90127
90128         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
90129         recomputed; that's necessary when the offset spans a DST transition.
90130         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
90131
90132 2001-04-02  Jim Meyering  <meyering@lucent.com>
90133
90134         * lib/regex.h, regex.c: Update from GNU libc.
90135
90136 2001-03-24  Jim Meyering  <meyering@lucent.com>
90137
90138         * m4/jm-macros.m4: Require autoconf-2.49d.
90139
90140 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
90141
90142         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
90143
90144 2001-03-19  Paul Eggert  <eggert@twinsun.com>
90145
90146         * lib/version-etc.c (version_etc_copyright): Update to 2001.
90147
90148 2001-03-17  Jim Meyering  <meyering@lucent.com>
90149
90150         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90151         now that the version in autoconf is equivalent.
90152         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90153
90154         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90155         Suggestion from Akim Demaille.
90156
90157         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90158         (jm_PREREQ_TEMPNAME): New function.
90159
90160 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90161
90162         * lib/tempname.c (uint64_t): Define to uintmax_t if
90163         not defined, and if UINT64_MAX is not defined.
90164         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90165         Reported by John David Anglin.
90166
90167 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90168
90169         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90170         resolve alias if codeset is empty.
90171         * lib/config.charset (BeOS): Use wildcard syntax.
90172
90173 2001-03-13  Jim Meyering  <meyering@lucent.com>
90174
90175         * lib/path-concat.c (path_concat)
90176         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90177         concatenating e.g., `C:' and `foo'.
90178         From Bruno Haible.
90179
90180 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90181
90182         * lib/localcharset.c (locale_charset): Don't use
90183         setlocale(LC_CTYPE,NULL). Don't return NULL.
90184         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90185
90186 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90187
90188         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90189         support for DOS/DJGPP.
90190
90191 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90192
90193         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90194         lacks mkstemp.  Compile our own tempname.c if we compile our own
90195         mkstemp.c, as mkstemp relies on tempname.
90196
90197 2001-03-01  Jim Meyering  <meyering@lucent.com>
90198
90199         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90200         AH_VERBATIM really does output its argument verbatim.
90201
90202 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90203
90204         * lib/Makefile.am (libfetish_a_SOURCES):
90205         Add dup-safer.c, fopen-safer.c.
90206         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90207
90208         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90209         * lib/unistd-safer.h: New files.
90210
90211 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90212
90213         The mkstemp replacement is taken from glibc 2.2.2, with some
90214         portability fixes for use outside glibc, as follows:
90215
90216         * lib/tempname.c (struct_stat64): New macro.
90217         (direxists, __gen_tempname): Use it.
90218         This avoids a portability problem with Solaris 8.
90219
90220         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90221         (<stddef.h>, <stdint.h>, <string.h>):
90222         Include only if STDC_HEADERS || _LIBC.
90223         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90224         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90225         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90226         (__set_errno): Define this macro if <errno.h> doesn't.
90227         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90228         Define these macros if <stdio.h> doesn't.
90229         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90230         Define these macros if <sys/stat.h>
90231         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90232         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90233         __xstat64): Define if not _LIBC.
90234         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90235         (__gen_tempname): Invoke gettimeofday only if
90236         HAVE_GETTIMEOFDAY || _LIBC;
90237         otherwise, fall back on plain "time".
90238         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90239
90240         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90241
90242         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90243
90244 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90245
90246         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90247
90248 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90249
90250         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90252         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90254
90255 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90256
90257         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90258         Remove workaround macros for hosts that have mbrtowc but not
90259         mbstate_t, as we now insist on proper declarations for both
90260         before using mbrtowc.
90261
90262 2001-02-17  Jim Meyering  <meyering@lucent.com>
90263
90264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90265         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90266         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90267         UnixWare 7.1.1.
90268
90269         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90270         rather than AC_CACHE_VAL.
90271
90272 2001-02-17  Jim Meyering  <meyering@lucent.com>
90273
90274         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90275         around included file name.
90276
90277         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90278
90279         * lib/strftime.c: Update from GNU libc (the only changes were to
90280         comments).
90281
90282 2001-02-17  Jim Meyering  <meyering@lucent.com>
90283
90284         * lib/regex.c: Update from libc.
90285
90286 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90287
90288         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90289         clash.
90290
90291 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90292
90293         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90294         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90295         Reported by Mark Hounschell via Paul Eggert.
90296
90297 2001-02-07  Jim Meyering  <meyering@lucent.com>
90298
90299         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90300
90301 2001-02-05  Jim Meyering  <meyering@lucent.com>
90302
90303         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90304         it includes the patch required for `large file' support with at least
90305         HP-UX's 10.20 /bin/cc.
90306
90307 2001-02-03  Jim Meyering  <meyering@lucent.com>
90308
90309         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90310         AS_IF, now that it works once again (mysteriously).
90311         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90312
90313 2001-01-30  Jim Meyering  <meyering@lucent.com>
90314
90315         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90316         * m4/chown.m4: Rename conftestchown to conftest.chown.
90317         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90318         s/conftestdir2/conftest.d2/.
90319         * m4/utimes.m4: s/conftestdata/conftest.data/
90320         Inspired by Pavel Roskin's change in autoconf.
90321
90322 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90323
90324         * lib/config.charset: Update for FreeBSD 4.2.
90325
90326 2001-01-27  Jim Meyering  <meyering@lucent.com>
90327
90328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90329         a use of AS_IF.
90330         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90331
90332 2001-01-26  Jim Meyering  <meyering@lucent.com>
90333
90334         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90335         quotearg.c includes it.
90336
90337 2001-01-26  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/quotearg.c: Include stddef.h.
90340         * lib/quote.c: Include stddef.h.
90341         Reported by Axel Kittenberger.
90342
90343         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90344         line in double quotes so that it evokes a better diagnostic.
90345         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90346         Reported by Axel Kittenberger.
90347
90348 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90349
90350         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90351         as if it was a `charset'.
90352
90353 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90354
90355         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90356         has const.
90357
90358 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90359
90360         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90361         to avoid a warning.  Add back 'const' to inptr.
90362
90363 2001-01-20  Jim Meyering  <meyering@lucent.com>
90364
90365         Be sure that headers are checked before used in code compiled
90366         for the type checks.
90367         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90368         In place of that, invoke jm_CHECK_ALL_TYPES.
90369         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90370         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90371         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90372         The check for ssize_t was mistakenly run before the test for unistd.h.
90373
90374         The configure-time check for stdbool.h was missing.
90375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90376         (jm_PREREQ_HASH): New function.
90377
90378 2001-01-17  Jim Meyering  <meyering@lucent.com>
90379
90380         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90381         for autoconf-2.49c.
90382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90383
90384 2001-01-16  Jim Meyering  <meyering@lucent.com>
90385
90386         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90387         From Bruno Haible.
90388
90389 2001-01-14  Jim Meyering  <meyering@lucent.com>
90390
90391         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90392         foo and bar.  Create conftestdir/ in the script, not in the C code.
90393         Remove directories in the script, not in the C code.
90394         Remove conftestdir{,2} before trying to create the directory.
90395         Make the entire configure script fail if the mkdir fails.
90396
90397 2001-01-14  Jim Meyering  <meyering@lucent.com>
90398
90399         * lib/rename.c: New file.  From Volker Borchert.
90400         Include stdlib.h, string.h or strings.h, and xalloc.h.
90401         Use strip_trailing_slashes rather than open-coding it.
90402
90403 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90404
90405         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90406
90407 2001-01-03  Jim Meyering  <meyering@lucent.com>
90408
90409         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90410         of local `inptr' to avoid warning with some system declarations of
90411         iconv.
90412
90413 2001-01-02  Volker Borchert  <bt@teknon.de>
90414
90415         * m4/rename.m4: New file.
90416         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90417
90418 2001-01-01  Jim Meyering  <meyering@lucent.com>
90419
90420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90421         even on systems with utmpx.h.  It's necessary for the declaration of
90422         utmp's ut_user member.  Reported by Andreas Jaeger.
90423
90424         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90425         available. They are required for the declarations of getgrgid and
90426         getpwuid resp.
90427         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90428         Reported by Andreas Jaeger.
90429
90430 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90431
90432         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90433         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90434         so `make install' also works in VPATH builds.
90435
90436 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90437
90438         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90439         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90440         can be used in subdirectories.
90441
90442 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90443
90444         * lib/modechange.c: Do not assume that mode_t uses the
90445         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90446         the other-execute bit of FOO even if S_IXOTH != 1.
90447
90448         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90449         WOTH, XOTH, ALLM): New macros.
90450         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90451          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90452         Use them.
90453         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90454         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90455         (mode_compile):
90456         No need to use uintmax_t; unsigned long is long enough.
90457         Don't bother to get suffix since we don't use it.
90458
90459 2000-12-26  Jim Meyering  <meyering@lucent.com>
90460
90461         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90462         better with autoheader.
90463
90464 2000-12-24  Jim Meyering  <meyering@lucent.com>
90465
90466         * lib/hash.c (is_prime): Return explicit boolean values.
90467         (hash_get_first): Return NULL to appease Irix5.6's 89.
90468         Reported by Nelson Beebe.
90469
90470 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90471
90472         * lib/localcharset.c (locale_charset): Add support for Win32.
90473
90474 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90475
90476         * lib/physmem.h, lib/physmem.c: New files.
90477
90478         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90479         (noinst_HEADERS): Add physmem.h.
90480
90481         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90482         't' for compatibility with Solaris 8 sort.
90483
90484 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90485
90486         * lib/config.charset: Add support for BeOS.
90487
90488 2000-12-17  Jim Meyering  <meyering@lucent.com>
90489
90490         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90491         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90492
90493 2000-12-16  Jim Meyering  <meyering@lucent.com>
90494
90495         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90496         N and M) would have treated it like `chown N:N FILE'.
90497
90498         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90499
90500 2000-12-16  Jim Meyering  <meyering@lucent.com>
90501
90502         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90503         SHELLS_FILE to a file name that's useful on djgpp systems.
90504         Include stdlib.h.
90505         (ADDITIONAL_DEFAULT_SHELLS): Define.
90506         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90507         Based mostly on a patch from Prashant TR.
90508
90509 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90510
90511         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90512         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90513         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90514
90515 2000-12-08  Andreas Schwab  <schwab@suse.de>
90516
90517         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90518         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90519
90520 2000-12-07  Jim Meyering  <meyering@lucent.com>
90521
90522         * lib/stripslash.c (ISSLASH): Define.
90523         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90524         `/'.
90525         From Prashant TR.
90526
90527         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90528         (dir_name_r): Declare this function as static.
90529         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90530         manifest itself on a name containing a mix of slashes and
90531         backslashes.
90532         Make this function work with names starting with a DOS-style
90533         drive letter and colon prefix.
90534         (dir_name): Append `.' if necessary.
90535         Based mostly on patches from Prashant TR and Eli Zaretskii.
90536
90537         * lib/dirname.h (dir_name_r): Remove prototype.
90538
90539 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90540
90541         * m4/off_t-format.m4: Remove this file.
90542         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90543
90544 2000-12-06  Jim Meyering  <meyering@lucent.com>
90545
90546         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90547         replacement strtoull, we may well need the replacement strtoul, too.
90548         Check for declarations of strtoul and strtoull.
90549         Check for strtol.  Mainly as a cue to cause automake to include
90550         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90551         Check for limits.h -- strtol.c needs it.
90552
90553 2000-12-05  Jim Meyering  <meyering@lucent.com>
90554
90555         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90556
90557 2000-12-04  Jim Meyering  <meyering@lucent.com>
90558
90559         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90560         Also include memory.h, stdlib.h, unistd.h if appropriate.
90561         Reported by Andreas Jaeger (conflicting declaration of malloc).
90562
90563 2000-12-02  Jim Meyering  <meyering@lucent.com>
90564
90565         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90566         * m4/jm-macros.m4 (jm_MACROS): require it.
90567
90568 2000-12-02  Jim Meyering  <meyering@lucent.com>
90569
90570         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90571
90572 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90573
90574         * lib/memrchr.c: Include <config.h> before any system include file.
90575
90576 2000-11-30  Jim Meyering  <meyering@lucent.com>
90577
90578         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90579
90580 2000-11-30  Jim Meyering  <meyering@lucent.com>
90581
90582         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90583
90584 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90585
90586         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90587
90588 2000-11-26  Jim Meyering  <meyering@lucent.com>
90589
90590         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90591
90592 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90593
90594         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90595         size of (size_t) -1; it's not portable.
90596
90597 2000-11-17  Jim Meyering  <meyering@lucent.com>
90598
90599         * lib/strstr.c: Update from GNU libc.
90600
90601 2000-11-17  Akim Demaille  <akim@epita.fr>
90602
90603         * lib/obstack.h: Formatting changes.
90604         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90605         prevent type checking.
90606         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90607         cast the value to (void *): assigning a `foo *' to a `void *'
90608         variable is valid.
90609         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90610
90611 2000-11-16  Jim Meyering  <meyering@lucent.com>
90612
90613         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90614
90615 2000-11-11  Jim Meyering  <meyering@lucent.com>
90616
90617         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90618
90619 2000-11-10  Jim Meyering  <meyering@lucent.com>
90620
90621         * lib/obstack.h: Update from GNU libc.
90622         * lib/obstack.c: Likewise.
90623
90624 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90625
90626         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90627
90628 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90629
90630         * lib/getusershell.c (setusershell): Use rewind rather than
90631         fseek/fseeko, to avoid configuration hassles with fseeko.
90632         Don't bother opening SHELLS_FILE if shellstream is NULL;
90633         it's not necessary.
90634
90635 2000-11-05  Jim Meyering  <meyering@lucent.com>
90636
90637         * lib/makepath.h (make_dir): Declare.
90638         * lib/makepath.c (make_dir): Remove `static' attribute.
90639         Tweak a comment.
90640
90641 2000-11-04  Jim Meyering  <meyering@lucent.com>
90642
90643         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90644
90645 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90646
90647         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90648         last one in a bucket, advance to the next bucket.
90649
90650 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90651
90652         * lib/fnmatch.c: Do not comment out all the code if we are using
90653         the GNU C library, because in some cases we are replacing buggy
90654         code in the GNU C library itself.
90655
90656 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90657
90658         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90659         (regex_compile): Catch bogus \(\1\).
90660
90661 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90662
90663         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90664         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90665         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90666
90667 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90668
90669         * lib/error.h, getline.h, modechange.h:
90670         Remove "2000" from Copyright line, as the file hasn't been
90671         changed this year other than in the copyright notice.
90672
90673         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90674         was changed this year.
90675
90676 2000-10-29  Jim Meyering  <meyering@lucent.com>
90677
90678         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90679         renaming.
90680         * m4/ls-mntd-fs.m4: Likewise
90681
90682 2000-10-29  Jim Meyering  <meyering@lucent.com>
90683
90684         * lib/xstat.in: Fix grammar in comment.
90685
90686 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90687
90688         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90689         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90690         doesn't define __restrict_arr.
90691
90692 2000-10-28  Jim Meyering  <meyering@lucent.com>
90693
90694         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90695         (jm_PREREQ_MEMCHR): New function.
90696
90697 2000-10-28  Jim Meyering  <meyering@lucent.com>
90698
90699         * lib/memchr.c: Update from libc.
90700         Adjust for portability:
90701         [HAVE_STDLIB_H]: Include stdlib.h.
90702         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90703         Undef __memchr, too.
90704         [!weak_alias]: Define __memchr to memchr.
90705
90706         * lib/regex.c: Update from libc.
90707         * lib/regex.h: Likewise.
90708         * lib/getopt1.c: Likewise.
90709         * lib/memcmp.c: Likewise.
90710
90711         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90712         Avoid using fseek, when possible -- it's broken by design.
90713         Patch by Ulrich Drepper.
90714
90715 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90716
90717         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90718         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90719         Giving in to popular pressure to shut up the compiler with casts.
90720
90721 2000-10-26  Jim Meyering  <meyering@lucent.com>
90722
90723         * lib/strftime.c: Update from libc.
90724
90725 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90726
90727         * regex.c: More `unsigned char' -> `re_char' changes.
90728         Also change several `int' into `re_wchar_t'.
90729         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90730         (PUSH_FAILURE_POINTER): Don't cast any more.
90731         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90732         We want GCC to complain, since this piece of code makes
90733         re_match non-reentrant, which *should* be fixed.
90734         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90735         (EXTEND_BUFFER): Use RETALLOC.
90736         (SET_LIST_BIT): Don't cast.
90737         (re_wchar_t): New type.
90738         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90739         that those two functions will always properly return.
90740         (IMMEDIATE_QUIT_CHECK): Cast to void.
90741         (analyse_first): Use recursion rather than an explicit stack.
90742         (re_compile_fastmap): Can't fail anymore.
90743         (re_search_2): Don't check re_compile_fastmap for failure.
90744         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90745         Now also sets the new value (passed in a new argument).
90746         (re_match_2_internal): Use it.
90747         Also, use a new var `reg' of type size_t when looping through regs
90748         rather than reuse the inappropriate `mcnt'.
90749
90750 2000-10-25  Jim Meyering  <meyering@lucent.com>
90751
90752         * lib/obstack.c: Update from libc.
90753
90754 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90755
90756         * regex.c (regex_compile): Change the way of handling a range from
90757         a char less than 256 to a char not less than 256.
90758
90759 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90760
90761         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90762         NT-Emacs only.
90763         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90764         so that re_search functions only quit when callers expect them to.
90765
90766 2000-10-23  Jim Meyering  <meyering@lucent.com>
90767
90768         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90769         wrong.  That set_locale call must not have any side effects.
90770         From Paul Eggert.
90771
90772 2000-10-22  Jim Meyering  <meyering@lucent.com>
90773
90774         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90775         [CYCLIC]: Remove now-unused definition.
90776
90777         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90778         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90779         Suggestion from Ulrich Drepper.
90780
90781 2000-10-21  Jim Meyering  <meyering@lucent.com>
90782
90783         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90784         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90786
90787 2000-10-21  Jim Meyering  <meyering@lucent.com>
90788
90789         * lib/dirname.c (memrchr): Declare if necessary.
90790         (dir_name): Remove the restriction that there be no
90791         trailing slashes.  Now, this code skips past them, effectively
90792         ignoring them.
90793         [TEST_DIRNAME] (main): New unit tests.
90794
90795         * lib/memrchr.c: New file from GNU libc.
90796         Undef __memrchr, too.
90797         [!weak_alias]: Define __memrchr to memrchr.
90798         Guard weak_alias use with `#ifdef weak_alias'.
90799
90800 2000-10-21  Jim Meyering  <meyering@lucent.com>
90801
90802         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90803         (dir_name): Use dir_name_r.
90804         * lib/dirname.h (dir_name_r): Declare it.
90805
90806 2000-10-17  Jim Meyering  <meyering@lucent.com>
90807
90808         * lib/quote.h (PARAMS): Define and use.
90809         Reported by Akim Demaille.
90810
90811         * lib/getopt.c: Update from libc.
90812
90813 2000-10-16  Jim Meyering  <meyering@lucent.com>
90814
90815         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90816         setlocale.
90817         From Jan Fedak.
90818
90819 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90820
90821         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90822
90823 2000-09-25  Jim Meyering  <meyering@lucent.com>
90824
90825         * lib/md5.h (rol): Define (from GnuPG).
90826
90827         * lib/sha.c: Give credit (GnuPG) where due.
90828         (M): Use rol rather than open-coding it.
90829         Add a FIXME comment.
90830
90831 2000-09-21  Jim Meyering  <meyering@lucent.com>
90832
90833         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90834         Reported by Michael Stone.
90835
90836 2000-09-20  Jim Meyering  <meyering@lucent.com>
90837
90838         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90839         (noinst_HEADERS): Add sha.h.
90840         Based on code from Scott G. Miller and from GnuPG.
90841
90842 2000-09-18  Jim Meyering  <meyering@lucent.com>
90843
90844         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90845         LIBS. Otherwise, everyone ends up linking with -lelf for some
90846         configurations.
90847         Reported by Mike Stone.
90848
90849 2000-09-15  Jim Meyering  <meyering@lucent.com>
90850
90851         * lib/regex.c: Update from libc.
90852
90853 2000-09-10  Jim Meyering  <meyering@lucent.com>
90854
90855         * lib/getopt.c (_getopt_internal): Update from glibc.
90856
90857 2000-09-09  Jim Meyering  <meyering@lucent.com>
90858
90859         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90860         think it should be used as a general replacement for isascii.
90861         * lib/fnmatch.c: Likewise.
90862         * lib/mbswidth.c: Likewise
90863         * lib/regex.c: Likewise.
90864
90865         Don't use atoi.
90866         * lib/userspec.c: Include sys/param.h and limits.h.
90867         Include xstrtol.h.
90868         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90869         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90870         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90871         UID, GID.  Check range.
90872
90873 2000-09-06  Jim Meyering  <meyering@lucent.com>
90874
90875         * lib/getopt.c (_getopt_internal): Update from glibc.
90876
90877 2000-08-30  Jim Meyering  <meyering@lucent.com>
90878
90879         * lib/strftime.c: Merge in changes from GNU libc.
90880
90881 2000-08-26  Jim Meyering  <meyering@lucent.com>
90882
90883         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90884         * m4/fpending.m4: New file.
90885
90886 2000-08-26  Jim Meyering  <meyering@lucent.com>
90887
90888         * lib/closeout.c: Include "__fpending.h".
90889         (close_stdout_status): Return right away if there's nothing to flush.
90890
90891         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90892         * lib/__fpending.c: New file.
90893         * lib/__fpending.h: New file.
90894
90895 2000-08-20  Jim Meyering  <meyering@lucent.com>
90896
90897         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90898         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90899         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90900
90901 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90902
90903         Improve fileutils installation on systems where running
90904         programs (like install) can't be unlinked.
90905         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90906         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90907
90908 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90909
90910         Standardize on "memory exhausted" instead of "Memory exhausted"
90911         or "virtual memory exhausted".
90912         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90913         "virtual memory exhausted".
90914         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90915         our own message.
90916         * lib/userspec.c (parse_user_spec): Likewise.
90917         * lib/bumpalloc.h: comment fix
90918         * lib/same.c, userspec.c: Include xalloc.h.
90919
90920         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90921         not char *const and pointing to a constant array.
90922         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90923         (xrealloc): Comment fix.
90924
90925         * lib/userspec.c (parse_user_spec):
90926         Don't translate a message until just before returning,
90927         to avoid unnecessary translation.
90928
90929 2000-08-07  Jim Meyering  <meyering@lucent.com>
90930
90931         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90932         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90933         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90934         getgroups.c, gethostname.c, getopt.h, group-member.c,
90935         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90936         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90937         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90938         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90939         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90940         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90941         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90942         yesno.c: Back out Copyright date changes for each file with no change
90943         this year.  This eases coordination with other programs using the same
90944         source code modules.  From Paul Eggert.
90945
90946 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90947
90948         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90949         not char, for compatibility with glibc 2.1.3 strftime.c.
90950
90951 2000-08-03  Greg McGary  <greg@mcgary.org>
90952
90953         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90954         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90955         (EXTEND_BUFFER): Use them.
90956
90957 2000-08-01  Jim Meyering  <meyering@lucent.com>
90958
90959         * lib/dirname.c (ISSLASH): Define.
90960         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90961         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90962         both `\' and `/' may be use as path separators.
90963         Based on a patch from Prashant TR.
90964
90965 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90966
90967         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90968         slot vector a constant, since it might get modified.
90969
90970 2000-07-31  Jim Meyering  <meyering@lucent.com>
90971
90972         * lib/xmalloc.c: Use `virtual memory exhausted', not
90973         `Memory exhausted'.
90974         * lib/obstack.c (print_and_abort): Likewise.
90975
90976 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90977
90978         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90979         buffer, so that the caller can always quote one small
90980         component of a "memory exhausted" message in slot 0.
90981         From a suggestion by Jim Meyering.
90982
90983 2000-07-30  Jim Meyering  <meyering@lucent.com>
90984
90985         * lib/makepath.c (make_path): Quote the other instance, too.
90986
90987         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90988         (STATIC_BUF_SIZE): Define.
90989         (quotearg_n_options): Use only statically allocated storage when
90990         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90991         than STATIC_BUF_SIZE.
90992
90993 2000-07-29  Jim Meyering  <meyering@lucent.com>
90994
90995         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90996         * lib/dirname.c (dir_name): Likewise.
90997
90998         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90999         `/'.
91000
91001         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
91002         (dir_name): Assert that there are no trailing slashes.
91003
91004 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
91005
91006         * lib/mbswidth.h (mbswidth): Add a flags argument.
91007         (mbswidth): New declaration.
91008         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
91009         * lib/mbswidth.c (mbswidth): Add a flags argument.
91010         (mbsnwidth): New function.
91011
91012 2000-07-24  Jim Meyering  <meyering@lucent.com>
91013
91014         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
91015
91016 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91017
91018         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
91019
91020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91021
91022         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
91023         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
91024         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
91025         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
91026         invoke multibyte primitives.
91027
91028 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91029
91030         * lib/quotearg.c:
91031         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
91032         so that mbstate_t is always defined.
91033
91034         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
91035         be 1 in at least one GCC installation, and this configuration
91036         error is likely to be common.  Ignoring MB_LEN_MAX hurts
91037         performance on hosts that have mbrtowc but have only unibyte
91038         locales, but I assume these hosts are rare.
91039
91040 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91041
91042         * lib/mbswidth.c (_XOPEN_SOURCE):
91043         Don't define; this causes problems on Solaris 7.
91044         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
91045
91046 2000-07-23  Jim Meyering  <meyering@lucent.com>
91047
91048         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
91049         too: getgrgid, getpwuid, getuid.
91050
91051 2000-07-23  Jim Meyering  <meyering@lucent.com>
91052
91053         * lib/basename.c (base_name): Add an assertion.
91054
91055 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
91056
91057         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
91058         shadow its mbsinit function.
91059
91060 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91061
91062         * lib/mbswidth.h: New file.
91063         * lib/mbswidth.c: New file.
91064         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
91065         (noinst_HEADERS): Add mbswidth.h.
91066
91067 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91068
91069         * lib/config.charset: Add support for FreeBSD. Improve support for
91070         HP-UX and IRIX 6.
91071
91072 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
91073
91074         * m4/mbswidth.m4: New file.
91075         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
91076
91077 2000-07-15  Jim Meyering  <meyering@lucent.com>
91078
91079         * lib/makepath.c: Include quote.h.
91080         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
91081         corresponding argument in a `quote (...)' call.
91082         Give better diagnostics.
91083
91084         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
91085         (noinst_HEADERS): Add quote.h.
91086
91087         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
91088         from tar's src/misc.c.
91089         * lib/quote.h: New file.  Prototypes for same.
91090
91091 2000-07-14  Paul Eggert  <eggert@twinsun.com>
91092
91093         From a suggestion by Bruno Haible.
91094         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
91095         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
91096         to decide whether to define the BeOS workaround macro;
91097         this adjusts to the change to AC_MBSTATE_T.
91098
91099 2000-07-14  Jim Meyering  <meyering@lucent.com>
91100
91101         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
91102         jm_AC_TYPE_UINTMAX_T.
91103
91104 2000-07-13  Paul Eggert  <eggert@twinsun.com>
91105
91106         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
91107
91108         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
91109         quotearg_buffer_restyled): Add support for
91110         clocale_quoting_style.  Undo previous change to
91111         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
91112         and "{RIGHT QUOTATION MARK}" msgids.
91113
91114 2000-07-10  Paul Eggert  <eggert@twinsun.com>
91115
91116         From a suggestion by Bruno Haible.
91117         * m4/mbstate_t.m4 (AC_MBSTATE_T):
91118         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
91119         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
91120         and mbstate_t, to a single-part test that simply defines mbstate_t.
91121         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
91122         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
91123
91124 2000-07-10  Jim Meyering  <meyering@lucent.com>
91125
91126         * m4/strerror_r.m4: Mirror the correction made in autoconf.
91127
91128         * m4/gnu-source.m4: Output to confdefs.h directly.
91129         Suggestion from Akim Demaille.
91130
91131 2000-07-09  Paul Eggert  <eggert@twinsun.com>
91132
91133         The old behavior of quoting `like this' doesn't look good with
91134         newer, ISO-style fonts.  See:
91135         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
91136
91137         Instead, quote "like this" by default.  Let the translator
91138         tailor the locale-specific quoting behavior by providing
91139         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
91140
91141         * lib/quotearg.c (N_): New macro.
91142         (gettext_default): New function.
91143         (quotearg_buffer_restyled): Use
91144         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
91145         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
91146
91147 2000-07-09  Jim Meyering  <meyering@lucent.com>
91148
91149         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91150         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91151
91152         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91154
91155 2000-07-09  Jim Meyering  <meyering@lucent.com>
91156
91157         * lib/Most files: Update copyright dates to include 2000.
91158
91159 2000-07-08  Jim Meyering  <meyering@lucent.com>
91160
91161         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91162         if not defined.
91163         (xgethostname): Remove now-unnecessary #ifdef.
91164         Move declaration of `err' into loop where it's used.
91165
91166 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91167         and Bruno Haible  <haible@clisp.cons.org>
91168
91169         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91170         only if the test for an object-type mbstate_t fails.  This
91171         prevents us from mistakenly reporting that mbstate_t is a
91172         system object type after we "#define mbstate_t int" to work
91173         around its lack.
91174
91175 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91176         and Bruno Haible  <haible@clisp.cons.org>
91177
91178         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91179
91180 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91181
91182         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91183         to strerror_r.
91184         Include <ctype.h> for use of isalpha.
91185
91186 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91187
91188         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91189         by allocating a larger buffer. Test the gethostname return value for
91190         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91191         returns an error and ENAMETOOLONG isn't defined.
91192
91193 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91194
91195         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91196         dimension.
91197
91198 2000-07-04  Jim Meyering  <meyering@lucent.com>
91199
91200         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91201         of the deprecated AC_CHECKING.
91202
91203 2000-07-04  Jim Meyering  <meyering@lucent.com>
91204
91205         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91206         Reported by Bruno Haible.
91207
91208 2000-07-04  Jim Meyering  <meyering@lucent.com>
91209
91210         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91211         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91212         lacks mbrtowc.
91213
91214 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91215
91216         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91217         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91218
91219 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91220         and Bruno Haible  <haible@clisp.cons.org>
91221
91222         * lib/quotearg.c (mbrtowc):
91223         Assign to *pwc, and return 1 only if result is nonzero.
91224         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91225
91226 2000-07-03  Jim Meyering  <meyering@lucent.com>
91227
91228         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91229
91230 2000-07-03  Jim Meyering  <meyering@lucent.com>
91231
91232         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91233         This is necessary to get a definition of e.g., UTMP_FILE on
91234         HP-UX 10.20.
91235         From Bob Proulx.
91236
91237 2000-07-02  Jim Meyering  <meyering@lucent.com>
91238
91239         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91240
91241         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91242         AC_LIBOBJ(function_name).
91243         * m4/chown.m4: Likewise.
91244         * m4/fnmatch.m4: Likewise.
91245         * m4/ftruncate.m4: Likewise.
91246         * m4/getgroups.m4: Likewise.
91247         * m4/getline.m4: Likewise.
91248         * m4/group-member.m4: Likewise.
91249         * m4/jm-macros.m4: Likewise.
91250         * m4/lstat.m4: Likewise.
91251         * m4/malloc.m4: Likewise.
91252         * m4/memcmp.m4: Likewise.
91253         * m4/nanosleep.m4: Likewise.
91254         * m4/putenv.m4: Likewise.
91255         * m4/realloc.m4: Likewise.
91256         * m4/regex.m4: Likewise.
91257         * m4/stat.m4: Likewise.
91258         * m4/strftime.m4: Likewise.
91259
91260 2000-07-02  Jim Meyering  <meyering@lucent.com>
91261
91262         * lib/quotearg.c (mbstate_t): Don't define here.
91263
91264 2000-07-02  Jim Meyering  <meyering@lucent.com>
91265
91266         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91267
91268 2000-07-01  Jim Meyering  <meyering@lucent.com>
91269
91270         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91271
91272 2000-07-01  Jim Meyering  <meyering@lucent.com>
91273
91274         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91275         problem.
91276
91277 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91278
91279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91280         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91281
91282 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91283
91284         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91285         per change in ../m4/ls-mntd-fs.m4.
91286         (read_filesystem_list): Ignore symbolic links.
91287
91288 2000-06-29  Jim Meyering  <meyering@lucent.com>
91289
91290         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91291         for declaration of strcmp.
91292
91293         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91294
91295         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91296         Avoid warning by casting result to `char *' to remove `const'.
91297
91298 2000-06-28  Jim Meyering  <meyering@lucent.com>
91299
91300         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91301         included by quotearg.c, for which we perform this test.  From
91302         Bruno Haible.
91303
91304 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91305
91306         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91307         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91308         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91309
91310 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91311
91312         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91313
91314 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91315
91316         savedir now sets errno on failure and invokes xmalloc to get memory.
91317         Fix a couple of other minor bugs while we're at it.
91318
91319         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91320         (NAMLEN): Remove macro.
91321         (malloc, realloc): Remove decls.
91322         (stpcpy): Likewise.
91323         ("xalloc.h"): Include.
91324         (NAME_SIZE_DEFAULT): New macro.
91325         (savedir): Use xmalloc / xrealloc to allocate memory.
91326         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91327         Skip "" directory entries.
91328         Use strlen to calculate directory entry length, since the old method
91329         is rarely used these days and isn't worth supporting.
91330         Don't use a pointer after freeing it.
91331         Check for integer overflow when calculating allocation size.
91332         Use memcpy to copy entries, instead of stpcpy.
91333         Set errno properly when returning NULL.
91334         Check for readdir error.
91335
91336 2000-06-26  Jim Meyering  <meyering@lucent.com>
91337
91338         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91339
91340 2000-06-25  Jim Meyering  <meyering@lucent.com>
91341
91342         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91343         Linux header bug when _XOPEN_SOURCE is defined to 500.
91344
91345 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91346
91347         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91348         deficiency.
91349
91350 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91351
91352         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91353         Include xalloc.h.
91354         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91355
91356 2000-06-24  Jim Meyering  <meyering@lucent.com>
91357
91358         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91359         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91360         for which strerror does return char*, but which lacks a conveniently
91361         accessible declaration of the function.  If the compile-test says
91362         strerror_r doesn't work, then resort to a `run'-test that works on
91363         BeOS and segfaults on DEC Unix.
91364
91365 2000-06-24  Jim Meyering  <meyering@lucent.com>
91366
91367         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91368
91369 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91370
91371         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91372         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91373
91374 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91375
91376         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91377         (mbrtowc, mbstate_t): Define substitutes if
91378         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91379         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91380         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91381
91382 2000-06-23  Jim Meyering  <meyering@lucent.com>
91383
91384         * m4/afs.m4: Add missing AC_MSG_RESULT.
91385         Reported by Bruno Haible.
91386
91387         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91388         Suggestion from Bruno Haible.
91389
91390 2000-06-23  Jim Meyering  <meyering@lucent.com>
91391
91392         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91393
91394 2000-06-21  Jim Meyering  <meyering@lucent.com>
91395
91396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91397
91398 2000-06-21  Jim Meyering  <meyering@lucent.com>
91399
91400         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91401         (noinst_HEADERS): Add getstr.h.
91402
91403         * lib/getline.c (getstr): Move into a separate file.
91404         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91405         the following changes: new parameter, delim2; both delim[12]
91406         parameters have type `int', not `char'.  The latter would lose
91407         with 8-bit delimiters.
91408         * lib/getstr.h: New file.
91409
91410 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91411
91412         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91413         than 1024, return a memory chunk of least possible size, instead
91414         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91415         Use free/xmalloc instead of xrealloc to avoid copying for very long
91416         paths.
91417
91418 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91419
91420         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91421         the empty string.
91422
91423 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91424
91425         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91426         address, not strdup.  Include <stdlib.h> and don't declare free().
91427
91428 2000-06-19  Jim Meyering  <meyering@lucent.com>
91429
91430         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91431
91432 2000-06-18  Jim Meyering  <meyering@lucent.com>
91433
91434         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91435
91436         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91437         `checking whether...' message to be consistent with that of the
91438         lstat test.
91439
91440 2000-06-18  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91443         Besides, these days every porting target provides a mkdir function.
91444
91445         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91446         needed. (this snippet comes from src/system.h).
91447
91448 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91449
91450         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91451
91452 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91453
91454         * lib/human.c (adjust_value): New function.
91455         (human_readable_inexact): Apply rounding style even when
91456         printing approximate values.
91457
91458 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91459
91460         * lib/human.c (human_readable_inexact): Allow an input block
91461         size that is not a multiple of the output block size, and vice versa.
91462         Reported by Piergiorgio Sartor.
91463
91464 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91465
91466         * lib/getdate.y (get_date): Apply relative times after time
91467         zone indicator, not before.  Reported by Todd A. Jacobs.
91468
91469 2000-06-13  Jim Meyering  <meyering@lucent.com>
91470
91471         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91472
91473         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91474
91475 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91476
91477         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91478
91479 2000-06-12  Jim Meyering  <meyering@lucent.com>
91480
91481         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91482         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91483         optional argument.
91484         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91485         the optional argument, `lib'.
91486
91487 2000-06-08  Jim Meyering  <meyering@lucent.com>
91488
91489         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91490
91491 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91492
91493         Rewrite largefile configuration so that we don't need to run
91494         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91495         AC_CANONICAL_HOST in configure.in -- jmm]
91496
91497         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91498         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91499         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91500         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91501         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91502         All uses changed.
91503         Instead of inspecting the output of getconf, try to compile the
91504         test program without and with the macro definition.
91505         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91506         for getconf.  Instead, check for the needed flags by compiling
91507         test programs.
91508
91509 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91510
91511         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91512
91513 2000-06-04  Jim Meyering  <meyering@lucent.com>
91514
91515         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91516         SunOS 4.1.4 for which gid_t is an unsigned type.
91517
91518 2000-06-03  Jim Meyering  <meyering@lucent.com>
91519
91520         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91521         now that autoconf requires that.
91522
91523         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91524         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91525         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91526
91527 2000-06-03  Jim Meyering  <meyering@lucent.com>
91528
91529         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91530
91531 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91532
91533         * m4/glibc21.m4: New file.
91534         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91535
91536 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91537
91538         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91539         newer, don't install charset.alias.
91540         * lib/config.charset: Change the Linux/glibc rules so they become empty
91541         on glibc-2.1 or newer.
91542
91543 2000-06-02  Jim Meyering  <meyering@lucent.com>
91544
91545         * lib/mountlist.c: Back out last change.  Instead, do this...
91546         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91547         me_dummy member using the same `ignore'-testing code.
91548         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91549         fs_type strings.
91550         From Mark D. Roth.
91551
91552 2000-05-29  Jim Meyering  <meyering@lucent.com>
91553
91554         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91555         mounts with the `ignore' attribute.  Based on a patch from
91556         Mark D. Roth.
91557
91558 2000-05-28  Jim Meyering  <meyering@lucent.com>
91559
91560         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91561         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91562         * m4/stat.m4: Likewise.
91563         * m4/lstat.m4: Likewise.
91564         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91565
91566         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91567         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91568
91569 2000-05-26  Jim Meyering  <meyering@lucent.com>
91570
91571         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91572
91573 2000-05-24  Jim Meyering  <meyering@lucent.com>
91574
91575         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91576         autoconf requires that.
91577         * m4/lib-check.m4: Likewise.
91578         * m4/jm-macros.m4: Likewise.
91579         * m4/strftime.m4: Likewise.
91580
91581         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91582         AC_CHECK_DECLS, now that autoconf requires that.
91583
91584 2000-05-22  Jim Meyering  <meyering@lucent.com>
91585
91586         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91587         * m4/lstat.m4: Likewise.
91588
91589 2000-05-22  Jim Meyering  <meyering@lucent.com>
91590
91591         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91592
91593 2000-05-20  Jim Meyering  <meyering@lucent.com>
91594
91595         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91596         (jm_PREREQ): Use it.
91597
91598 2000-05-18  Jim Meyering  <meyering@lucent.com>
91599
91600         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91601         back, too, since it may have been modified by allocate_entry.
91602         (hash_delete): Rewrite to use neither the assignment operator
91603         nor the comma operator in an if-expression.
91604
91605 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91606
91607         * lib/closeout.c:
91608         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91609         Remove; no longer needed.
91610         "quotearg.h": Add include.
91611         (file_name): Do not bother to explicitly initialize to NULL; it's less
91612         efficient on some hosts.
91613         (close_stdout_status): Remove test as to whether stdout was already
91614         closed; it breaks for the case "echo x | sort >&-".
91615         Quote file name colons.
91616         Do not assume that _("write error") lacks format strings.
91617
91618 2000-05-15  Jim Meyering  <meyering@lucent.com>
91619
91620         * lib/version-etc.c (version_etc_copyright): Update the copyright
91621         string used in all --version output.
91622
91623 2000-05-14  Jim Meyering  <meyering@lucent.com>
91624
91625         * lib/closeout.c (close_stdout_set_file_name): New function.
91626         (close_stdout_status): Use new file-scoped global.
91627         Return right away if fstat says the stdout file descriptor is invalid.
91628         * lib/closeout.h (close_stdout_set_file_name): Declare.
91629
91630 2000-05-10  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91633         (close_stdout_set_status): New function.
91634         * lib/closeout.h (close_stdout_set_status): Declare.
91635
91636 2000-05-09  Jim Meyering  <meyering@lucent.com>
91637
91638         * m4/gettext.m4: Rename this...
91639         * m4/libintl.m4: ...to this.
91640
91641 2000-05-08  Jim Meyering  <meyering@lucent.com>
91642
91643         * lib/long-options.c: Don't include closeout.h.
91644         (parse_long_options): Don't call close_stdout for --version.
91645
91646 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91647
91648         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91649         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91650         2.1.3 bug.  This avoids a clash when files like regex.c define
91651         _GNU_SOURCE.
91652
91653 2000-05-06  Jim Meyering  <meyering@lucent.com>
91654
91655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91656         (AC_REPLACE_FUNCS): Add strnlen.
91657
91658         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91659         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91660
91661         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91662         AC_SEARCH_LIBS call for nanosleep.
91663         (LIB_NANOSLEEP): Set and AC_SUBST.
91664
91665 2000-05-06  Jim Meyering  <meyering@lucent.com>
91666
91667         * lib/strnlen.c: Undefine __strnlen and strnlen.
91668         [!weak_alias]: Define __strnlen to strnlen.
91669
91670         * lib/atexit.c: New file, from libiberty.
91671
91672 2000-05-06  Jim Meyering  <meyering@lucent.com>
91673
91674         * lib/closeout.c (close_stdout_status): Also check for errors on the
91675         stderr stream.
91676
91677 2000-05-05  Jim Meyering  <meyering@lucent.com>
91678
91679         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91680         AC_SEARCH_LIBS call for clock_gettime.
91681         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91682
91683         * m4/search-libs.m4: Update from autoconf.
91684
91685         su doesn't work on Solaris 2.6.
91686         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91687         <shadow.h>.  Reported by Dragos Harabor.
91688
91689 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91690
91691         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91692         memcpy instead of xmalloc, xrealloc, path_concat.
91693         (locale_charset): Treat empty environment variables as absent.
91694         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91695
91696 2000-05-04  Jim Meyering  <meyering@lucent.com>
91697
91698         * lib/getopt.c: Update from glibc.
91699         * lib/obstack.c: Likewise.
91700         * lib/obstack.h: Likewise.
91701         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91702         file
91703
91704         * lib/regex.h: Likewise.
91705         * lib/strndup.c: Likewise.
91706         * lib/strnlen.c: New file, from glibc.
91707
91708 2000-05-03  Jim Meyering  <meyering@lucent.com>
91709
91710         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91711
91712 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91713
91714         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91715         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91716         compile-time test, rather than inspecting host and OS, to
91717         decide whether to define _LARGEFILE_SOURCE.
91718
91719 2000-05-01  Jim Meyering  <meyering@lucent.com>
91720
91721         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91722
91723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91724         Based on a patch from Bruno Haible.
91725
91726 2000-05-01  Jim Meyering  <meyering@lucent.com>
91727
91728         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91729
91730 2000-04-29  Jim Meyering  <meyering@lucent.com>
91731
91732         * lib/path-concat.c: Declare strdup only if it's not defined.
91733         * lib/canon-host.c: Likewise.
91734
91735 2000-04-28  Jim Meyering  <meyering@lucent.com>
91736
91737         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91738         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91739         is included first, then limits.h is included by locale.h by libintl.h.
91740         From John David Anglin.
91741
91742 2000-04-25  Jim Meyering  <meyering@lucent.com>
91743
91744         * lib/makepath.c (S_IRWXUGO): Define.
91745         (make_path): Always perform explicit chmod if MODE specifies any
91746         of the `special' permission bits.  Prompted by a bug report against
91747         install from Mate Wierdl and Joost van Baal.
91748
91749 2000-04-18  Jim Meyering  <meyering@lucent.com>
91750
91751         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91752         (jm_PREREQ): Use it.
91753
91754 2000-04-18  Jim Meyering  <meyering@lucent.com>
91755
91756         * lib/README: New file.
91757
91758         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91759         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91760
91761 2000-04-17  Jim Meyering  <meyering@lucent.com>
91762
91763         Get it right :-)
91764         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91765         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91766         Suggestion from Akim Demaille.
91767
91768 2000-04-17  Jim Meyering  <meyering@lucent.com>
91769
91770         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91771         the definition of it to rpl_strftime also defined-away the system's
91772         declaration.
91773
91774 2000-04-15  Jim Meyering  <meyering@lucent.com>
91775
91776         Use `C' to denote so-called `contiguous' files, the same way
91777         that tar does.
91778         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91779         (ftypelet): Use S_ISCTG.
91780         From Michael Deutschmann.
91781
91782 2000-04-14  Jim Meyering  <meyering@lucent.com>
91783
91784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91785         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91786         clobbered.
91787
91788 2000-04-14  Jim Meyering  <meyering@lucent.com>
91789
91790         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91791
91792 2000-04-13  Jim Meyering  <meyering@lucent.com>
91793
91794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91795         AH_VERBATIM to insert required #ifndef into config.h.in.
91796         Suggestion from Akim Demaille.
91797
91798 2000-04-12  Jim Meyering  <meyering@lucent.com>
91799
91800         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91801         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91802         Christian Krackowizer.
91803
91804         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91805         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91806         (AC_SYS_LARGEFILE): Require.
91807         (AM_C_PROTOTYPES): Require.
91808
91809 2000-04-08  Jim Meyering  <meyering@lucent.com>
91810
91811         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91812         names don't conflict.  Reported by Eli Zaretskii.
91813
91814 2000-04-07  Jim Meyering  <meyering@lucent.com>
91815
91816         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91817         sys/types.h, to work around system header problems on AIX 3.2.5.
91818         From Bruno Haible.
91819
91820 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91821
91822         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91823         bug.  Deal with the different error behavior of Irix iconv.
91824
91825 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91826
91827         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91828         IRIX if the installer said otherwise.
91829
91830 2000-04-05  Jim Meyering  <meyering@lucent.com>
91831
91832         Portability tweaks required for ultrix4.3.
91833         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91834         (jm_CHECK_DECLS): Add getutent to the list of functions.
91835         (_jm_DECL_HEADERS): Add utmpx.h.
91836         From John David Anglin.
91837
91838         * m4/strftime.m4: Back out the 2000-04-02 change.
91839         Instead of that change, simply undefine putenv in the test program.
91840
91841 2000-04-05  Jim Meyering  <meyering@lucent.com>
91842
91843         Portability tweaks required for ultrix4.3.
91844         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91845         getutent.
91846         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91847         * lib/canon-host.c: Declare strdup.
91848         * lib/path-concat.c: Likewise.
91849         From John David Anglin.
91850
91851 2000-04-04  Jim Meyering  <meyering@lucent.com>
91852
91853         Be more DOS 8.3-friendly.
91854         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91855         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91856         * lib/Makefile.am: Reflect renaming.
91857         Reported by Eli Zaretskii.
91858
91859         Use a temporary file name that won't clash with `charset.alias'
91860         in the DOS 8.3 name space.
91861         * lib/Makefile.am (charset_tmp): Define.
91862         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91863         (uninstall-local): Likewise.
91864         Reported by Eli Zaretskii.
91865
91866 2000-04-03  Jim Meyering  <meyering@lucent.com>
91867
91868         * m4/gettext.m4: Fix typo in comment.
91869
91870         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91871         textutils/configure.in).  Suggestion from Paul Eggert.
91872         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91873
91874 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91875
91876         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91877         variable in the shell rather than using putenv, which isn't
91878         portable.  This avoids the configure-time inter-test dependency
91879         on the potentially-renamed putenv function.
91880
91881 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91882
91883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91884         before checking struct stat.st_blksize, so that
91885         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91886
91887 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91888
91889         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91890         since strftime.c uses HAVE_STRFTIME to decide whether to use
91891         the underlying strftime.
91892
91893 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91894
91895         * lib/time/strftime.c (my_strftime): Make sure we call the system
91896         strftime, not ourselves, when invoking the underlying strftime.
91897
91898 2000-03-24  Jim Meyering  <meyering@lucent.com>
91899
91900         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91901         (charset_alias): Define.
91902         (install-exec-local): Factor out common code.
91903         (uninstall-local): Split lines longer than 80.
91904         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91905         (SUFFIXES): Define.
91906         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91907         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91908
91909 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91910
91911         * lib/config.charset: Output a line containing "Packages using this
91912         file".
91913         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91914         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91915         ref-del.sed): New rules.
91916
91917 2000-03-17  Jim Meyering  <meyering@lucent.com>
91918
91919         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91920         Otherwise, include <strings.h>
91921
91922 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91923
91924         * lib/unicodeio.c (utf8_wctomb): New function.
91925         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91926         format instead of in UCS-4 with platform dependent endianness.
91927
91928 2000-03-10  Jim Meyering  <meyering@lucent.com>
91929
91930         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91931         From Marco Franzen.
91932
91933 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91934
91935         * lib/savedir.c (savedir): Work even if directory size is
91936         negative; this can happen with some screwy NFS configurations.
91937
91938 2000-03-06  Jim Meyering  <meyering@lucent.com>
91939
91940         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91941         if it's NULL (because we ran out of memory).  From Bruno Haible.
91942
91943 2000-03-05  Jim Meyering  <meyering@lucent.com>
91944
91945         * lib/localcharset.c ("path-concat.h"): Include.
91946         (get_charset_aliases): Use path_concat instead of ANSI string
91947         concatenation.
91948
91949         * lib/unicodeio.h (PARAMS): Define.
91950         Use it to guard prototype.
91951
91952 2000-03-04  Jim Meyering  <meyering@lucent.com>
91953
91954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91955         for lib/localcharset.c.
91956
91957 2000-03-04  Jim Meyering  <meyering@lucent.com>
91958
91959         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91960         installing into it.
91961         (uninstall-local): Uncomment this rule so `make distcheck' works
91962         once again.
91963
91964         * lib/unicodeio.c (<errno.h>): Include it.
91965         (errno): Declare if not defined.
91966
91967         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91968
91969         * lib/config.charset: New version, incorporating remarks from a linux
91970         i18n mailing list.  From Bruno Haible.
91971
91972 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91973
91974         * m4/codeset.m4: New file.
91975         * m4/iconv.m4: New file.
91976         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91977
91978 2000-03-03  Jim Meyering  <meyering@lucent.com>
91979
91980         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91981
91982 2000-03-02  Jim Meyering  <meyering@lucent.com>
91983
91984         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91985         the messages come out on separate lines.
91986
91987         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91988         rather than jm_CHECK_DECLARATIONS.
91989         * m4/decl.m4: Remove now-unused file.
91990
91991         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91992         geteuid.
91993
91994 2000-03-02  Jim Meyering  <meyering@lucent.com>
91995
91996         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91997
91998 2000-03-01  Jim Meyering  <meyering@lucent.com>
91999
92000         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
92001         * lib/unicodeio.c: Likewise.
92002
92003 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
92004
92005         * lib/config.charset: New file.
92006         * lib/localcharset.c: New file.
92007         * lib/unicodeio.h, lib/unicodeio.c: New files.
92008         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
92009         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
92010         (noinst_HEADERS): Add unicodeio.h.
92011         (all-local, install-exec-local, charset.alias): New targets.
92012
92013 2000-02-28  Paul Eggert  <eggert@twinsun.com>
92014
92015         * lib/quotearg.c (ALERT_CHAR): New macro.
92016         (quotearg_buffer_restyled): Use it.
92017
92018 2000-02-27  Jim Meyering  <meyering@lucent.com>
92019
92020         * m4/check-decl.m4: Add getenv to the list.
92021
92022 2000-02-27  Jim Meyering  <meyering@lucent.com>
92023
92024         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
92025         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
92026
92027         * lib/backupfile.c: Guard inclusion of stdlib.h with
92028         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
92029         Declare malloc if needed.
92030
92031         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
92032         `#ifndef HAVE_DECL..'
92033         now that autoconf always defines the HAVE_DECL_ symbols.
92034         * lib/human.c: Likewise.
92035         * lib/same.c: Likewise.
92036         * lib/strtoumax.c: Likewise.
92037
92038         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
92039         declaration check was not run.
92040         * lib/hash.c: Likewise.
92041         * lib/human.c: Likewise.
92042         * lib/same.c: Likewise.
92043         * lib/strtoumax.c: Likewise.
92044
92045         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
92046         `.', then first look up the entire `.'-containing string as a login
92047         name.
92048
92049 2000-02-23  Jim Meyering  <meyering@lucent.com>
92050
92051         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
92052         in place of my hack.
92053
92054 2000-02-18  Paul Eggert  <eggert@twinsun.com>
92055
92056         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
92057         (textint): New typedef.
92058         (parser_control): Member year changed from int to textint.
92059         All uses changed.
92060         (YYSTYPE): Removed; replaced by %union with int and textint members.
92061         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92062         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
92063         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
92064         (tSNUMBER, tUNUMBER): Now of type <textintval>.
92065         (date, number, to_year): Use width of number in digits, not its value,
92066         to determine whether it's a 2-digit year, or a 2-digit time.
92067         (yylex): Store number of digits of numeric tokens.
92068         Reported by John Kendall.
92069
92070         (parser_control): Changed from struct parser_control to typedef (for
92071         consistency).  All uses changed.
92072
92073         (tID): Removed; not used.
92074         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
92075
92076 2000-02-14  Paul Eggert  <eggert@twinsun.com>
92077
92078         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
92079         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
92080
92081 2000-02-12  Jim Meyering  <meyering@lucent.com>
92082
92083         * lib/userspec.c (ISDIGIT): Define it.
92084         (isdigit): Remove definition.
92085         (is_number): Use ISDIGIT, not isdigit.
92086         <libintl.h>: Include.
92087         (_ and N_): Define.
92088         (parse_user_spec): Mark translatable strings.
92089
92090 2000-02-10  Jim Meyering  <meyering@lucent.com>
92091
92092         With these changes, nanosleep.[ch] are finally enough like the other
92093         lib/* replacement files to compile on a few more losing systems.
92094
92095         * lib/nanosleep.h: Don't include config.h.
92096         Remove prototype from declaration of nanosleep.
92097         (PARAMS): Remove now-unneeded definition.
92098         * lib/nanosleep.c: #undef nanosleep.
92099         (rpl_nanosleep): Rename from nanosleep.
92100
92101 2000-02-10  Jim Meyering  <meyering@lucent.com>
92102
92103         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
92104         gnu_nanosleep to rpl_nanosleep.
92105
92106 2000-02-09  Jim Meyering  <meyering@lucent.com>
92107
92108         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
92109         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
92110
92111 2000-02-08  Akim Demaille  <akim@epita.fr>
92112
92113         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
92114         `[' and `]' and remove uses of `changequote'.
92115         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
92116         (AC_SYS_LARGEFILE): Likewise.
92117         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
92118         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
92119         of changequote.
92120         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
92121         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
92122         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
92123         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
92124
92125 2000-02-05  Jim Meyering  <meyering@lucent.com>
92126
92127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
92128         Remove explicit use of AC_HEADER_TIME.  It is required by
92129         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
92130         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
92131         in autoconf whereby the expansion of the latter ended up preceding
92132         the expansion of its prerequisite, AC_HEADER_TIME.
92133         Reported by Volker Borchert.
92134
92135 2000-02-03  Jim Meyering  <meyering@lucent.com>
92136
92137         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
92138
92139 2000-02-03  Jim Meyering  <meyering@lucent.com>
92140
92141         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
92142         rather than with `#if HAVE_UTMPNAME'.
92143
92144 2000-02-02  Jim Meyering  <meyering@lucent.com>
92145
92146         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
92147         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
92148         Reported by Eli Zaretskii.
92149
92150 2000-02-01  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92153
92154 2000-01-31  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92157         functions.  Add the time.h and sys/time.h headers along with the
92158         AC_REQUIRE'ment of AC_HEADER_TIME.
92159
92160 2000-01-31  Jim Meyering  <meyering@lucent.com>
92161
92162         * lib/nanosleep.h (nanosleep): Guard declaration with
92163         `#if ! HAVE_DECL_NANOSLEEP'.
92164         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92165         the declaration in that vendor's sys/timers.h.
92166         Reported by Christian Krackowizer.
92167
92168         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92169         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92170         (ISPRINT): Likewise.
92171         Reported by Tom Tromey.
92172
92173 2000-01-30  Jim Meyering  <meyering@lucent.com>
92174
92175         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92176
92177         * m4/prereq.m4 (utmp_includes): Define.
92178         Check for ut_user and ut_name members in both struct utmpx
92179         and struct utmp.
92180
92181 2000-01-30  Jim Meyering  <meyering@lucent.com>
92182
92183         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92184         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92185         header files where only utmpx.ut_user is declared.
92186
92187         * lib/readutmp.h (UT_USER): Define.
92188
92189 2000-01-29  Jim Meyering  <meyering@lucent.com>
92190
92191         * m4/lib-check.m4: New file containing library-related checks from
92192         fileutils and sh-utils (textutils had none).
92193
92194 2000-01-28  Jim Meyering  <meyering@lucent.com>
92195
92196         * m4/perl.m4: Change format of warning message to look more like that
92197         from the missing script.  Suggestion from François Pinard.
92198
92199 2000-01-25  Jim Meyering  <meyering@lucent.com>
92200
92201         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92202         well as time.h in the compile check.
92203         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92204         Fix typo in cross-compiling case: s/yes/no/.
92205
92206 2000-01-23  Jim Meyering  <meyering@lucent.com>
92207
92208         * m4/jm-macros.m4: Move df-related tests here from
92209         fileutils/configure.in
92210
92211         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92212         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92213
92214         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92215         s/space/ac_fsusage_space/.
92216         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92217
92218         * m4/ftruncate.m4: New file (derived from part of
92219         fileutils/configure.in).
92220         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92221         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92222
92223         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92224         AC_SUBST these here, rather than just in sh-util/configure.in, so
92225         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92226         all the same.
92227         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92228         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92229         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92230         (AC_SUBST(POW_LIBM)): Likewise.
92231         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92232
92233 2000-01-23  Jim Meyering  <meyering@lucent.com>
92234
92235         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92236         obstack.c.
92237
92238 2000-01-22  Jim Meyering  <meyering@lucent.com>
92239
92240         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92241
92242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92243
92244         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92245         configure.in
92246         (AC_CHECK_HEADERS): Likewise for sh-utils.
92247         (AC_CHECK_HEADERS): Likewise for textutils.
92248         Merge the three lists of headers.
92249
92250         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92251         from fileutils' configure.in.
92252
92253         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92254         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92255         check-decl.m4.
92256
92257         * m4/check-decl.m4: Use #if rather than #ifdef.
92258         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92259         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92260         (_jm_DECL_HEADERS): Define new function.
92261         (jm_CHECK_DECLARATIONS): Require it.
92262
92263 2000-01-22  Jim Meyering  <meyering@lucent.com>
92264
92265         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92266         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92267         Required for some AIX systems.  Reported by Christian Krackowizer.
92268         [TESTING] (main): New function.
92269
92270         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92271         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92272         letters.
92273
92274         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92275         iswprint.
92276
92277         * lib/strverscmp.c (ISDIGIT): Define.
92278         (strverscmp): Use ISDIGIT, not isdigit.
92279
92280 2000-01-19  Jim Meyering  <meyering@lucent.com>
92281
92282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92283         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92284         defines `struct timespec' in <sys/time.h>
92285
92286         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92287         Thanks to Akim for explaining.
92288
92289 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92290
92291         * lib/nanosleep.c (nanosleep):
92292         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92293         POSIX.1 doesn't require SA_INTERRUPT and some systems
92294         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92295         it's been part of POSIX.1 since day 1 (in 1988).
92296
92297 2000-01-17  Jim Meyering  <meyering@lucent.com>
92298
92299         * lib/interlock: Remove unused file.  Reported by François Pinard.
92300
92301 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92302
92303         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92304         alert, backslash, formfeed, and vertical tab unnecessarily in
92305         shell quoting style.
92306
92307 2000-01-16  Jim Meyering  <meyering@lucent.com>
92308
92309         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92310         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92311         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92312         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92313
92314 2000-01-16  Jim Meyering  <meyering@lucent.com>
92315
92316         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92317         because the latter didn't work.
92318
92319 2000-01-15  Jim Meyering  <meyering@lucent.com>
92320
92321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92322         (AC_REPLACE_FUNCS): Add memcpy and memset.
92323         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92324         Add strpbrk.
92325         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92326
92327 2000-01-12  Jim Meyering  <meyering@lucent.com>
92328
92329         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92330         (jm_PREREQ): Use it.
92331         (jm_PREREQ_READUTMP): New macro.
92332         (jm_PREREQ): Use it.
92333
92334 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92335
92336         Quote multibyte characters correctly.
92337         * m4/c-bs-a.m4: New file.
92338         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92339         (jm_PREREQ): Use it.
92340
92341 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92342
92343         * m4/uintmax_t.m4: Port to autoconf 2.13.
92344
92345 2000-01-08  Jim Meyering  <meyering@ascend.com>
92346
92347         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92348         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92349
92350 2000-01-04  Jim Meyering  <meyering@ascend.com>
92351
92352         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92353         jm_STRUCT_DIRENT_D_TYPE.
92354         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92355         jm_STRUCT_DIRENT_D_INO.
92356         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92357         jm_STRUCT_UTIMBUF.
92358         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92359         renamings.
92360         * m4/utime.m4: Likewise.
92361
92362         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92363         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92364
92365 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92366
92367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92368         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92369
92370 2000-01-02  Jim Meyering  <meyering@ascend.com>
92371
92372         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92373         remember if this is necessary.
92374
92375 1999-12-26  Jim Meyering  <meyering@ascend.com>
92376
92377         * m4/jm-macros.m4: Use it here.
92378         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92379
92380 1999-12-23  Jim Meyering  <meyering@ascend.com>
92381
92382         * m4/jm-macros.m4: Check for clock_gettime (moved from
92383         fileutils/configure.in)
92384         Check for gettimeofday.
92385
92386 1999-12-20  Jim Meyering  <meyering@ascend.com>
92387
92388         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92389         autoconf-2.14a-1999-12-20.
92390
92391 1999-12-19  Jim Meyering  <meyering@ascend.com>
92392
92393         * m4/lstat-slash.m4: New file.
92394         * m4/jm-macros.m4: Use the new macro:
92395         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92396
92397 1999-12-07  Jim Meyering  <meyering@ascend.com>
92398
92399         * m4/perl.m4: Require that File::Compare be available, too.
92400         Too many systems seem to lack it.
92401
92402         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92403         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92404
92405 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92406
92407         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92408         problem with the QNX 4.25 shell, which doesn't propagate exit
92409         status of failed commands inside shell assignments.
92410
92411 1999-11-17  Jim Meyering  <meyering@ascend.com>
92412
92413         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92414
92415 1999-11-07  Jim Meyering  <meyering@ascend.com>
92416
92417         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92418
92419 1999-11-06  Jim Meyering  <meyering@ascend.com>
92420
92421         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92422         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92423
92424 1999-11-05  Jim Meyering  <meyering@ascend.com>
92425
92426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92427         configure.in of textutils, fileutils, and sh-utils into this one
92428         (shared between those packages) file.
92429         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92430         AC_STRUCT_ST_BLKSIZE.
92431
92432 1999-11-03  Jim Meyering  <meyering@ascend.com>
92433
92434         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92435         of AC_CHECK_TYPE checks includes unistd.h.
92436         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92437         Suggestion from Akim Demaille.
92438
92439 1999-10-30  Jim Meyering  <meyering@ascend.com>
92440
92441         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92442         m4-quoted string.
92443         * m4/ls-mntd-fs.m4: Likewise.
92444         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92445         * m4/jm-winsz1.m4: Likewise.
92446
92447         * m4/const.m4: Remove file, since the fix made it into the experimental
92448         version of autoconf.
92449         * m4/mktime.m4: Likewise.
92450
92451         * m4/check-type.m4: Remove file, now that the latest version of
92452         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92453
92454         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92455         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92456         AC_CHECK_TYPE.
92457
92458 1999-10-04  Jim Meyering  <meyering@ascend.com>
92459
92460         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92461
92462 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92463
92464         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92465         2.95.1 bug with HP-UX 10.20.
92466
92467 1999-09-17  Jim Meyering  <meyering@ascend.com>
92468
92469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92470         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92471         due to missing strdup (against sh-utils-2.0).
92472
92473 1999-08-29  Jim Meyering  <meyering@ascend.com>
92474
92475         * m4/jm-macros.m4: Require jm_BISON.
92476         * m4/bison.m4: New file.
92477
92478 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92479
92480         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92481         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92482
92483 1999-08-05  Jim Meyering  <meyering@ascend.com>
92484
92485         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92486         to avoid conflicts with `conftest' on 8+3 filesystems.
92487         Suggestion from Eli Zaretskii.
92488
92489 1999-08-04  Jim Meyering  <meyering@ascend.com>
92490
92491         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92492         fileutils and sh-utils (textutils's getline test was inadequate).
92493         (AM_FUNC_GETLINE): Run this test.
92494         (AC_CHECK_FUNCS): Check for getdelim.
92495         Reported by Bob Proulx.
92496
92497 1999-08-02  Jim Meyering  <meyering@ascend.com>
92498
92499         * m4/jm-macros.m4: Add a comment.
92500
92501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92502
92503         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92504         <inttypes.h> defines strtoumax as a macro (and not as a
92505         function).
92506
92507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92508
92509         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92510         that we can shift, multiply and divide unsigned long long
92511         values; Ultrix cc can't do it.
92512
92513 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92514
92515         * m4/mktime.m4: New file, which is a preview of what should appear
92516         in the next public autoconf release.
92517
92518 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92519
92520         * m4/lfs.m4: Remove this file.
92521         * m4/largefile.m4: New file.  It contains the old contents of
92522         lfs.m4, except that all names with prefix AC_LFS have been
92523         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92524         compatible with future autoconf versions.  Also, some minor m4
92525         quoting problems have been fixed.
92526
92527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92528
92529         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92530         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92531         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92532         and simplify the shell code.
92533
92534 1999-08-01  Jim Meyering  <meyering@ascend.com>
92535
92536         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92537         m4.
92538
92539 1999-07-20  Jim Meyering  <meyering@ascend.com>
92540
92541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92542
92543 1999-07-15  Jim Meyering  <meyering@ascend.com>
92544
92545         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92546
92547 1999-05-22  Jim Meyering  <meyering@ascend.com>
92548
92549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92550
92551 1999-05-20  Jim Meyering  <meyering@ascend.com>
92552
92553         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92554         Add a colon after each `then' in case $4 is empty.
92555
92556 1999-05-16  Jim Meyering  <meyering@ascend.com>
92557
92558         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92559
92560 1999-05-10  Jim Meyering  <meyering@ascend.com>
92561
92562         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92563
92564         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92565         AC_FUNC_MKTIME.
92566
92567 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92568
92569         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92570
92571 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92572
92573         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92574         not CPPFLAGS, so that linking works correctly in IRIX.
92575
92576 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92577
92578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92579
92580 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92581
92582         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92583         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92585         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92586         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92587
92588         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92589
92590 1999-04-20  Jim Meyering  <meyering@ascend.com>
92591
92592         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92593         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92594         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92595
92596 1999-04-18  Jim Meyering  <meyering@ascend.com>
92597
92598         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92599         * m4/jm-macros.m4: Use it.
92600
92601 1999-04-06  Jim Meyering  <meyering@ascend.com>
92602
92603         * m4/strftime.m4: Remove test for %f.
92604
92605 1999-03-29  Jim Meyering  <meyering@ascend.com>
92606
92607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92608         superset of the AC_TYPE_* checks in the textutils, fileutils,
92609         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92610         AC_TYPE_PID_T.
92611
92612 1999-03-28  Jim Meyering  <meyering@ascend.com>
92613
92614         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92615         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92616         replaced e.g., in the *.sh files of the sh-utils.
92617
92618 1999-03-20  Jim Meyering  <meyering@ascend.com>
92619
92620         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92621         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92622         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92623
92624 1999-03-19  Jim Meyering  <meyering@ascend.com>
92625
92626         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92627
92628 1999-03-12  Jim Meyering  <meyering@ascend.com>
92629
92630         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92631
92632 1999-03-07  Jim Meyering  <meyering@ascend.com>
92633
92634         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92635         declared.
92636
92637 1999-02-17  Jim Meyering  <meyering@ascend.com>
92638
92639         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92640         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92641
92642 1999-02-07  Jim Meyering  <meyering@ascend.com>
92643
92644         * m4/group-member.m4: New file -- extracted from sh-utils'
92645         configure.in.
92646
92647         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92648         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92649
92650 1999-02-06  Jim Meyering  <meyering@ascend.com>
92651
92652         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92653         * m4/fnmatch.m4: Likewise.
92654         * m4/getgroups.m4: Likewise.
92655         * m4/lstat.m4: Likewise.
92656         * m4/malloc.m4: Likewise.
92657         * m4/putenv.m4: Likewise.
92658         * m4/realloc.m4: Likewise.
92659         * m4/regex.m4: Likewise.
92660         * m4/stat.m4: Likewise.
92661         * m4/strftime.m4: Likewise.
92662         Suggestion from Alain Magloire.
92663
92664         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92665         * m4/fnmatch.m4: Likewise.
92666         * m4/getgroups.m4: Likewise.
92667         * m4/getline.m4: Likewise.
92668         * m4/lstat.m4: Likewise.
92669         * m4/malloc.m4: Likewise.
92670         * m4/memcmp.m4: Likewise.
92671         * m4/putenv.m4: Likewise.
92672         * m4/realloc.m4: Likewise.
92673         * m4/regex.m4: Likewise.
92674         * m4/stat.m4: Likewise.
92675         * m4/strftime.m4: Likewise.
92676         Suggestion from Alain Magloire.
92677
92678         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92679         an argument.
92680
92681         * m4/regex.m4: Add a run-time Test for proper operation of
92682         re_compile_pattern.
92683
92684 1999-01-31  Jim Meyering  <meyering@ascend.com>
92685
92686         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92687
92688 1999-01-30  Jim Meyering  <meyering@ascend.com>
92689
92690         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92691
92692         * m4/jm-mktime.m4: Make this a wrapper around the official
92693         AM_FUNC_MKTIME rather than my private copy, now that the official one
92694         is up to date.
92695         * m4/mktime.m4: Remove file.
92696
92697         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92698         * m4/uptime.m4: Likewise.
92699         * m4/uintmax_t.m4: Likewise.
92700
92701 1999-01-28  Jim Meyering  <meyering@ascend.com>
92702
92703         * m4/jm-macros.m4: Use jm_AFS.
92704         * m4/afs.m4: New file (from fileutils' configure.in).
92705
92706         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92707         * m4/chown.m4: Likewise.
92708         * m4/d-ino.m4: Likewise.
92709         * m4/d-type.m4: Likewise.
92710         * m4/fnmatch.m4: Likewise.
92711         * m4/getgroups.m4: Likewise.
92712         * m4/gettext.m4: Likewise.
92713         * m4/jm-mktime.m4: Likewise.
92714         * m4/jm-winsz2.m4: Likewise.
92715         * m4/lcmessage.m4: Likewise.
92716         * m4/ls-mntd-fs.m4: Likewise.
92717         * m4/malloc.m4: Likewise.
92718         * m4/memcmp.m4: Likewise.
92719         * m4/putenv.m4: Likewise.
92720         * m4/realloc.m4: Likewise.
92721         * m4/st_mtim.m4: Likewise.
92722         * m4/strftime.m4: Likewise.
92723
92724 1999-01-16  Jim Meyering  <meyering@ascend.com>
92725
92726         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92727         (ARGMATCH_DIE_DECL): Define.
92728
92729 1999-01-12  Jim Meyering  <meyering@ascend.com>
92730
92731         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92732         Reported by Lars Hecking.
92733
92734 1999-01-10  Jim Meyering  <meyering@ascend.com>
92735
92736         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92737         gross kludge.
92738         * m4/inttypes_h.m4: Likewise.
92739         * m4/lstat.m4: Likewise.
92740         * m4/malloc.m4: Likewise.
92741         * m4/readdir.m4: Likewise.
92742         * m4/realloc.m4: Likewise.
92743         * m4/st_dm_mode.m4: Likewise.
92744         * m4/stat.m4: Likewise.
92745         * m4/utimbuf.m4: Likewise.
92746         * m4/utimes.m4: Likewise.
92747
92748         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92749         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92750         comments in config.h.in are meaningful.
92751
92752         * m4/jm-macros.m4: Require autoconf-2.13 here.
92753
92754         * m4/regex.m4: By default, don't use the included regex.c on systems
92755         with glibc 2.  Suggestion from Uli Drepper.
92756
92757 1999-01-02  Jim Meyering  <meyering@ascend.com>
92758
92759         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92760
92761 1998-12-18  Jim Meyering  <meyering@ascend.com>
92762
92763         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92764         Based on a suggestion from Lars Hecking.
92765
92766 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92767
92768         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92769
92770 1998-11-16  Jim Meyering  <meyering@ascend.com>
92771
92772         * m4/lfs.m4: Double-quote the `uname...` expression.
92773
92774 1998-11-14  Jim Meyering  <meyering@ascend.com>
92775
92776         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92777         * m4/stat.m4: Likewise.
92778
92779 1998-11-03  Jim Meyering  <meyering@ascend.com>
92780
92781         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92782         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92783
92784 1998-10-18  Jim Meyering  <meyering@ascend.com>
92785
92786         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92787
92788 1998-10-17  Jim Meyering  <meyering@ascend.com>
92789
92790         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92791         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92792         calls for those previously hard-coded headers.  Instead, take a new
92793         parameter.
92794         (jm_CHECK_DECLARATIONS): Reflect interface change.
92795         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92796         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92797
92798         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92799
92800 1998-10-14  Jim Meyering  <meyering@ascend.com>
92801
92802         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92803         instead of "TZ=America/Vancouver".  From Paul Eggert.
92804
92805 1998-10-11  Jim Meyering  <meyering@ascend.com>
92806
92807         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92808         This adds a test for a recently added compatibility fix for mktime.c.
92809         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92810
92811 1998-09-27  Jim Meyering  <meyering@ascend.com>
92812
92813         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92814
92815         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92816         ../configure.in, including a change from Gordon Matzigkeit to allow
92817         cross-compiling for the Hurd.
92818
92819         * m4/glibc.m4: New file/macro to test for the GNU C Library
92820         versions 1 and 2.  From Gordon Matzigkeit.
92821         Indent.
92822
92823 1998-09-21  Jim Meyering  <meyering@ascend.com>
92824
92825         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92826
92827 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92828
92829         Port nanosecond-resolution times to UnixWare 2.1.2 and
92830         pedantic Solaris 2.6.
92831
92832         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92833         AC_STRUCT_ST_MTIM.
92834         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92835         Generate name of ns member, instead of just 1 or undef.
92836         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92837
92838 1998-08-15  Jim Meyering  <meyering@ascend.com>
92839
92840         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92841         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92842         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92843         instead of jm_TYPE_SSIZE_T.
92844
92845 1998-08-12  Jim Meyering  <meyering@ascend.com>
92846
92847         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92848
92849 1998-08-02  Jim Meyering  <meyering@ascend.com>
92850
92851         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92852         in acconfig.h manually.
92853
92854 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92855
92856         * m4/st_mtim.m4: New file.
92857
92858 1998-07-28  Jim Meyering  <meyering@ascend.com>
92859
92860         * m4/utimes.m4: Undef stat.
92861
92862 1998-07-25  Jim Meyering  <meyering@ascend.com>
92863
92864         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92865         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92866
92867 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92868
92869         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92870         uid and gid actually remain unchanged.
92871
92872 1998-07-07  Jim Meyering  <meyering@ascend.com>
92873
92874         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92875
92876 1998-07-04  Jim Meyering  <meyering@ascend.com>
92877
92878         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92879         to prove that this macro can be used in packages without regex.c.
92880
92881 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92882
92883         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92884         is to be used.
92885
92886 1998-07-03  Jim Meyering  <meyering@ascend.com>
92887
92888         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92889
92890         * m4/gettext.m4: New file -- from gettext-0.10.35.
92891         * m4/lcmessage.m4: Likewise.
92892         * m4/progtest.m4: Likewise.
92893
92894         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92895         * m4/jm-macros.m4: Require the new macro.
92896
92897 1998-06-29  Jim Meyering  <meyering@ascend.com>
92898
92899         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92900         for the definition of NGROUPS (used in a system header included
92901         by sys/mount.h).
92902
92903 1998-06-28  Jim Meyering  <meyering@ascend.com>
92904
92905         * m4/ls-mntd-fs.m4: New file.
92906         * m4/fstypename.m4: New file.
92907
92908         * m4/jm-macros.m4: Require the new macro.
92909         * m4/jm-glibc-io.m4: New file.
92910
92911 1998-05-19  Jim Meyering  <meyering@ascend.com>
92912
92913         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92914         * m4/lchown.m4: New file.
92915
92916         * m4/Makefile.am.in: New file.
92917         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92918
92919 1998-05-14  Jim Meyering  <meyering@ascend.com>
92920
92921         * m4/Makefile.am (EXTRA_DIST): Add them.
92922         * m4/jm-macros.m4: New file.
92923         * m4/utimbuf.m4: New file.
92924
92925 1998-05-12  Jim Meyering  <meyering@ascend.com>
92926
92927         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92928
92929 1998-05-11  Jim Meyering  <meyering@ascend.com>
92930
92931         * m4/isc-posix.m4: New file.
92932
92933 1998-05-10  Jim Meyering  <meyering@ascend.com>
92934
92935         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92936
92937 1998-05-09  Jim Meyering  <meyering@ascend.com>
92938
92939         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92940         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92941         with automake.
92942
92943         * m4/ssize_t.m4: New file.
92944         * m4/mktime.m4: Remove file -- the new automake has this now.
92945
92946 1998-04-26  Jim Meyering  <meyering@ascend.com>
92947
92948         * m4/assert.m4: New file.
92949         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92950
92951 1998-04-05  Jim Meyering  <meyering@ascend.com>
92952
92953         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92954         (jm_PREREQ): Use it here.
92955
92956 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92957
92958         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92959         in acconfig.h.
92960
92961 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92962
92963         * m4/prereq.m4: New file.
92964         * m4/error.m4: New file.
92965         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92966
92967 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92968
92969         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92970         cache-check for the same variable -- that defeated the purpose of
92971         the test; the test program was never run.  This was a problem only
92972         on systems with losing getline functions -- HP-UX 10.20 is one.
92973         Reported by Bjorn Helgaas.
92974
92975 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92976
92977         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92978
92979 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92980
92981         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92982
92983         * m4/const.m4: New file.  Use an initializer in this declaration
92984         typedef int charset[2]; const charset x;
92985         Reported by Bob Glickstein.
92986
92987 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92988
92989         * m4/chown.m4: Fix reversed types on -1 args to chown.
92990         From Kaveh Ghazi.
92991
92992 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92993
92994         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92995         Add lseek and memchr.
92996
92997         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92998         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92999         have a 20-character limit on names.
93000
93001 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
93002
93003         * m4/inttypes_h.m4: New file.
93004         * m4/uintmax_t.m4: New file.
93005         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
93006
93007
93008         -----
93009
93010         Local Variables:
93011         coding: utf-8
93012         End:
93013
93014         Copyright (C) 1997-2012 Free Software Foundation, Inc.
93015
93016         Copying and distribution of this file, with or without
93017         modification, are permitted provided the copyright notice
93018         and this notice are preserved.